@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
@@ -4,12 +4,12 @@ import type { EventType } from "../../enums/v1/event_type_pb.js";
4
4
  import type { CancelExternalWorkflowExecutionFailedCause, SignalExternalWorkflowExecutionFailedCause, StartChildWorkflowExecutionFailedCause, WorkflowTaskFailedCause } from "../../enums/v1/failed_cause_pb.js";
5
5
  import type { UpdateAdmittedEventOrigin } from "../../enums/v1/update_pb.js";
6
6
  import type { ContinueAsNewInitiator, ContinueAsNewVersioningBehavior, ParentClosePolicy, RetryState, SuggestContinueAsNewReason, TimeoutType, VersioningBehavior, WorkflowIdReusePolicy } from "../../enums/v1/workflow_pb.js";
7
- import type { ActivityType, Callback, Header, Link, Memo, MeteringMetadata, Payload, Payloads, Priority, RetryPolicy, SearchAttributes, WorkerVersionStamp, WorkflowExecution, WorkflowType } from "../../common/v1/message_pb.js";
7
+ import type { ActivityType, Callback, Header, Link, Memo, MeteringMetadata, Payload, Payloads, Principal, Priority, RetryPolicy, SearchAttributes, WorkerVersionStamp, WorkflowExecution, WorkflowType } from "../../common/v1/message_pb.js";
8
8
  import type { Deployment, InheritedAutoUpgradeInfo, WorkerDeploymentVersion } from "../../deployment/v1/message_pb.js";
9
9
  import type { Failure } from "../../failure/v1/message_pb.js";
10
10
  import type { TaskQueue } from "../../taskqueue/v1/message_pb.js";
11
11
  import type { Meta, Outcome, Request } from "../../update/v1/message_pb.js";
12
- import type { ResetPoints, VersioningOverride } from "../../workflow/v1/message_pb.js";
12
+ import type { ResetPoints, TimeSkippingConfig, VersioningOverride } from "../../workflow/v1/message_pb.js";
13
13
  import type { WorkflowTaskCompletedMetadata } from "../../sdk/v1/task_complete_metadata_pb.js";
14
14
  import type { UserMetadata } from "../../sdk/v1/user_metadata_pb.js";
15
15
  import type { Message } from "@bufbuild/protobuf";
@@ -26,7 +26,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
26
26
  /**
27
27
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 1;
28
28
  */
29
- workflowType?: WorkflowType;
29
+ workflowType?: WorkflowType | undefined;
30
30
  /**
31
31
  * If this workflow is a child, the namespace our parent lives in.
32
32
  * SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
@@ -44,7 +44,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
44
44
  *
45
45
  * @generated from field: temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
46
46
  */
47
- parentWorkflowExecution?: WorkflowExecution;
47
+ parentWorkflowExecution?: WorkflowExecution | undefined;
48
48
  /**
49
49
  * EventID of the child execution initiated event in parent workflow
50
50
  *
@@ -54,31 +54,31 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
54
54
  /**
55
55
  * @generated from field: temporal.api.taskqueue.v1.TaskQueue task_queue = 5;
56
56
  */
57
- taskQueue?: TaskQueue;
57
+ taskQueue?: TaskQueue | undefined;
58
58
  /**
59
59
  * SDK will deserialize this and provide it as arguments to the workflow function
60
60
  *
61
61
  * @generated from field: temporal.api.common.v1.Payloads input = 6;
62
62
  */
63
- input?: Payloads;
63
+ input?: Payloads | undefined;
64
64
  /**
65
65
  * Total workflow execution timeout including retries and continue as new.
66
66
  *
67
67
  * @generated from field: google.protobuf.Duration workflow_execution_timeout = 7;
68
68
  */
69
- workflowExecutionTimeout?: Duration;
69
+ workflowExecutionTimeout?: Duration | undefined;
70
70
  /**
71
71
  * Timeout of a single workflow run.
72
72
  *
73
73
  * @generated from field: google.protobuf.Duration workflow_run_timeout = 8;
74
74
  */
75
- workflowRunTimeout?: Duration;
75
+ workflowRunTimeout?: Duration | undefined;
76
76
  /**
77
77
  * Timeout of a single workflow task.
78
78
  *
79
79
  * @generated from field: google.protobuf.Duration workflow_task_timeout = 9;
80
80
  */
81
- workflowTaskTimeout?: Duration;
81
+ workflowTaskTimeout?: Duration | undefined;
82
82
  /**
83
83
  * Run id of the previous workflow which continued-as-new or retried or cron executed into this
84
84
  * workflow.
@@ -93,11 +93,11 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
93
93
  /**
94
94
  * @generated from field: temporal.api.failure.v1.Failure continued_failure = 12;
95
95
  */
96
- continuedFailure?: Failure;
96
+ continuedFailure?: Failure | undefined;
97
97
  /**
98
98
  * @generated from field: temporal.api.common.v1.Payloads last_completion_result = 13;
99
99
  */
100
- lastCompletionResult?: Payloads;
100
+ lastCompletionResult?: Payloads | undefined;
101
101
  /**
102
102
  * This is the run id when the WorkflowExecutionStarted event was written.
103
103
  * A workflow reset changes the execution run_id, but preserves this field.
@@ -121,7 +121,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
121
121
  /**
122
122
  * @generated from field: temporal.api.common.v1.RetryPolicy retry_policy = 17;
123
123
  */
124
- retryPolicy?: RetryPolicy;
124
+ retryPolicy?: RetryPolicy | undefined;
125
125
  /**
126
126
  * Starting at 1, the number of times we have tried to execute this workflow
127
127
  *
@@ -134,7 +134,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
134
134
  *
135
135
  * @generated from field: google.protobuf.Timestamp workflow_execution_expiration_time = 19;
136
136
  */
137
- workflowExecutionExpirationTime?: Timestamp;
137
+ workflowExecutionExpirationTime?: Timestamp | undefined;
138
138
  /**
139
139
  * If this workflow runs on a cron schedule, it will appear here
140
140
  *
@@ -147,23 +147,23 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
147
147
  *
148
148
  * @generated from field: google.protobuf.Duration first_workflow_task_backoff = 21;
149
149
  */
150
- firstWorkflowTaskBackoff?: Duration;
150
+ firstWorkflowTaskBackoff?: Duration | undefined;
151
151
  /**
152
152
  * @generated from field: temporal.api.common.v1.Memo memo = 22;
153
153
  */
154
- memo?: Memo;
154
+ memo?: Memo | undefined;
155
155
  /**
156
156
  * @generated from field: temporal.api.common.v1.SearchAttributes search_attributes = 23;
157
157
  */
158
- searchAttributes?: SearchAttributes;
158
+ searchAttributes?: SearchAttributes | undefined;
159
159
  /**
160
160
  * @generated from field: temporal.api.workflow.v1.ResetPoints prev_auto_reset_points = 24;
161
161
  */
162
- prevAutoResetPoints?: ResetPoints;
162
+ prevAutoResetPoints?: ResetPoints | undefined;
163
163
  /**
164
164
  * @generated from field: temporal.api.common.v1.Header header = 25;
165
165
  */
166
- header?: Header;
166
+ header?: Header | undefined;
167
167
  /**
168
168
  * Version of the child execution initiated event in parent workflow
169
169
  * It should be used together with parent_initiated_event_id to identify
@@ -186,7 +186,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
186
186
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29 [deprecated = true];
187
187
  * @deprecated
188
188
  */
189
- sourceVersionStamp?: WorkerVersionStamp;
189
+ sourceVersionStamp?: WorkerVersionStamp | undefined;
190
190
  /**
191
191
  * Completion callbacks attached when this workflow was started.
192
192
  *
@@ -223,7 +223,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
223
223
  *
224
224
  * @generated from field: temporal.api.common.v1.WorkflowExecution root_workflow_execution = 31;
225
225
  */
226
- rootWorkflowExecution?: WorkflowExecution;
226
+ rootWorkflowExecution?: WorkflowExecution | undefined;
227
227
  /**
228
228
  * When present, this execution is assigned to the build ID of its parent or previous execution.
229
229
  * Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
@@ -239,7 +239,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
239
239
  *
240
240
  * @generated from field: temporal.api.workflow.v1.VersioningOverride versioning_override = 33;
241
241
  */
