@temporalio/proto 1.9.0 → 1.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temporalio/proto",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "Temporal.io SDK compiled protobuf definitions",
5
5
  "main": "protos/index.js",
6
6
  "types": "protos/index.d.ts",
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "5096976287616207edcd3e4281a2a5e1f7393e33"
42
+ "gitHead": "5fd66f5787deece0b30f085808db7651187600b1"
43
43
  }
@@ -1802,11 +1802,19 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
1802
1802
  SEVERITY_LOW: 3
1803
1803
  }
1804
1804
  },
1805
+ ResetReapplyExcludeType: {
1806
+ values: {
1807
+ RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED: 0,
1808
+ RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL: 1,
1809
+ RESET_REAPPLY_EXCLUDE_TYPE_UPDATE: 2
1810
+ }
1811
+ },
1805
1812
  ResetReapplyType: {
1806
1813
  values: {
1807
1814
  RESET_REAPPLY_TYPE_UNSPECIFIED: 0,
1808
1815
  RESET_REAPPLY_TYPE_SIGNAL: 1,
1809
- RESET_REAPPLY_TYPE_NONE: 2
1816
+ RESET_REAPPLY_TYPE_NONE: 2,
1817
+ RESET_REAPPLY_TYPE_ALL_ELIGIBLE: 3
1810
1818
  }
1811
1819
  },
1812
1820
  ResetType: {
@@ -1904,6 +1912,12 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
1904
1912
  UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED: 3
1905
1913
  }
1906
1914
  },
1915
+ UpdateRequestedEventOrigin: {
1916
+ values: {
1917
+ UPDATE_REQUESTED_EVENT_ORIGIN_UNSPECIFIED: 0,
1918
+ UPDATE_REQUESTED_EVENT_ORIGIN_REAPPLY: 1
1919
+ }
1920
+ },
1907
1921
  WorkflowTaskFailedCause: {
1908
1922
  values: {
1909
1923
  WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED: 0,
@@ -2099,7 +2113,8 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
2099
2113
  EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED: 43,
2100
2114
  EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY: 44,
2101
2115
  EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY: 45,
2102
- EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED: 46
2116
+ EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED: 46,
2117
+ EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REQUESTED: 47
2103
2118
  }
2104
2119
  },
2105
2120
  CommandType: {
@@ -4326,6 +4341,11 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
4326
4341
  resetReapplyType: {
4327
4342
  type: "temporal.api.enums.v1.ResetReapplyType",
4328
4343
  id: 6
4344
+ },
4345
+ resetReapplyExcludeTypes: {
4346
+ rule: "repeated",
4347
+ type: "temporal.api.enums.v1.ResetReapplyExcludeType",
4348
+ id: 7
4329
4349
  }
4330
4350
  }
4331
4351
  },
@@ -6216,6 +6236,10 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
6216
6236
  skipGenerateWorkflowTask: {
6217
6237
  type: "bool",
6218
6238
  id: 5
6239
+ },
6240
+ externalWorkflowExecution: {
6241
+ type: "temporal.api.common.v1.WorkflowExecution",
6242
+ id: 6
6219
6243
  }
6220
6244
  }
6221
6245
  },
@@ -6839,6 +6863,18 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
6839
6863
  }
6840
6864
  }
6841
6865
  },
6866
+ WorkflowExecutionUpdateRequestedEventAttributes: {
6867
+ fields: {
6868
+ request: {
6869
+ type: "temporal.api.update.v1.Request",
6870
+ id: 1
6871
+ },
6872
+ origin: {
6873
+ type: "temporal.api.enums.v1.UpdateRequestedEventOrigin",
6874
+ id: 2
6875
+ }
6876
+ }
6877
+ },
6842
6878
  HistoryEvent: {
6843
6879
  oneofs: {
6844
6880
  attributes: {
@@ -6888,7 +6924,8 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
6888
6924
  "workflowExecutionUpdateCompletedEventAttributes",
6889
6925
  "workflowPropertiesModifiedExternallyEventAttributes",
6890
6926
  "activityPropertiesModifiedExternallyEventAttributes",
6891
- "workflowPropertiesModifiedEventAttributes"
6927
+ "workflowPropertiesModifiedEventAttributes",
6928
+ "workflowExecutionUpdateRequestedEventAttributes"
6892
6929
  ]
6893
6930
  }
6894
6931
  },
@@ -7100,6 +7137,10 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
7100
7137
  workflowPropertiesModifiedEventAttributes: {
7101
7138
  type: "WorkflowPropertiesModifiedEventAttributes",
7102
7139
  id: 51
7140
+ },
7141
+ workflowExecutionUpdateRequestedEventAttributes: {
7142
+ type: "WorkflowExecutionUpdateRequestedEventAttributes",
7143
+ id: 52
7103
7144
  }
7104
7145
  }
7105
7146
  },
@@ -7579,7 +7620,7 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
7579
7620
  go_package: "go.temporal.io/api/sdk/v1;sdk",
7580
7621
  java_package: "io.temporal.api.sdk.v1",
7581
7622
  java_multiple_files: true,
