@temporalio/proto 1.12.1 → 1.12.2

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.
package/protos/root.d.ts CHANGED
@@ -4574,11 +4574,11 @@ export namespace coresdk {
4574
4574
  startedSync?: (boolean|null);
4575
4575
 
4576
4576
  /**
4577
- * The operation was cancelled before it was ever sent to server (same WFT).
4578
- * Note that core will still send a `ResolveNexusOperation` job in the same activation, so
4579
- * there does not need to be an exceptional case for this in lang.
4577
+ * The operation either failed to start, was cancelled before it started, timed out, or
4578
+ * failed synchronously. Details are included inside the message. In this case, the
4579
+ * subsequent ResolveNexusOperation will never be sent.
4580
4580
  */
4581
- cancelledBeforeStart?: (temporal.api.failure.v1.IFailure|null);
4581
+ failed?: (temporal.api.failure.v1.IFailure|null);
4582
4582
  }
4583
4583
 
4584
4584
  /** Represents a ResolveNexusOperationStart. */
@@ -4607,14 +4607,14 @@ export namespace coresdk {
4607
4607
  public startedSync?: (boolean|null);
4608
4608
 
4609
4609
  /**
4610
- * The operation was cancelled before it was ever sent to server (same WFT).
4611
- * Note that core will still send a `ResolveNexusOperation` job in the same activation, so
4612
- * there does not need to be an exceptional case for this in lang.
4610
+ * The operation either failed to start, was cancelled before it started, timed out, or
4611
+ * failed synchronously. Details are included inside the message. In this case, the
4612
+ * subsequent ResolveNexusOperation will never be sent.
4613
4613
  */
4614
- public cancelledBeforeStart?: (temporal.api.failure.v1.IFailure|null);
4614
+ public failed?: (temporal.api.failure.v1.IFailure|null);
4615
4615
 
4616
4616
  /** ResolveNexusOperationStart status. */
4617
- public status?: ("operationToken"|"startedSync"|"cancelledBeforeStart");
4617
+ public status?: ("operationToken"|"startedSync"|"failed");
4618
4618
 
4619
4619
  /**
4620
4620
  * Creates a new ResolveNexusOperationStart instance using the specified properties.
@@ -10436,7 +10436,7 @@ export namespace temporal {
10436
10436
  buildId?: (string|null);
10437
10437
 
10438
10438
  /**
10439
- * Event types to be reapplied (deprecated)
10439
+ * Deprecated. Use `options`.
10440
10440
  * Default: RESET_REAPPLY_TYPE_SIGNAL
10441
10441
  */
10442
10442
  resetReapplyType?: (temporal.api.enums.v1.ResetReapplyType|null);
@@ -10486,7 +10486,7 @@ export namespace temporal {
10486
10486
  public buildId?: (string|null);
10487
10487
 
10488
10488
  /**
10489
- * Event types to be reapplied (deprecated)
10489
+ * Deprecated. Use `options`.
10490
10490
  * Default: RESET_REAPPLY_TYPE_SIGNAL
10491
10491
  */
10492
10492
  public resetReapplyType: temporal.api.enums.v1.ResetReapplyType;
@@ -11606,6 +11606,17 @@ export namespace temporal {
11606
11606
  APPLICATION_ERROR_CATEGORY_BENIGN = 1
11607
11607
  }
11608
11608
 
11609
+ /**
11610
+ * (-- api-linter: core::0216::synonyms=disabled
11611
+ * aip.dev/not-precedent: It seems we have both state and status, and status is a better fit for workers. --)
11612
+ */
11613
+ enum WorkerStatus {
11614
+ WORKER_STATUS_UNSPECIFIED = 0,
11615
+ WORKER_STATUS_RUNNING = 1,
11616
+ WORKER_STATUS_SHUTTING_DOWN = 2,
11617
+ WORKER_STATUS_SHUTDOWN = 3
11618
+ }
11619
+
11609
11620
  /** Whenever this list of events is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering */
11610
11621
  enum EventType {
11611
11622
  EVENT_TYPE_UNSPECIFIED = 0,
@@ -11678,9 +11689,9 @@ export namespace temporal {
11678
11689
  }
11679
11690
 
11680
11691
  /**
11681
- * Event types to include when reapplying events. Deprecated: applications
11682
- * should use ResetReapplyExcludeType to specify exclusions from this set, and
11683
- * new event types should be added to ResetReapplyExcludeType instead of here.
11692
+ * Deprecated: applications should use ResetReapplyExcludeType to specify
11693
+ * exclusions from this set, and new event types should be added to ResetReapplyExcludeType
11694
+ * instead of here.
11684
11695
  */
11685
11696
  enum ResetReapplyType {
11686
11697
  RESET_REAPPLY_TYPE_UNSPECIFIED = 0,
@@ -11689,7 +11700,7 @@ export namespace temporal {
11689
11700
  RESET_REAPPLY_TYPE_ALL_ELIGIBLE = 3
11690
11701
  }
11691
11702
 
11692
- /** Reset type options. Deprecated, see temporal.api.common.v1.ResetOptions. */
11703
+ /** Deprecated, see temporal.api.common.v1.ResetOptions. */
11693
11704
  enum ResetType {
11694
11705
  RESET_TYPE_UNSPECIFIED = 0,
11695
11706
  RESET_TYPE_FIRST_WORKFLOW_TASK = 1,
@@ -11931,7 +11942,8 @@ export namespace temporal {
11931
11942
  WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_NEXUS_OPERATION_ATTRIBUTES = 32,
11932
11943
  WORKFLOW_TASK_FAILED_CAUSE_PENDING_NEXUS_OPERATIONS_LIMIT_EXCEEDED = 33,
11933
11944
  WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_NEXUS_OPERATION_ATTRIBUTES = 34,
11934
- WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED = 35
11945
+ WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED = 35,
11946
+ WORKFLOW_TASK_FAILED_CAUSE_GRPC_MESSAGE_TOO_LARGE = 36
11935
11947
  }
11936
11948
 
11937
11949
  /** StartChildWorkflowExecutionFailedCause enum. */
@@ -12084,6 +12096,21 @@ export namespace temporal {
12084
12096
  WORKER_VERSIONING_MODE_VERSIONED = 2
12085
12097
  }
12086
12098
 
12099
+ /**
12100
+ * (-- api-linter: core::0216::synonyms=disabled
12101
+ * aip.dev/not-precedent: Call this status because it is . --)
12102
+ * Specify the status of a Worker Deployment Version.
12103
+ * Experimental. Worker Deployments are experimental and might significantly change in the future.
12104
+ */
12105
+ enum WorkerDeploymentVersionStatus {
12106
+ WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED = 0,
12107
+ WORKER_DEPLOYMENT_VERSION_STATUS_INACTIVE = 1,
12108
+ WORKER_DEPLOYMENT_VERSION_STATUS_CURRENT = 2,
12109
+ WORKER_DEPLOYMENT_VERSION_STATUS_RAMPING = 3,
12110
+ WORKER_DEPLOYMENT_VERSION_STATUS_DRAINING = 4,
12111
+ WORKER_DEPLOYMENT_VERSION_STATUS_DRAINED = 5
12112
+ }
12113
+
12087
12114
  /** Whenever this list of command types is changed do change the function shouldBufferEvent in mutableStateBuilder.go to make sure to do the correct event ordering. */
12088
12115
  enum CommandType {
12089
12116
  COMMAND_TYPE_UNSPECIFIED = 0,
@@ -12960,7 +12987,7 @@ export namespace temporal {
12960
12987
  /**
12961
12988
  * Operation ID - may be empty if the operation completed synchronously.
12962
12989
  *
12963
- * Deprecated: Renamed to operation_token.
12990
+ * Deprecated. Renamed to operation_token.
12964
12991
  */
12965
12992
  operationId?: (string|null);
12966
12993
 
@@ -12992,7 +13019,7 @@ export namespace temporal {
12992
13019
  /**
12993
13020
  * Operation ID - may be empty if the operation completed synchronously.
12994
13021
  *
12995
- * Deprecated: Renamed to operation_token.
13022
+ * Deprecated. Renamed to operation_token.
12996
13023
  */
12997
13024
  public operationId: string;
12998
13025
 
@@ -14933,7 +14960,7 @@ export namespace temporal {
14933
14960
  /**
14934
14961
  * Operation ID as originally generated by a Handler.
14935
14962
  *
14936
- * Deprecated: Renamed to operation_token.
14963
+ * Deprecated. Renamed to operation_token.
14937
14964
  */
14938
14965
  operationId?: (string|null);
14939
14966
 
@@ -14959,7 +14986,7 @@ export namespace temporal {
14959
14986
  /**
14960
14987
  * Operation ID as originally generated by a Handler.
14961
14988
  *
14962
- * Deprecated: Renamed to operation_token.
14989
+ * Deprecated. Renamed to operation_token.
14963
14990
  */
14964
14991
  public operationId: string;
14965
14992
 
@@ -15368,7 +15395,7 @@ export namespace temporal {
15368
15395
  /** Properties of an Async. */
15369
15396
  interface IAsync {
15370
15397
 
15371
- /** Deprecated: Renamed to operation_token. */
15398
+ /** Deprecated. Renamed to operation_token. */
15372
15399
  operationId?: (string|null);
15373
15400
 
15374
15401
  /** Async links */
@@ -15390,7 +15417,7 @@ export namespace temporal {
15390
15417
  */
15391
15418
  constructor(properties?: temporal.api.nexus.v1.StartOperationResponse.IAsync);
15392
15419
 
15393
- /** Deprecated: Renamed to operation_token. */
15420
+ /** Deprecated. Renamed to operation_token. */
15394
15421
  public operationId: string;
15395
15422
 
15396
15423
  /** Async links. */
@@ -18231,16 +18258,16 @@ export namespace temporal {
18231
18258
  identity?: (string|null);
18232
18259
 
18233
18260
  /**
18234
- * DEPRECATED since 1.21 - use `deployment_options` instead.
18261
+ * Deprecated. Use deployment_options instead.
18235
18262
  * Each worker process should provide an ID unique to the specific set of code it is running
18236
18263
  * "checksum" in this field name isn't very accurate, it should be though of as an id.
18237
18264
  */
18238
18265
  binaryChecksum?: (string|null);
18239
18266
 
18240
18267
  /**
18268
+ * Deprecated. Use deployment_options instead.
18241
18269
  * Information about this worker's build identifier and if it is choosing to use the versioning
18242
18270
  * feature. See the `WorkerVersionCapabilities` docstring for more.
18243
- * Deprecated. Replaced by deployment_options.
18244
18271
  */
18245
18272
  workerVersionCapabilities?: (temporal.api.common.v1.IWorkerVersionCapabilities|null);
18246
18273
 
@@ -18249,6 +18276,9 @@ export namespace temporal {
18249
18276
  * Experimental. Worker Deployments are experimental and might significantly change in the future.
18250
18277
  */
18251
18278
  deploymentOptions?: (temporal.api.deployment.v1.IWorkerDeploymentOptions|null);
18279
+
18280
+ /** Worker info to be sent to the server. */
18281
+ workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat|null);
18252
18282
  }
18253
18283
 
18254
18284
  /** Represents a PollWorkflowTaskQueueRequest. */
@@ -18270,16 +18300,16 @@ export namespace temporal {
18270
18300
  public identity: string;
18271
18301
 
18272
18302
  /**
18273
- * DEPRECATED since 1.21 - use `deployment_options` instead.
18303
+ * Deprecated. Use deployment_options instead.
18274
18304
  * Each worker process should provide an ID unique to the specific set of code it is running
18275
18305
  * "checksum" in this field name isn't very accurate, it should be though of as an id.
18276
18306
  */
18277
18307
  public binaryChecksum: string;
18278
18308
 
18279
18309
  /**
18310
+ * Deprecated. Use deployment_options instead.
18280
18311
  * Information about this worker's build identifier and if it is choosing to use the versioning
18281
18312
  * feature. See the `WorkerVersionCapabilities` docstring for more.
18282
- * Deprecated. Replaced by deployment_options.
18283
18313
  */
18284
18314
  public workerVersionCapabilities?: (temporal.api.common.v1.IWorkerVersionCapabilities|null);
18285
18315
 
@@ -18289,6 +18319,9 @@ export namespace temporal {
18289
18319
  */
18290
18320
  public deploymentOptions?: (temporal.api.deployment.v1.IWorkerDeploymentOptions|null);
18291
18321
 
18322
+ /** Worker info to be sent to the server. */
18323
+ public workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat|null);
18324
+
18292
18325
  /**
18293
18326
  * Creates a new PollWorkflowTaskQueueRequest instance using the specified properties.
18294
18327
  * @param [properties] Properties to set
@@ -18647,7 +18680,7 @@ export namespace temporal {
18647
18680
  forceCreateNewWorkflowTask?: (boolean|null);
18648
18681
 
18649
18682
  /**
18650
- * DEPRECATED since 1.21 - use `deployment_options` instead.
18683
+ * Deprecated. Use `deployment_options` instead.
18651
18684
  * Worker process' unique binary id
18652
18685
  */
18653
18686
  binaryChecksum?: (string|null);
@@ -18737,7 +18770,7 @@ export namespace temporal {
18737
18770
  public forceCreateNewWorkflowTask: boolean;
18738
18771
 
18739
18772
  /**
18740
- * DEPRECATED since 1.21 - use `deployment_options` instead.
18773
+ * Deprecated. Use `deployment_options` instead.
18741
18774
  * Worker process' unique binary id
18742
18775
  */
18743
18776
  public binaryChecksum: string;
@@ -19094,7 +19127,7 @@ export namespace temporal {
19094
19127
  identity?: (string|null);
19095
19128
 
19096
19129
  /**
19097
- * DEPRECATED since 1.21 - use `deployment_options` instead.
19130
+ * Deprecated. Use `deployment_options` instead.
19098
19131
  * Worker process' unique binary id
19099
19132
  */
19100
19133
  binaryChecksum?: (string|null);
@@ -19149,7 +19182,7 @@ export namespace temporal {
19149
19182
  public identity: string;
19150
19183
 
19151
19184
  /**
19152
- * DEPRECATED since 1.21 - use `deployment_options` instead.
19185
+ * Deprecated. Use `deployment_options` instead.
19153
19186
  * Worker process' unique binary id
19154
19187
  */
19155
19188
  public binaryChecksum: string;
@@ -19357,6 +19390,9 @@ export namespace temporal {
19357
19390
 
19358
19391
  /** Worker deployment options that user has set in the worker. */
19359
19392
  deploymentOptions?: (temporal.api.deployment.v1.IWorkerDeploymentOptions|null);
19393
+
19394
+ /** Worker info to be sent to the server. */
19395
+ workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat|null);
19360
19396
  }
19361
19397
 
19362
19398
  /** Represents a PollActivityTaskQueueRequest. */
@@ -19390,6 +19426,9 @@ export namespace temporal {
19390
19426
  /** Worker deployment options that user has set in the worker. */
19391
19427
  public deploymentOptions?: (temporal.api.deployment.v1.IWorkerDeploymentOptions|null);
19392
19428
 
19429
+ /** Worker info to be sent to the server. */
19430
+ public workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat|null);
19431
+
19393
19432
  /**
19394
19433
  * Creates a new PollActivityTaskQueueRequest instance using the specified properties.
19395
19434
  * @param [properties] Properties to set
@@ -21740,7 +21779,7 @@ export namespace temporal {
21740
21779
  /** Used to de-dupe sent signals */
21741
21780
  requestId?: (string|null);
21742
21781
 
21743
- /** Deprecated */
21782
+ /** Deprecated. */
21744
21783
  control?: (string|null);
21745
21784
 
21746
21785
  /**
@@ -21784,7 +21823,7 @@ export namespace temporal {
21784
21823
  /** Used to de-dupe sent signals */
21785
21824
  public requestId: string;
21786
21825
 
21787
- /** Deprecated */
21826
+ /** Deprecated. */
21788
21827
  public control: string;
21789
21828
 
21790
21829
  /**
@@ -22007,7 +22046,7 @@ export namespace temporal {
22007
22046
  /** Serialized value(s) to provide with the signal */
22008
22047
  signalInput?: (temporal.api.common.v1.IPayloads|null);
22009
22048
 
22010
- /** Deprecated */
22049
+ /** Deprecated. */
22011
22050
  control?: (string|null);
22012
22051
 
22013
22052
  /** Retry policy for the workflow */
@@ -22116,7 +22155,7 @@ export namespace temporal {
22116
22155
  /** Serialized value(s) to provide with the signal */
22117
22156
  public signalInput?: (temporal.api.common.v1.IPayloads|null);
22118
22157
 
22119
- /** Deprecated */
22158
+ /** Deprecated. */
22120
22159
  public control: string;
22121
22160
 
22122
22161
  /** Retry policy for the workflow */
@@ -22355,7 +22394,7 @@ export namespace temporal {
22355
22394
  requestId?: (string|null);
22356
22395
 
22357
22396
  /**
22358
- * Event types to be reapplied (deprecated)
22397
+ * Deprecated. Use `options`.
22359
22398
  * Default: RESET_REAPPLY_TYPE_SIGNAL
22360
22399
  */
22361
22400
  resetReapplyType?: (temporal.api.enums.v1.ResetReapplyType|null);
@@ -22369,6 +22408,9 @@ export namespace temporal {
22369
22408
  * All operations are applied to the workflow before the first new workflow task is generated
22370
22409
  */
22371
22410
  postResetOperations?: (temporal.api.workflow.v1.IPostResetOperation[]|null);
22411
+
22412
+ /** The identity of the worker/client */
22413
+ identity?: (string|null);
22372
22414
  }
22373
22415
 
22374
22416
  /** Represents a ResetWorkflowExecutionRequest. */
@@ -22403,7 +22445,7 @@ export namespace temporal {
22403
22445
  public requestId: string;
22404
22446
 
22405
22447
  /**
22406
- * Event types to be reapplied (deprecated)
22448
+ * Deprecated. Use `options`.
22407
22449
  * Default: RESET_REAPPLY_TYPE_SIGNAL
22408
22450
  */
22409
22451
  public resetReapplyType: temporal.api.enums.v1.ResetReapplyType;
@@ -22418,6 +22460,9 @@ export namespace temporal {
22418
22460
  */
22419
22461
  public postResetOperations: temporal.api.workflow.v1.IPostResetOperation[];
22420
22462
 
22463
+ /** The identity of the worker/client */
22464
+ public identity: string;
22465
+
22421
22466
  /**
22422
22467
  * Creates a new ResetWorkflowExecutionRequest instance using the specified properties.
22423
22468
  * @param [properties] Properties to set
@@ -24552,6 +24597,12 @@ export namespace temporal {
24552
24597
  * Mutually exclusive with `query_result`. Set when the query fails.
24553
24598
  */
24554
24599
  failure?: (temporal.api.failure.v1.IFailure|null);
24600
+
24601
+ /**
24602
+ * Why did the task fail? It's important to note that many of the variants in this enum cannot
24603
+ * apply to worker responses. See the type's doc for more.
24604
+ */
24605
+ cause?: (temporal.api.enums.v1.WorkflowTaskFailedCause|null);
24555
24606
  }
24556
24607
 
24557
24608
  /** Represents a RespondQueryTaskCompletedRequest. */
@@ -24597,6 +24648,12 @@ export namespace temporal {
24597
24648
  */
24598
24649
  public failure?: (temporal.api.failure.v1.IFailure|null);
24599
24650
 
24651
+ /**
24652
+ * Why did the task fail? It's important to note that many of the variants in this enum cannot
24653
+ * apply to worker responses. See the type's doc for more.
24654
+ */
24655
+ public cause: temporal.api.enums.v1.WorkflowTaskFailedCause;
24656
+
24600
24657
  /**
24601
24658
  * Creates a new RespondQueryTaskCompletedRequest instance using the specified properties.
24602
24659
  * @param [properties] Properties to set
@@ -24946,6 +25003,9 @@ export namespace temporal {
24946
25003
 
24947
25004
  /** ShutdownWorkerRequest reason */
24948
25005
  reason?: (string|null);
25006
+
25007
+ /** ShutdownWorkerRequest workerHeartbeat */
25008
+ workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat|null);
24949
25009
  }
24950
25010
 
24951
25011
  /** Represents a ShutdownWorkerRequest. */
@@ -24969,6 +25029,9 @@ export namespace temporal {
24969
25029
  /** ShutdownWorkerRequest reason. */
24970
25030
  public reason: string;
24971
25031
 
25032
+ /** ShutdownWorkerRequest workerHeartbeat. */
25033
+ public workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat|null);
25034
+
24972
25035
  /**
24973
25036
  * Creates a new ShutdownWorkerRequest instance using the specified properties.
24974
25037
  * @param [properties] Properties to set
@@ -25568,22 +25631,33 @@ export namespace temporal {
25568
25631
  /** DescribeTaskQueueRequest namespace */
25569
25632
  namespace?: (string|null);
25570
25633
 
25571
- /** Sticky queues are not supported in `ENHANCED` mode. */
25634
+ /** Sticky queues are not supported in deprecated ENHANCED mode. */
25572
25635
  taskQueue?: (temporal.api.taskqueue.v1.ITaskQueue|null);
25573
25636
 
25574
25637
  /**
25575
- * Deprecated. Use `ENHANCED` mode with `task_queue_types`. Ignored in `ENHANCED` mode.
25576
25638
  * If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used.
25639
+ * Only supported in default mode (use `task_queue_types` in ENHANCED mode instead).
25577
25640
  */
25578
25641
  taskQueueType?: (temporal.api.enums.v1.TaskQueueType|null);
25579
25642
 
25580
- /** Deprecated. Ignored in `ENHANCED` mode. */
25643
+ /** Report stats for the requested task queue type(s). */
25644
+ reportStats?: (boolean|null);
25645
+
25646
+ /**
25647
+ * Deprecated, use `report_stats` instead.
25648
+ * If true, the task queue status will be included in the response.
25649
+ */
25581
25650
  includeTaskQueueStatus?: (boolean|null);
25582
25651
 
25583
- /** All options except `task_queue_type` and `include_task_queue_status` are only available in the `ENHANCED` mode. */
25652
+ /**
25653
+ * Deprecated. ENHANCED mode is also being deprecated.
25654
+ * Select the API mode to use for this request: DEFAULT mode (if unset) or ENHANCED mode.
25655
+ * Consult the documentation for each field to understand which mode it is supported in.
25656
+ */
25584
25657
  apiMode?: (temporal.api.enums.v1.DescribeTaskQueueMode|null);
25585
25658
 
25586
25659
  /**
25660
+ * Deprecated (as part of the ENHANCED mode deprecation).
25587
25661
  * Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
25588
25662
  * mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
25589
25663
  * unversioned queue will be returned.
@@ -25591,16 +25665,20 @@ export namespace temporal {
25591
25665
  */
25592
25666
  versions?: (temporal.api.taskqueue.v1.ITaskQueueVersionSelection|null);
25593
25667
 
25594
- /** Task queue types to report info about. If not specified, all types are considered. */
25668
+ /**
25669
+ * Deprecated (as part of the ENHANCED mode deprecation).
25670
+ * Task queue types to report info about. If not specified, all types are considered.
25671
+ */
25595
25672
  taskQueueTypes?: (temporal.api.enums.v1.TaskQueueType[]|null);
25596
25673
 
25597
- /** Report stats for the requested task queue types and versions */
25598
- reportStats?: (boolean|null);
25599
-
25600
- /** Report list of pollers for requested task queue types and versions */
25674
+ /**
25675
+ * Deprecated (as part of the ENHANCED mode deprecation).
25676
+ * Report list of pollers for requested task queue types and versions.
25677
+ */
25601
25678
  reportPollers?: (boolean|null);
25602
25679
 
25603
25680
  /**
25681
+ * Deprecated (as part of the ENHANCED mode deprecation).
25604
25682
  * Report task reachability for the requested versions and all task types (task reachability is not reported
25605
25683
  * per task type).
25606
25684
  */
@@ -25622,22 +25700,33 @@ export namespace temporal {
25622
25700
  /** DescribeTaskQueueRequest namespace. */
25623
25701
  public namespace: string;
25624
25702
 
25625
- /** Sticky queues are not supported in `ENHANCED` mode. */
25703
+ /** Sticky queues are not supported in deprecated ENHANCED mode. */
25626
25704
  public taskQueue?: (temporal.api.taskqueue.v1.ITaskQueue|null);
25627
25705
 
25628
25706
  /**
25629
- * Deprecated. Use `ENHANCED` mode with `task_queue_types`. Ignored in `ENHANCED` mode.
25630
25707
  * If unspecified (TASK_QUEUE_TYPE_UNSPECIFIED), then default value (TASK_QUEUE_TYPE_WORKFLOW) will be used.
25708
+ * Only supported in default mode (use `task_queue_types` in ENHANCED mode instead).
25631
25709
  */
25632
25710
  public taskQueueType: temporal.api.enums.v1.TaskQueueType;
25633
25711
 
25634
- /** Deprecated. Ignored in `ENHANCED` mode. */
25712
+ /** Report stats for the requested task queue type(s). */
25713
+ public reportStats: boolean;
25714
+
25715
+ /**
25716
+ * Deprecated, use `report_stats` instead.
25717
+ * If true, the task queue status will be included in the response.
25718
+ */
25635
25719
  public includeTaskQueueStatus: boolean;
25636
25720
 
25637
- /** All options except `task_queue_type` and `include_task_queue_status` are only available in the `ENHANCED` mode. */
25721
+ /**
25722
+ * Deprecated. ENHANCED mode is also being deprecated.
25723
+ * Select the API mode to use for this request: DEFAULT mode (if unset) or ENHANCED mode.
25724
+ * Consult the documentation for each field to understand which mode it is supported in.
25725
+ */
25638
25726
  public apiMode: temporal.api.enums.v1.DescribeTaskQueueMode;
25639
25727
 
25640
25728
  /**
25729
+ * Deprecated (as part of the ENHANCED mode deprecation).
25641
25730
  * Optional. If not provided, the result for the default Build ID will be returned. The default Build ID is the one
25642
25731
  * mentioned in the first unconditional Assignment Rule. If there is no default Build ID, the result for the
25643
25732
  * unversioned queue will be returned.
@@ -25645,16 +25734,20 @@ export namespace temporal {
25645
25734
  */
25646
25735
  public versions?: (temporal.api.taskqueue.v1.ITaskQueueVersionSelection|null);
25647
25736
 
25648
- /** Task queue types to report info about. If not specified, all types are considered. */
25737
+ /**
25738
+ * Deprecated (as part of the ENHANCED mode deprecation).
25739
+ * Task queue types to report info about. If not specified, all types are considered.
25740
+ */
25649
25741
  public taskQueueTypes: temporal.api.enums.v1.TaskQueueType[];
25650
25742
 
25651
- /** Report stats for the requested task queue types and versions */
25652
- public reportStats: boolean;
25653
-
25654
- /** Report list of pollers for requested task queue types and versions */
25743
+ /**
25744
+ * Deprecated (as part of the ENHANCED mode deprecation).
25745
+ * Report list of pollers for requested task queue types and versions.
25746
+ */
25655
25747
  public reportPollers: boolean;
25656
25748
 
25657
25749
  /**
25750
+ * Deprecated (as part of the ENHANCED mode deprecation).
25658
25751
  * Report task reachability for the requested versions and all task types (task reachability is not reported
25659
25752
  * per task type).
25660
25753
  */
@@ -25734,20 +25827,11 @@ export namespace temporal {
25734
25827
  /** Properties of a DescribeTaskQueueResponse. */
25735
25828
  interface IDescribeTaskQueueResponse {
25736
25829
 
25737
- /**
25738
- * Deprecated. Use `versions_info.types_info.pollers` with `ENHANCED` mode instead.
25739
- * Not set in `ENHANCED` mode.
25740
- */
25830
+ /** DescribeTaskQueueResponse pollers */
25741
25831
  pollers?: (temporal.api.taskqueue.v1.IPollerInfo[]|null);
25742
25832
 
25743
- /** Deprecated. Not set in `ENHANCED` mode. */
25744
- taskQueueStatus?: (temporal.api.taskqueue.v1.ITaskQueueStatus|null);
25745
-
25746
- /**
25747
- * This map contains Task Queue information for each Build ID. Empty string as key value means unversioned.
25748
- * Only set in `ENHANCED` mode.
25749
- */
25750
- versionsInfo?: ({ [k: string]: temporal.api.taskqueue.v1.ITaskQueueVersionInfo }|null);
25833
+ /** Statistics for the task queue. Only populated when `report_stats` is set to true in the request. */
25834
+ stats?: (temporal.api.taskqueue.v1.ITaskQueueStats|null);
25751
25835
 
25752
25836
  /**
25753
25837
  * Specifies which Worker Deployment Version(s) Server routes this Task Queue's tasks to.
@@ -25761,6 +25845,19 @@ export namespace temporal {
25761
25845
  * a Pinned VersioningOverride or are Child Workflows of a Pinned parent).
25762
25846
  */
25763
25847
  versioningInfo?: (temporal.api.taskqueue.v1.ITaskQueueVersioningInfo|null);
25848
+
25849
+ /**
25850
+ * Deprecated.
25851
+ * Status of the task queue. Only populated when `include_task_queue_status` is set to true in the request.
25852
+ */
25853
+ taskQueueStatus?: (temporal.api.taskqueue.v1.ITaskQueueStatus|null);
25854
+
25855
+ /**
25856
+ * Deprecated.
25857
+ * Only returned in ENHANCED mode.
25858
+ * This map contains Task Queue information for each Build ID. Empty string as key value means unversioned.
25859
+ */
25860
+ versionsInfo?: ({ [k: string]: temporal.api.taskqueue.v1.ITaskQueueVersionInfo }|null);
25764
25861
  }
25765
25862
 
25766
25863
  /** Represents a DescribeTaskQueueResponse. */
@@ -25772,20 +25869,11 @@ export namespace temporal {
25772
25869
  */
25773
25870
  constructor(properties?: temporal.api.workflowservice.v1.IDescribeTaskQueueResponse);
25774
25871
 
25775
- /**
25776
- * Deprecated. Use `versions_info.types_info.pollers` with `ENHANCED` mode instead.
25777
- * Not set in `ENHANCED` mode.
25778
- */
25872
+ /** DescribeTaskQueueResponse pollers. */
25779
25873
  public pollers: temporal.api.taskqueue.v1.IPollerInfo[];
25780
25874
 
25781
- /** Deprecated. Not set in `ENHANCED` mode. */
25782
- public taskQueueStatus?: (temporal.api.taskqueue.v1.ITaskQueueStatus|null);
25783
-
25784
- /**
25785
- * This map contains Task Queue information for each Build ID. Empty string as key value means unversioned.
25786
- * Only set in `ENHANCED` mode.
25787
- */
25788
- public versionsInfo: { [k: string]: temporal.api.taskqueue.v1.ITaskQueueVersionInfo };
25875
+ /** Statistics for the task queue. Only populated when `report_stats` is set to true in the request. */
25876
+ public stats?: (temporal.api.taskqueue.v1.ITaskQueueStats|null);
25789
25877
 
25790
25878
  /**
25791
25879
  * Specifies which Worker Deployment Version(s) Server routes this Task Queue's tasks to.
@@ -25800,6 +25888,19 @@ export namespace temporal {
25800
25888
  */
25801
25889
  public versioningInfo?: (temporal.api.taskqueue.v1.ITaskQueueVersioningInfo|null);
25802
25890
 
25891
+ /**
25892
+ * Deprecated.
25893
+ * Status of the task queue. Only populated when `include_task_queue_status` is set to true in the request.
25894
+ */
25895
+ public taskQueueStatus?: (temporal.api.taskqueue.v1.ITaskQueueStatus|null);
25896
+
25897
+ /**
25898
+ * Deprecated.
25899
+ * Only returned in ENHANCED mode.
25900
+ * This map contains Task Queue information for each Build ID. Empty string as key value means unversioned.
25901
+ */
25902
+ public versionsInfo: { [k: string]: temporal.api.taskqueue.v1.ITaskQueueVersionInfo };
25903
+
25803
25904
  /**
25804
25905
  * Creates a new DescribeTaskQueueResponse instance using the specified properties.
25805
25906
  * @param [properties] Properties to set
@@ -31763,6 +31864,9 @@ export namespace temporal {
31763
31864
 
31764
31865
  /** Worker deployment options that user has set in the worker. */
31765
31866
  deploymentOptions?: (temporal.api.deployment.v1.IWorkerDeploymentOptions|null);
31867
+
31868
+ /** Worker info to be sent to the server. */
31869
+ workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat[]|null);
31766
31870
  }
31767
31871
 
31768
31872
  /** Represents a PollNexusTaskQueueRequest. */
@@ -31793,6 +31897,9 @@ export namespace temporal {
31793
31897
  /** Worker deployment options that user has set in the worker. */
31794
31898
  public deploymentOptions?: (temporal.api.deployment.v1.IWorkerDeploymentOptions|null);
31795
31899
 
31900
+ /** Worker info to be sent to the server. */
31901
+ public workerHeartbeat: temporal.api.worker.v1.IWorkerHeartbeat[];
31902
+
31796
31903
  /**
31797
31904
  * Creates a new PollNexusTaskQueueRequest instance using the specified properties.
31798
31905
  * @param [properties] Properties to set
@@ -32806,6 +32913,15 @@ export namespace temporal {
32806
32913
 
32807
32914
  /** Update all running activities of this type. */
32808
32915
  type?: (string|null);
32916
+
32917
+ /**
32918
+ * If set, the activity options will be restored to the default.
32919
+ * Default options are then options activity was created with.
32920
+ * They are part of the first SCHEDULE event.
32921
+ * This flag cannot be combined with any other option; if you supply
32922
+ * restore_original together with other options, the request will be rejected.
32923
+ */
32924
+ restoreOriginal?: (boolean|null);
32809
32925
  }
32810
32926
 
32811
32927
  /** Represents an UpdateActivityOptionsRequest. */
@@ -32838,6 +32954,15 @@ export namespace temporal {
32838
32954
  /** Update all running activities of this type. */
32839
32955
  public type?: (string|null);
32840
32956
 
32957
+ /**
32958
+ * If set, the activity options will be restored to the default.
32959
+ * Default options are then options activity was created with.
32960
+ * They are part of the first SCHEDULE event.
32961
+ * This flag cannot be combined with any other option; if you supply
32962
+ * restore_original together with other options, the request will be rejected.
32963
+ */
32964
+ public restoreOriginal: boolean;
32965
+
32841
32966
  /** either activity id or activity type must be provided */
32842
32967
  public activity?: ("id"|"type");
32843
32968
 
@@ -33466,6 +33591,13 @@ export namespace temporal {
33466
33591
  * (unless it is paused and keep_paused is set)
33467
33592
  */
33468
33593
  jitter?: (google.protobuf.IDuration|null);
33594
+
33595
+ /**
33596
+ * If set, the activity options will be restored to the defaults.
33597
+ * Default options are then options activity was created with.
33598
+ * They are part of the first SCHEDULE event.
33599
+ */
33600
+ restoreOriginalOptions?: (boolean|null);
33469
33601
  }
33470
33602
 
33471
33603
  /** Represents a ResetActivityRequest. */
@@ -33507,6 +33639,13 @@ export namespace temporal {
33507
33639
  */
33508
33640
  public jitter?: (google.protobuf.IDuration|null);
33509
33641
 
33642
+ /**
33643
+ * If set, the activity options will be restored to the defaults.
33644
+ * Default options are then options activity was created with.
33645
+ * They are part of the first SCHEDULE event.
33646
+ */
33647
+ public restoreOriginalOptions: boolean;
33648
+
33510
33649
  /** either activity id or activity type must be provided */
33511
33650
  public activity?: ("id"|"type");
33512
33651
 
@@ -34078,6 +34217,9 @@ export namespace temporal {
34078
34217
 
34079
34218
  /** Required. */
34080
34219
  deploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
34220
+
34221
+ /** Report stats for task queues which have been polled by this version. */
34222
+ reportTaskQueueStats?: (boolean|null);
34081
34223
  }
34082
34224
 
34083
34225
  /** Represents a DescribeWorkerDeploymentVersionRequest. */
@@ -34098,6 +34240,9 @@ export namespace temporal {
34098
34240
  /** Required. */
34099
34241
  public deploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
34100
34242
 
34243
+ /** Report stats for task queues which have been polled by this version. */
34244
+ public reportTaskQueueStats: boolean;
34245
+
34101
34246
  /**
34102
34247
  * Creates a new DescribeWorkerDeploymentVersionRequest instance using the specified properties.
34103
34248
  * @param [properties] Properties to set
@@ -34174,6 +34319,9 @@ export namespace temporal {
34174
34319
 
34175
34320
  /** DescribeWorkerDeploymentVersionResponse workerDeploymentVersionInfo */
34176
34321
  workerDeploymentVersionInfo?: (temporal.api.deployment.v1.IWorkerDeploymentVersionInfo|null);
34322
+
34323
+ /** All the Task Queues that have ever polled from this Deployment version. */
34324
+ versionTaskQueues?: (temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.IVersionTaskQueue[]|null);
34177
34325
  }
34178
34326
 
34179
34327
  /** Represents a DescribeWorkerDeploymentVersionResponse. */
@@ -34188,6 +34336,9 @@ export namespace temporal {
34188
34336
  /** DescribeWorkerDeploymentVersionResponse workerDeploymentVersionInfo. */
34189
34337
  public workerDeploymentVersionInfo?: (temporal.api.deployment.v1.IWorkerDeploymentVersionInfo|null);
34190
34338
 
34339
+ /** All the Task Queues that have ever polled from this Deployment version. */
34340
+ public versionTaskQueues: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.IVersionTaskQueue[];
34341
+
34191
34342
  /**
34192
34343
  * Creates a new DescribeWorkerDeploymentVersionResponse instance using the specified properties.
34193
34344
  * @param [properties] Properties to set
@@ -34259,6 +34410,111 @@ export namespace temporal {
34259
34410
  public static getTypeUrl(typeUrlPrefix?: string): string;
34260
34411
  }
34261
34412
 
34413
+ namespace DescribeWorkerDeploymentVersionResponse {
34414
+
34415
+ /** Properties of a VersionTaskQueue. */
34416
+ interface IVersionTaskQueue {
34417
+
34418
+ /** VersionTaskQueue name */
34419
+ name?: (string|null);
34420
+
34421
+ /** VersionTaskQueue type */
34422
+ type?: (temporal.api.enums.v1.TaskQueueType|null);
34423
+
34424
+ /** Only set if `report_task_queue_stats` is set on the request. */
34425
+ stats?: (temporal.api.taskqueue.v1.ITaskQueueStats|null);
34426
+ }
34427
+
34428
+ /** (-- api-linter: core::0123::resource-annotation=disabled --) */
34429
+ class VersionTaskQueue implements IVersionTaskQueue {
34430
+
34431
+ /**
34432
+ * Constructs a new VersionTaskQueue.
34433
+ * @param [properties] Properties to set
34434
+ */
34435
+ constructor(properties?: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.IVersionTaskQueue);
34436
+
34437
+ /** VersionTaskQueue name. */
34438
+ public name: string;
34439
+
34440
+ /** VersionTaskQueue type. */
34441
+ public type: temporal.api.enums.v1.TaskQueueType;
34442
+
34443
+ /** Only set if `report_task_queue_stats` is set on the request. */
34444
+ public stats?: (temporal.api.taskqueue.v1.ITaskQueueStats|null);
34445
+
34446
+ /**
34447
+ * Creates a new VersionTaskQueue instance using the specified properties.
34448
+ * @param [properties] Properties to set
34449
+ * @returns VersionTaskQueue instance
34450
+ */
34451
+ public static create(properties?: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.IVersionTaskQueue): temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue;
34452
+
34453
+ /**
34454
+ * Encodes the specified VersionTaskQueue message. Does not implicitly {@link temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.verify|verify} messages.
34455
+ * @param message VersionTaskQueue message or plain object to encode
34456
+ * @param [writer] Writer to encode to
34457
+ * @returns Writer
34458
+ */
34459
+ public static encode(message: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.IVersionTaskQueue, writer?: $protobuf.Writer): $protobuf.Writer;
34460
+
34461
+ /**
34462
+ * Encodes the specified VersionTaskQueue message, length delimited. Does not implicitly {@link temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.verify|verify} messages.
34463
+ * @param message VersionTaskQueue message or plain object to encode
34464
+ * @param [writer] Writer to encode to
34465
+ * @returns Writer
34466
+ */
34467
+ public static encodeDelimited(message: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.IVersionTaskQueue, writer?: $protobuf.Writer): $protobuf.Writer;
34468
+
34469
+ /**
34470
+ * Decodes a VersionTaskQueue message from the specified reader or buffer.
34471
+ * @param reader Reader or buffer to decode from
34472
+ * @param [length] Message length if known beforehand
34473
+ * @returns VersionTaskQueue
34474
+ * @throws {Error} If the payload is not a reader or valid buffer
34475
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34476
+ */
34477
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue;
34478
+
34479
+ /**
34480
+ * Decodes a VersionTaskQueue message from the specified reader or buffer, length delimited.
34481
+ * @param reader Reader or buffer to decode from
34482
+ * @returns VersionTaskQueue
34483
+ * @throws {Error} If the payload is not a reader or valid buffer
34484
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34485
+ */
34486
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue;
34487
+
34488
+ /**
34489
+ * Creates a VersionTaskQueue message from a plain object. Also converts values to their respective internal types.
34490
+ * @param object Plain object
34491
+ * @returns VersionTaskQueue
34492
+ */
34493
+ public static fromObject(object: { [k: string]: any }): temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue;
34494
+
34495
+ /**
34496
+ * Creates a plain object from a VersionTaskQueue message. Also converts values to other types if specified.
34497
+ * @param message VersionTaskQueue
34498
+ * @param [options] Conversion options
34499
+ * @returns Plain object
34500
+ */
34501
+ public static toObject(message: temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue, options?: $protobuf.IConversionOptions): { [k: string]: any };
34502
+
34503
+ /**
34504
+ * Converts this VersionTaskQueue to JSON.
34505
+ * @returns JSON object
34506
+ */
34507
+ public toJSON(): { [k: string]: any };
34508
+
34509
+ /**
34510
+ * Gets the default type url for VersionTaskQueue
34511
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34512
+ * @returns The default type url
34513
+ */
34514
+ public static getTypeUrl(typeUrlPrefix?: string): string;
34515
+ }
34516
+ }
34517
+
34262
34518
  /** Properties of a DescribeWorkerDeploymentRequest. */
34263
34519
  interface IDescribeWorkerDeploymentRequest {
34264
34520
 
@@ -35668,6 +35924,15 @@ export namespace temporal {
35668
35924
 
35669
35925
  /** WorkerDeploymentSummary routingConfig */
35670
35926
  routingConfig?: (temporal.api.deployment.v1.IRoutingConfig|null);
35927
+
35928
+ /** Summary of the version that was added most recently in the Worker Deployment. */
35929
+ latestVersionSummary?: (temporal.api.deployment.v1.WorkerDeploymentInfo.IWorkerDeploymentVersionSummary|null);
35930
+
35931
+ /** Summary of the current version of the Worker Deployment. */
35932
+ currentVersionSummary?: (temporal.api.deployment.v1.WorkerDeploymentInfo.IWorkerDeploymentVersionSummary|null);
35933
+
35934
+ /** Summary of the ramping version of the Worker Deployment. */
35935
+ rampingVersionSummary?: (temporal.api.deployment.v1.WorkerDeploymentInfo.IWorkerDeploymentVersionSummary|null);
35671
35936
  }
35672
35937
 
35673
35938
  /**
@@ -35691,6 +35956,15 @@ export namespace temporal {
35691
35956
  /** WorkerDeploymentSummary routingConfig. */
35692
35957
  public routingConfig?: (temporal.api.deployment.v1.IRoutingConfig|null);
35693
35958
 
35959
+ /** Summary of the version that was added most recently in the Worker Deployment. */
35960
+ public latestVersionSummary?: (temporal.api.deployment.v1.WorkerDeploymentInfo.IWorkerDeploymentVersionSummary|null);
35961
+
35962
+ /** Summary of the current version of the Worker Deployment. */
35963
+ public currentVersionSummary?: (temporal.api.deployment.v1.WorkerDeploymentInfo.IWorkerDeploymentVersionSummary|null);
35964
+
35965
+ /** Summary of the ramping version of the Worker Deployment. */
35966
+ public rampingVersionSummary?: (temporal.api.deployment.v1.WorkerDeploymentInfo.IWorkerDeploymentVersionSummary|null);
35967
+
35694
35968
  /**
35695
35969
  * Creates a new WorkerDeploymentSummary instance using the specified properties.
35696
35970
  * @param [properties] Properties to set
@@ -36180,6 +36454,9 @@ export namespace temporal {
36180
36454
 
36181
36455
  /** List of keys to remove from the metadata. */
36182
36456
  removeEntries?: (string[]|null);
36457
+
36458
+ /** Optional. The identity of the client who initiated this request. */
36459
+ identity?: (string|null);
36183
36460
  }
36184
36461
 
36185
36462
  /** Used to update the user-defined metadata of a Worker Deployment Version. */
@@ -36206,6 +36483,9 @@ export namespace temporal {
36206
36483
  /** List of keys to remove from the metadata. */
36207
36484
  public removeEntries: string[];
36208
36485
 
36486
+ /** Optional. The identity of the client who initiated this request. */
36487
+ public identity: string;
36488
+
36209
36489
  /**
36210
36490
  * Creates a new UpdateWorkerDeploymentVersionMetadataRequest instance using the specified properties.
36211
36491
  * @param [properties] Properties to set
@@ -37749,6 +38029,426 @@ export namespace temporal {
37749
38029
  public static getTypeUrl(typeUrlPrefix?: string): string;
37750
38030
  }
37751
38031
 
38032
+ /** Properties of a RecordWorkerHeartbeatRequest. */
38033
+ interface IRecordWorkerHeartbeatRequest {
38034
+
38035
+ /** Namespace this worker belongs to. */
38036
+ namespace?: (string|null);
38037
+
38038
+ /** The identity of the client who initiated this request. */
38039
+ identity?: (string|null);
38040
+
38041
+ /** RecordWorkerHeartbeatRequest workerHeartbeat */
38042
+ workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat[]|null);
38043
+ }
38044
+
38045
+ /** Represents a RecordWorkerHeartbeatRequest. */
38046
+ class RecordWorkerHeartbeatRequest implements IRecordWorkerHeartbeatRequest {
38047
+
38048
+ /**
38049
+ * Constructs a new RecordWorkerHeartbeatRequest.
38050
+ * @param [properties] Properties to set
38051
+ */
38052
+ constructor(properties?: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatRequest);
38053
+
38054
+ /** Namespace this worker belongs to. */
38055
+ public namespace: string;
38056
+
38057
+ /** The identity of the client who initiated this request. */
38058
+ public identity: string;
38059
+
38060
+ /** RecordWorkerHeartbeatRequest workerHeartbeat. */
38061
+ public workerHeartbeat: temporal.api.worker.v1.IWorkerHeartbeat[];
38062
+
38063
+ /**
38064
+ * Creates a new RecordWorkerHeartbeatRequest instance using the specified properties.
38065
+ * @param [properties] Properties to set
38066
+ * @returns RecordWorkerHeartbeatRequest instance
38067
+ */
38068
+ public static create(properties?: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatRequest): temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest;
38069
+
38070
+ /**
38071
+ * Encodes the specified RecordWorkerHeartbeatRequest message. Does not implicitly {@link temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest.verify|verify} messages.
38072
+ * @param message RecordWorkerHeartbeatRequest message or plain object to encode
38073
+ * @param [writer] Writer to encode to
38074
+ * @returns Writer
38075
+ */
38076
+ public static encode(message: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatRequest, writer?: $protobuf.Writer): $protobuf.Writer;
38077
+
38078
+ /**
38079
+ * Encodes the specified RecordWorkerHeartbeatRequest message, length delimited. Does not implicitly {@link temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest.verify|verify} messages.
38080
+ * @param message RecordWorkerHeartbeatRequest message or plain object to encode
38081
+ * @param [writer] Writer to encode to
38082
+ * @returns Writer
38083
+ */
38084
+ public static encodeDelimited(message: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatRequest, writer?: $protobuf.Writer): $protobuf.Writer;
38085
+
38086
+ /**
38087
+ * Decodes a RecordWorkerHeartbeatRequest message from the specified reader or buffer.
38088
+ * @param reader Reader or buffer to decode from
38089
+ * @param [length] Message length if known beforehand
38090
+ * @returns RecordWorkerHeartbeatRequest
38091
+ * @throws {Error} If the payload is not a reader or valid buffer
38092
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38093
+ */
38094
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest;
38095
+
38096
+ /**
38097
+ * Decodes a RecordWorkerHeartbeatRequest message from the specified reader or buffer, length delimited.
38098
+ * @param reader Reader or buffer to decode from
38099
+ * @returns RecordWorkerHeartbeatRequest
38100
+ * @throws {Error} If the payload is not a reader or valid buffer
38101
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38102
+ */
38103
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest;
38104
+
38105
+ /**
38106
+ * Creates a RecordWorkerHeartbeatRequest message from a plain object. Also converts values to their respective internal types.
38107
+ * @param object Plain object
38108
+ * @returns RecordWorkerHeartbeatRequest
38109
+ */
38110
+ public static fromObject(object: { [k: string]: any }): temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest;
38111
+
38112
+ /**
38113
+ * Creates a plain object from a RecordWorkerHeartbeatRequest message. Also converts values to other types if specified.
38114
+ * @param message RecordWorkerHeartbeatRequest
38115
+ * @param [options] Conversion options
38116
+ * @returns Plain object
38117
+ */
38118
+ public static toObject(message: temporal.api.workflowservice.v1.RecordWorkerHeartbeatRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
38119
+
38120
+ /**
38121
+ * Converts this RecordWorkerHeartbeatRequest to JSON.
38122
+ * @returns JSON object
38123
+ */
38124
+ public toJSON(): { [k: string]: any };
38125
+
38126
+ /**
38127
+ * Gets the default type url for RecordWorkerHeartbeatRequest
38128
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
38129
+ * @returns The default type url
38130
+ */
38131
+ public static getTypeUrl(typeUrlPrefix?: string): string;
38132
+ }
38133
+
38134
+ /** Properties of a RecordWorkerHeartbeatResponse. */
38135
+ interface IRecordWorkerHeartbeatResponse {
38136
+ }
38137
+
38138
+ /** Represents a RecordWorkerHeartbeatResponse. */
38139
+ class RecordWorkerHeartbeatResponse implements IRecordWorkerHeartbeatResponse {
38140
+
38141
+ /**
38142
+ * Constructs a new RecordWorkerHeartbeatResponse.
38143
+ * @param [properties] Properties to set
38144
+ */
38145
+ constructor(properties?: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatResponse);
38146
+
38147
+ /**
38148
+ * Creates a new RecordWorkerHeartbeatResponse instance using the specified properties.
38149
+ * @param [properties] Properties to set
38150
+ * @returns RecordWorkerHeartbeatResponse instance
38151
+ */
38152
+ public static create(properties?: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatResponse): temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse;
38153
+
38154
+ /**
38155
+ * Encodes the specified RecordWorkerHeartbeatResponse message. Does not implicitly {@link temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse.verify|verify} messages.
38156
+ * @param message RecordWorkerHeartbeatResponse message or plain object to encode
38157
+ * @param [writer] Writer to encode to
38158
+ * @returns Writer
38159
+ */
38160
+ public static encode(message: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatResponse, writer?: $protobuf.Writer): $protobuf.Writer;
38161
+
38162
+ /**
38163
+ * Encodes the specified RecordWorkerHeartbeatResponse message, length delimited. Does not implicitly {@link temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse.verify|verify} messages.
38164
+ * @param message RecordWorkerHeartbeatResponse message or plain object to encode
38165
+ * @param [writer] Writer to encode to
38166
+ * @returns Writer
38167
+ */
38168
+ public static encodeDelimited(message: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatResponse, writer?: $protobuf.Writer): $protobuf.Writer;
38169
+
38170
+ /**
38171
+ * Decodes a RecordWorkerHeartbeatResponse message from the specified reader or buffer.
38172
+ * @param reader Reader or buffer to decode from
38173
+ * @param [length] Message length if known beforehand
38174
+ * @returns RecordWorkerHeartbeatResponse
38175
+ * @throws {Error} If the payload is not a reader or valid buffer
38176
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38177
+ */
38178
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse;
38179
+
38180
+ /**
38181
+ * Decodes a RecordWorkerHeartbeatResponse message from the specified reader or buffer, length delimited.
38182
+ * @param reader Reader or buffer to decode from
38183
+ * @returns RecordWorkerHeartbeatResponse
38184
+ * @throws {Error} If the payload is not a reader or valid buffer
38185
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38186
+ */
38187
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse;
38188
+
38189
+ /**
38190
+ * Creates a RecordWorkerHeartbeatResponse message from a plain object. Also converts values to their respective internal types.
38191
+ * @param object Plain object
38192
+ * @returns RecordWorkerHeartbeatResponse
38193
+ */
38194
+ public static fromObject(object: { [k: string]: any }): temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse;
38195
+
38196
+ /**
38197
+ * Creates a plain object from a RecordWorkerHeartbeatResponse message. Also converts values to other types if specified.
38198
+ * @param message RecordWorkerHeartbeatResponse
38199
+ * @param [options] Conversion options
38200
+ * @returns Plain object
38201
+ */
38202
+ public static toObject(message: temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
38203
+
38204
+ /**
38205
+ * Converts this RecordWorkerHeartbeatResponse to JSON.
38206
+ * @returns JSON object
38207
+ */
38208
+ public toJSON(): { [k: string]: any };
38209
+
38210
+ /**
38211
+ * Gets the default type url for RecordWorkerHeartbeatResponse
38212
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
38213
+ * @returns The default type url
38214
+ */
38215
+ public static getTypeUrl(typeUrlPrefix?: string): string;
38216
+ }
38217
+
38218
+ /** Properties of a ListWorkersRequest. */
38219
+ interface IListWorkersRequest {
38220
+
38221
+ /** ListWorkersRequest namespace */
38222
+ namespace?: (string|null);
38223
+
38224
+ /** ListWorkersRequest pageSize */
38225
+ pageSize?: (number|null);
38226
+
38227
+ /** ListWorkersRequest nextPageToken */
38228
+ nextPageToken?: (Uint8Array|null);
38229
+
38230
+ /**
38231
+ * `query` in ListWorkers is used to filter workers based on worker status info.
38232
+ * The following worker status attributes are expected are supported as part of the query:
38233
+ * WorkerInstanceKey
38234
+ * WorkerIdentity
38235
+ * HostName
38236
+ * TaskQueue
38237
+ * DeploymentName
38238
+ * BuildId
38239
+ * SdkName
38240
+ * SdkVersion
38241
+ * StartTime
38242
+ * LastHeartbeatTime
38243
+ * Status
38244
+ * Currently metrics are not supported as a part of ListWorkers query.
38245
+ */
38246
+ query?: (string|null);
38247
+ }
38248
+
38249
+ /** Represents a ListWorkersRequest. */
38250
+ class ListWorkersRequest implements IListWorkersRequest {
38251
+
38252
+ /**
38253
+ * Constructs a new ListWorkersRequest.
38254
+ * @param [properties] Properties to set
38255
+ */
38256
+ constructor(properties?: temporal.api.workflowservice.v1.IListWorkersRequest);
38257
+
38258
+ /** ListWorkersRequest namespace. */
38259
+ public namespace: string;
38260
+
38261
+ /** ListWorkersRequest pageSize. */
38262
+ public pageSize: number;
38263
+
38264
+ /** ListWorkersRequest nextPageToken. */
38265
+ public nextPageToken: Uint8Array;
38266
+
38267
+ /**
38268
+ * `query` in ListWorkers is used to filter workers based on worker status info.
38269
+ * The following worker status attributes are expected are supported as part of the query:
38270
+ * * WorkerInstanceKey
38271
+ * * WorkerIdentity
38272
+ * * HostName
38273
+ * * TaskQueue
38274
+ * * DeploymentName
38275
+ * * BuildId
38276
+ * * SdkName
38277
+ * * SdkVersion
38278
+ * * StartTime
38279
+ * * LastHeartbeatTime
38280
+ * * Status
38281
+ * Currently metrics are not supported as a part of ListWorkers query.
38282
+ */
38283
+ public query: string;
38284
+
38285
+ /**
38286
+ * Creates a new ListWorkersRequest instance using the specified properties.
38287
+ * @param [properties] Properties to set
38288
+ * @returns ListWorkersRequest instance
38289
+ */
38290
+ public static create(properties?: temporal.api.workflowservice.v1.IListWorkersRequest): temporal.api.workflowservice.v1.ListWorkersRequest;
38291
+
38292
+ /**
38293
+ * Encodes the specified ListWorkersRequest message. Does not implicitly {@link temporal.api.workflowservice.v1.ListWorkersRequest.verify|verify} messages.
38294
+ * @param message ListWorkersRequest message or plain object to encode
38295
+ * @param [writer] Writer to encode to
38296
+ * @returns Writer
38297
+ */
38298
+ public static encode(message: temporal.api.workflowservice.v1.IListWorkersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
38299
+
38300
+ /**
38301
+ * Encodes the specified ListWorkersRequest message, length delimited. Does not implicitly {@link temporal.api.workflowservice.v1.ListWorkersRequest.verify|verify} messages.
38302
+ * @param message ListWorkersRequest message or plain object to encode
38303
+ * @param [writer] Writer to encode to
38304
+ * @returns Writer
38305
+ */
38306
+ public static encodeDelimited(message: temporal.api.workflowservice.v1.IListWorkersRequest, writer?: $protobuf.Writer): $protobuf.Writer;
38307
+
38308
+ /**
38309
+ * Decodes a ListWorkersRequest message from the specified reader or buffer.
38310
+ * @param reader Reader or buffer to decode from
38311
+ * @param [length] Message length if known beforehand
38312
+ * @returns ListWorkersRequest
38313
+ * @throws {Error} If the payload is not a reader or valid buffer
38314
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38315
+ */
38316
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.workflowservice.v1.ListWorkersRequest;
38317
+
38318
+ /**
38319
+ * Decodes a ListWorkersRequest message from the specified reader or buffer, length delimited.
38320
+ * @param reader Reader or buffer to decode from
38321
+ * @returns ListWorkersRequest
38322
+ * @throws {Error} If the payload is not a reader or valid buffer
38323
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38324
+ */
38325
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.workflowservice.v1.ListWorkersRequest;
38326
+
38327
+ /**
38328
+ * Creates a ListWorkersRequest message from a plain object. Also converts values to their respective internal types.
38329
+ * @param object Plain object
38330
+ * @returns ListWorkersRequest
38331
+ */
38332
+ public static fromObject(object: { [k: string]: any }): temporal.api.workflowservice.v1.ListWorkersRequest;
38333
+
38334
+ /**
38335
+ * Creates a plain object from a ListWorkersRequest message. Also converts values to other types if specified.
38336
+ * @param message ListWorkersRequest
38337
+ * @param [options] Conversion options
38338
+ * @returns Plain object
38339
+ */
38340
+ public static toObject(message: temporal.api.workflowservice.v1.ListWorkersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
38341
+
38342
+ /**
38343
+ * Converts this ListWorkersRequest to JSON.
38344
+ * @returns JSON object
38345
+ */
38346
+ public toJSON(): { [k: string]: any };
38347
+
38348
+ /**
38349
+ * Gets the default type url for ListWorkersRequest
38350
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
38351
+ * @returns The default type url
38352
+ */
38353
+ public static getTypeUrl(typeUrlPrefix?: string): string;
38354
+ }
38355
+
38356
+ /** Properties of a ListWorkersResponse. */
38357
+ interface IListWorkersResponse {
38358
+
38359
+ /** ListWorkersResponse workersInfo */
38360
+ workersInfo?: (temporal.api.worker.v1.IWorkerInfo[]|null);
38361
+
38362
+ /** Next page token */
38363
+ nextPageToken?: (Uint8Array|null);
38364
+ }
38365
+
38366
+ /** Represents a ListWorkersResponse. */
38367
+ class ListWorkersResponse implements IListWorkersResponse {
38368
+
38369
+ /**
38370
+ * Constructs a new ListWorkersResponse.
38371
+ * @param [properties] Properties to set
38372
+ */
38373
+ constructor(properties?: temporal.api.workflowservice.v1.IListWorkersResponse);
38374
+
38375
+ /** ListWorkersResponse workersInfo. */
38376
+ public workersInfo: temporal.api.worker.v1.IWorkerInfo[];
38377
+
38378
+ /** Next page token */
38379
+ public nextPageToken: Uint8Array;
38380
+
38381
+ /**
38382
+ * Creates a new ListWorkersResponse instance using the specified properties.
38383
+ * @param [properties] Properties to set
38384
+ * @returns ListWorkersResponse instance
38385
+ */
38386
+ public static create(properties?: temporal.api.workflowservice.v1.IListWorkersResponse): temporal.api.workflowservice.v1.ListWorkersResponse;
38387
+
38388
+ /**
38389
+ * Encodes the specified ListWorkersResponse message. Does not implicitly {@link temporal.api.workflowservice.v1.ListWorkersResponse.verify|verify} messages.
38390
+ * @param message ListWorkersResponse message or plain object to encode
38391
+ * @param [writer] Writer to encode to
38392
+ * @returns Writer
38393
+ */
38394
+ public static encode(message: temporal.api.workflowservice.v1.IListWorkersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
38395
+
38396
+ /**
38397
+ * Encodes the specified ListWorkersResponse message, length delimited. Does not implicitly {@link temporal.api.workflowservice.v1.ListWorkersResponse.verify|verify} messages.
38398
+ * @param message ListWorkersResponse message or plain object to encode
38399
+ * @param [writer] Writer to encode to
38400
+ * @returns Writer
38401
+ */
38402
+ public static encodeDelimited(message: temporal.api.workflowservice.v1.IListWorkersResponse, writer?: $protobuf.Writer): $protobuf.Writer;
38403
+
38404
+ /**
38405
+ * Decodes a ListWorkersResponse message from the specified reader or buffer.
38406
+ * @param reader Reader or buffer to decode from
38407
+ * @param [length] Message length if known beforehand
38408
+ * @returns ListWorkersResponse
38409
+ * @throws {Error} If the payload is not a reader or valid buffer
38410
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38411
+ */
38412
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.workflowservice.v1.ListWorkersResponse;
38413
+
38414
+ /**
38415
+ * Decodes a ListWorkersResponse message from the specified reader or buffer, length delimited.
38416
+ * @param reader Reader or buffer to decode from
38417
+ * @returns ListWorkersResponse
38418
+ * @throws {Error} If the payload is not a reader or valid buffer
38419
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
38420
+ */
38421
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.workflowservice.v1.ListWorkersResponse;
38422
+
38423
+ /**
38424
+ * Creates a ListWorkersResponse message from a plain object. Also converts values to their respective internal types.
38425
+ * @param object Plain object
38426
+ * @returns ListWorkersResponse
38427
+ */
38428
+ public static fromObject(object: { [k: string]: any }): temporal.api.workflowservice.v1.ListWorkersResponse;
38429
+
38430
+ /**
38431
+ * Creates a plain object from a ListWorkersResponse message. Also converts values to other types if specified.
38432
+ * @param message ListWorkersResponse
38433
+ * @param [options] Conversion options
38434
+ * @returns Plain object
38435
+ */
38436
+ public static toObject(message: temporal.api.workflowservice.v1.ListWorkersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
38437
+
38438
+ /**
38439
+ * Converts this ListWorkersResponse to JSON.
38440
+ * @returns JSON object
38441
+ */
38442
+ public toJSON(): { [k: string]: any };
38443
+
38444
+ /**
38445
+ * Gets the default type url for ListWorkersResponse
38446
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
38447
+ * @returns The default type url
38448
+ */
38449
+ public static getTypeUrl(typeUrlPrefix?: string): string;
38450
+ }
38451
+
37752
38452
  /**
37753
38453
  * WorkflowService API defines how Temporal SDKs and other clients interact with the Temporal server
37754
38454
  * to create and interact with workflows and activities.
@@ -39664,6 +40364,34 @@ export namespace temporal {
39664
40364
  * @returns Promise
39665
40365
  */
39666
40366
  public triggerWorkflowRule(request: temporal.api.workflowservice.v1.ITriggerWorkflowRuleRequest): Promise<temporal.api.workflowservice.v1.TriggerWorkflowRuleResponse>;
40367
+
40368
+ /**
40369
+ * WorkerHeartbeat receive heartbeat request from the worker.
40370
+ * @param request RecordWorkerHeartbeatRequest message or plain object
40371
+ * @param callback Node-style callback called with the error, if any, and RecordWorkerHeartbeatResponse
40372
+ */
40373
+ public recordWorkerHeartbeat(request: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatRequest, callback: temporal.api.workflowservice.v1.WorkflowService.RecordWorkerHeartbeatCallback): void;
40374
+
40375
+ /**
40376
+ * WorkerHeartbeat receive heartbeat request from the worker.
40377
+ * @param request RecordWorkerHeartbeatRequest message or plain object
40378
+ * @returns Promise
40379
+ */
40380
+ public recordWorkerHeartbeat(request: temporal.api.workflowservice.v1.IRecordWorkerHeartbeatRequest): Promise<temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse>;
40381
+
40382
+ /**
40383
+ * ListWorkers is a visibility API to list worker status information in a specific namespace.
40384
+ * @param request ListWorkersRequest message or plain object
40385
+ * @param callback Node-style callback called with the error, if any, and ListWorkersResponse
40386
+ */
40387
+ public listWorkers(request: temporal.api.workflowservice.v1.IListWorkersRequest, callback: temporal.api.workflowservice.v1.WorkflowService.ListWorkersCallback): void;
40388
+
40389
+ /**
40390
+ * ListWorkers is a visibility API to list worker status information in a specific namespace.
40391
+ * @param request ListWorkersRequest message or plain object
40392
+ * @returns Promise
40393
+ */
40394
+ public listWorkers(request: temporal.api.workflowservice.v1.IListWorkersRequest): Promise<temporal.api.workflowservice.v1.ListWorkersResponse>;
39667
40395
  }
39668
40396
 
39669
40397
  namespace WorkflowService {
@@ -40276,6 +41004,20 @@ export namespace temporal {
40276
41004
  * @param [response] TriggerWorkflowRuleResponse
40277
41005
  */
40278
41006
  type TriggerWorkflowRuleCallback = (error: (Error|null), response?: temporal.api.workflowservice.v1.TriggerWorkflowRuleResponse) => void;
41007
+
41008
+ /**
41009
+ * Callback as used by {@link temporal.api.workflowservice.v1.WorkflowService#recordWorkerHeartbeat}.
41010
+ * @param error Error, if any
41011
+ * @param [response] RecordWorkerHeartbeatResponse
41012
+ */
41013
+ type RecordWorkerHeartbeatCallback = (error: (Error|null), response?: temporal.api.workflowservice.v1.RecordWorkerHeartbeatResponse) => void;
41014
+
41015
+ /**
41016
+ * Callback as used by {@link temporal.api.workflowservice.v1.WorkflowService#listWorkers}.
41017
+ * @param error Error, if any
41018
+ * @param [response] ListWorkersResponse
41019
+ */
41020
+ type ListWorkersCallback = (error: (Error|null), response?: temporal.api.workflowservice.v1.ListWorkersResponse) => void;
40279
41021
  }
40280
41022
  }
40281
41023
  }
@@ -43505,6 +44247,9 @@ export namespace temporal {
43505
44247
  /** Deprecated. Use `deployment_version`. */
43506
44248
  version?: (string|null);
43507
44249
 
44250
+ /** The status of the Worker Deployment Version. */
44251
+ status?: (temporal.api.enums.v1.WorkerDeploymentVersionStatus|null);
44252
+
43508
44253
  /** Required. */
43509
44254
  deploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
43510
44255
 
@@ -43520,24 +44265,33 @@ export namespace temporal {
43520
44265
  /**
43521
44266
  * (-- api-linter: core::0140::prepositions=disabled
43522
44267
  * aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
43523
- * Nil if not current.
44268
+ * Unset if not current.
43524
44269
  */
43525
44270
  currentSinceTime?: (google.protobuf.ITimestamp|null);
43526
44271
 
43527
44272
  /**
43528
44273
  * (-- api-linter: core::0140::prepositions=disabled
43529
44274
  * aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
43530
- * Nil if not ramping. Updated when the version first starts ramping, not on each ramp change.
44275
+ * Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
43531
44276
  */
43532
44277
  rampingSinceTime?: (google.protobuf.ITimestamp|null);
43533
44278
 
44279
+ /** Timestamp when this version first became current or ramping. */
44280
+ firstActivationTime?: (google.protobuf.ITimestamp|null);
44281
+
44282
+ /** Timestamp when this version last stopped being current or ramping. */
44283
+ lastDeactivationTime?: (google.protobuf.ITimestamp|null);
44284
+
43534
44285
  /**
43535
44286
  * Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil).
43536
44287
  * Can be in the range [0, 100] if the version is ramping.
43537
44288
  */
43538
44289
  rampPercentage?: (number|null);
43539
44290
 
43540
- /** All the Task Queues that have ever polled from this Deployment version. */
44291
+ /**
44292
+ * All the Task Queues that have ever polled from this Deployment version.
44293
+ * Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead.
44294
+ */
43541
44295
  taskQueueInfos?: (temporal.api.deployment.v1.WorkerDeploymentVersionInfo.IVersionTaskQueueInfo[]|null);
43542
44296
 
43543
44297
  /**
@@ -43581,6 +44335,9 @@ export namespace temporal {
43581
44335
  /** Deprecated. Use `deployment_version`. */
43582
44336
  public version: string;
43583
44337
 
44338
+ /** The status of the Worker Deployment Version. */
44339
+ public status: temporal.api.enums.v1.WorkerDeploymentVersionStatus;
44340
+
43584
44341
  /** Required. */
43585
44342
  public deploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
43586
44343
 
@@ -43596,24 +44353,33 @@ export namespace temporal {
43596
44353
  /**
43597
44354
  * (-- api-linter: core::0140::prepositions=disabled
43598
44355
  * aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
43599
- * Nil if not current.
44356
+ * Unset if not current.
43600
44357
  */
43601
44358
  public currentSinceTime?: (google.protobuf.ITimestamp|null);
43602
44359
 
43603
44360
  /**
43604
44361
  * (-- api-linter: core::0140::prepositions=disabled
43605
44362
  * aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
43606
- * Nil if not ramping. Updated when the version first starts ramping, not on each ramp change.
44363
+ * Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
43607
44364
  */
43608
44365
  public rampingSinceTime?: (google.protobuf.ITimestamp|null);
43609
44366
 
44367
+ /** Timestamp when this version first became current or ramping. */
44368
+ public firstActivationTime?: (google.protobuf.ITimestamp|null);
44369
+
44370
+ /** Timestamp when this version last stopped being current or ramping. */
44371
+ public lastDeactivationTime?: (google.protobuf.ITimestamp|null);
44372
+
43610
44373
  /**
43611
44374
  * Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil).
43612
44375
  * Can be in the range [0, 100] if the version is ramping.
43613
44376
  */
43614
44377
  public rampPercentage: number;
43615
44378
 
43616
- /** All the Task Queues that have ever polled from this Deployment version. */
44379
+ /**
44380
+ * All the Task Queues that have ever polled from this Deployment version.
44381
+ * Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead.
44382
+ */
43617
44383
  public taskQueueInfos: temporal.api.deployment.v1.WorkerDeploymentVersionInfo.IVersionTaskQueueInfo[];
43618
44384
 
43619
44385
  /**
@@ -44069,14 +44835,46 @@ export namespace temporal {
44069
44835
  /** Deprecated. Use `deployment_version`. */
44070
44836
  version?: (string|null);
44071
44837
 
44838
+ /** The status of the Worker Deployment Version. */
44839
+ status?: (temporal.api.enums.v1.WorkerDeploymentVersionStatus|null);
44840
+
44072
44841
  /** Required. */
44073
44842
  deploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
44074
44843
 
44075
44844
  /** WorkerDeploymentVersionSummary createTime */
44076
44845
  createTime?: (google.protobuf.ITimestamp|null);
44077
44846
 
44078
- /** WorkerDeploymentVersionSummary drainageStatus */
44847
+ /** Deprecated. Use `drainage_info` instead. */
44079
44848
  drainageStatus?: (temporal.api.enums.v1.VersionDrainageStatus|null);
44849
+
44850
+ /**
44851
+ * Information about workflow drainage to help the user determine when it is safe
44852
+ * to decommission a Version. Not present while version is current or ramping
44853
+ */
44854
+ drainageInfo?: (temporal.api.deployment.v1.IVersionDrainageInfo|null);
44855
+
44856
+ /**
44857
+ * Unset if not current.
44858
+ * (-- api-linter: core::0140::prepositions=disabled
44859
+ * aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
44860
+ */
44861
+ currentSinceTime?: (google.protobuf.ITimestamp|null);
44862
+
44863
+ /**
44864
+ * Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
44865
+ * (-- api-linter: core::0140::prepositions=disabled
44866
+ * aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
44867
+ */
44868
+ rampingSinceTime?: (google.protobuf.ITimestamp|null);
44869
+
44870
+ /** Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed. */
44871
+ routingUpdateTime?: (google.protobuf.ITimestamp|null);
44872
+
44873
+ /** Timestamp when this version first became current or ramping. */
44874
+ firstActivationTime?: (google.protobuf.ITimestamp|null);
44875
+
44876
+ /** Timestamp when this version last stopped being current or ramping. */
44877
+ lastDeactivationTime?: (google.protobuf.ITimestamp|null);
44080
44878
  }
44081
44879
 
44082
44880
  /** Represents a WorkerDeploymentVersionSummary. */
@@ -44091,15 +44889,47 @@ export namespace temporal {
44091
44889
  /** Deprecated. Use `deployment_version`. */
44092
44890
  public version: string;
44093
44891
 
44892
+ /** The status of the Worker Deployment Version. */
44893
+ public status: temporal.api.enums.v1.WorkerDeploymentVersionStatus;
44894
+
44094
44895
  /** Required. */
44095
44896
  public deploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
44096
44897
 
44097
44898
  /** WorkerDeploymentVersionSummary createTime. */
44098
44899
  public createTime?: (google.protobuf.ITimestamp|null);
44099
44900
 
44100
- /** WorkerDeploymentVersionSummary drainageStatus. */
44901
+ /** Deprecated. Use `drainage_info` instead. */
44101
44902
  public drainageStatus: temporal.api.enums.v1.VersionDrainageStatus;
44102
44903
 
44904
+ /**
44905
+ * Information about workflow drainage to help the user determine when it is safe
44906
+ * to decommission a Version. Not present while version is current or ramping
44907
+ */
44908
+ public drainageInfo?: (temporal.api.deployment.v1.IVersionDrainageInfo|null);
44909
+
44910
+ /**
44911
+ * Unset if not current.
44912
+ * (-- api-linter: core::0140::prepositions=disabled
44913
+ * aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
44914
+ */
44915
+ public currentSinceTime?: (google.protobuf.ITimestamp|null);
44916
+
44917
+ /**
44918
+ * Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
44919
+ * (-- api-linter: core::0140::prepositions=disabled
44920
+ * aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
44921
+ */
44922
+ public rampingSinceTime?: (google.protobuf.ITimestamp|null);
44923
+
44924
+ /** Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed. */
44925
+ public routingUpdateTime?: (google.protobuf.ITimestamp|null);
44926
+
44927
+ /** Timestamp when this version first became current or ramping. */
44928
+ public firstActivationTime?: (google.protobuf.ITimestamp|null);
44929
+
44930
+ /** Timestamp when this version last stopped being current or ramping. */
44931
+ public lastDeactivationTime?: (google.protobuf.ITimestamp|null);
44932
+
44103
44933
  /**
44104
44934
  * Creates a new WorkerDeploymentVersionSummary instance using the specified properties.
44105
44935
  * @param [properties] Properties to set
@@ -44594,7 +45424,7 @@ export namespace temporal {
44594
45424
  workflowTaskTimeout?: (google.protobuf.IDuration|null);
44595
45425
 
44596
45426
  /**
44597
- * Run id of the previous workflow which continued-as-new or retired or cron executed into this
45427
+ * Run id of the previous workflow which continued-as-new or retried or cron executed into this
44598
45428
  * workflow.
44599
45429
  */
44600
45430
  continuedExecutionRunId?: (string|null);
@@ -44712,18 +45542,12 @@ export namespace temporal {
44712
45542
  */
44713
45543
  inheritedBuildId?: (string|null);
44714
45544
 
44715
- /** Versioning override applied to this workflow when it was started. */
44716
- versioningOverride?: (temporal.api.workflow.v1.IVersioningOverride|null);
44717
-
44718
45545
  /**
44719
- * When present, it means this is a child workflow of a parent that is Pinned to this Worker
44720
- * Deployment Version. In this case, child workflow will start as Pinned to this Version instead
44721
- * of starting on the Current Version of its Task Queue.
44722
- * This is set only if the child workflow is starting on a Task Queue belonging to the same
44723
- * Worker Deployment Version.
44724
- * Deprecated. Use `parent_pinned_deployment_version`.
45546
+ * Versioning override applied to this workflow when it was started.
45547
+ * Children, crons, retries, and continue-as-new will inherit source run's override if pinned
45548
+ * and if the new workflow's Task Queue belongs to the override version.
44725
45549
  */
44726
- parentPinnedWorkerDeploymentVersion?: (string|null);
45550
+ versioningOverride?: (temporal.api.workflow.v1.IVersioningOverride|null);
44727
45551
 
44728
45552
  /**
44729
45553
  * When present, it means this is a child workflow of a parent that is Pinned to this Worker
@@ -44731,11 +45555,30 @@ export namespace temporal {
44731
45555
  * of starting on the Current Version of its Task Queue.
44732
45556
  * This is set only if the child workflow is starting on a Task Queue belonging to the same
44733
45557
  * Worker Deployment Version.
45558
+ * Deprecated. Use `parent_versioning_info`.
44734
45559
  */
44735
- parentPinnedDeploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
45560
+ parentPinnedWorkerDeploymentVersion?: (string|null);
44736
45561
 
44737
45562
  /** Priority metadata */
44738
45563
  priority?: (temporal.api.common.v1.IPriority|null);
45564
+
45565
+ /**
45566
+ * If present, the new workflow should start on this version with pinned base behavior.
45567
+ * Child of pinned parent will inherit the parent's version if the Child's Task Queue belongs to that version.
45568
+ *
45569
+ * New run initiated by workflow ContinueAsNew of pinned run, will inherit the previous run's version if the
45570
+ * new run's Task Queue belongs to that version.
45571
+ *
45572
+ * New run initiated by workflow Cron will never inherit.
45573
+ *
45574
+ * New run initiated by workflow Retry will only inherit if the retried run is effectively pinned at the time
45575
+ * of retry, and the retried run inherited a pinned version when it started (ie. it is a child of a pinned
45576
+ * parent, or a CaN of a pinned run, and is running on a Task Queue in the inherited version).
45577
+ *
45578
+ * Pinned override is inherited if Task Queue of new run is compatible with the override version.
45579
+ * Override is inherited separately and takes precedence over inherited base version.
45580
+ */
45581
+ inheritedPinnedVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
44739
45582
  }
44740
45583
 
44741
45584
  /** Always the first event in workflow history */
@@ -44784,7 +45627,7 @@ export namespace temporal {
44784
45627
  public workflowTaskTimeout?: (google.protobuf.IDuration|null);
44785
45628
 
44786
45629
  /**
44787
- * Run id of the previous workflow which continued-as-new or retired or cron executed into this
45630
+ * Run id of the previous workflow which continued-as-new or retried or cron executed into this
44788
45631
  * workflow.
44789
45632
  */
44790
45633
  public continuedExecutionRunId: string;
@@ -44902,18 +45745,12 @@ export namespace temporal {
44902
45745
  */
44903
45746
  public inheritedBuildId: string;
44904
45747
 
44905
- /** Versioning override applied to this workflow when it was started. */
44906
- public versioningOverride?: (temporal.api.workflow.v1.IVersioningOverride|null);
44907
-
44908
45748
  /**
44909
- * When present, it means this is a child workflow of a parent that is Pinned to this Worker
44910
- * Deployment Version. In this case, child workflow will start as Pinned to this Version instead
44911
- * of starting on the Current Version of its Task Queue.
44912
- * This is set only if the child workflow is starting on a Task Queue belonging to the same
44913
- * Worker Deployment Version.
44914
- * Deprecated. Use `parent_pinned_deployment_version`.
45749
+ * Versioning override applied to this workflow when it was started.
45750
+ * Children, crons, retries, and continue-as-new will inherit source run's override if pinned
45751
+ * and if the new workflow's Task Queue belongs to the override version.
44915
45752
  */
44916
- public parentPinnedWorkerDeploymentVersion: string;
45753
+ public versioningOverride?: (temporal.api.workflow.v1.IVersioningOverride|null);
44917
45754
 
44918
45755
  /**
44919
45756
  * When present, it means this is a child workflow of a parent that is Pinned to this Worker
@@ -44921,12 +45758,31 @@ export namespace temporal {
44921
45758
  * of starting on the Current Version of its Task Queue.
44922
45759
  * This is set only if the child workflow is starting on a Task Queue belonging to the same
44923
45760
  * Worker Deployment Version.
45761
+ * Deprecated. Use `parent_versioning_info`.
44924
45762
  */
44925
- public parentPinnedDeploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
45763
+ public parentPinnedWorkerDeploymentVersion: string;
44926
45764
 
44927
45765
  /** Priority metadata */
44928
45766
  public priority?: (temporal.api.common.v1.IPriority|null);
44929
45767
 
45768
+ /**
45769
+ * If present, the new workflow should start on this version with pinned base behavior.
45770
+ * Child of pinned parent will inherit the parent's version if the Child's Task Queue belongs to that version.
45771
+ *
45772
+ * New run initiated by workflow ContinueAsNew of pinned run, will inherit the previous run's version if the
45773
+ * new run's Task Queue belongs to that version.
45774
+ *
45775
+ * New run initiated by workflow Cron will never inherit.
45776
+ *
45777
+ * New run initiated by workflow Retry will only inherit if the retried run is effectively pinned at the time
45778
+ * of retry, and the retried run inherited a pinned version when it started (ie. it is a child of a pinned
45779
+ * parent, or a CaN of a pinned run, and is running on a Task Queue in the inherited version).
45780
+ *
45781
+ * Pinned override is inherited if Task Queue of new run is compatible with the override version.
45782
+ * Override is inherited separately and takes precedence over inherited base version.
45783
+ */
45784
+ public inheritedPinnedVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
45785
+
44930
45786
  /**
44931
45787
  * Creates a new WorkflowExecutionStartedEventAttributes instance using the specified properties.
44932
45788
  * @param [properties] Properties to set
@@ -45357,6 +46213,7 @@ export namespace temporal {
45357
46213
  /**
45358
46214
  * If this is set, the new execution inherits the Build ID of the current execution. Otherwise,
45359
46215
  * the assignment rules will be used to independently assign a Build ID to the new execution.
46216
+ * Deprecated. Only considered for versioning v0.2.
45360
46217
  */
45361
46218
  inheritBuildId?: (boolean|null);
45362
46219
  }
@@ -45420,6 +46277,7 @@ export namespace temporal {
45420
46277
  /**
45421
46278
  * If this is set, the new execution inherits the Build ID of the current execution. Otherwise,
45422
46279
  * the assignment rules will be used to independently assign a Build ID to the new execution.
46280
+ * Deprecated. Only considered for versioning v0.2.
45423
46281
  */
45424
46282
  public inheritBuildId: boolean;
45425
46283
 
@@ -46112,7 +46970,7 @@ export namespace temporal {
46112
46970
  forkEventVersion?: (Long|null);
46113
46971
 
46114
46972
  /**
46115
- * DEPRECATED since 1.21 - This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
46973
+ * Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
46116
46974
  * If a worker explicitly failed this task, its binary id
46117
46975
  */
46118
46976
  binaryChecksum?: (string|null);
@@ -46160,7 +47018,7 @@ export namespace temporal {
46160
47018
  public forkEventVersion: Long;
46161
47019
 
46162
47020
  /**
46163
- * DEPRECATED since 1.21 - This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
47021
+ * Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
46164
47022
  * If a worker explicitly failed this task, its binary id
46165
47023
  */
46166
47024
  public binaryChecksum: string;
@@ -47862,7 +48720,7 @@ export namespace temporal {
47862
48720
  */
47863
48721
  header?: (temporal.api.common.v1.IHeader|null);
47864
48722
 
47865
- /** This field is deprecated and never respected. It should always be set to false. */
48723
+ /** Deprecated. This field is never respected and should always be set to false. */
47866
48724
  skipGenerateWorkflowTask?: (boolean|null);
47867
48725
 
47868
48726
  /** When signal origin is a workflow execution, this field is set. */
@@ -47893,7 +48751,7 @@ export namespace temporal {
47893
48751
  */
47894
48752
  public header?: (temporal.api.common.v1.IHeader|null);
47895
48753
 
47896
- /** This field is deprecated and never respected. It should always be set to false. */
48754
+ /** Deprecated. This field is never respected and should always be set to false. */
47897
48755
  public skipGenerateWorkflowTask: boolean;
47898
48756
 
47899
48757
  /** When signal origin is a workflow execution, this field is set. */
@@ -48090,7 +48948,7 @@ export namespace temporal {
48090
48948
  /** RequestCancelExternalWorkflowExecutionInitiatedEventAttributes workflowExecution */
48091
48949
  workflowExecution?: (temporal.api.common.v1.IWorkflowExecution|null);
48092
48950
 
48093
- /** Deprecated */
48951
+ /** Deprecated. */
48094
48952
  control?: (string|null);
48095
48953
 
48096
48954
  /**
@@ -48127,7 +48985,7 @@ export namespace temporal {
48127
48985
  /** RequestCancelExternalWorkflowExecutionInitiatedEventAttributes workflowExecution. */
48128
48986
  public workflowExecution?: (temporal.api.common.v1.IWorkflowExecution|null);
48129
48987
 
48130
- /** Deprecated */
48988
+ /** Deprecated. */
48131
48989
  public control: string;
48132
48990
 
48133
48991
  /**
@@ -48237,7 +49095,7 @@ export namespace temporal {
48237
49095
  */
48238
49096
  initiatedEventId?: (Long|null);
48239
49097
 
48240
- /** Deprecated */
49098
+ /** Deprecated. */
48241
49099
  control?: (string|null);
48242
49100
  }
48243
49101
 
@@ -48274,7 +49132,7 @@ export namespace temporal {
48274
49132
  */
48275
49133
  public initiatedEventId: Long;
48276
49134
 
48277
- /** Deprecated */
49135
+ /** Deprecated. */
48278
49136
  public control: string;
48279
49137
 
48280
49138
  /**
@@ -48492,7 +49350,7 @@ export namespace temporal {
48492
49350
  /** Serialized arguments to provide to the signal handler */
48493
49351
  input?: (temporal.api.common.v1.IPayloads|null);
48494
49352
 
48495
- /** Deprecated */
49353
+ /** Deprecated. */
48496
49354
  control?: (string|null);
48497
49355
 
48498
49356
  /**
@@ -48535,7 +49393,7 @@ export namespace temporal {
48535
49393
  /** Serialized arguments to provide to the signal handler */
48536
49394
  public input?: (temporal.api.common.v1.IPayloads|null);
48537
49395
 
48538
- /** Deprecated */
49396
+ /** Deprecated. */
48539
49397
  public control: string;
48540
49398
 
48541
49399
  /**
@@ -48642,7 +49500,7 @@ export namespace temporal {
48642
49500
  /** SignalExternalWorkflowExecutionFailedEventAttributes initiatedEventId */
48643
49501
  initiatedEventId?: (Long|null);
48644
49502
 
48645
- /** Deprecated */
49503
+ /** Deprecated. */
48646
49504
  control?: (string|null);
48647
49505
  }
48648
49506
 
@@ -48676,7 +49534,7 @@ export namespace temporal {
48676
49534
  /** SignalExternalWorkflowExecutionFailedEventAttributes initiatedEventId. */
48677
49535
  public initiatedEventId: Long;
48678
49536
 
48679
- /** Deprecated */
49537
+ /** Deprecated. */
48680
49538
  public control: string;
48681
49539
 
48682
49540
  /**
@@ -48768,7 +49626,7 @@ export namespace temporal {
48768
49626
  /** ExternalWorkflowExecutionSignaledEventAttributes workflowExecution */
48769
49627
  workflowExecution?: (temporal.api.common.v1.IWorkflowExecution|null);
48770
49628
 
48771
- /** Deprecated */
49629
+ /** Deprecated. */
48772
49630
  control?: (string|null);
48773
49631
  }
48774
49632
 
@@ -48796,7 +49654,7 @@ export namespace temporal {
48796
49654
  /** ExternalWorkflowExecutionSignaledEventAttributes workflowExecution. */
48797
49655
  public workflowExecution?: (temporal.api.common.v1.IWorkflowExecution|null);
48798
49656
 
48799
- /** Deprecated */
49657
+ /** Deprecated. */
48800
49658
  public control: string;
48801
49659
 
48802
49660
  /**
@@ -49106,7 +49964,7 @@ export namespace temporal {
49106
49964
  /** Default: PARENT_CLOSE_POLICY_TERMINATE. */
49107
49965
  parentClosePolicy?: (temporal.api.enums.v1.ParentClosePolicy|null);
49108
49966
 
49109
- /** Deprecated */
49967
+ /** Deprecated. */
49110
49968
  control?: (string|null);
49111
49969
 
49112
49970
  /** The `WORKFLOW_TASK_COMPLETED` event which this command was reported with */
@@ -49133,6 +49991,7 @@ export namespace temporal {
49133
49991
  /**
49134
49992
  * If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment
49135
49993
  * rules of the child's Task Queue will be used to independently assign a Build ID to it.
49994
+ * Deprecated. Only considered for versioning v0.2.
49136
49995
  */
49137
49996
  inheritBuildId?: (boolean|null);
49138
49997
 
@@ -49182,7 +50041,7 @@ export namespace temporal {
49182
50041
  /** Default: PARENT_CLOSE_POLICY_TERMINATE. */
49183
50042
  public parentClosePolicy: temporal.api.enums.v1.ParentClosePolicy;
49184
50043
 
49185
- /** Deprecated */
50044
+ /** Deprecated. */
49186
50045
  public control: string;
49187
50046
 
49188
50047
  /** The `WORKFLOW_TASK_COMPLETED` event which this command was reported with */
@@ -49209,6 +50068,7 @@ export namespace temporal {
49209
50068
  /**
49210
50069
  * If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment
49211
50070
  * rules of the child's Task Queue will be used to independently assign a Build ID to it.
50071
+ * Deprecated. Only considered for versioning v0.2.
49212
50072
  */
49213
50073
  public inheritBuildId: boolean;
49214
50074
 
@@ -49307,7 +50167,7 @@ export namespace temporal {
49307
50167
  /** StartChildWorkflowExecutionFailedEventAttributes cause */
49308
50168
  cause?: (temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause|null);
49309
50169
 
49310
- /** Deprecated */
50170
+ /** Deprecated. */
49311
50171
  control?: (string|null);
49312
50172
 
49313
50173
  /** Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to */
@@ -49344,7 +50204,7 @@ export namespace temporal {
49344
50204
  /** StartChildWorkflowExecutionFailedEventAttributes cause. */
49345
50205
  public cause: temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause;
49346
50206
 
49347
- /** Deprecated */
50207
+ /** Deprecated. */
49348
50208
  public control: string;
49349
50209
 
49350
50210
  /** Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to */
@@ -53130,7 +53990,7 @@ export namespace temporal {
53130
53990
  * behaviors.
53131
53991
  * This field is first set after an execution completes its first workflow task on a versioned
53132
53992
  * worker, and set again on completion of every subsequent workflow task.
53133
- * For child workflows of Pinned parents, this will be set to Pinned (along with `version`) when
53993
+ * For child workflows of Pinned parents, this will be set to Pinned (along with `deployment_version`) when
53134
53994
  * the the child starts so that child's first workflow task goes to the same Version as the
53135
53995
  * parent. After the first workflow task, it depends on the child workflow itself if it wants
53136
53996
  * to stay pinned or become unpinned (according to Versioning Behavior set in the worker).
@@ -53170,7 +54030,8 @@ export namespace temporal {
53170
54030
  * precedence over SDK-sent `behavior` (and `version` when override is PINNED). An
53171
54031
  * override can be set when starting a new execution, as well as afterwards by calling the
53172
54032
  * `UpdateWorkflowExecutionOptions` API.
53173
- * Pinned overrides are automatically inherited by child workflows.
54033
+ * Pinned overrides are automatically inherited by child workflows, continue-as-new workflows,
54034
+ * workflow retries, and cron workflows.
53174
54035
  */
53175
54036
  versioningOverride?: (temporal.api.workflow.v1.IVersioningOverride|null);
53176
54037
 
@@ -53211,7 +54072,7 @@ export namespace temporal {
53211
54072
  * start a transition to that version and continue execution there.
53212
54073
  * A version transition can only exist while there is a pending or started workflow task.
53213
54074
  * Once the pending workflow task completes on the transition's target version, the
53214
- * transition completes and the workflow's `behavior`, and `version` fields are updated per the
54075
+ * transition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the
53215
54076
  * worker's task completion response.
53216
54077
  * Pending activities will not start new attempts during a transition. Once the transition is
53217
54078
  * completed, pending activities will start their next attempt on the new version.
@@ -53238,7 +54099,7 @@ export namespace temporal {
53238
54099
  * behaviors.
53239
54100
  * This field is first set after an execution completes its first workflow task on a versioned
53240
54101
  * worker, and set again on completion of every subsequent workflow task.
53241
- * For child workflows of Pinned parents, this will be set to Pinned (along with `version`) when
54102
+ * For child workflows of Pinned parents, this will be set to Pinned (along with `deployment_version`) when
53242
54103
  * the the child starts so that child's first workflow task goes to the same Version as the
53243
54104
  * parent. After the first workflow task, it depends on the child workflow itself if it wants
53244
54105
  * to stay pinned or become unpinned (according to Versioning Behavior set in the worker).
@@ -53278,7 +54139,8 @@ export namespace temporal {
53278
54139
  * precedence over SDK-sent `behavior` (and `version` when override is PINNED). An
53279
54140
  * override can be set when starting a new execution, as well as afterwards by calling the
53280
54141
  * `UpdateWorkflowExecutionOptions` API.
53281
- * Pinned overrides are automatically inherited by child workflows.
54142
+ * Pinned overrides are automatically inherited by child workflows, continue-as-new workflows,
54143
+ * workflow retries, and cron workflows.
53282
54144
  */
53283
54145
  public versioningOverride?: (temporal.api.workflow.v1.IVersioningOverride|null);
53284
54146
 
@@ -53319,7 +54181,7 @@ export namespace temporal {
53319
54181
  * start a transition to that version and continue execution there.
53320
54182
  * A version transition can only exist while there is a pending or started workflow task.
53321
54183
  * Once the pending workflow task completes on the transition's target version, the
53322
- * transition completes and the workflow's `behavior`, and `version` fields are updated per the
54184
+ * transition completes and the workflow's `behavior`, and `deployment_version` fields are updated per the
53323
54185
  * worker's task completion response.
53324
54186
  * Pending activities will not start new attempts during a transition. Once the transition is
53325
54187
  * completed, pending activities will start their next attempt on the new version.
@@ -53755,11 +54617,11 @@ export namespace temporal {
53755
54617
  /** PendingActivityInfo lastWorkerIdentity */
53756
54618
  lastWorkerIdentity?: (string|null);
53757
54619
 
53758
- /** When present, it means this activity is assigned to the build ID of its workflow. */
54620
+ /** Deprecated. When present, it means this activity is assigned to the build ID of its workflow. */
53759
54621
  useWorkflowBuildId?: (google.protobuf.IEmpty|null);
53760
54622
 
53761
54623
  /**
53762
- * This means the activity is independently versioned and not bound to the build ID of its workflow.
54624
+ * Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow.
53763
54625
  * The activity will use the build id in this field instead.
53764
54626
  * If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
53765
54627
  * rules.
@@ -53767,8 +54629,8 @@ export namespace temporal {
53767
54629
  lastIndependentlyAssignedBuildId?: (string|null);
53768
54630
 
53769
54631
  /**
53770
- * The version stamp of the worker to whom this activity was most recently dispatched
53771
- * Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
54632
+ * Deprecated. The version stamp of the worker to whom this activity was most recently dispatched
54633
+ * This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
53772
54634
  */
53773
54635
  lastWorkerVersionStamp?: (temporal.api.common.v1.IWorkerVersionStamp|null);
53774
54636
 
@@ -53866,11 +54728,11 @@ export namespace temporal {
53866
54728
  /** PendingActivityInfo lastWorkerIdentity. */
53867
54729
  public lastWorkerIdentity: string;
53868
54730
 
53869
- /** When present, it means this activity is assigned to the build ID of its workflow. */
54731
+ /** Deprecated. When present, it means this activity is assigned to the build ID of its workflow. */
53870
54732
  public useWorkflowBuildId?: (google.protobuf.IEmpty|null);
53871
54733
 
53872
54734
  /**
53873
- * This means the activity is independently versioned and not bound to the build ID of its workflow.
54735
+ * Deprecated. This means the activity is independently versioned and not bound to the build ID of its workflow.
53874
54736
  * The activity will use the build id in this field instead.
53875
54737
  * If the task fails and is scheduled again, the assigned build ID may change according to the latest versioning
53876
54738
  * rules.
@@ -53878,8 +54740,8 @@ export namespace temporal {
53878
54740
  public lastIndependentlyAssignedBuildId?: (string|null);
53879
54741
 
53880
54742
  /**
53881
- * The version stamp of the worker to whom this activity was most recently dispatched
53882
- * Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
54743
+ * Deprecated. The version stamp of the worker to whom this activity was most recently dispatched
54744
+ * This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv]
53883
54745
  */
53884
54746
  public lastWorkerVersionStamp?: (temporal.api.common.v1.IWorkerVersionStamp|null);
53885
54747
 
@@ -54653,7 +55515,7 @@ export namespace temporal {
54653
55515
  /** Worker build id. */
54654
55516
  buildId?: (string|null);
54655
55517
 
54656
- /** A worker binary version identifier (deprecated). */
55518
+ /** Deprecated. A worker binary version identifier. */
54657
55519
  binaryChecksum?: (string|null);
54658
55520
 
54659
55521
  /** The first run ID in the execution chain that was touched by this worker build. */
@@ -54692,7 +55554,7 @@ export namespace temporal {
54692
55554
  /** Worker build id. */
54693
55555
  public buildId: string;
54694
55556
 
54695
- /** A worker binary version identifier (deprecated). */
55557
+ /** Deprecated. A worker binary version identifier. */
54696
55558
  public binaryChecksum: string;
54697
55559
 
54698
55560
  /** The first run ID in the execution chain that was touched by this worker build. */
@@ -55324,7 +56186,7 @@ export namespace temporal {
55324
56186
  /**
55325
56187
  * Operation ID. Only set for asynchronous operations after a successful StartOperation call.
55326
56188
  *
55327
- * Deprecated: Renamed to operation_token.
56189
+ * Deprecated. Renamed to operation_token.
55328
56190
  */
55329
56191
  operationId?: (string|null);
55330
56192
 
@@ -55397,7 +56259,7 @@ export namespace temporal {
55397
56259
  /**
55398
56260
  * Operation ID. Only set for asynchronous operations after a successful StartOperation call.
55399
56261
  *
55400
- * Deprecated: Renamed to operation_token.
56262
+ * Deprecated. Renamed to operation_token.
55401
56263
  */
55402
56264
  public operationId: string;
55403
56265
 
@@ -55778,6 +56640,8 @@ export namespace temporal {
55778
56640
  * `WorkflowExecutionInfo.VersioningInfo` for more information. To remove the override, call
55779
56641
  * `UpdateWorkflowExecutionOptions` with a null `VersioningOverride`, and use the `update_mask`
55780
56642
  * to indicate that it should be mutated.
56643
+ * Pinned overrides are automatically inherited by child workflows, continue-as-new workflows,
56644
+ * workflow retries, and cron workflows.
55781
56645
  */
55782
56646
  class VersioningOverride implements IVersioningOverride {
55783
56647
 
@@ -58601,6 +59465,7 @@ export namespace temporal {
58601
59465
  /**
58602
59466
  * If this is set, the new execution inherits the Build ID of the current execution. Otherwise,
58603
59467
  * the assignment rules will be used to independently assign a Build ID to the new execution.
59468
+ * Deprecated. Only considered for versioning v0.2.
58604
59469
  */
58605
59470
  inheritBuildId?: (boolean|null);
58606
59471
  }
@@ -58659,6 +59524,7 @@ export namespace temporal {
58659
59524
  /**
58660
59525
  * If this is set, the new execution inherits the Build ID of the current execution. Otherwise,
58661
59526
  * the assignment rules will be used to independently assign a Build ID to the new execution.
59527
+ * Deprecated. Only considered for versioning v0.2.
58662
59528
  */
58663
59529
  public inheritBuildId: boolean;
58664
59530
 
@@ -58787,6 +59653,7 @@ export namespace temporal {
58787
59653
  /**
58788
59654
  * If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment
58789
59655
  * rules of the child's Task Queue will be used to independently assign a Build ID to it.
59656
+ * Deprecated. Only considered for versioning v0.2.
58790
59657
  */
58791
59658
  inheritBuildId?: (boolean|null);
58792
59659
 
@@ -58857,6 +59724,7 @@ export namespace temporal {
58857
59724
  /**
58858
59725
  * If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment
58859
59726
  * rules of the child's Task Queue will be used to independently assign a Build ID to it.
59727
+ * Deprecated. Only considered for versioning v0.2.
58860
59728
  */
58861
59729
  public inheritBuildId: boolean;
58862
59730
 
@@ -62598,7 +63466,10 @@ export namespace temporal {
62598
63466
  /** Interval-based specifications of times. */
62599
63467
  interval?: (temporal.api.schedule.v1.IIntervalSpec[]|null);
62600
63468
 
62601
- /** Any timestamps matching any of exclude_* will be skipped. */
63469
+ /**
63470
+ * Any timestamps matching any of exclude_* will be skipped.
63471
+ * Deprecated. Use exclude_structured_calendar.
63472
+ */
62602
63473
  excludeCalendar?: (temporal.api.schedule.v1.ICalendarSpec[]|null);
62603
63474
 
62604
63475
  /** ScheduleSpec excludeStructuredCalendar */
@@ -62710,7 +63581,10 @@ export namespace temporal {
62710
63581
  /** Interval-based specifications of times. */
62711
63582
  public interval: temporal.api.schedule.v1.IIntervalSpec[];
62712
63583
 
62713
- /** Any timestamps matching any of exclude_* will be skipped. */
63584
+ /**
63585
+ * Any timestamps matching any of exclude_* will be skipped.
63586
+ * Deprecated. Use exclude_structured_calendar.
63587
+ */
62714
63588
  public excludeCalendar: temporal.api.schedule.v1.ICalendarSpec[];
62715
63589
 
62716
63590
  /** ScheduleSpec excludeStructuredCalendar. */
@@ -63331,6 +64205,12 @@ export namespace temporal {
63331
64205
 
63332
64206
  /** If set, override overlap policy for this one request. */
63333
64207
  overlapPolicy?: (temporal.api.enums.v1.ScheduleOverlapPolicy|null);
64208
+
64209
+ /**
64210
+ * Timestamp used for the identity of the target workflow.
64211
+ * If not set the default value is the current time.
64212
+ */
64213
+ scheduledTime?: (google.protobuf.ITimestamp|null);
63334
64214
  }
63335
64215
 
63336
64216
  /** Represents a TriggerImmediatelyRequest. */
@@ -63345,6 +64225,12 @@ export namespace temporal {
63345
64225
  /** If set, override overlap policy for this one request. */
63346
64226
  public overlapPolicy: temporal.api.enums.v1.ScheduleOverlapPolicy;
63347
64227
 
64228
+ /**
64229
+ * Timestamp used for the identity of the target workflow.
64230
+ * If not set the default value is the current time.
64231
+ */
64232
+ public scheduledTime?: (google.protobuf.ITimestamp|null);
64233
+
63348
64234
  /**
63349
64235
  * Creates a new TriggerImmediatelyRequest instance using the specified properties.
63350
64236
  * @param [properties] Properties to set
@@ -63697,7 +64583,7 @@ export namespace temporal {
63697
64583
  /** ScheduleInfo updateTime */
63698
64584
  updateTime?: (google.protobuf.ITimestamp|null);
63699
64585
 
63700
- /** ScheduleInfo invalidScheduleError */
64586
+ /** Deprecated. */
63701
64587
  invalidScheduleError?: (string|null);
63702
64588
  }
63703
64589
 
@@ -63750,7 +64636,7 @@ export namespace temporal {
63750
64636
  /** ScheduleInfo updateTime. */
63751
64637
  public updateTime?: (google.protobuf.ITimestamp|null);
63752
64638
 
63753
- /** ScheduleInfo invalidScheduleError. */
64639
+ /** Deprecated. */
63754
64640
  public invalidScheduleError: string;
63755
64641
 
63756
64642
  /**
@@ -65026,10 +65912,10 @@ export namespace temporal {
65026
65912
  /** Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored. */
65027
65913
  options?: (temporal.api.common.v1.IResetOptions|null);
65028
65914
 
65029
- /** Reset type (deprecated, use `options`). */
65915
+ /** Deprecated. Use `options`. */
65030
65916
  resetType?: (temporal.api.enums.v1.ResetType|null);
65031
65917
 
65032
- /** History event reapply options (deprecated, use `options`). */
65918
+ /** Deprecated. Use `options`. */
65033
65919
  resetReapplyType?: (temporal.api.enums.v1.ResetReapplyType|null);
65034
65920
 
65035
65921
  /**
@@ -65058,10 +65944,10 @@ export namespace temporal {
65058
65944
  /** Describes what to reset to and how. If set, `reset_type` and `reset_reapply_type` are ignored. */
65059
65945
  public options?: (temporal.api.common.v1.IResetOptions|null);
65060
65946
 
65061
- /** Reset type (deprecated, use `options`). */
65947
+ /** Deprecated. Use `options`. */
65062
65948
  public resetType: temporal.api.enums.v1.ResetType;
65063
65949
 
65064
- /** History event reapply options (deprecated, use `options`). */
65950
+ /** Deprecated. Use `options`. */
65065
65951
  public resetReapplyType: temporal.api.enums.v1.ResetReapplyType;
65066
65952
 
65067
65953
  /**
@@ -65489,6 +66375,747 @@ export namespace temporal {
65489
66375
  }
65490
66376
  }
65491
66377
 
66378
+ /** Namespace worker. */
66379
+ namespace worker {
66380
+
66381
+ /** Namespace v1. */
66382
+ namespace v1 {
66383
+
66384
+ /** Properties of a WorkerPollerInfo. */
66385
+ interface IWorkerPollerInfo {
66386
+
66387
+ /** Number of polling RPCs that are currently in flight. */
66388
+ currentPollers?: (number|null);
66389
+
66390
+ /** WorkerPollerInfo lastSuccessfulPollTime */
66391
+ lastSuccessfulPollTime?: (google.protobuf.ITimestamp|null);
66392
+
66393
+ /** Set true if the number of concurrent pollers is auto-scaled */
66394
+ isAutoscaling?: (boolean|null);
66395
+ }
66396
+
66397
+ /** Represents a WorkerPollerInfo. */
66398
+ class WorkerPollerInfo implements IWorkerPollerInfo {
66399
+
66400
+ /**
66401
+ * Constructs a new WorkerPollerInfo.
66402
+ * @param [properties] Properties to set
66403
+ */
66404
+ constructor(properties?: temporal.api.worker.v1.IWorkerPollerInfo);
66405
+
66406
+ /** Number of polling RPCs that are currently in flight. */
66407
+ public currentPollers: number;
66408
+
66409
+ /** WorkerPollerInfo lastSuccessfulPollTime. */
66410
+ public lastSuccessfulPollTime?: (google.protobuf.ITimestamp|null);
66411
+
66412
+ /** Set true if the number of concurrent pollers is auto-scaled */
66413
+ public isAutoscaling: boolean;
66414
+
66415
+ /**
66416
+ * Creates a new WorkerPollerInfo instance using the specified properties.
66417
+ * @param [properties] Properties to set
66418
+ * @returns WorkerPollerInfo instance
66419
+ */
66420
+ public static create(properties?: temporal.api.worker.v1.IWorkerPollerInfo): temporal.api.worker.v1.WorkerPollerInfo;
66421
+
66422
+ /**
66423
+ * Encodes the specified WorkerPollerInfo message. Does not implicitly {@link temporal.api.worker.v1.WorkerPollerInfo.verify|verify} messages.
66424
+ * @param message WorkerPollerInfo message or plain object to encode
66425
+ * @param [writer] Writer to encode to
66426
+ * @returns Writer
66427
+ */
66428
+ public static encode(message: temporal.api.worker.v1.IWorkerPollerInfo, writer?: $protobuf.Writer): $protobuf.Writer;
66429
+
66430
+ /**
66431
+ * Encodes the specified WorkerPollerInfo message, length delimited. Does not implicitly {@link temporal.api.worker.v1.WorkerPollerInfo.verify|verify} messages.
66432
+ * @param message WorkerPollerInfo message or plain object to encode
66433
+ * @param [writer] Writer to encode to
66434
+ * @returns Writer
66435
+ */
66436
+ public static encodeDelimited(message: temporal.api.worker.v1.IWorkerPollerInfo, writer?: $protobuf.Writer): $protobuf.Writer;
66437
+
66438
+ /**
66439
+ * Decodes a WorkerPollerInfo message from the specified reader or buffer.
66440
+ * @param reader Reader or buffer to decode from
66441
+ * @param [length] Message length if known beforehand
66442
+ * @returns WorkerPollerInfo
66443
+ * @throws {Error} If the payload is not a reader or valid buffer
66444
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66445
+ */
66446
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.worker.v1.WorkerPollerInfo;
66447
+
66448
+ /**
66449
+ * Decodes a WorkerPollerInfo message from the specified reader or buffer, length delimited.
66450
+ * @param reader Reader or buffer to decode from
66451
+ * @returns WorkerPollerInfo
66452
+ * @throws {Error} If the payload is not a reader or valid buffer
66453
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66454
+ */
66455
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.worker.v1.WorkerPollerInfo;
66456
+
66457
+ /**
66458
+ * Creates a WorkerPollerInfo message from a plain object. Also converts values to their respective internal types.
66459
+ * @param object Plain object
66460
+ * @returns WorkerPollerInfo
66461
+ */
66462
+ public static fromObject(object: { [k: string]: any }): temporal.api.worker.v1.WorkerPollerInfo;
66463
+
66464
+ /**
66465
+ * Creates a plain object from a WorkerPollerInfo message. Also converts values to other types if specified.
66466
+ * @param message WorkerPollerInfo
66467
+ * @param [options] Conversion options
66468
+ * @returns Plain object
66469
+ */
66470
+ public static toObject(message: temporal.api.worker.v1.WorkerPollerInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
66471
+
66472
+ /**
66473
+ * Converts this WorkerPollerInfo to JSON.
66474
+ * @returns JSON object
66475
+ */
66476
+ public toJSON(): { [k: string]: any };
66477
+
66478
+ /**
66479
+ * Gets the default type url for WorkerPollerInfo
66480
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
66481
+ * @returns The default type url
66482
+ */
66483
+ public static getTypeUrl(typeUrlPrefix?: string): string;
66484
+ }
66485
+
66486
+ /** Properties of a WorkerSlotsInfo. */
66487
+ interface IWorkerSlotsInfo {
66488
+
66489
+ /**
66490
+ * Number of slots available for the worker to specific tasks.
66491
+ * May be -1 if the upper bound is not known.
66492
+ */
66493
+ currentAvailableSlots?: (number|null);
66494
+
66495
+ /** Number of slots used by the worker for specific tasks. */
66496
+ currentUsedSlots?: (number|null);
66497
+
66498
+ /**
66499
+ * Kind of the slot supplier, which is used to determine how the slots are allocated.
66500
+ * Possible values: "Fixed | ResourceBased | Custom String"
66501
+ */
66502
+ slotSupplierKind?: (string|null);
66503
+
66504
+ /**
66505
+ * Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
66506
+ * by the worker since the worker started. This is a cumulative counter.
66507
+ */
66508
+ totalProcessedTasks?: (number|null);
66509
+
66510
+ /** Total number of failed tasks processed by the worker so far. */
66511
+ totalFailedTasks?: (number|null);
66512
+
66513
+ /**
66514
+ * Number of tasks processed in since the last heartbeat from the worker.
66515
+ * This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
66516
+ * Contains both successful and failed tasks.
66517
+ */
66518
+ lastIntervalProcessedTasks?: (number|null);
66519
+
66520
+ /** Number of failed tasks processed since the last heartbeat from the worker. */
66521
+ lastIntervalFailureTasks?: (number|null);
66522
+ }
66523
+
66524
+ /** Represents a WorkerSlotsInfo. */
66525
+ class WorkerSlotsInfo implements IWorkerSlotsInfo {
66526
+
66527
+ /**
66528
+ * Constructs a new WorkerSlotsInfo.
66529
+ * @param [properties] Properties to set
66530
+ */
66531
+ constructor(properties?: temporal.api.worker.v1.IWorkerSlotsInfo);
66532
+
66533
+ /**
66534
+ * Number of slots available for the worker to specific tasks.
66535
+ * May be -1 if the upper bound is not known.
66536
+ */
66537
+ public currentAvailableSlots: number;
66538
+
66539
+ /** Number of slots used by the worker for specific tasks. */
66540
+ public currentUsedSlots: number;
66541
+
66542
+ /**
66543
+ * Kind of the slot supplier, which is used to determine how the slots are allocated.
66544
+ * Possible values: "Fixed | ResourceBased | Custom String"
66545
+ */
66546
+ public slotSupplierKind: string;
66547
+
66548
+ /**
66549
+ * Total number of tasks processed (completed both successfully and unsuccesfully, or any other way)
66550
+ * by the worker since the worker started. This is a cumulative counter.
66551
+ */
66552
+ public totalProcessedTasks: number;
66553
+
66554
+ /** Total number of failed tasks processed by the worker so far. */
66555
+ public totalFailedTasks: number;
66556
+
66557
+ /**
66558
+ * Number of tasks processed in since the last heartbeat from the worker.
66559
+ * This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat.
66560
+ * Contains both successful and failed tasks.
66561
+ */
66562
+ public lastIntervalProcessedTasks: number;
66563
+
66564
+ /** Number of failed tasks processed since the last heartbeat from the worker. */
66565
+ public lastIntervalFailureTasks: number;
66566
+
66567
+ /**
66568
+ * Creates a new WorkerSlotsInfo instance using the specified properties.
66569
+ * @param [properties] Properties to set
66570
+ * @returns WorkerSlotsInfo instance
66571
+ */
66572
+ public static create(properties?: temporal.api.worker.v1.IWorkerSlotsInfo): temporal.api.worker.v1.WorkerSlotsInfo;
66573
+
66574
+ /**
66575
+ * Encodes the specified WorkerSlotsInfo message. Does not implicitly {@link temporal.api.worker.v1.WorkerSlotsInfo.verify|verify} messages.
66576
+ * @param message WorkerSlotsInfo message or plain object to encode
66577
+ * @param [writer] Writer to encode to
66578
+ * @returns Writer
66579
+ */
66580
+ public static encode(message: temporal.api.worker.v1.IWorkerSlotsInfo, writer?: $protobuf.Writer): $protobuf.Writer;
66581
+
66582
+ /**
66583
+ * Encodes the specified WorkerSlotsInfo message, length delimited. Does not implicitly {@link temporal.api.worker.v1.WorkerSlotsInfo.verify|verify} messages.
66584
+ * @param message WorkerSlotsInfo message or plain object to encode
66585
+ * @param [writer] Writer to encode to
66586
+ * @returns Writer
66587
+ */
66588
+ public static encodeDelimited(message: temporal.api.worker.v1.IWorkerSlotsInfo, writer?: $protobuf.Writer): $protobuf.Writer;
66589
+
66590
+ /**
66591
+ * Decodes a WorkerSlotsInfo message from the specified reader or buffer.
66592
+ * @param reader Reader or buffer to decode from
66593
+ * @param [length] Message length if known beforehand
66594
+ * @returns WorkerSlotsInfo
66595
+ * @throws {Error} If the payload is not a reader or valid buffer
66596
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66597
+ */
66598
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.worker.v1.WorkerSlotsInfo;
66599
+
66600
+ /**
66601
+ * Decodes a WorkerSlotsInfo message from the specified reader or buffer, length delimited.
66602
+ * @param reader Reader or buffer to decode from
66603
+ * @returns WorkerSlotsInfo
66604
+ * @throws {Error} If the payload is not a reader or valid buffer
66605
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66606
+ */
66607
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.worker.v1.WorkerSlotsInfo;
66608
+
66609
+ /**
66610
+ * Creates a WorkerSlotsInfo message from a plain object. Also converts values to their respective internal types.
66611
+ * @param object Plain object
66612
+ * @returns WorkerSlotsInfo
66613
+ */
66614
+ public static fromObject(object: { [k: string]: any }): temporal.api.worker.v1.WorkerSlotsInfo;
66615
+
66616
+ /**
66617
+ * Creates a plain object from a WorkerSlotsInfo message. Also converts values to other types if specified.
66618
+ * @param message WorkerSlotsInfo
66619
+ * @param [options] Conversion options
66620
+ * @returns Plain object
66621
+ */
66622
+ public static toObject(message: temporal.api.worker.v1.WorkerSlotsInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
66623
+
66624
+ /**
66625
+ * Converts this WorkerSlotsInfo to JSON.
66626
+ * @returns JSON object
66627
+ */
66628
+ public toJSON(): { [k: string]: any };
66629
+
66630
+ /**
66631
+ * Gets the default type url for WorkerSlotsInfo
66632
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
66633
+ * @returns The default type url
66634
+ */
66635
+ public static getTypeUrl(typeUrlPrefix?: string): string;
66636
+ }
66637
+
66638
+ /** Properties of a WorkerHostInfo. */
66639
+ interface IWorkerHostInfo {
66640
+
66641
+ /** Worker host identifier. */
66642
+ hostName?: (string|null);
66643
+
66644
+ /**
66645
+ * Worker process identifier. This id should be unique for all _processes_
66646
+ * running workers in the namespace, and should be shared by all workers
66647
+ * in the same process.
66648
+ * This will be used to build the worker command nexus task queue name:
66649
+ * "temporal-sys/worker-commands/{process_key}"
66650
+ */
66651
+ processKey?: (string|null);
66652
+
66653
+ /**
66654
+ * Worker process identifier. Unlike process_key, this id only needs to be unique
66655
+ * within one host (so using e.g. a unix pid would be appropriate).
66656
+ */
66657
+ processId?: (string|null);
66658
+
66659
+ /**
66660
+ * System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
66661
+ * cores on the host pegged.
66662
+ */
66663
+ currentHostCpuUsage?: (number|null);
66664
+
66665
+ /**
66666
+ * System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
66667
+ * all available memory on the host is used.
66668
+ */
66669
+ currentHostMemUsage?: (number|null);
66670
+ }
66671
+
66672
+ /** Holds everything needed to identify the worker host/process context */
66673
+ class WorkerHostInfo implements IWorkerHostInfo {
66674
+
66675
+ /**
66676
+ * Constructs a new WorkerHostInfo.
66677
+ * @param [properties] Properties to set
66678
+ */
66679
+ constructor(properties?: temporal.api.worker.v1.IWorkerHostInfo);
66680
+
66681
+ /** Worker host identifier. */
66682
+ public hostName: string;
66683
+
66684
+ /**
66685
+ * Worker process identifier. This id should be unique for all _processes_
66686
+ * running workers in the namespace, and should be shared by all workers
66687
+ * in the same process.
66688
+ * This will be used to build the worker command nexus task queue name:
66689
+ * "temporal-sys/worker-commands/{process_key}"
66690
+ */
66691
+ public processKey: string;
66692
+
66693
+ /**
66694
+ * Worker process identifier. Unlike process_key, this id only needs to be unique
66695
+ * within one host (so using e.g. a unix pid would be appropriate).
66696
+ */
66697
+ public processId: string;
66698
+
66699
+ /**
66700
+ * System used CPU as a float in the range [0.0, 1.0] where 1.0 is defined as all
66701
+ * cores on the host pegged.
66702
+ */
66703
+ public currentHostCpuUsage: number;
66704
+
66705
+ /**
66706
+ * System used memory as a float in the range [0.0, 1.0] where 1.0 is defined as
66707
+ * all available memory on the host is used.
66708
+ */
66709
+ public currentHostMemUsage: number;
66710
+
66711
+ /**
66712
+ * Creates a new WorkerHostInfo instance using the specified properties.
66713
+ * @param [properties] Properties to set
66714
+ * @returns WorkerHostInfo instance
66715
+ */
66716
+ public static create(properties?: temporal.api.worker.v1.IWorkerHostInfo): temporal.api.worker.v1.WorkerHostInfo;
66717
+
66718
+ /**
66719
+ * Encodes the specified WorkerHostInfo message. Does not implicitly {@link temporal.api.worker.v1.WorkerHostInfo.verify|verify} messages.
66720
+ * @param message WorkerHostInfo message or plain object to encode
66721
+ * @param [writer] Writer to encode to
66722
+ * @returns Writer
66723
+ */
66724
+ public static encode(message: temporal.api.worker.v1.IWorkerHostInfo, writer?: $protobuf.Writer): $protobuf.Writer;
66725
+
66726
+ /**
66727
+ * Encodes the specified WorkerHostInfo message, length delimited. Does not implicitly {@link temporal.api.worker.v1.WorkerHostInfo.verify|verify} messages.
66728
+ * @param message WorkerHostInfo message or plain object to encode
66729
+ * @param [writer] Writer to encode to
66730
+ * @returns Writer
66731
+ */
66732
+ public static encodeDelimited(message: temporal.api.worker.v1.IWorkerHostInfo, writer?: $protobuf.Writer): $protobuf.Writer;
66733
+
66734
+ /**
66735
+ * Decodes a WorkerHostInfo message from the specified reader or buffer.
66736
+ * @param reader Reader or buffer to decode from
66737
+ * @param [length] Message length if known beforehand
66738
+ * @returns WorkerHostInfo
66739
+ * @throws {Error} If the payload is not a reader or valid buffer
66740
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66741
+ */
66742
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.worker.v1.WorkerHostInfo;
66743
+
66744
+ /**
66745
+ * Decodes a WorkerHostInfo message from the specified reader or buffer, length delimited.
66746
+ * @param reader Reader or buffer to decode from
66747
+ * @returns WorkerHostInfo
66748
+ * @throws {Error} If the payload is not a reader or valid buffer
66749
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66750
+ */
66751
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.worker.v1.WorkerHostInfo;
66752
+
66753
+ /**
66754
+ * Creates a WorkerHostInfo message from a plain object. Also converts values to their respective internal types.
66755
+ * @param object Plain object
66756
+ * @returns WorkerHostInfo
66757
+ */
66758
+ public static fromObject(object: { [k: string]: any }): temporal.api.worker.v1.WorkerHostInfo;
66759
+
66760
+ /**
66761
+ * Creates a plain object from a WorkerHostInfo message. Also converts values to other types if specified.
66762
+ * @param message WorkerHostInfo
66763
+ * @param [options] Conversion options
66764
+ * @returns Plain object
66765
+ */
66766
+ public static toObject(message: temporal.api.worker.v1.WorkerHostInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
66767
+
66768
+ /**
66769
+ * Converts this WorkerHostInfo to JSON.
66770
+ * @returns JSON object
66771
+ */
66772
+ public toJSON(): { [k: string]: any };
66773
+
66774
+ /**
66775
+ * Gets the default type url for WorkerHostInfo
66776
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
66777
+ * @returns The default type url
66778
+ */
66779
+ public static getTypeUrl(typeUrlPrefix?: string): string;
66780
+ }
66781
+
66782
+ /** Properties of a WorkerHeartbeat. */
66783
+ interface IWorkerHeartbeat {
66784
+
66785
+ /**
66786
+ * Worker identifier, should be unique for the namespace.
66787
+ * It is distinct from worker identity, which is not necessarily namespace-unique.
66788
+ */
66789
+ workerInstanceKey?: (string|null);
66790
+
66791
+ /**
66792
+ * Worker identity, set by the client, may not be unique.
66793
+ * Usually host_name+(user group name)+process_id, but can be overwritten by the user.
66794
+ */
66795
+ workerIdentity?: (string|null);
66796
+
66797
+ /** Worker host information. */
66798
+ hostInfo?: (temporal.api.worker.v1.IWorkerHostInfo|null);
66799
+
66800
+ /** Task queue this worker is polling for tasks. */
66801
+ taskQueue?: (string|null);
66802
+
66803
+ /** WorkerHeartbeat deploymentVersion */
66804
+ deploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
66805
+
66806
+ /** WorkerHeartbeat sdkName */
66807
+ sdkName?: (string|null);
66808
+
66809
+ /** WorkerHeartbeat sdkVersion */
66810
+ sdkVersion?: (string|null);
66811
+
66812
+ /** Worker status. Defined by SDK. */
66813
+ status?: (temporal.api.enums.v1.WorkerStatus|null);
66814
+
66815
+ /**
66816
+ * Worker start time.
66817
+ * It can be used to determine worker uptime. (current time - start time)
66818
+ */
66819
+ startTime?: (google.protobuf.ITimestamp|null);
66820
+
66821
+ /**
66822
+ * Timestamp of this heartbeat, coming from the worker. Worker should set it to "now".
66823
+ * Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
66824
+ */
66825
+ heartbeatTime?: (google.protobuf.ITimestamp|null);
66826
+
66827
+ /** Elapsed time since the last heartbeat from the worker. */
66828
+ elapsedSinceLastHeartbeat?: (google.protobuf.IDuration|null);
66829
+
66830
+ /** WorkerHeartbeat workflowTaskSlotsInfo */
66831
+ workflowTaskSlotsInfo?: (temporal.api.worker.v1.IWorkerSlotsInfo|null);
66832
+
66833
+ /** WorkerHeartbeat activityTaskSlotsInfo */
66834
+ activityTaskSlotsInfo?: (temporal.api.worker.v1.IWorkerSlotsInfo|null);
66835
+
66836
+ /** WorkerHeartbeat nexusTaskSlotsInfo */
66837
+ nexusTaskSlotsInfo?: (temporal.api.worker.v1.IWorkerSlotsInfo|null);
66838
+
66839
+ /** WorkerHeartbeat localActivitySlotsInfo */
66840
+ localActivitySlotsInfo?: (temporal.api.worker.v1.IWorkerSlotsInfo|null);
66841
+
66842
+ /** WorkerHeartbeat workflowPollerInfo */
66843
+ workflowPollerInfo?: (temporal.api.worker.v1.IWorkerPollerInfo|null);
66844
+
66845
+ /** WorkerHeartbeat workflowStickyPollerInfo */
66846
+ workflowStickyPollerInfo?: (temporal.api.worker.v1.IWorkerPollerInfo|null);
66847
+
66848
+ /** WorkerHeartbeat activityPollerInfo */
66849
+ activityPollerInfo?: (temporal.api.worker.v1.IWorkerPollerInfo|null);
66850
+
66851
+ /** WorkerHeartbeat nexusPollerInfo */
66852
+ nexusPollerInfo?: (temporal.api.worker.v1.IWorkerPollerInfo|null);
66853
+
66854
+ /** A Workflow Task found a cached Workflow Execution to run against. */
66855
+ totalStickyCacheHit?: (number|null);
66856
+
66857
+ /** A Workflow Task did not find a cached Workflow execution to run against. */
66858
+ totalStickyCacheMiss?: (number|null);
66859
+
66860
+ /** Current cache size, expressed in number of Workflow Executions. */
66861
+ currentStickyCacheSize?: (number|null);
66862
+ }
66863
+
66864
+ /**
66865
+ * Worker info message, contains information about the worker and its current state.
66866
+ * All information is provided by the worker itself.
66867
+ * (-- api-linter: core::0140::prepositions=disabled
66868
+ * aip.dev/not-precedent: Removing those words make names less clear. --)
66869
+ */
66870
+ class WorkerHeartbeat implements IWorkerHeartbeat {
66871
+
66872
+ /**
66873
+ * Constructs a new WorkerHeartbeat.
66874
+ * @param [properties] Properties to set
66875
+ */
66876
+ constructor(properties?: temporal.api.worker.v1.IWorkerHeartbeat);
66877
+
66878
+ /**
66879
+ * Worker identifier, should be unique for the namespace.
66880
+ * It is distinct from worker identity, which is not necessarily namespace-unique.
66881
+ */
66882
+ public workerInstanceKey: string;
66883
+
66884
+ /**
66885
+ * Worker identity, set by the client, may not be unique.
66886
+ * Usually host_name+(user group name)+process_id, but can be overwritten by the user.
66887
+ */
66888
+ public workerIdentity: string;
66889
+
66890
+ /** Worker host information. */
66891
+ public hostInfo?: (temporal.api.worker.v1.IWorkerHostInfo|null);
66892
+
66893
+ /** Task queue this worker is polling for tasks. */
66894
+ public taskQueue: string;
66895
+
66896
+ /** WorkerHeartbeat deploymentVersion. */
66897
+ public deploymentVersion?: (temporal.api.deployment.v1.IWorkerDeploymentVersion|null);
66898
+
66899
+ /** WorkerHeartbeat sdkName. */
66900
+ public sdkName: string;
66901
+
66902
+ /** WorkerHeartbeat sdkVersion. */
66903
+ public sdkVersion: string;
66904
+
66905
+ /** Worker status. Defined by SDK. */
66906
+ public status: temporal.api.enums.v1.WorkerStatus;
66907
+
66908
+ /**
66909
+ * Worker start time.
66910
+ * It can be used to determine worker uptime. (current time - start time)
66911
+ */
66912
+ public startTime?: (google.protobuf.ITimestamp|null);
66913
+
66914
+ /**
66915
+ * Timestamp of this heartbeat, coming from the worker. Worker should set it to "now".
66916
+ * Note that this timestamp comes directly from the worker and is subject to workers' clock skew.
66917
+ */
66918
+ public heartbeatTime?: (google.protobuf.ITimestamp|null);
66919
+
66920
+ /** Elapsed time since the last heartbeat from the worker. */
66921
+ public elapsedSinceLastHeartbeat?: (google.protobuf.IDuration|null);
66922
+
66923
+ /** WorkerHeartbeat workflowTaskSlotsInfo. */
66924
+ public workflowTaskSlotsInfo?: (temporal.api.worker.v1.IWorkerSlotsInfo|null);
66925
+
66926
+ /** WorkerHeartbeat activityTaskSlotsInfo. */
66927
+ public activityTaskSlotsInfo?: (temporal.api.worker.v1.IWorkerSlotsInfo|null);
66928
+
66929
+ /** WorkerHeartbeat nexusTaskSlotsInfo. */
66930
+ public nexusTaskSlotsInfo?: (temporal.api.worker.v1.IWorkerSlotsInfo|null);
66931
+
66932
+ /** WorkerHeartbeat localActivitySlotsInfo. */
66933
+ public localActivitySlotsInfo?: (temporal.api.worker.v1.IWorkerSlotsInfo|null);
66934
+
66935
+ /** WorkerHeartbeat workflowPollerInfo. */
66936
+ public workflowPollerInfo?: (temporal.api.worker.v1.IWorkerPollerInfo|null);
66937
+
66938
+ /** WorkerHeartbeat workflowStickyPollerInfo. */
66939
+ public workflowStickyPollerInfo?: (temporal.api.worker.v1.IWorkerPollerInfo|null);
66940
+
66941
+ /** WorkerHeartbeat activityPollerInfo. */
66942
+ public activityPollerInfo?: (temporal.api.worker.v1.IWorkerPollerInfo|null);
66943
+
66944
+ /** WorkerHeartbeat nexusPollerInfo. */
66945
+ public nexusPollerInfo?: (temporal.api.worker.v1.IWorkerPollerInfo|null);
66946
+
66947
+ /** A Workflow Task found a cached Workflow Execution to run against. */
66948
+ public totalStickyCacheHit: number;
66949
+
66950
+ /** A Workflow Task did not find a cached Workflow execution to run against. */
66951
+ public totalStickyCacheMiss: number;
66952
+
66953
+ /** Current cache size, expressed in number of Workflow Executions. */
66954
+ public currentStickyCacheSize: number;
66955
+
66956
+ /**
66957
+ * Creates a new WorkerHeartbeat instance using the specified properties.
66958
+ * @param [properties] Properties to set
66959
+ * @returns WorkerHeartbeat instance
66960
+ */
66961
+ public static create(properties?: temporal.api.worker.v1.IWorkerHeartbeat): temporal.api.worker.v1.WorkerHeartbeat;
66962
+
66963
+ /**
66964
+ * Encodes the specified WorkerHeartbeat message. Does not implicitly {@link temporal.api.worker.v1.WorkerHeartbeat.verify|verify} messages.
66965
+ * @param message WorkerHeartbeat message or plain object to encode
66966
+ * @param [writer] Writer to encode to
66967
+ * @returns Writer
66968
+ */
66969
+ public static encode(message: temporal.api.worker.v1.IWorkerHeartbeat, writer?: $protobuf.Writer): $protobuf.Writer;
66970
+
66971
+ /**
66972
+ * Encodes the specified WorkerHeartbeat message, length delimited. Does not implicitly {@link temporal.api.worker.v1.WorkerHeartbeat.verify|verify} messages.
66973
+ * @param message WorkerHeartbeat message or plain object to encode
66974
+ * @param [writer] Writer to encode to
66975
+ * @returns Writer
66976
+ */
66977
+ public static encodeDelimited(message: temporal.api.worker.v1.IWorkerHeartbeat, writer?: $protobuf.Writer): $protobuf.Writer;
66978
+
66979
+ /**
66980
+ * Decodes a WorkerHeartbeat message from the specified reader or buffer.
66981
+ * @param reader Reader or buffer to decode from
66982
+ * @param [length] Message length if known beforehand
66983
+ * @returns WorkerHeartbeat
66984
+ * @throws {Error} If the payload is not a reader or valid buffer
66985
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66986
+ */
66987
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.worker.v1.WorkerHeartbeat;
66988
+
66989
+ /**
66990
+ * Decodes a WorkerHeartbeat message from the specified reader or buffer, length delimited.
66991
+ * @param reader Reader or buffer to decode from
66992
+ * @returns WorkerHeartbeat
66993
+ * @throws {Error} If the payload is not a reader or valid buffer
66994
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
66995
+ */
66996
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.worker.v1.WorkerHeartbeat;
66997
+
66998
+ /**
66999
+ * Creates a WorkerHeartbeat message from a plain object. Also converts values to their respective internal types.
67000
+ * @param object Plain object
67001
+ * @returns WorkerHeartbeat
67002
+ */
67003
+ public static fromObject(object: { [k: string]: any }): temporal.api.worker.v1.WorkerHeartbeat;
67004
+
67005
+ /**
67006
+ * Creates a plain object from a WorkerHeartbeat message. Also converts values to other types if specified.
67007
+ * @param message WorkerHeartbeat
67008
+ * @param [options] Conversion options
67009
+ * @returns Plain object
67010
+ */
67011
+ public static toObject(message: temporal.api.worker.v1.WorkerHeartbeat, options?: $protobuf.IConversionOptions): { [k: string]: any };
67012
+
67013
+ /**
67014
+ * Converts this WorkerHeartbeat to JSON.
67015
+ * @returns JSON object
67016
+ */
67017
+ public toJSON(): { [k: string]: any };
67018
+
67019
+ /**
67020
+ * Gets the default type url for WorkerHeartbeat
67021
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
67022
+ * @returns The default type url
67023
+ */
67024
+ public static getTypeUrl(typeUrlPrefix?: string): string;
67025
+ }
67026
+
67027
+ /** Properties of a WorkerInfo. */
67028
+ interface IWorkerInfo {
67029
+
67030
+ /** WorkerInfo workerHeartbeat */
67031
+ workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat|null);
67032
+ }
67033
+
67034
+ /** Represents a WorkerInfo. */
67035
+ class WorkerInfo implements IWorkerInfo {
67036
+
67037
+ /**
67038
+ * Constructs a new WorkerInfo.
67039
+ * @param [properties] Properties to set
67040
+ */
67041
+ constructor(properties?: temporal.api.worker.v1.IWorkerInfo);
67042
+
67043
+ /** WorkerInfo workerHeartbeat. */
67044
+ public workerHeartbeat?: (temporal.api.worker.v1.IWorkerHeartbeat|null);
67045
+
67046
+ /**
67047
+ * Creates a new WorkerInfo instance using the specified properties.
67048
+ * @param [properties] Properties to set
67049
+ * @returns WorkerInfo instance
67050
+ */
67051
+ public static create(properties?: temporal.api.worker.v1.IWorkerInfo): temporal.api.worker.v1.WorkerInfo;
67052
+
67053
+ /**
67054
+ * Encodes the specified WorkerInfo message. Does not implicitly {@link temporal.api.worker.v1.WorkerInfo.verify|verify} messages.
67055
+ * @param message WorkerInfo message or plain object to encode
67056
+ * @param [writer] Writer to encode to
67057
+ * @returns Writer
67058
+ */
67059
+ public static encode(message: temporal.api.worker.v1.IWorkerInfo, writer?: $protobuf.Writer): $protobuf.Writer;
67060
+
67061
+ /**
67062
+ * Encodes the specified WorkerInfo message, length delimited. Does not implicitly {@link temporal.api.worker.v1.WorkerInfo.verify|verify} messages.
67063
+ * @param message WorkerInfo message or plain object to encode
67064
+ * @param [writer] Writer to encode to
67065
+ * @returns Writer
67066
+ */
67067
+ public static encodeDelimited(message: temporal.api.worker.v1.IWorkerInfo, writer?: $protobuf.Writer): $protobuf.Writer;
67068
+
67069
+ /**
67070
+ * Decodes a WorkerInfo message from the specified reader or buffer.
67071
+ * @param reader Reader or buffer to decode from
67072
+ * @param [length] Message length if known beforehand
67073
+ * @returns WorkerInfo
67074
+ * @throws {Error} If the payload is not a reader or valid buffer
67075
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
67076
+ */
67077
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.worker.v1.WorkerInfo;
67078
+
67079
+ /**
67080
+ * Decodes a WorkerInfo message from the specified reader or buffer, length delimited.
67081
+ * @param reader Reader or buffer to decode from
67082
+ * @returns WorkerInfo
67083
+ * @throws {Error} If the payload is not a reader or valid buffer
67084
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
67085
+ */
67086
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.worker.v1.WorkerInfo;
67087
+
67088
+ /**
67089
+ * Creates a WorkerInfo message from a plain object. Also converts values to their respective internal types.
67090
+ * @param object Plain object
67091
+ * @returns WorkerInfo
67092
+ */
67093
+ public static fromObject(object: { [k: string]: any }): temporal.api.worker.v1.WorkerInfo;
67094
+
67095
+ /**
67096
+ * Creates a plain object from a WorkerInfo message. Also converts values to other types if specified.
67097
+ * @param message WorkerInfo
67098
+ * @param [options] Conversion options
67099
+ * @returns Plain object
67100
+ */
67101
+ public static toObject(message: temporal.api.worker.v1.WorkerInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
67102
+
67103
+ /**
67104
+ * Converts this WorkerInfo to JSON.
67105
+ * @returns JSON object
67106
+ */
67107
+ public toJSON(): { [k: string]: any };
67108
+
67109
+ /**
67110
+ * Gets the default type url for WorkerInfo
67111
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
67112
+ * @returns The default type url
67113
+ */
67114
+ public static getTypeUrl(typeUrlPrefix?: string): string;
67115
+ }
67116
+ }
67117
+ }
67118
+
65492
67119
  /** Namespace operatorservice. */
65493
67120
  namespace operatorservice {
65494
67121