242
- versioningOverride?: VersioningOverride;
242
+ versioningOverride?: VersioningOverride | undefined;
243
243
  /**
244
244
  * When present, it means this is a child workflow of a parent that is Pinned to this Worker
245
245
  * Deployment Version. In this case, child workflow will start as Pinned to this Version instead
@@ -257,7 +257,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
257
257
  *
258
258
  * @generated from field: temporal.api.common.v1.Priority priority = 35;
259
259
  */
260
- priority?: Priority;
260
+ priority?: Priority | undefined;
261
261
  /**
262
262
  * If present, the new workflow should start on this version with pinned base behavior.
263
263
  * Child of pinned parent will inherit the parent's version if the Child's Task Queue belongs to that version.
@@ -279,7 +279,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
279
279
  *
280
280
  * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion inherited_pinned_version = 37;
281
281
  */
282
- inheritedPinnedVersion?: WorkerDeploymentVersion;
282
+ inheritedPinnedVersion?: WorkerDeploymentVersion | undefined;
283
283
  /**
284
284
  * If present, the new workflow begins with AutoUpgrade behavior. Before dispatching the
285
285
  * first workflow task, this field is set to the deployment version on which the parent/
@@ -305,7 +305,7 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
305
305
  *
306
306
  * @generated from field: temporal.api.deployment.v1.InheritedAutoUpgradeInfo inherited_auto_upgrade_info = 39;
307
307
  */
308
- inheritedAutoUpgradeInfo?: InheritedAutoUpgradeInfo;
308
+ inheritedAutoUpgradeInfo?: InheritedAutoUpgradeInfo | undefined;
309
309
  /**
310
310
  * A boolean indicating whether the SDK has asked to eagerly execute the first workflow task for this workflow and
311
311
  * eager execution was accepted by the server.
@@ -314,12 +314,71 @@ export type WorkflowExecutionStartedEventAttributes = Message<"temporal.api.hist
314
314
  * @generated from field: bool eager_execution_accepted = 38;
315
315
  */
316
316
  eagerExecutionAccepted: boolean;
317
+ /**
318
+ * During a previous run of this workflow, the server may have notified the SDK
319
+ * that the Target Worker Deployment Version changed, but the SDK declined to
320
+ * upgrade (e.g., by continuing-as-new with PINNED behavior). This field records
321
+ * the target version that was declined.
322
+ *
323
+ * This is a wrapper message to distinguish "never declined" (nil wrapper) from
324
+ * "declined an unversioned target" (non-nil wrapper with nil deployment_version).
325
+ *
326
+ * Used internally by the server during continue-as-new and retry.
327
+ * Should not be read or interpreted by SDKs.
328
+ *
329
+ * @generated from field: temporal.api.history.v1.DeclinedTargetVersionUpgrade declined_target_version_upgrade = 40;
330
+ */
331
+ declinedTargetVersionUpgrade?: DeclinedTargetVersionUpgrade | undefined;
332
+ /**
333
+ * Initial time-skipping configuration for this workflow execution, recorded at start time.
334
+ * This may have been set explicitly via the start workflow request, or propagated from a
335
+ * parent/previous execution.
336
+ *
337
+ * The configuration may be updated after start via UpdateWorkflowExecutionOptions, which
338
+ * will be reflected in the WorkflowExecutionOptionsUpdatedEvent.
339
+ *
340
+ * @generated from field: temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 41;
341
+ */
342
+ timeSkippingConfig?: TimeSkippingConfig | undefined;
343
+ /**
344
+ * The time skipped by the previous execution that started this workflow.
345
+ * It can happen in cases of child workflows and continue-as-new workflows.
346
+ *
347
+ * @generated from field: google.protobuf.Duration initial_skipped_duration = 42;
348
+ */
349
+ initialSkippedDuration?: Duration | undefined;
317
350
  };
318
351
  /**
319
352
  * Describes the message temporal.api.history.v1.WorkflowExecutionStartedEventAttributes.
320
353
  * Use `create(WorkflowExecutionStartedEventAttributesSchema)` to create a new message.
321
354
  */
322
355
  export declare const WorkflowExecutionStartedEventAttributesSchema: GenMessage<WorkflowExecutionStartedEventAttributes>;
356
+ /**
357
+ * Wrapper for a target deployment version that the SDK declined to upgrade to.
358
+ * See declined_target_version_upgrade on WorkflowExecutionStartedEventAttributes.
359
+ *
360
+ * @generated from message temporal.api.history.v1.DeclinedTargetVersionUpgrade
361
+ */
362
+ export type DeclinedTargetVersionUpgrade = Message<"temporal.api.history.v1.DeclinedTargetVersionUpgrade"> & {
363
+ /**
364
+ * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 1;
365
+ */
366
+ deploymentVersion?: WorkerDeploymentVersion | undefined;
367
+ /**
368
+ * Revision number of the task queue routing config at the time the target
369
+ * was declined. If an incoming target's revision is <= this value, it is
370
+ * not newer and is not used for deciding whether or not to suppress the
371
+ * upgrade signal.
372
+ *
373
+ * @generated from field: int64 revision_number = 2;
374
+ */
375
+ revisionNumber: bigint;
376
+ };
377
+ /**
378
+ * Describes the message temporal.api.history.v1.DeclinedTargetVersionUpgrade.
379
+ * Use `create(DeclinedTargetVersionUpgradeSchema)` to create a new message.
380
+ */
381
+ export declare const DeclinedTargetVersionUpgradeSchema: GenMessage<DeclinedTargetVersionUpgrade>;
323
382
  /**
324
383
  * @generated from message temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes
325
384
  */
@@ -329,7 +388,7 @@ export type WorkflowExecutionCompletedEventAttributes = Message<"temporal.api.hi
329
388
  *
330
389
  * @generated from field: temporal.api.common.v1.Payloads result = 1;
331
390
  */
332
- result?: Payloads;
391
+ result?: Payloads | undefined;
333
392
  /**
334
393
  * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
335
394
  *
@@ -357,7 +416,7 @@ export type WorkflowExecutionFailedEventAttributes = Message<"temporal.api.histo
357
416
  *
358
417
  * @generated from field: temporal.api.failure.v1.Failure failure = 1;
359
418
  */
360
- failure?: Failure;
419
+ failure?: Failure | undefined;
361
420
  /**
362
421
  * @generated from field: temporal.api.enums.v1.RetryState retry_state = 2;
363
422
  */
@@ -413,27 +472,27 @@ export type WorkflowExecutionContinuedAsNewEventAttributes = Message<"temporal.a
413
472
  /**
414
473
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 2;
415
474
  */
416
- workflowType?: WorkflowType;
475
+ workflowType?: WorkflowType | undefined;
417
476
  /**
418
477
  * @generated from field: temporal.api.taskqueue.v1.TaskQueue task_queue = 3;
419
478
  */
420
- taskQueue?: TaskQueue;
479
+ taskQueue?: TaskQueue | undefined;
421
480
  /**
422
481
  * @generated from field: temporal.api.common.v1.Payloads input = 4;
423
482
  */
424
- input?: Payloads;
483
+ input?: Payloads | undefined;
425
484
  /**
426
485
  * Timeout of a single workflow run.
427
486
  *
428
487
  * @generated from field: google.protobuf.Duration workflow_run_timeout = 5;
429
488
  */
430
- workflowRunTimeout?: Duration;
489
+ workflowRunTimeout?: Duration | undefined;
431
490
  /**
432
491
  * Timeout of a single workflow task.
433
492
  *
434
493
  * @generated from field: google.protobuf.Duration workflow_task_timeout = 6;
435
494
  */
436
- workflowTaskTimeout?: Duration;
495
+ workflowTaskTimeout?: Duration | undefined;
437
496
  /**
438
497
  * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
439
498
  *
@@ -447,7 +506,7 @@ export type WorkflowExecutionContinuedAsNewEventAttributes = Message<"temporal.a
447
506
  *
448
507
  * @generated from field: google.protobuf.Duration backoff_start_interval = 8;
449
508
  */
450
- backoffStartInterval?: Duration;
509
+ backoffStartInterval?: Duration | undefined;
451
510
  /**
452
511
  * @generated from field: temporal.api.enums.v1.ContinueAsNewInitiator initiator = 9;
453
512
  */