7582
- java_outer_classname: "TaskCompleteMetadataProto",
7623
+ java_outer_classname: "WorkflowMetadataProto",
7583
7624
  ruby_package: "Temporalio::Api::Sdk::V1",
7584
7625
  csharp_namespace: "Temporalio.Api.Sdk.V1"
7585
7626
  },
@@ -7605,6 +7646,53 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
7605
7646
  id: 4
7606
7647
  }
7607
7648
  }
7649
+ },
7650
+ WorkflowMetadata: {
7651
+ fields: {
7652
+ definition: {
7653
+ type: "WorkflowDefinition",
7654
+ id: 1
7655
+ }
7656
+ }
7657
+ },
7658
+ WorkflowDefinition: {
7659
+ fields: {
7660
+ type: {
7661
+ type: "string",
7662
+ id: 1
7663
+ },
7664
+ description: {
7665
+ type: "string",
7666
+ id: 2
7667
+ },
7668
+ queryDefinitions: {
7669
+ rule: "repeated",
7670
+ type: "WorkflowInteractionDefinition",
7671
+ id: 3
7672
+ },
7673
+ signalDefinitions: {
7674
+ rule: "repeated",
7675
+ type: "WorkflowInteractionDefinition",
7676
+ id: 4
7677
+ },
7678
+ updateDefinitions: {
7679
+ rule: "repeated",
7680
+ type: "WorkflowInteractionDefinition",
7681
+ id: 5
7682
+ }
7683
+ }
7684
+ },
7685
+ WorkflowInteractionDefinition: {
7686
+ fields: {
7687
+ name: {
7688
+ type: "string",
7689
+ id: 1
7690
+ },
7691
+ description: {
7692
+ type: "string",
7693
+ id: 2
7694
+ }
7695
+ }
7608
7696
  }
7609
7697
  }
7610
7698
  }
@@ -9405,10 +9493,7 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
9405
9493
  fields: {
9406
9494
  timestamp: {
9407
9495
  type: "google.protobuf.Timestamp",
9408
- id: 1,
9409
- options: {
9410
- "(gogoproto.stdtime)": true
9411
- }
9496
+ id: 1
9412
9497
  }
9413
9498
  }
9414
9499
  },
@@ -9416,10 +9501,7 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
9416
9501
  fields: {
9417
9502
  duration: {
9418
9503
  type: "google.protobuf.Duration",
9419
- id: 1,
9420
- options: {
9421
- "(gogoproto.stdduration)": true
9422
- }
9504
+ id: 1
9423
9505
  }
9424
9506
  }
9425
9507
  },
@@ -9430,10 +9512,7 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
9430
9512
  fields: {
9431
9513
  time: {
9432
9514
  type: "google.protobuf.Timestamp",
9433
- id: 1,
9434
- options: {
9435
- "(gogoproto.stdtime)": true
9436
- }
9515
+ id: 1
9437
9516
  }
9438
9517
  }
9439
9518
  },
package/protos/root.d.ts CHANGED
@@ -8905,15 +8905,23 @@ export namespace temporal {
8905
8905
  SEVERITY_LOW = 3
8906
8906
  }
8907
8907
 
8908
+ /** Event types to exclude when reapplying events. */
8909
+ enum ResetReapplyExcludeType {
8910
+ RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED = 0,
8911
+ RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL = 1,
8912
+ RESET_REAPPLY_EXCLUDE_TYPE_UPDATE = 2
8913
+ }
8914
+
8908
8915
  /**
8909
- * Reset reapply (replay) options
8910
- * * RESET_REAPPLY_TYPE_SIGNAL (default) - Signals are reapplied when workflow is reset
8911
- * * RESET_REAPPLY_TYPE_NONE - nothing is reapplied
8916
+ * Event types to include when reapplying events. Deprecated: applications
8917
+ * should use ResetReapplyExcludeType to specify exclusions from this set, and
8918
+ * new event types should be added to ResetReapplyExcludeType instead of here.
8912
8919
  */
8913
8920
  enum ResetReapplyType {
8914
8921
  RESET_REAPPLY_TYPE_UNSPECIFIED = 0,
8915
8922
  RESET_REAPPLY_TYPE_SIGNAL = 1,
8916
- RESET_REAPPLY_TYPE_NONE = 2
8923
+ RESET_REAPPLY_TYPE_NONE = 2,
8924
+ RESET_REAPPLY_TYPE_ALL_ELIGIBLE = 3
8917
8925
  }
8918
8926
 
8919
8927
  /** Reset type options. Deprecated, see temporal.api.common.v1.ResetOptions. */
@@ -9025,6 +9033,16 @@ export namespace temporal {
9025
9033
  UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED = 3
9026
9034
  }
9027
9035
 
9036
+ /**
9037
+ * UpdateRequestedEventOrigin records why an
9038
+ * WorkflowExecutionUpdateRequestedEvent was written to history. Note that not
9039
+ * all update requests result in a WorkflowExecutionUpdateRequestedEvent.
9040
+ */
9041
+ enum UpdateRequestedEventOrigin {
9042
+ UPDATE_REQUESTED_EVENT_ORIGIN_UNSPECIFIED = 0,
9043
+ UPDATE_REQUESTED_EVENT_ORIGIN_REAPPLY = 1
9044
+ }
9045
+
9028
9046
  /**
9029
9047
  * Workflow tasks can fail for various reasons. Note that some of these reasons can only originate
9030
9048
  * from the server, and some of them can only originate from the SDK/worker.
@@ -9226,7 +9244,8 @@ export namespace temporal {
9226
9244
  EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED = 43,
9227
9245
  EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY = 44,
9228
9246
  EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY = 45,
9229
- EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED = 46
9247
+ EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED = 46,
9248
+ EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REQUESTED = 47
9230
9249
  }
9231
9250
 
9232
9251
  /** 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. */