@@ -460,26 +519,26 @@ export type WorkflowExecutionContinuedAsNewEventAttributes = Message<"temporal.a
460
519
  * @generated from field: temporal.api.failure.v1.Failure failure = 10 [deprecated = true];
461
520
  * @deprecated
462
521
  */
463
- failure?: Failure;
522
+ failure?: Failure | undefined;
464
523
  /**
465
524
  * The result from the most recent completed run of this workflow. The SDK surfaces this to the
466
525
  * new run via APIs such as `GetLastCompletionResult`.
467
526
  *
468
527
  * @generated from field: temporal.api.common.v1.Payloads last_completion_result = 11;
469
528
  */
470
- lastCompletionResult?: Payloads;
529
+ lastCompletionResult?: Payloads | undefined;
471
530
  /**
472
531
  * @generated from field: temporal.api.common.v1.Header header = 12;
473
532
  */
474
- header?: Header;
533
+ header?: Header | undefined;
475
534
  /**
476
535
  * @generated from field: temporal.api.common.v1.Memo memo = 13;
477
536
  */
478
- memo?: Memo;
537
+ memo?: Memo | undefined;
479
538
  /**
480
539
  * @generated from field: temporal.api.common.v1.SearchAttributes search_attributes = 14;
481
540
  */
482
- searchAttributes?: SearchAttributes;
541
+ searchAttributes?: SearchAttributes | undefined;
483
542
  /**
484
543
  * If this is set, the new execution inherits the Build ID of the current execution. Otherwise,
485
544
  * the assignment rules will be used to independently assign a Build ID to the new execution.
@@ -512,7 +571,7 @@ export type WorkflowTaskScheduledEventAttributes = Message<"temporal.api.history
512
571
  *
513
572
  * @generated from field: temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
514
573
  */
515
- taskQueue?: TaskQueue;
574
+ taskQueue?: TaskQueue | undefined;
516
575
  /**
517
576
  * How long the worker has to process this task once receiving it before it times out
518
577
  *
@@ -521,7 +580,7 @@ export type WorkflowTaskScheduledEventAttributes = Message<"temporal.api.history
521
580
  *
522
581
  * @generated from field: google.protobuf.Duration start_to_close_timeout = 2;
523
582
  */
524
- startToCloseTimeout?: Duration;
583
+ startToCloseTimeout?: Duration | undefined;
525
584
  /**
526
585
  * Starting at 1, how many attempts there have been to complete this task
527
586
  *
@@ -574,6 +633,14 @@ export type WorkflowTaskStartedEventAttributes = Message<"temporal.api.history.v
574
633
  * @generated from field: repeated temporal.api.enums.v1.SuggestContinueAsNewReason suggest_continue_as_new_reasons = 8;
575
634
  */
576
635
  suggestContinueAsNewReasons: SuggestContinueAsNewReason[];
636
+ /**
637
+ * True if Workflow's Target Worker Deployment Version is different from its Pinned Version and
638
+ * the workflow is Pinned.
639
+ * Experimental.
640
+ *
641
+ * @generated from field: bool target_worker_deployment_version_changed = 9;
642
+ */
643
+ targetWorkerDeploymentVersionChanged: boolean;
577
644
  /**
578
645
  * Total history size in bytes, which the workflow might use to decide when to
579
646
  * continue-as-new regardless of the suggestion. Note that history event count is
@@ -589,7 +656,7 @@ export type WorkflowTaskStartedEventAttributes = Message<"temporal.api.history.v
589
656
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
590
657
  * @deprecated
591
658
  */
592
- workerVersion?: WorkerVersionStamp;
659
+ workerVersion?: WorkerVersionStamp | undefined;
593
660
  /**
594
661
  * Used by server internally to properly reapply build ID redirects to an execution
595
662
  * when rebuilding it from events.
@@ -644,20 +711,20 @@ export type WorkflowTaskCompletedEventAttributes = Message<"temporal.api.history
644
711
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp worker_version = 5 [deprecated = true];
645
712
  * @deprecated
646
713
  */
647
- workerVersion?: WorkerVersionStamp;
714
+ workerVersion?: WorkerVersionStamp | undefined;
648
715
  /**
649
716
  * Data the SDK wishes to record for itself, but server need not interpret, and does not
650
717
  * directly impact workflow state.
651
718
  *
652
719
  * @generated from field: temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 6;
653
720
  */
654
- sdkMetadata?: WorkflowTaskCompletedMetadata;
721
+ sdkMetadata?: WorkflowTaskCompletedMetadata | undefined;
655
722
  /**
656
723
  * Local usage data sent during workflow task completion and recorded here for posterity
657
724
  *
658
725
  * @generated from field: temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
659
726
  */
660
- meteringMetadata?: MeteringMetadata;
727
+ meteringMetadata?: MeteringMetadata | undefined;
661
728
  /**
662
729
  * The deployment that completed this task. May or may not be set for unversioned workers,
663
730
  * depending on whether a value is sent by the SDK. This value updates workflow execution's
@@ -667,7 +734,7 @@ export type WorkflowTaskCompletedEventAttributes = Message<"temporal.api.history
667
734
  * @generated from field: temporal.api.deployment.v1.Deployment deployment = 7 [deprecated = true];
668
735
  * @deprecated
669
736
  */
670
- deployment?: Deployment;
737
+ deployment?: Deployment | undefined;
671
738
  /**
672
739
  * Versioning behavior sent by the worker that completed this task for this particular workflow
673
740
  * execution. UNSPECIFIED means the task was completed by an unversioned worker. This value
@@ -679,7 +746,6 @@ export type WorkflowTaskCompletedEventAttributes = Message<"temporal.api.history
679
746
  /**
680
747
  * The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
681
748
  * is set. This value updates workflow execution's `versioning_info.version`.
682
- * Experimental. Worker Deployments are experimental and might significantly change in the future.
683
749
  * Deprecated. Replaced with `deployment_version`.
684
750
  *
685
751
  * @generated from field: string worker_deployment_version = 9 [deprecated = true];
@@ -689,7 +755,6 @@ export type WorkflowTaskCompletedEventAttributes = Message<"temporal.api.history
689
755
  /**
690
756
  * The name of Worker Deployment that completed this task. Must be set if `versioning_behavior`
691
757
  * is set. This value updates workflow execution's `worker_deployment_name`.
692
- * Experimental. Worker Deployments are experimental and might significantly change in the future.
693
758
  *
694
759
  * @generated from field: string worker_deployment_name = 10;
695
760
  */
@@ -697,11 +762,10 @@ export type WorkflowTaskCompletedEventAttributes = Message<"temporal.api.history
697
762
  /**
698
763
  * The Worker Deployment Version that completed this task. Must be set if `versioning_behavior`
699
764
  * is set. This value updates workflow execution's `versioning_info.deployment_version`.
700
- * Experimental. Worker Deployments are experimental and might significantly change in the future.
701
765
  *
702
766
  * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 11;
703
767
  */
704
- deploymentVersion?: WorkerDeploymentVersion;
768
+ deploymentVersion?: WorkerDeploymentVersion | undefined;
705
769
  };
706
770
  /**
707
771
  * Describes the message temporal.api.history.v1.WorkflowTaskCompletedEventAttributes.
@@ -759,7 +823,7 @@ export type WorkflowTaskFailedEventAttributes = Message<"temporal.api.history.v1
759
823
  *
760
824
  * @generated from field: temporal.api.failure.v1.Failure failure = 4;
761
825
  */
762
- failure?: Failure;
826
+ failure?: Failure | undefined;
763
827
  /**
764
828
  * If a worker explicitly failed this task, this field contains the worker's identity.
765
829
  * When the server generates the failure internally this field is set as 'history-service'.
@@ -803,7 +867,7 @@ export type WorkflowTaskFailedEventAttributes = Message<"temporal.api.history.v1
803
867
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp worker_version = 10 [deprecated = true];
804
868
  * @deprecated
805
869
  */
806
- workerVersion?: WorkerVersionStamp;
870
+ workerVersion?: WorkerVersionStamp | undefined;
807
871
  };
808
872
  /**
809
873
  * Describes the message temporal.api.history.v1.WorkflowTaskFailedEventAttributes.
@@ -823,19 +887,19 @@ export type ActivityTaskScheduledEventAttributes = Message<"temporal.api.history
823
887
  /**
824
888
  * @generated from field: temporal.api.common.v1.ActivityType activity_type = 2;
825
889
  */
826
- activityType?: ActivityType;
890
+ activityType?: ActivityType | undefined;
827
891
  /**
828
892
  * @generated from field: temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
829
893
  */
830
- taskQueue?: TaskQueue;
894
+ taskQueue?: TaskQueue | undefined;
831
895
  /**
832
896
  * @generated from field: temporal.api.common.v1.Header header = 5;
833
897
  */
834
- header?: Header;
898
+ header?: Header | undefined;
835
899
  /**
836
900
  * @generated from field: temporal.api.common.v1.Payloads input = 6;
837
901
  */
838
- input?: Payloads;
902
+ input?: Payloads | undefined;
839
903
  /**
840
904
  * Indicates how long the caller is willing to wait for an activity completion. Limits how long
841
905
  * retries will be attempted. Either this or `start_to_close_timeout` must be specified.
@@ -845,7 +909,7 @@ export type ActivityTaskScheduledEventAttributes = Message<"temporal.api.history
845
909
  *
846
910
  * @generated from field: google.protobuf.Duration schedule_to_close_timeout = 7;
847
911
  */
848
- scheduleToCloseTimeout?: Duration;
912
+ scheduleToCloseTimeout?: Duration | undefined;
849
913
  /**
850
914
  * Limits time an activity task can stay in a task queue before a worker picks it up. This
851
915
  * timeout is always non retryable, as all a retry would achieve is to put it back into the same
@@ -857,7 +921,7 @@ export type ActivityTaskScheduledEventAttributes = Message<"temporal.api.history
857
921
  *
858
922
  * @generated from field: google.protobuf.Duration schedule_to_start_timeout = 8;
859
923
  */
860
- scheduleToStartTimeout?: Duration;
924
+ scheduleToStartTimeout?: Duration | undefined;
861
925
  /**
862
926
  * Maximum time an activity is allowed to execute after being picked up by a worker. This
863
927
  * timeout is always retryable. Either this or `schedule_to_close_timeout` must be
@@ -868,13 +932,13 @@ export type ActivityTaskScheduledEventAttributes = Message<"temporal.api.history
868
932
  *
869
933
  * @generated from field: google.protobuf.Duration start_to_close_timeout = 9;
870
934
  */
871
- startToCloseTimeout?: Duration;
935
+ startToCloseTimeout?: Duration | undefined;
872
936
  /**
873
937
  * Maximum permitted time between successful worker heartbeats.
874
938
  *
875
939
  * @generated from field: google.protobuf.Duration heartbeat_timeout = 10;
876
940
  */
877
- heartbeatTimeout?: Duration;
941
+ heartbeatTimeout?: Duration | undefined;
878
942
  /**
879
943
  * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
880
944
  *
@@ -888,7 +952,7 @@ export type ActivityTaskScheduledEventAttributes = Message<"temporal.api.history
888
952
  *
889
953
  * @generated from field: temporal.api.common.v1.RetryPolicy retry_policy = 12;
890
954
  */
891
- retryPolicy?: RetryPolicy;
955
+ retryPolicy?: RetryPolicy | undefined;
892
956
  /**
893
957
  * If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise,
894
958
  * Assignment rules of the activity's Task Queue will be used to determine the Build ID.
@@ -904,7 +968,7 @@ export type ActivityTaskScheduledEventAttributes = Message<"temporal.api.history
904
968
  *
905
969
  * @generated from field: temporal.api.common.v1.Priority priority = 14;
906
970
  */
907
- priority?: Priority;
971
+ priority?: Priority | undefined;
908
972
  };
909
973
  /**
910
974
  * Describes the message temporal.api.history.v1.ActivityTaskScheduledEventAttributes.
@@ -950,7 +1014,7 @@ export type ActivityTaskStartedEventAttributes = Message<"temporal.api.history.v
950
1014
  *
951
1015
  * @generated from field: temporal.api.failure.v1.Failure last_failure = 5;
952
1016
  */
953
- lastFailure?: Failure;
1017
+ lastFailure?: Failure | undefined;
954
1018
  /**
955
1019
  * Version info of the worker to whom this task was dispatched.
956
1020
  * Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
@@ -958,7 +1022,7 @@ export type ActivityTaskStartedEventAttributes = Message<"temporal.api.history.v
958
1022
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
959
1023
  * @deprecated
960
1024
  */
961
- workerVersion?: WorkerVersionStamp;
1025
+ workerVersion?: WorkerVersionStamp | undefined;
962
1026
  /**
963
1027
  * Used by server internally to properly reapply build ID redirects to an execution
964
1028
  * when rebuilding it from events.
@@ -983,7 +1047,7 @@ export type ActivityTaskCompletedEventAttributes = Message<"temporal.api.history
983
1047
  *
984
1048
  * @generated from field: temporal.api.common.v1.Payloads result = 1;
985
1049
  */
986
- result?: Payloads;
1050
+ result?: Payloads | undefined;
987
1051
  /**
988
1052
  * The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to
989
1053
  *
@@ -1009,7 +1073,7 @@ export type ActivityTaskCompletedEventAttributes = Message<"temporal.api.history
1009
1073
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp worker_version = 5 [deprecated = true];
1010
1074
  * @deprecated
1011
1075
  */
1012
- workerVersion?: WorkerVersionStamp;
1076
+ workerVersion?: WorkerVersionStamp | undefined;
1013
1077
  };
1014
1078
  /**
1015
1079
  * Describes the message temporal.api.history.v1.ActivityTaskCompletedEventAttributes.
@@ -1025,7 +1089,7 @@ export type ActivityTaskFailedEventAttributes = Message<"temporal.api.history.v1
1025
1089
  *
1026
1090
  * @generated from field: temporal.api.failure.v1.Failure failure = 1;
1027
1091
  */
1028
- failure?: Failure;
1092
+ failure?: Failure | undefined;
1029
1093
  /**
1030
1094
  * The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to
1031
1095
  *
@@ -1055,7 +1119,7 @@ export type ActivityTaskFailedEventAttributes = Message<"temporal.api.history.v1
1055
1119
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
1056
1120
  * @deprecated
1057
1121
  */
1058
- workerVersion?: WorkerVersionStamp;
1122
+ workerVersion?: WorkerVersionStamp | undefined;
1059
1123
  };
1060
1124
  /**
1061
1125
  * Describes the message temporal.api.history.v1.ActivityTaskFailedEventAttributes.
@@ -1072,7 +1136,7 @@ export type ActivityTaskTimedOutEventAttributes = Message<"temporal.api.history.
1072
1136
  *
1073
1137
  * @generated from field: temporal.api.failure.v1.Failure failure = 1;
1074
1138
  */
1075
- failure?: Failure;
1139
+ failure?: Failure | undefined;
1076
1140
  /**
1077
1141
  * The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to
1078
1142
  *
@@ -1126,7 +1190,7 @@ export type ActivityTaskCanceledEventAttributes = Message<"temporal.api.history.
1126
1190
  *
1127
1191
  * @generated from field: temporal.api.common.v1.Payloads details = 1;
1128
1192
  */
1129
- details?: Payloads;
1193
+ details?: Payloads | undefined;
1130
1194
  /**
1131
1195
  * id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same
1132
1196
  * activity
@@ -1159,7 +1223,7 @@ export type ActivityTaskCanceledEventAttributes = Message<"temporal.api.history.
1159
1223
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp worker_version = 6 [deprecated = true];
1160
1224
  * @deprecated
1161
1225
  */
1162
- workerVersion?: WorkerVersionStamp;
1226
+ workerVersion?: WorkerVersionStamp | undefined;
1163
1227
  };
1164
1228
  /**
1165
1229
  * Describes the message temporal.api.history.v1.ActivityTaskCanceledEventAttributes.
@@ -1184,7 +1248,7 @@ export type TimerStartedEventAttributes = Message<"temporal.api.history.v1.Timer
1184
1248
  *
1185
1249
  * @generated from field: google.protobuf.Duration start_to_fire_timeout = 2;
1186
1250
  */