@@ -18403,8 +18422,14 @@ export namespace temporal {
18403
18422
  /** Used to de-dupe reset requests */
18404
18423
  requestId?: (string|null);
18405
18424
 
18406
- /** Reset reapply (replay) options. */
18425
+ /**
18426
+ * Event types to be reapplied (deprecated)
18427
+ * Default: RESET_REAPPLY_TYPE_ALL_ELIGIBLE
18428
+ */
18407
18429
  resetReapplyType?: (temporal.api.enums.v1.ResetReapplyType|null);
18430
+
18431
+ /** Event types not to be reapplied */
18432
+ resetReapplyExcludeTypes?: (temporal.api.enums.v1.ResetReapplyExcludeType[]|null);
18408
18433
  }
18409
18434
 
18410
18435
  /** Represents a ResetWorkflowExecutionRequest. */
@@ -18434,9 +18459,15 @@ export namespace temporal {
18434
18459
  /** Used to de-dupe reset requests */
18435
18460
  public requestId: string;
18436
18461
 
18437
- /** Reset reapply (replay) options. */
18462
+ /**
18463
+ * Event types to be reapplied (deprecated)
18464
+ * Default: RESET_REAPPLY_TYPE_ALL_ELIGIBLE
18465
+ */
18438
18466
  public resetReapplyType: temporal.api.enums.v1.ResetReapplyType;
18439
18467
 
18468
+ /** Event types not to be reapplied */
18469
+ public resetReapplyExcludeTypes: temporal.api.enums.v1.ResetReapplyExcludeType[];
18470
+
18440
18471
  /**
18441
18472
  * Creates a new ResetWorkflowExecutionRequest instance using the specified properties.
18442
18473
  * @param [properties] Properties to set
@@ -29194,6 +29225,9 @@ export namespace temporal {
29194
29225
 
29195
29226
  /** Indicates the signal did not generate a new workflow task when received. */
29196
29227
  skipGenerateWorkflowTask?: (boolean|null);
29228
+
29229
+ /** When signal origin is a workflow execution, this field is set. */
29230
+ externalWorkflowExecution?: (temporal.api.common.v1.IWorkflowExecution|null);
29197
29231
  }
29198
29232
 
29199
29233
  /** Represents a WorkflowExecutionSignaledEventAttributes. */
@@ -29223,6 +29257,9 @@ export namespace temporal {
29223
29257
  /** Indicates the signal did not generate a new workflow task when received. */
29224
29258
  public skipGenerateWorkflowTask: boolean;
29225
29259
 
29260
+ /** When signal origin is a workflow execution, this field is set. */
29261
+ public externalWorkflowExecution?: (temporal.api.common.v1.IWorkflowExecution|null);
29262
+
29226
29263
  /**
29227
29264
  * Creates a new WorkflowExecutionSignaledEventAttributes instance using the specified properties.
29228
29265
  * @param [properties] Properties to set
@@ -32112,6 +32149,102 @@ export namespace temporal {
32112
32149
  public static getTypeUrl(typeUrlPrefix?: string): string;
32113
32150
  }
32114
32151
 
32152
+ /** Properties of a WorkflowExecutionUpdateRequestedEventAttributes. */
32153
+ interface IWorkflowExecutionUpdateRequestedEventAttributes {
32154
+
32155
+ /** The update request associated with this event. */
32156
+ request?: (temporal.api.update.v1.IRequest|null);
32157
+
32158
+ /** A record of why this event was written to history. */
32159
+ origin?: (temporal.api.enums.v1.UpdateRequestedEventOrigin|null);
32160
+ }
32161
+
32162
+ /** Represents a WorkflowExecutionUpdateRequestedEventAttributes. */
32163
+ class WorkflowExecutionUpdateRequestedEventAttributes implements IWorkflowExecutionUpdateRequestedEventAttributes {
32164
+
32165
+ /**
32166
+ * Constructs a new WorkflowExecutionUpdateRequestedEventAttributes.
32167
+ * @param [properties] Properties to set
32168
+ */
32169
+ constructor(properties?: temporal.api.history.v1.IWorkflowExecutionUpdateRequestedEventAttributes);
32170
+
32171
+ /** The update request associated with this event. */
32172
+ public request?: (temporal.api.update.v1.IRequest|null);
32173
+
32174
+ /** A record of why this event was written to history. */
32175
+ public origin: temporal.api.enums.v1.UpdateRequestedEventOrigin;
32176
+
32177
+ /**
32178
+ * Creates a new WorkflowExecutionUpdateRequestedEventAttributes instance using the specified properties.
32179
+ * @param [properties] Properties to set
32180
+ * @returns WorkflowExecutionUpdateRequestedEventAttributes instance
32181
+ */
32182
+ public static create(properties?: temporal.api.history.v1.IWorkflowExecutionUpdateRequestedEventAttributes): temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributes;
32183
+
32184
+ /**
32185
+ * Encodes the specified WorkflowExecutionUpdateRequestedEventAttributes message. Does not implicitly {@link temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributes.verify|verify} messages.
32186
+ * @param message WorkflowExecutionUpdateRequestedEventAttributes message or plain object to encode
32187
+ * @param [writer] Writer to encode to
32188
+ * @returns Writer
32189
+ */
32190
+ public static encode(message: temporal.api.history.v1.IWorkflowExecutionUpdateRequestedEventAttributes, writer?: $protobuf.Writer): $protobuf.Writer;
32191
+
32192
+ /**
32193
+ * Encodes the specified WorkflowExecutionUpdateRequestedEventAttributes message, length delimited. Does not implicitly {@link temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributes.verify|verify} messages.
32194
+ * @param message WorkflowExecutionUpdateRequestedEventAttributes message or plain object to encode
32195
+ * @param [writer] Writer to encode to
32196
+ * @returns Writer
32197
+ */
32198
+ public static encodeDelimited(message: temporal.api.history.v1.IWorkflowExecutionUpdateRequestedEventAttributes, writer?: $protobuf.Writer): $protobuf.Writer;
32199
+
32200
+ /**
32201
+ * Decodes a WorkflowExecutionUpdateRequestedEventAttributes message from the specified reader or buffer.
32202
+ * @param reader Reader or buffer to decode from
32203
+ * @param [length] Message length if known beforehand
32204
+ * @returns WorkflowExecutionUpdateRequestedEventAttributes
32205
+ * @throws {Error} If the payload is not a reader or valid buffer
32206
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32207
+ */
32208
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributes;
32209
+
32210
+ /**
32211
+ * Decodes a WorkflowExecutionUpdateRequestedEventAttributes message from the specified reader or buffer, length delimited.
32212
+ * @param reader Reader or buffer to decode from
32213
+ * @returns WorkflowExecutionUpdateRequestedEventAttributes
32214
+ * @throws {Error} If the payload is not a reader or valid buffer
32215
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
32216
+ */
32217
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributes;
32218
+
32219
+ /**
32220
+ * Creates a WorkflowExecutionUpdateRequestedEventAttributes message from a plain object. Also converts values to their respective internal types.
32221
+ * @param object Plain object
32222
+ * @returns WorkflowExecutionUpdateRequestedEventAttributes
32223
+ */
32224
+ public static fromObject(object: { [k: string]: any }): temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributes;
32225
+
32226
+ /**
32227
+ * Creates a plain object from a WorkflowExecutionUpdateRequestedEventAttributes message. Also converts values to other types if specified.
32228
+ * @param message WorkflowExecutionUpdateRequestedEventAttributes
32229
+ * @param [options] Conversion options
32230
+ * @returns Plain object
32231
+ */
32232
+ public static toObject(message: temporal.api.history.v1.WorkflowExecutionUpdateRequestedEventAttributes, options?: $protobuf.IConversionOptions): { [k: string]: any };
32233
+
32234
+ /**
32235
+ * Converts this WorkflowExecutionUpdateRequestedEventAttributes to JSON.
32236
+ * @returns JSON object
32237
+ */
32238
+ public toJSON(): { [k: string]: any };
32239
+
32240
+ /**
32241
+ * Gets the default type url for WorkflowExecutionUpdateRequestedEventAttributes
32242
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
32243
+ * @returns The default type url
32244
+ */
32245
+ public static getTypeUrl(typeUrlPrefix?: string): string;
32246
+ }
32247
+
32115
32248
  /** Properties of a HistoryEvent. */
32116
32249
  interface IHistoryEvent {
32117
32250
 
@@ -32275,6 +32408,9 @@ export namespace temporal {
32275
32408
 
32276
32409
  /** HistoryEvent workflowPropertiesModifiedEventAttributes */
32277
32410
  workflowPropertiesModifiedEventAttributes?: (temporal.api.history.v1.IWorkflowPropertiesModifiedEventAttributes|null);
32411
+
32412
+ /** HistoryEvent workflowExecutionUpdateRequestedEventAttributes */
32413
+ workflowExecutionUpdateRequestedEventAttributes?: (temporal.api.history.v1.IWorkflowExecutionUpdateRequestedEventAttributes|null);
32278
32414
  }
32279
32415
 
32280
32416
  /**
@@ -32450,8 +32586,11 @@ export namespace temporal {
32450
32586
  /** HistoryEvent workflowPropertiesModifiedEventAttributes. */
32451
32587
  public workflowPropertiesModifiedEventAttributes?: (temporal.api.history.v1.IWorkflowPropertiesModifiedEventAttributes|null);
32452
32588
 
32589
+ /** HistoryEvent workflowExecutionUpdateRequestedEventAttributes. */
32590
+ public workflowExecutionUpdateRequestedEventAttributes?: (temporal.api.history.v1.IWorkflowExecutionUpdateRequestedEventAttributes|null);
32591
+
32453
32592
  /** The event details. The type must match that in `event_type`. */
32454
- public attributes?: ("workflowExecutionStartedEventAttributes"|"workflowExecutionCompletedEventAttributes"|"workflowExecutionFailedEventAttributes"|"workflowExecutionTimedOutEventAttributes"|"workflowTaskScheduledEventAttributes"|"workflowTaskStartedEventAttributes"|"workflowTaskCompletedEventAttributes"|"workflowTaskTimedOutEventAttributes"|"workflowTaskFailedEventAttributes"|"activityTaskScheduledEventAttributes"|"activityTaskStartedEventAttributes"|"activityTaskCompletedEventAttributes"|"activityTaskFailedEventAttributes"|"activityTaskTimedOutEventAttributes"|"timerStartedEventAttributes"|"timerFiredEventAttributes"|"activityTaskCancelRequestedEventAttributes"|"activityTaskCanceledEventAttributes"|"timerCanceledEventAttributes"|"markerRecordedEventAttributes"|"workflowExecutionSignaledEventAttributes"|"workflowExecutionTerminatedEventAttributes"|"workflowExecutionCancelRequestedEventAttributes"|"workflowExecutionCanceledEventAttributes"|"requestCancelExternalWorkflowExecutionInitiatedEventAttributes"|"requestCancelExternalWorkflowExecutionFailedEventAttributes"|"externalWorkflowExecutionCancelRequestedEventAttributes"|"workflowExecutionContinuedAsNewEventAttributes"|"startChildWorkflowExecutionInitiatedEventAttributes"|"startChildWorkflowExecutionFailedEventAttributes"|"childWorkflowExecutionStartedEventAttributes"|"childWorkflowExecutionCompletedEventAttributes"|"childWorkflowExecutionFailedEventAttributes"|"childWorkflowExecutionCanceledEventAttributes"|"childWorkflowExecutionTimedOutEventAttributes"|"childWorkflowExecutionTerminatedEventAttributes"|"signalExternalWorkflowExecutionInitiatedEventAttributes"|"signalExternalWorkflowExecutionFailedEventAttributes"|"externalWorkflowExecutionSignaledEventAttributes"|"upsertWorkflowSearchAttributesEventAttributes"|"workflowExecutionUpdateAcceptedEventAttributes"|"workflowExecutionUpdateRejectedEventAttributes"|"workflowExecutionUpdateCompletedEventAttributes"|"workflowPropertiesModifiedExternallyEventAttributes"|"activityPropertiesModifiedExternallyEventAttributes"|"workflowPropertiesModifiedEventAttributes");
32593
+ public attributes?: ("workflowExecutionStartedEventAttributes"|"workflowExecutionCompletedEventAttributes"|"workflowExecutionFailedEventAttributes"|"workflowExecutionTimedOutEventAttributes"|"workflowTaskScheduledEventAttributes"|"workflowTaskStartedEventAttributes"|"workflowTaskCompletedEventAttributes"|"workflowTaskTimedOutEventAttributes"|"workflowTaskFailedEventAttributes"|"activityTaskScheduledEventAttributes"|"activityTaskStartedEventAttributes"|"activityTaskCompletedEventAttributes"|"activityTaskFailedEventAttributes"|"activityTaskTimedOutEventAttributes"|"timerStartedEventAttributes"|"timerFiredEventAttributes"|"activityTaskCancelRequestedEventAttributes"|"activityTaskCanceledEventAttributes"|"timerCanceledEventAttributes"|"markerRecordedEventAttributes"|"workflowExecutionSignaledEventAttributes"|"workflowExecutionTerminatedEventAttributes"|"workflowExecutionCancelRequestedEventAttributes"|"workflowExecutionCanceledEventAttributes"|"requestCancelExternalWorkflowExecutionInitiatedEventAttributes"|"requestCancelExternalWorkflowExecutionFailedEventAttributes"|"externalWorkflowExecutionCancelRequestedEventAttributes"|"workflowExecutionContinuedAsNewEventAttributes"|"startChildWorkflowExecutionInitiatedEventAttributes"|"startChildWorkflowExecutionFailedEventAttributes"|"childWorkflowExecutionStartedEventAttributes"|"childWorkflowExecutionCompletedEventAttributes"|"childWorkflowExecutionFailedEventAttributes"|"childWorkflowExecutionCanceledEventAttributes"|"childWorkflowExecutionTimedOutEventAttributes"|"childWorkflowExecutionTerminatedEventAttributes"|"signalExternalWorkflowExecutionInitiatedEventAttributes"|"signalExternalWorkflowExecutionFailedEventAttributes"|"externalWorkflowExecutionSignaledEventAttributes"|"upsertWorkflowSearchAttributesEventAttributes"|"workflowExecutionUpdateAcceptedEventAttributes"|"workflowExecutionUpdateRejectedEventAttributes"|"workflowExecutionUpdateCompletedEventAttributes"|"workflowPropertiesModifiedExternallyEventAttributes"|"activityPropertiesModifiedExternallyEventAttributes"|"workflowPropertiesModifiedEventAttributes"|"workflowExecutionUpdateRequestedEventAttributes");
32455
32594
 
32456
32595
  /**
32457
32596
  * Creates a new HistoryEvent instance using the specified properties.
@@ -34909,6 +35048,340 @@ export namespace temporal {
34909
35048
  */
34910
35049
  public static getTypeUrl(typeUrlPrefix?: string): string;
34911
35050
  }
35051
+
35052
+ /** Properties of a WorkflowMetadata. */
35053
+ interface IWorkflowMetadata {
35054
+
35055
+ /** Metadata provided at declaration or creation time. */
35056
+ definition?: (temporal.api.sdk.v1.IWorkflowDefinition|null);
35057
+ }
35058
+
35059
+ /** The name of the query to retrieve this information is `__temporal_getWorkflowMetadata`. */
35060
+ class WorkflowMetadata implements IWorkflowMetadata {
35061
+
35062
+ /**
35063
+ * Constructs a new WorkflowMetadata.
35064
+ * @param [properties] Properties to set
35065
+ */
35066
+ constructor(properties?: temporal.api.sdk.v1.IWorkflowMetadata);
35067
+
35068
+ /** Metadata provided at declaration or creation time. */
35069
+ public definition?: (temporal.api.sdk.v1.IWorkflowDefinition|null);
35070
+
35071
+ /**
35072
+ * Creates a new WorkflowMetadata instance using the specified properties.
35073
+ * @param [properties] Properties to set
35074
+ * @returns WorkflowMetadata instance
35075
+ */
35076
+ public static create(properties?: temporal.api.sdk.v1.IWorkflowMetadata): temporal.api.sdk.v1.WorkflowMetadata;
35077
+
35078
+ /**
35079
+ * Encodes the specified WorkflowMetadata message. Does not implicitly {@link temporal.api.sdk.v1.WorkflowMetadata.verify|verify} messages.
35080
+ * @param message WorkflowMetadata message or plain object to encode
35081
+ * @param [writer] Writer to encode to
35082
+ * @returns Writer
35083
+ */
35084
+ public static encode(message: temporal.api.sdk.v1.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
35085
+
35086
+ /**
35087
+ * Encodes the specified WorkflowMetadata message, length delimited. Does not implicitly {@link temporal.api.sdk.v1.WorkflowMetadata.verify|verify} messages.
35088
+ * @param message WorkflowMetadata message or plain object to encode
35089
+ * @param [writer] Writer to encode to
35090
+ * @returns Writer
35091
+ */
35092
+ public static encodeDelimited(message: temporal.api.sdk.v1.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
35093
+
35094
+ /**
35095
+ * Decodes a WorkflowMetadata message from the specified reader or buffer.
35096
+ * @param reader Reader or buffer to decode from
35097
+ * @param [length] Message length if known beforehand
35098
+ * @returns WorkflowMetadata
35099
+ * @throws {Error} If the payload is not a reader or valid buffer
35100
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35101
+ */
35102
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.sdk.v1.WorkflowMetadata;
35103
+
35104
+ /**
35105
+ * Decodes a WorkflowMetadata message from the specified reader or buffer, length delimited.
35106
+ * @param reader Reader or buffer to decode from
35107
+ * @returns WorkflowMetadata
35108
+ * @throws {Error} If the payload is not a reader or valid buffer
35109
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35110
+ */
35111
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.sdk.v1.WorkflowMetadata;
35112
+
35113
+ /**
35114
+ * Creates a WorkflowMetadata message from a plain object. Also converts values to their respective internal types.
35115
+ * @param object Plain object
35116
+ * @returns WorkflowMetadata
35117
+ */
35118
+ public static fromObject(object: { [k: string]: any }): temporal.api.sdk.v1.WorkflowMetadata;
35119
+
35120
+ /**
35121
+ * Creates a plain object from a WorkflowMetadata message. Also converts values to other types if specified.
35122
+ * @param message WorkflowMetadata
35123
+ * @param [options] Conversion options
35124
+ * @returns Plain object
35125
+ */
35126
+ public static toObject(message: temporal.api.sdk.v1.WorkflowMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
35127
+
35128
+ /**
35129
+ * Converts this WorkflowMetadata to JSON.
35130
+ * @returns JSON object
35131
+ */
35132
+ public toJSON(): { [k: string]: any };
35133
+
35134
+ /**
35135
+ * Gets the default type url for WorkflowMetadata
35136
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35137
+ * @returns The default type url
35138
+ */
35139
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35140
+ }
35141
+
35142
+ /** Properties of a WorkflowDefinition. */
35143
+ interface IWorkflowDefinition {
35144
+
35145
+ /**
35146
+ * A name scoped by the task queue that maps to this workflow definition.
35147
+ * If missing, this workflow is a dynamic workflow.
35148
+ */
35149
+ type?: (string|null);
35150
+
35151
+ /**
35152
+ * An optional workflow description provided by the application.
35153
+ * By convention, external tools may interpret its first part,
35154
+ * i.e., ending with a line break, as a summary of the description.
35155
+ */
35156
+ description?: (string|null);
35157
+
35158
+ /** WorkflowDefinition queryDefinitions */
35159
+ queryDefinitions?: (temporal.api.sdk.v1.IWorkflowInteractionDefinition[]|null);
35160
+
35161
+ /** WorkflowDefinition signalDefinitions */
35162
+ signalDefinitions?: (temporal.api.sdk.v1.IWorkflowInteractionDefinition[]|null);
35163
+
35164
+ /** WorkflowDefinition updateDefinitions */
35165
+ updateDefinitions?: (temporal.api.sdk.v1.IWorkflowInteractionDefinition[]|null);
35166
+ }
35167
+
35168
+ /** (-- api-linter: core::0203::optional=disabled --) */
35169
+ class WorkflowDefinition implements IWorkflowDefinition {
35170
+
35171
+ /**
35172
+ * Constructs a new WorkflowDefinition.
35173
+ * @param [properties] Properties to set
35174
+ */
35175
+ constructor(properties?: temporal.api.sdk.v1.IWorkflowDefinition);
35176
+
35177
+ /**
35178
+ * A name scoped by the task queue that maps to this workflow definition.
35179
+ * If missing, this workflow is a dynamic workflow.
35180
+ */
35181
+ public type: string;
35182
+
35183
+ /**
35184
+ * An optional workflow description provided by the application.
35185
+ * By convention, external tools may interpret its first part,
35186
+ * i.e., ending with a line break, as a summary of the description.
35187
+ */
35188
+ public description: string;
35189
+
35190
+ /** WorkflowDefinition queryDefinitions. */
35191
+ public queryDefinitions: temporal.api.sdk.v1.IWorkflowInteractionDefinition[];
35192
+
35193
+ /** WorkflowDefinition signalDefinitions. */
35194
+ public signalDefinitions: temporal.api.sdk.v1.IWorkflowInteractionDefinition[];
35195
+
35196
+ /** WorkflowDefinition updateDefinitions. */
35197
+ public updateDefinitions: temporal.api.sdk.v1.IWorkflowInteractionDefinition[];
35198
+
35199
+ /**
35200
+ * Creates a new WorkflowDefinition instance using the specified properties.
35201
+ * @param [properties] Properties to set
35202
+ * @returns WorkflowDefinition instance
35203
+ */
35204
+ public static create(properties?: temporal.api.sdk.v1.IWorkflowDefinition): temporal.api.sdk.v1.WorkflowDefinition;
35205
+
35206
+ /**
35207
+ * Encodes the specified WorkflowDefinition message. Does not implicitly {@link temporal.api.sdk.v1.WorkflowDefinition.verify|verify} messages.
35208
+ * @param message WorkflowDefinition message or plain object to encode
35209
+ * @param [writer] Writer to encode to
35210
+ * @returns Writer
35211
+ */
35212
+ public static encode(message: temporal.api.sdk.v1.IWorkflowDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
35213
+
35214
+ /**
35215
+ * Encodes the specified WorkflowDefinition message, length delimited. Does not implicitly {@link temporal.api.sdk.v1.WorkflowDefinition.verify|verify} messages.
35216
+ * @param message WorkflowDefinition message or plain object to encode
35217
+ * @param [writer] Writer to encode to
35218
+ * @returns Writer
35219
+ */
35220
+ public static encodeDelimited(message: temporal.api.sdk.v1.IWorkflowDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
35221
+
35222
+ /**
35223
+ * Decodes a WorkflowDefinition message from the specified reader or buffer.
35224
+ * @param reader Reader or buffer to decode from
35225
+ * @param [length] Message length if known beforehand
35226
+ * @returns WorkflowDefinition
35227
+ * @throws {Error} If the payload is not a reader or valid buffer
35228
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35229
+ */
35230
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.sdk.v1.WorkflowDefinition;
35231
+
35232
+ /**
35233
+ * Decodes a WorkflowDefinition message from the specified reader or buffer, length delimited.
35234
+ * @param reader Reader or buffer to decode from
35235
+ * @returns WorkflowDefinition
35236
+ * @throws {Error} If the payload is not a reader or valid buffer
35237
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35238
+ */
35239
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.sdk.v1.WorkflowDefinition;
35240
+
35241
+ /**
35242
+ * Creates a WorkflowDefinition message from a plain object. Also converts values to their respective internal types.
35243
+ * @param object Plain object
35244
+ * @returns WorkflowDefinition
35245
+ */
35246
+ public static fromObject(object: { [k: string]: any }): temporal.api.sdk.v1.WorkflowDefinition;
35247
+
35248
+ /**
35249
+ * Creates a plain object from a WorkflowDefinition message. Also converts values to other types if specified.
35250
+ * @param message WorkflowDefinition
35251
+ * @param [options] Conversion options
35252
+ * @returns Plain object
35253
+ */
35254
+ public static toObject(message: temporal.api.sdk.v1.WorkflowDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
35255
+
35256
+ /**
35257
+ * Converts this WorkflowDefinition to JSON.
35258
+ * @returns JSON object
35259
+ */
35260
+ public toJSON(): { [k: string]: any };
35261
+
35262
+ /**
35263
+ * Gets the default type url for WorkflowDefinition
35264
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35265
+ * @returns The default type url
35266
+ */
35267
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35268
+ }
35269
+
35270
+ /** Properties of a WorkflowInteractionDefinition. */
35271
+ interface IWorkflowInteractionDefinition {
35272
+
35273
+ /**
35274
+ * An optional name for the handler. If missing, it represents
35275
+ * a dynamic handler that processes any interactions not handled by others.
35276
+ * There is at most one dynamic handler per workflow and interaction kind.
35277
+ */
35278
+ name?: (string|null);
35279
+
35280
+ /**
35281
+ * An optional interaction description provided by the application.
35282
+ * By convention, external tools may interpret its first part,
35283
+ * i.e., ending with a line break, as a summary of the description.
35284
+ */
35285
+ description?: (string|null);
35286
+ }
35287
+
35288
+ /**
35289
+ * (-- api-linter: core::0123::resource-annotation=disabled
35290
+ * aip.dev/not-precedent: The `name` field is optional. --)
35291
+ * (-- api-linter: core::0203::optional=disabled --)
35292
+ */
35293
+ class WorkflowInteractionDefinition implements IWorkflowInteractionDefinition {
35294
+
35295
+ /**
35296
+ * Constructs a new WorkflowInteractionDefinition.
35297
+ * @param [properties] Properties to set
35298
+ */
35299
+ constructor(properties?: temporal.api.sdk.v1.IWorkflowInteractionDefinition);
35300
+
35301
+ /**
35302
+ * An optional name for the handler. If missing, it represents
35303
+ * a dynamic handler that processes any interactions not handled by others.
35304
+ * There is at most one dynamic handler per workflow and interaction kind.
35305
+ */
35306
+ public name: string;
35307
+
35308
+ /**
35309
+ * An optional interaction description provided by the application.
35310
+ * By convention, external tools may interpret its first part,
35311
+ * i.e., ending with a line break, as a summary of the description.
35312
+ */
35313
+ public description: string;
35314
+
35315
+ /**
35316
+ * Creates a new WorkflowInteractionDefinition instance using the specified properties.
35317
+ * @param [properties] Properties to set
35318
+ * @returns WorkflowInteractionDefinition instance
35319
+ */
35320
+ public static create(properties?: temporal.api.sdk.v1.IWorkflowInteractionDefinition): temporal.api.sdk.v1.WorkflowInteractionDefinition;
35321
+
35322
+ /**
35323
+ * Encodes the specified WorkflowInteractionDefinition message. Does not implicitly {@link temporal.api.sdk.v1.WorkflowInteractionDefinition.verify|verify} messages.
35324
+ * @param message WorkflowInteractionDefinition message or plain object to encode
35325
+ * @param [writer] Writer to encode to
35326
+ * @returns Writer
35327
+ */
35328
+ public static encode(message: temporal.api.sdk.v1.IWorkflowInteractionDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
35329
+
35330
+ /**
35331
+ * Encodes the specified WorkflowInteractionDefinition message, length delimited. Does not implicitly {@link temporal.api.sdk.v1.WorkflowInteractionDefinition.verify|verify} messages.
35332
+ * @param message WorkflowInteractionDefinition message or plain object to encode
35333
+ * @param [writer] Writer to encode to
35334
+ * @returns Writer
35335
+ */
35336
+ public static encodeDelimited(message: temporal.api.sdk.v1.IWorkflowInteractionDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
35337
+
35338
+ /**
35339
+ * Decodes a WorkflowInteractionDefinition message from the specified reader or buffer.
35340
+ * @param reader Reader or buffer to decode from
35341
+ * @param [length] Message length if known beforehand
35342
+ * @returns WorkflowInteractionDefinition
35343
+ * @throws {Error} If the payload is not a reader or valid buffer
35344
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35345
+ */
35346
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.sdk.v1.WorkflowInteractionDefinition;
35347
+
35348
+ /**
35349
+ * Decodes a WorkflowInteractionDefinition message from the specified reader or buffer, length delimited.
35350
+ * @param reader Reader or buffer to decode from
35351
+ * @returns WorkflowInteractionDefinition
35352
+ * @throws {Error} If the payload is not a reader or valid buffer
35353
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35354
+ */
35355
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.sdk.v1.WorkflowInteractionDefinition;
35356
+
35357
+ /**
35358
+ * Creates a WorkflowInteractionDefinition message from a plain object. Also converts values to their respective internal types.
35359
+ * @param object Plain object
35360
+ * @returns WorkflowInteractionDefinition
35361
+ */
35362
+ public static fromObject(object: { [k: string]: any }): temporal.api.sdk.v1.WorkflowInteractionDefinition;
35363
+
35364
+ /**
35365
+ * Creates a plain object from a WorkflowInteractionDefinition message. Also converts values to other types if specified.
35366
+ * @param message WorkflowInteractionDefinition
35367
+ * @param [options] Conversion options
35368
+ * @returns Plain object
35369
+ */
35370
+ public static toObject(message: temporal.api.sdk.v1.WorkflowInteractionDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
35371
+
35372
+ /**
35373
+ * Converts this WorkflowInteractionDefinition to JSON.
35374
+ * @returns JSON object
35375
+ */
35376
+ public toJSON(): { [k: string]: any };
35377
+
35378
+ /**
35379
+ * Gets the default type url for WorkflowInteractionDefinition
35380
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35381
+ * @returns The default type url
35382
+ */
35383
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35384
+ }
34912
35385
  }
34913
35386
  }
34914
35387