1187
- startToFireTimeout?: Duration;
1251
+ startToFireTimeout?: Duration | undefined;
1188
1252
  /**
1189
1253
  * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
1190
1254
  *
@@ -1273,7 +1337,7 @@ export type WorkflowExecutionCancelRequestedEventAttributes = Message<"temporal.
1273
1337
  /**
1274
1338
  * @generated from field: temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;
1275
1339
  */
1276
- externalWorkflowExecution?: WorkflowExecution;
1340
+ externalWorkflowExecution?: WorkflowExecution | undefined;
1277
1341
  /**
1278
1342
  * id of the worker or client who requested this cancel
1279
1343
  *
@@ -1299,7 +1363,7 @@ export type WorkflowExecutionCanceledEventAttributes = Message<"temporal.api.his
1299
1363
  /**
1300
1364
  * @generated from field: temporal.api.common.v1.Payloads details = 2;
1301
1365
  */
1302
- details?: Payloads;
1366
+ details?: Payloads | undefined;
1303
1367
  };
1304
1368
  /**
1305
1369
  * Describes the message temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes.
@@ -1333,13 +1397,13 @@ export type MarkerRecordedEventAttributes = Message<"temporal.api.history.v1.Mar
1333
1397
  /**
1334
1398
  * @generated from field: temporal.api.common.v1.Header header = 4;
1335
1399
  */
1336
- header?: Header;
1400
+ header?: Header | undefined;
1337
1401
  /**
1338
1402
  * Some uses of markers, like a local activity, could "fail". If they did that is recorded here.
1339
1403
  *
1340
1404
  * @generated from field: temporal.api.failure.v1.Failure failure = 5;
1341
1405
  */
1342
- failure?: Failure;
1406
+ failure?: Failure | undefined;
1343
1407
  };
1344
1408
  /**
1345
1409
  * Describes the message temporal.api.history.v1.MarkerRecordedEventAttributes.
@@ -1361,7 +1425,7 @@ export type WorkflowExecutionSignaledEventAttributes = Message<"temporal.api.his
1361
1425
  *
1362
1426
  * @generated from field: temporal.api.common.v1.Payloads input = 2;
1363
1427
  */
1364
- input?: Payloads;
1428
+ input?: Payloads | undefined;
1365
1429
  /**
1366
1430
  * id of the worker/client who sent this signal
1367
1431
  *
@@ -1374,7 +1438,7 @@ export type WorkflowExecutionSignaledEventAttributes = Message<"temporal.api.his
1374
1438
  *
1375
1439
  * @generated from field: temporal.api.common.v1.Header header = 4;
1376
1440
  */
1377
- header?: Header;
1441
+ header?: Header | undefined;
1378
1442
  /**
1379
1443
  * Deprecated. This field is never respected and should always be set to false.
1380
1444
  *
@@ -1387,7 +1451,14 @@ export type WorkflowExecutionSignaledEventAttributes = Message<"temporal.api.his
1387
1451
  *
1388
1452
  * @generated from field: temporal.api.common.v1.WorkflowExecution external_workflow_execution = 6;
1389
1453
  */
1390
- externalWorkflowExecution?: WorkflowExecution;
1454
+ externalWorkflowExecution?: WorkflowExecution | undefined;
1455
+ /**
1456
+ * The request ID of the Signal request, used by the server to attach this to
1457
+ * the correct Event ID when generating link.
1458
+ *
1459
+ * @generated from field: string request_id = 7;
1460
+ */
1461
+ requestId: string;
1391
1462
  };
1392
1463
  /**
1393
1464
  * Describes the message temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes.
@@ -1407,7 +1478,7 @@ export type WorkflowExecutionTerminatedEventAttributes = Message<"temporal.api.h
1407
1478
  /**
1408
1479
  * @generated from field: temporal.api.common.v1.Payloads details = 2;
1409
1480
  */
1410
- details?: Payloads;
1481
+ details?: Payloads | undefined;
1411
1482
  /**
1412
1483
  * id of the client who requested termination
1413
1484
  *
@@ -1444,7 +1515,7 @@ export type RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = Mes
1444
1515
  /**
1445
1516
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
1446
1517
  */
1447
- workflowExecution?: WorkflowExecution;
1518
+ workflowExecution?: WorkflowExecution | undefined;
1448
1519
  /**
1449
1520
  * Deprecated.
1450
1521
  *
@@ -1499,7 +1570,7 @@ export type RequestCancelExternalWorkflowExecutionFailedEventAttributes = Messag
1499
1570
  /**
1500
1571
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
1501
1572
  */
1502
- workflowExecution?: WorkflowExecution;
1573
+ workflowExecution?: WorkflowExecution | undefined;
1503
1574
  /**
1504
1575
  * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure
1505
1576
  * corresponds to
@@ -1545,7 +1616,7 @@ export type ExternalWorkflowExecutionCancelRequestedEventAttributes = Message<"t
1545
1616
  /**
1546
1617
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
1547
1618
  */
1548
- workflowExecution?: WorkflowExecution;
1619
+ workflowExecution?: WorkflowExecution | undefined;
1549
1620
  };
1550
1621
  /**
1551
1622
  * Describes the message temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes.
@@ -1576,7 +1647,7 @@ export type SignalExternalWorkflowExecutionInitiatedEventAttributes = Message<"t
1576
1647
  /**
1577
1648
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
1578
1649
  */
1579
- workflowExecution?: WorkflowExecution;
1650
+ workflowExecution?: WorkflowExecution | undefined;
1580
1651
  /**
1581
1652
  * name/type of the signal to fire in the external workflow
1582
1653
  *
@@ -1588,7 +1659,7 @@ export type SignalExternalWorkflowExecutionInitiatedEventAttributes = Message<"t
1588
1659
  *
1589
1660
  * @generated from field: temporal.api.common.v1.Payloads input = 5;
1590
1661
  */
1591
- input?: Payloads;
1662
+ input?: Payloads | undefined;
1592
1663
  /**
1593
1664
  * Deprecated.
1594
1665
  *
@@ -1606,7 +1677,7 @@ export type SignalExternalWorkflowExecutionInitiatedEventAttributes = Message<"t
1606
1677
  /**
1607
1678
  * @generated from field: temporal.api.common.v1.Header header = 8;
1608
1679
  */
1609
- header?: Header;
1680
+ header?: Header | undefined;
1610
1681
  };
1611
1682
  /**
1612
1683
  * Describes the message temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes.
@@ -1641,7 +1712,7 @@ export type SignalExternalWorkflowExecutionFailedEventAttributes = Message<"temp
1641
1712
  /**
1642
1713
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
1643
1714
  */
1644
- workflowExecution?: WorkflowExecution;
1715
+ workflowExecution?: WorkflowExecution | undefined;
1645
1716
  /**
1646
1717
  * @generated from field: int64 initiated_event_id = 5;
1647
1718
  */
@@ -1683,7 +1754,7 @@ export type ExternalWorkflowExecutionSignaledEventAttributes = Message<"temporal
1683
1754
  /**
1684
1755
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
1685
1756
  */
1686
- workflowExecution?: WorkflowExecution;
1757
+ workflowExecution?: WorkflowExecution | undefined;
1687
1758
  /**
1688
1759
  * Deprecated.
1689
1760
  *
@@ -1710,7 +1781,7 @@ export type UpsertWorkflowSearchAttributesEventAttributes = Message<"temporal.ap
1710
1781
  /**
1711
1782
  * @generated from field: temporal.api.common.v1.SearchAttributes search_attributes = 2;
1712
1783
  */
1713
- searchAttributes?: SearchAttributes;
1784
+ searchAttributes?: SearchAttributes | undefined;
1714
1785
  };
1715
1786
  /**
1716
1787
  * Describes the message temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes.
@@ -1734,7 +1805,7 @@ export type WorkflowPropertiesModifiedEventAttributes = Message<"temporal.api.hi
1734
1805
  *
1735
1806
  * @generated from field: temporal.api.common.v1.Memo upserted_memo = 2;
1736
1807
  */
1737
- upsertedMemo?: Memo;
1808
+ upsertedMemo?: Memo | undefined;
1738
1809
  };
1739
1810
  /**
1740
1811
  * Describes the message temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes.
@@ -1763,33 +1834,33 @@ export type StartChildWorkflowExecutionInitiatedEventAttributes = Message<"tempo
1763
1834
  /**
1764
1835
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 3;
1765
1836
  */
1766
- workflowType?: WorkflowType;
1837
+ workflowType?: WorkflowType | undefined;
1767
1838
  /**
1768
1839
  * @generated from field: temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
1769
1840
  */
1770
- taskQueue?: TaskQueue;
1841
+ taskQueue?: TaskQueue | undefined;
1771
1842
  /**
1772
1843
  * @generated from field: temporal.api.common.v1.Payloads input = 5;
1773
1844
  */
1774
- input?: Payloads;
1845
+ input?: Payloads | undefined;
1775
1846
  /**
1776
1847
  * Total workflow execution timeout including retries and continue as new.
1777
1848
  *
1778
1849
  * @generated from field: google.protobuf.Duration workflow_execution_timeout = 6;
1779
1850
  */
1780
- workflowExecutionTimeout?: Duration;
1851
+ workflowExecutionTimeout?: Duration | undefined;
1781
1852
  /**
1782
1853
  * Timeout of a single workflow run.
1783
1854
  *
1784
1855
  * @generated from field: google.protobuf.Duration workflow_run_timeout = 7;
1785
1856
  */
1786
- workflowRunTimeout?: Duration;
1857
+ workflowRunTimeout?: Duration | undefined;
1787
1858
  /**
1788
1859
  * Timeout of a single workflow task.
1789
1860
  *
1790
1861
  * @generated from field: google.protobuf.Duration workflow_task_timeout = 8;
1791
1862
  */
1792
- workflowTaskTimeout?: Duration;
1863
+ workflowTaskTimeout?: Duration | undefined;
1793
1864
  /**
1794
1865
  * Default: PARENT_CLOSE_POLICY_TERMINATE.
1795
1866
  *
@@ -1818,7 +1889,7 @@ export type StartChildWorkflowExecutionInitiatedEventAttributes = Message<"tempo
1818
1889
  /**
1819
1890
  * @generated from field: temporal.api.common.v1.RetryPolicy retry_policy = 13;
1820
1891
  */
1821
- retryPolicy?: RetryPolicy;
1892
+ retryPolicy?: RetryPolicy | undefined;
1822
1893
  /**
1823
1894
  * If this child runs on a cron schedule, it will appear here
1824
1895
  *
@@ -1828,15 +1899,15 @@ export type StartChildWorkflowExecutionInitiatedEventAttributes = Message<"tempo
1828
1899
  /**
1829
1900
  * @generated from field: temporal.api.common.v1.Header header = 15;
1830
1901
  */
1831
- header?: Header;
1902
+ header?: Header | undefined;
1832
1903
  /**
1833
1904
  * @generated from field: temporal.api.common.v1.Memo memo = 16;
1834
1905
  */
1835
- memo?: Memo;
1906
+ memo?: Memo | undefined;
1836
1907
  /**
1837
1908
  * @generated from field: temporal.api.common.v1.SearchAttributes search_attributes = 17;
1838
1909
  */
1839
- searchAttributes?: SearchAttributes;
1910
+ searchAttributes?: SearchAttributes | undefined;
1840
1911
  /**
1841
1912
  * If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment
1842
1913
  * rules of the child's Task Queue will be used to independently assign a Build ID to it.
@@ -1851,7 +1922,19 @@ export type StartChildWorkflowExecutionInitiatedEventAttributes = Message<"tempo
1851
1922
  *
1852
1923
  * @generated from field: temporal.api.common.v1.Priority priority = 20;
1853
1924
  */
1854
- priority?: Priority;
1925
+ priority?: Priority | undefined;
1926
+ /**
1927
+ * The propagated time-skipping configuration for the child workflow.
1928
+ *
1929
+ * @generated from field: temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 21;
1930
+ */
1931
+ timeSkippingConfig?: TimeSkippingConfig | undefined;
1932
+ /**
1933
+ * Propagate the duration skipped to the child workflow.
1934
+ *
1935
+ * @generated from field: google.protobuf.Duration initial_skipped_duration = 30;
1936
+ */
1937
+ initialSkippedDuration?: Duration | undefined;
1855
1938
  };
1856
1939
  /**
1857
1940
  * Describes the message temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes.
@@ -1880,7 +1963,7 @@ export type StartChildWorkflowExecutionFailedEventAttributes = Message<"temporal
1880
1963
  /**
1881
1964
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 3;
1882
1965
  */
1883
- workflowType?: WorkflowType;
1966
+ workflowType?: WorkflowType | undefined;
1884
1967
  /**
1885
1968
  * @generated from field: temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause cause = 4;
1886
1969
  */
@@ -1934,15 +2017,15 @@ export type ChildWorkflowExecutionStartedEventAttributes = Message<"temporal.api
1934
2017
  /**
1935
2018
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
1936
2019
  */
1937
- workflowExecution?: WorkflowExecution;
2020
+ workflowExecution?: WorkflowExecution | undefined;
1938
2021
  /**
1939
2022
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 4;
1940
2023
  */
1941
- workflowType?: WorkflowType;
2024
+ workflowType?: WorkflowType | undefined;
1942
2025
  /**
1943
2026
  * @generated from field: temporal.api.common.v1.Header header = 5;
1944
2027
  */
1945
- header?: Header;
2028
+ header?: Header | undefined;
1946
2029
  };
1947
2030
  /**
1948
2031
  * Describes the message temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes.
@@ -1956,7 +2039,7 @@ export type ChildWorkflowExecutionCompletedEventAttributes = Message<"temporal.a
1956
2039
  /**
1957
2040
  * @generated from field: temporal.api.common.v1.Payloads result = 1;
1958
2041
  */
1959
- result?: Payloads;
2042
+ result?: Payloads | undefined;
1960
2043
  /**
1961
2044
  * Namespace of the child workflow.
1962
2045
  * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
@@ -1971,11 +2054,11 @@ export type ChildWorkflowExecutionCompletedEventAttributes = Message<"temporal.a
1971
2054
  /**
1972
2055
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
1973
2056
  */
1974
- workflowExecution?: WorkflowExecution;
2057
+ workflowExecution?: WorkflowExecution | undefined;
1975
2058
  /**
1976
2059
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 4;
1977
2060
  */
1978
- workflowType?: WorkflowType;
2061
+ workflowType?: WorkflowType | undefined;
1979
2062
  /**
1980
2063
  * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
1981
2064
  *
@@ -2001,7 +2084,7 @@ export type ChildWorkflowExecutionFailedEventAttributes = Message<"temporal.api.
2001
2084
  /**
2002
2085
  * @generated from field: temporal.api.failure.v1.Failure failure = 1;
2003
2086
  */
2004
- failure?: Failure;
2087
+ failure?: Failure | undefined;
2005
2088
  /**
2006
2089
  * Namespace of the child workflow.
2007
2090
  * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
@@ -2016,11 +2099,11 @@ export type ChildWorkflowExecutionFailedEventAttributes = Message<"temporal.api.
2016
2099
  /**
2017
2100
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
2018
2101
  */
2019
- workflowExecution?: WorkflowExecution;
2102
+ workflowExecution?: WorkflowExecution | undefined;
2020
2103
  /**
2021
2104
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 4;
2022
2105
  */
2023
- workflowType?: WorkflowType;
2106
+ workflowType?: WorkflowType | undefined;
2024
2107
  /**
2025
2108
  * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
2026
2109
  *
@@ -2050,7 +2133,7 @@ export type ChildWorkflowExecutionCanceledEventAttributes = Message<"temporal.ap
2050
2133
  /**
2051
2134
  * @generated from field: temporal.api.common.v1.Payloads details = 1;
2052
2135
  */
2053
- details?: Payloads;
2136
+ details?: Payloads | undefined;
2054
2137
  /**
2055
2138
  * Namespace of the child workflow.
2056
2139
  * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
@@ -2065,11 +2148,11 @@ export type ChildWorkflowExecutionCanceledEventAttributes = Message<"temporal.ap
2065
2148
  /**
2066
2149
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
2067
2150
  */
2068
- workflowExecution?: WorkflowExecution;
2151
+ workflowExecution?: WorkflowExecution | undefined;
2069
2152
  /**
2070
2153
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 4;
2071
2154
  */
2072
- workflowType?: WorkflowType;
2155
+ workflowType?: WorkflowType | undefined;
2073
2156
  /**
2074
2157
  * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
2075
2158
  *
@@ -2106,11 +2189,11 @@ export type ChildWorkflowExecutionTimedOutEventAttributes = Message<"temporal.ap
2106
2189
  /**
2107
2190
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
2108
2191
  */
2109
- workflowExecution?: WorkflowExecution;
2192
+ workflowExecution?: WorkflowExecution | undefined;
2110
2193
  /**
2111
2194
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 3;
2112
2195
  */
2113
- workflowType?: WorkflowType;
2196
+ workflowType?: WorkflowType | undefined;
2114
2197
  /**
2115
2198
  * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
2116
2199
  *
@@ -2151,11 +2234,11 @@ export type ChildWorkflowExecutionTerminatedEventAttributes = Message<"temporal.
2151
2234
  /**
2152
2235
  * @generated from field: temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
2153
2236
  */
2154
- workflowExecution?: WorkflowExecution;
2237
+ workflowExecution?: WorkflowExecution | undefined;
2155
2238
  /**
2156
2239
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 3;
2157
2240
  */
2158
- workflowType?: WorkflowType;
2241
+ workflowType?: WorkflowType | undefined;
2159
2242
  /**
2160
2243
  * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
2161
2244
  *
@@ -2184,7 +2267,7 @@ export type WorkflowExecutionOptionsUpdatedEventAttributes = Message<"temporal.a
2184
2267
  *
2185
2268
  * @generated from field: temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
2186
2269
  */
2187
- versioningOverride?: VersioningOverride;
2270
+ versioningOverride?: VersioningOverride | undefined;
2188
2271
  /**
2189
2272
  * Versioning override removed in this event.
2190
2273
  *
@@ -2216,7 +2299,13 @@ export type WorkflowExecutionOptionsUpdatedEventAttributes = Message<"temporal.a
2216
2299
  *
2217
2300
  * @generated from field: temporal.api.common.v1.Priority priority = 6;
2218
2301
  */
2219
- priority?: Priority;
2302
+ priority?: Priority | undefined;
2303
+ /**
2304
+ * If set, the time-skipping configuration was changed. Contains the full updated configuration.
2305
+ *
2306
+ * @generated from field: temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 7;
2307
+ */
2308
+ timeSkippingConfig?: TimeSkippingConfig | undefined;
2220
2309
  };
2221
2310
  /**
2222
2311
  * Describes the message temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes.
@@ -2240,25 +2329,25 @@ export type WorkflowPropertiesModifiedExternallyEventAttributes = Message<"tempo
2240
2329
  *
2241
2330
  * @generated from field: google.protobuf.Duration new_workflow_task_timeout = 2;
2242
2331
  */
2243
- newWorkflowTaskTimeout?: Duration;
2332
+ newWorkflowTaskTimeout?: Duration | undefined;
2244
2333
  /**
2245
2334
  * Not used.
2246
2335
  *
2247
2336
  * @generated from field: google.protobuf.Duration new_workflow_run_timeout = 3;
2248
2337
  */
2249
- newWorkflowRunTimeout?: Duration;
2338
+ newWorkflowRunTimeout?: Duration | undefined;
2250
2339
  /**
2251
2340
  * Not used.
2252
2341
  *
2253
2342
  * @generated from field: google.protobuf.Duration new_workflow_execution_timeout = 4;
2254
2343
  */
2255
- newWorkflowExecutionTimeout?: Duration;
2344
+ newWorkflowExecutionTimeout?: Duration | undefined;
2256
2345
  /**
2257
2346
  * Not used.
2258
2347
  *
2259
2348
  * @generated from field: temporal.api.common.v1.Memo upserted_memo = 5;
2260
2349
  */
2261
- upsertedMemo?: Memo;
2350
+ upsertedMemo?: Memo | undefined;
2262
2351
  };
2263
2352
  /**
2264
2353
  * Describes the message temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes.
@@ -2281,7 +2370,7 @@ export type ActivityPropertiesModifiedExternallyEventAttributes = Message<"tempo
2281
2370
  *
2282
2371
  * @generated from field: temporal.api.common.v1.RetryPolicy new_retry_policy = 2;
2283
2372
  */
2284
- newRetryPolicy?: RetryPolicy;
2373
+ newRetryPolicy?: RetryPolicy | undefined;
2285
2374
  };
2286
2375
  /**
2287
2376
  * Describes the message temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes.
@@ -2318,7 +2407,7 @@ export type WorkflowExecutionUpdateAcceptedEventAttributes = Message<"temporal.a
2318
2407
  *
2319
2408
  * @generated from field: temporal.api.update.v1.Request accepted_request = 4;
2320
2409
  */
2321
- acceptedRequest?: Request;
2410
+ acceptedRequest?: Request | undefined;
2322
2411
  };
2323
2412
  /**
2324
2413
  * Describes the message temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes.
@@ -2334,7 +2423,7 @@ export type WorkflowExecutionUpdateCompletedEventAttributes = Message<"temporal.
2334
2423
  *
2335
2424
  * @generated from field: temporal.api.update.v1.Meta meta = 1;
2336
2425
  */
2337
- meta?: Meta;
2426
+ meta?: Meta | undefined;
2338
2427
  /**
2339
2428
  * The event ID indicating the acceptance of this update.
2340
2429
  *
@@ -2346,7 +2435,7 @@ export type WorkflowExecutionUpdateCompletedEventAttributes = Message<"temporal.
2346
2435
  *
2347
2436
  * @generated from field: temporal.api.update.v1.Outcome outcome = 2;
2348
2437
  */
2349
- outcome?: Outcome;
2438
+ outcome?: Outcome | undefined;
2350
2439
  };
2351
2440
  /**
2352
2441
  * Describes the message temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes.
@@ -2383,13 +2472,13 @@ export type WorkflowExecutionUpdateRejectedEventAttributes = Message<"temporal.a
2383
2472
  *
2384
2473
  * @generated from field: temporal.api.update.v1.Request rejected_request = 4;
2385
2474
  */
2386
- rejectedRequest?: Request;
2475
+ rejectedRequest?: Request | undefined;
2387
2476
  /**
2388
2477
  * The cause of rejection.
2389
2478
  *
2390
2479
  * @generated from field: temporal.api.failure.v1.Failure failure = 5;
2391
2480
  */
2392
- failure?: Failure;
2481
+ failure?: Failure | undefined;
2393
2482
  };
2394
2483
  /**
2395
2484
  * Describes the message temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes.
@@ -2405,7 +2494,7 @@ export type WorkflowExecutionUpdateAdmittedEventAttributes = Message<"temporal.a
2405
2494
  *
2406
2495
  * @generated from field: temporal.api.update.v1.Request request = 1;
2407
2496
  */
2408
- request?: Request;
2497
+ request?: Request | undefined;
2409
2498
  /**
2410
2499
  * An explanation of why this event was written to history.
2411
2500
  *
@@ -2478,6 +2567,40 @@ export type WorkflowExecutionUnpausedEventAttributes = Message<"temporal.api.his
2478
2567
  * Use `create(WorkflowExecutionUnpausedEventAttributesSchema)` to create a new message.
2479
2568
  */
2480
2569
  export declare const WorkflowExecutionUnpausedEventAttributesSchema: GenMessage<WorkflowExecutionUnpausedEventAttributes>;
2570
+ /**
2571
+ * Attributes for an event indicating that time skipping state changed for a workflow execution,
2572
+ * either time was advanced or time skipping was disabled automatically due to a bound being reached.
2573
+ * The worker_may_ignore field in HistoryEvent should always be set true for this event.
2574
+ *
2575
+ * @generated from message temporal.api.history.v1.WorkflowExecutionTimeSkippingTransitionedEventAttributes
2576
+ */
2577
+ export type WorkflowExecutionTimeSkippingTransitionedEventAttributes = Message<"temporal.api.history.v1.WorkflowExecutionTimeSkippingTransitionedEventAttributes"> & {
2578
+ /**
2579
+ * The virtual time after time skipping was applied.
2580
+ *
2581
+ * @generated from field: google.protobuf.Timestamp target_time = 1;
2582
+ */
2583
+ targetTime?: Timestamp | undefined;
2584
+ /**
2585
+ * when true, time skipping was disabled automatically due to a bound being reached.
2586
+ * (-- api-linter: core::0140::prepositions=disabled
2587
+ * aip.dev/not-precedent: "after" is used to indicate temporal ordering. --)
2588
+ *
2589
+ * @generated from field: bool disabled_after_bound = 2;
2590
+ */
2591
+ disabledAfterBound: boolean;
2592
+ /**
2593
+ * The wall-clock time when the time-skipping state changed event was generated.
2594
+ *
2595
+ * @generated from field: google.protobuf.Timestamp wall_clock_time = 3;
2596
+ */
2597
+ wallClockTime?: Timestamp | undefined;
2598
+ };
2599
+ /**
2600
+ * Describes the message temporal.api.history.v1.WorkflowExecutionTimeSkippingTransitionedEventAttributes.
2601
+ * Use `create(WorkflowExecutionTimeSkippingTransitionedEventAttributesSchema)` to create a new message.
2602
+ */
2603
+ export declare const WorkflowExecutionTimeSkippingTransitionedEventAttributesSchema: GenMessage<WorkflowExecutionTimeSkippingTransitionedEventAttributes>;
2481
2604
  /**
2482
2605
  * Event marking that an operation was scheduled by a workflow via the ScheduleNexusOperation command.
2483
2606
  *
@@ -2509,17 +2632,19 @@ export type NexusOperationScheduledEventAttributes = Message<"temporal.api.histo
2509
2632
  *
2510
2633
  * @generated from field: temporal.api.common.v1.Payload input = 4;
2511
2634
  */
2512
- input?: Payload;
2635
+ input?: Payload | undefined;
2513
2636
  /**
2514
2637
  * Schedule-to-close timeout for this operation.
2515
2638
  * Indicates how long the caller is willing to wait for operation completion.
2516
2639
  * Calls are retried internally by the server.
2517
2640
  * (-- api-linter: core::0140::prepositions=disabled
2518
2641
  * aip.dev/not-precedent: "to" is used to indicate interval. --)
2642
+ * (-- api-linter: core::0142::time-field-names=disabled
2643
+ * aip.dev/not-precedent: "timeout" is an acceptable suffix for duration fields in this API. --)
2519
2644
  *
2520
2645
  * @generated from field: google.protobuf.Duration schedule_to_close_timeout = 5;
2521
2646
  */
2522
- scheduleToCloseTimeout?: Duration;
2647
+ scheduleToCloseTimeout?: Duration | undefined;
2523
2648
  /**
2524
2649
  * Header to attach to the Nexus request. Note these headers are not the same as Temporal headers on internal
2525
2650
  * activities and child workflows, these are transmitted to Nexus operations that may be external and are not
@@ -2559,7 +2684,7 @@ export type NexusOperationScheduledEventAttributes = Message<"temporal.api.histo
2559
2684
  *
2560
2685
  * @generated from field: google.protobuf.Duration schedule_to_start_timeout = 10;
2561
2686
  */
2562
- scheduleToStartTimeout?: Duration;
2687
+ scheduleToStartTimeout?: Duration | undefined;
2563
2688
  /**
2564
2689
  * Start-to-close timeout for this operation.
2565
2690
  * See ScheduleNexusOperationCommandAttributes.start_to_close_timeout for details.
@@ -2568,7 +2693,7 @@ export type NexusOperationScheduledEventAttributes = Message<"temporal.api.histo
2568
2693
  *
2569
2694
  * @generated from field: google.protobuf.Duration start_to_close_timeout = 11;
2570
2695
  */
2571
- startToCloseTimeout?: Duration;
2696
+ startToCloseTimeout?: Duration | undefined;
2572
2697
  };
2573
2698
  /**
2574
2699
  * Describes the message temporal.api.history.v1.NexusOperationScheduledEventAttributes.
@@ -2637,7 +2762,7 @@ export type NexusOperationCompletedEventAttributes = Message<"temporal.api.histo
2637
2762
  *
2638
2763
  * @generated from field: temporal.api.common.v1.Payload result = 2;
2639
2764
  */
2640
- result?: Payload;
2765
+ result?: Payload | undefined;
2641
2766
  /**
2642
2767
  * The request ID allocated at schedule time.
2643
2768
  *
@@ -2667,7 +2792,7 @@ export type NexusOperationFailedEventAttributes = Message<"temporal.api.history.
2667
2792
  *
2668
2793
  * @generated from field: temporal.api.failure.v1.Failure failure = 2;
2669
2794
  */
2670
- failure?: Failure;
2795
+ failure?: Failure | undefined;
2671
2796
  /**
2672
2797
  * The request ID allocated at schedule time.
2673
2798
  *
@@ -2697,7 +2822,7 @@ export type NexusOperationTimedOutEventAttributes = Message<"temporal.api.histor
2697
2822
  *
2698
2823
  * @generated from field: temporal.api.failure.v1.Failure failure = 2;
2699
2824
  */
2700
- failure?: Failure;
2825
+ failure?: Failure | undefined;
2701
2826
  /**
2702
2827
  * The request ID allocated at schedule time.
2703
2828
  *
@@ -2727,7 +2852,7 @@ export type NexusOperationCanceledEventAttributes = Message<"temporal.api.histor
2727
2852
  *
2728
2853
  * @generated from field: temporal.api.failure.v1.Failure failure = 2;
2729
2854
  */
2730
- failure?: Failure;
2855
+ failure?: Failure | undefined;
2731
2856
  /**
2732
2857
  * The request ID allocated at schedule time.
2733
2858
  *
@@ -2814,7 +2939,7 @@ export type NexusOperationCancelRequestFailedEventAttributes = Message<"temporal
2814
2939
  *
2815
2940
  * @generated from field: temporal.api.failure.v1.Failure failure = 3;
2816
2941
  */
2817
- failure?: Failure;
2942
+ failure?: Failure | undefined;
2818
2943
  /**
2819
2944
  * The id of the `NEXUS_OPERATION_SCHEDULED` event this cancel request corresponds to.
2820
2945
  *
@@ -2843,7 +2968,7 @@ export type HistoryEvent = Message<"temporal.api.history.v1.HistoryEvent"> & {
2843
2968
  /**
2844
2969
  * @generated from field: google.protobuf.Timestamp event_time = 2;
2845
2970
  */
2846
- eventTime?: Timestamp;
2971
+ eventTime?: Timestamp | undefined;
2847
2972
  /**
2848
2973
  * @generated from field: temporal.api.enums.v1.EventType event_type = 3;
2849
2974
  */
@@ -2883,13 +3008,19 @@ export type HistoryEvent = Message<"temporal.api.history.v1.HistoryEvent"> & {
2883
3008
  *
2884
3009
  * @generated from field: temporal.api.sdk.v1.UserMetadata user_metadata = 301;
2885
3010
  */
2886
- userMetadata?: UserMetadata;
3011
+ userMetadata?: UserMetadata | undefined;
2887
3012
  /**
2888
- * Links associated with the event.
3013
+ * Links to related entities, such as the entity that started this event's workflow.
2889
3014
  *
2890
3015
  * @generated from field: repeated temporal.api.common.v1.Link links = 302;
2891
3016
  */
2892
3017
  links: Link[];
3018
+ /**
3019
+ * Server-computed authenticated caller identity associated with this event.
3020
+ *
3021
+ * @generated from field: temporal.api.common.v1.Principal principal = 303;
3022
+ */
3023
+ principal?: Principal | undefined;
2893
3024
  /**
2894
3025
  * The event details. The type must match that in `event_type`.
2895
3026
  *
@@ -3249,6 +3380,12 @@ export type HistoryEvent = Message<"temporal.api.history.v1.HistoryEvent"> & {
3249
3380
  */
3250
3381
  value: WorkflowExecutionUnpausedEventAttributes;
3251
3382
  case: "workflowExecutionUnpausedEventAttributes";
3383
+ } | {
3384
+ /**
3385
+ * @generated from field: temporal.api.history.v1.WorkflowExecutionTimeSkippingTransitionedEventAttributes workflow_execution_time_skipping_transitioned_event_attributes = 65;
3386
+ */
3387
+ value: WorkflowExecutionTimeSkippingTransitionedEventAttributes;
3388
+ case: "workflowExecutionTimeSkippingTransitionedEventAttributes";
3252
3389
  } | {
3253
3390
  case: undefined;
3254
3391
  value?: undefined;