@temporalio/proto 1.9.0 → 1.9.1

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.1",
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": "05f22004a0d877d8a128768016d5719adbc67de8"
43
43
  }
@@ -7579,7 +7579,7 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
7579
7579
  go_package: "go.temporal.io/api/sdk/v1;sdk",
7580
7580
  java_package: "io.temporal.api.sdk.v1",
7581
7581
  java_multiple_files: true,
7582
- java_outer_classname: "TaskCompleteMetadataProto",
7582
+ java_outer_classname: "WorkflowMetadataProto",
7583
7583
  ruby_package: "Temporalio::Api::Sdk::V1",
7584
7584
  csharp_namespace: "Temporalio.Api.Sdk.V1"
7585
7585
  },
@@ -7605,6 +7605,53 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
7605
7605
  id: 4
7606
7606
  }
7607
7607
  }
7608
+ },
7609
+ WorkflowMetadata: {
7610
+ fields: {
7611
+ definition: {
7612
+ type: "WorkflowDefinition",
7613
+ id: 1
7614
+ }
7615
+ }
7616
+ },
7617
+ WorkflowDefinition: {
7618
+ fields: {
7619
+ type: {
7620
+ type: "string",
7621
+ id: 1
7622
+ },
7623
+ description: {
7624
+ type: "string",
7625
+ id: 2
7626
+ },
7627
+ queryDefinitions: {
7628
+ rule: "repeated",
7629
+ type: "WorkflowInteractionDefinition",
7630
+ id: 3
7631
+ },
7632
+ signalDefinitions: {
7633
+ rule: "repeated",
7634
+ type: "WorkflowInteractionDefinition",
7635
+ id: 4
7636
+ },
7637
+ updateDefinitions: {
7638
+ rule: "repeated",
7639
+ type: "WorkflowInteractionDefinition",
7640
+ id: 5
7641
+ }
7642
+ }
7643
+ },
7644
+ WorkflowInteractionDefinition: {
7645
+ fields: {
7646
+ name: {
7647
+ type: "string",
7648
+ id: 1
7649
+ },
7650
+ description: {
7651
+ type: "string",
7652
+ id: 2
7653
+ }
7654
+ }
7608
7655
  }
7609
7656
  }
7610
7657
  }
package/protos/root.d.ts CHANGED
@@ -34909,6 +34909,340 @@ export namespace temporal {
34909
34909
  */
34910
34910
  public static getTypeUrl(typeUrlPrefix?: string): string;
34911
34911
  }
34912
+
34913
+ /** Properties of a WorkflowMetadata. */
34914
+ interface IWorkflowMetadata {
34915
+
34916
+ /** Metadata provided at declaration or creation time. */
34917
+ definition?: (temporal.api.sdk.v1.IWorkflowDefinition|null);
34918
+ }
34919
+
34920
+ /** The name of the query to retrieve this information is `__temporal_getWorkflowMetadata`. */
34921
+ class WorkflowMetadata implements IWorkflowMetadata {
34922
+
34923
+ /**
34924
+ * Constructs a new WorkflowMetadata.
34925
+ * @param [properties] Properties to set
34926
+ */
34927
+ constructor(properties?: temporal.api.sdk.v1.IWorkflowMetadata);
34928
+
34929
+ /** Metadata provided at declaration or creation time. */
34930
+ public definition?: (temporal.api.sdk.v1.IWorkflowDefinition|null);
34931
+
34932
+ /**
34933
+ * Creates a new WorkflowMetadata instance using the specified properties.
34934
+ * @param [properties] Properties to set
34935
+ * @returns WorkflowMetadata instance
34936
+ */
34937
+ public static create(properties?: temporal.api.sdk.v1.IWorkflowMetadata): temporal.api.sdk.v1.WorkflowMetadata;
34938
+
34939
+ /**
34940
+ * Encodes the specified WorkflowMetadata message. Does not implicitly {@link temporal.api.sdk.v1.WorkflowMetadata.verify|verify} messages.
34941
+ * @param message WorkflowMetadata message or plain object to encode
34942
+ * @param [writer] Writer to encode to
34943
+ * @returns Writer
34944
+ */
34945
+ public static encode(message: temporal.api.sdk.v1.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
34946
+
34947
+ /**
34948
+ * Encodes the specified WorkflowMetadata message, length delimited. Does not implicitly {@link temporal.api.sdk.v1.WorkflowMetadata.verify|verify} messages.
34949
+ * @param message WorkflowMetadata message or plain object to encode
34950
+ * @param [writer] Writer to encode to
34951
+ * @returns Writer
34952
+ */
34953
+ public static encodeDelimited(message: temporal.api.sdk.v1.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
34954
+
34955
+ /**
34956
+ * Decodes a WorkflowMetadata message from the specified reader or buffer.
34957
+ * @param reader Reader or buffer to decode from
34958
+ * @param [length] Message length if known beforehand
34959
+ * @returns WorkflowMetadata
34960
+ * @throws {Error} If the payload is not a reader or valid buffer
34961
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34962
+ */
34963
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.sdk.v1.WorkflowMetadata;
34964
+
34965
+ /**
34966
+ * Decodes a WorkflowMetadata message from the specified reader or buffer, length delimited.
34967
+ * @param reader Reader or buffer to decode from
34968
+ * @returns WorkflowMetadata
34969
+ * @throws {Error} If the payload is not a reader or valid buffer
34970
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34971
+ */
34972
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.sdk.v1.WorkflowMetadata;
34973
+
34974
+ /**
34975
+ * Creates a WorkflowMetadata message from a plain object. Also converts values to their respective internal types.
34976
+ * @param object Plain object
34977
+ * @returns WorkflowMetadata
34978
+ */
34979
+ public static fromObject(object: { [k: string]: any }): temporal.api.sdk.v1.WorkflowMetadata;
34980
+
34981
+ /**
34982
+ * Creates a plain object from a WorkflowMetadata message. Also converts values to other types if specified.
34983
+ * @param message WorkflowMetadata
34984
+ * @param [options] Conversion options
34985
+ * @returns Plain object
34986
+ */
34987
+ public static toObject(message: temporal.api.sdk.v1.WorkflowMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
34988
+
34989
+ /**
34990
+ * Converts this WorkflowMetadata to JSON.
34991
+ * @returns JSON object
34992
+ */
34993
+ public toJSON(): { [k: string]: any };
34994
+
34995
+ /**
34996
+ * Gets the default type url for WorkflowMetadata
34997
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
34998
+ * @returns The default type url
34999
+ */
35000
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35001
+ }
35002
+
35003
+ /** Properties of a WorkflowDefinition. */
35004
+ interface IWorkflowDefinition {
35005
+
35006
+ /**
35007
+ * A name scoped by the task queue that maps to this workflow definition.
35008
+ * If missing, this workflow is a dynamic workflow.
35009
+ */
35010
+ type?: (string|null);
35011
+
35012
+ /**
35013
+ * An optional workflow description provided by the application.
35014
+ * By convention, external tools may interpret its first part,
35015
+ * i.e., ending with a line break, as a summary of the description.
35016
+ */
35017
+ description?: (string|null);
35018
+
35019
+ /** WorkflowDefinition queryDefinitions */
35020
+ queryDefinitions?: (temporal.api.sdk.v1.IWorkflowInteractionDefinition[]|null);
35021
+
35022
+ /** WorkflowDefinition signalDefinitions */
35023
+ signalDefinitions?: (temporal.api.sdk.v1.IWorkflowInteractionDefinition[]|null);
35024
+
35025
+ /** WorkflowDefinition updateDefinitions */
35026
+ updateDefinitions?: (temporal.api.sdk.v1.IWorkflowInteractionDefinition[]|null);
35027
+ }
35028
+
35029
+ /** (-- api-linter: core::0203::optional=disabled --) */
35030
+ class WorkflowDefinition implements IWorkflowDefinition {
35031
+
35032
+ /**
35033
+ * Constructs a new WorkflowDefinition.
35034
+ * @param [properties] Properties to set
35035
+ */
35036
+ constructor(properties?: temporal.api.sdk.v1.IWorkflowDefinition);
35037
+
35038
+ /**
35039
+ * A name scoped by the task queue that maps to this workflow definition.
35040
+ * If missing, this workflow is a dynamic workflow.
35041
+ */
35042
+ public type: string;
35043
+
35044
+ /**
35045
+ * An optional workflow description provided by the application.
35046
+ * By convention, external tools may interpret its first part,
35047
+ * i.e., ending with a line break, as a summary of the description.
35048
+ */
35049
+ public description: string;
35050
+
35051
+ /** WorkflowDefinition queryDefinitions. */
35052
+ public queryDefinitions: temporal.api.sdk.v1.IWorkflowInteractionDefinition[];
35053
+
35054
+ /** WorkflowDefinition signalDefinitions. */
35055
+ public signalDefinitions: temporal.api.sdk.v1.IWorkflowInteractionDefinition[];
35056
+
35057
+ /** WorkflowDefinition updateDefinitions. */
35058
+ public updateDefinitions: temporal.api.sdk.v1.IWorkflowInteractionDefinition[];
35059
+
35060
+ /**
35061
+ * Creates a new WorkflowDefinition instance using the specified properties.
35062
+ * @param [properties] Properties to set
35063
+ * @returns WorkflowDefinition instance
35064
+ */
35065
+ public static create(properties?: temporal.api.sdk.v1.IWorkflowDefinition): temporal.api.sdk.v1.WorkflowDefinition;
35066
+
35067
+ /**
35068
+ * Encodes the specified WorkflowDefinition message. Does not implicitly {@link temporal.api.sdk.v1.WorkflowDefinition.verify|verify} messages.
35069
+ * @param message WorkflowDefinition message or plain object to encode
35070
+ * @param [writer] Writer to encode to
35071
+ * @returns Writer
35072
+ */
35073
+ public static encode(message: temporal.api.sdk.v1.IWorkflowDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
35074
+
35075
+ /**
35076
+ * Encodes the specified WorkflowDefinition message, length delimited. Does not implicitly {@link temporal.api.sdk.v1.WorkflowDefinition.verify|verify} messages.
35077
+ * @param message WorkflowDefinition message or plain object to encode
35078
+ * @param [writer] Writer to encode to
35079
+ * @returns Writer
35080
+ */
35081
+ public static encodeDelimited(message: temporal.api.sdk.v1.IWorkflowDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
35082
+
35083
+ /**
35084
+ * Decodes a WorkflowDefinition message from the specified reader or buffer.
35085
+ * @param reader Reader or buffer to decode from
35086
+ * @param [length] Message length if known beforehand
35087
+ * @returns WorkflowDefinition
35088
+ * @throws {Error} If the payload is not a reader or valid buffer
35089
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35090
+ */
35091
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.sdk.v1.WorkflowDefinition;
35092
+
35093
+ /**
35094
+ * Decodes a WorkflowDefinition message from the specified reader or buffer, length delimited.
35095
+ * @param reader Reader or buffer to decode from
35096
+ * @returns WorkflowDefinition
35097
+ * @throws {Error} If the payload is not a reader or valid buffer
35098
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35099
+ */
35100
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.sdk.v1.WorkflowDefinition;
35101
+
35102
+ /**
35103
+ * Creates a WorkflowDefinition message from a plain object. Also converts values to their respective internal types.
35104
+ * @param object Plain object
35105
+ * @returns WorkflowDefinition
35106
+ */
35107
+ public static fromObject(object: { [k: string]: any }): temporal.api.sdk.v1.WorkflowDefinition;
35108
+
35109
+ /**
35110
+ * Creates a plain object from a WorkflowDefinition message. Also converts values to other types if specified.
35111
+ * @param message WorkflowDefinition
35112
+ * @param [options] Conversion options
35113
+ * @returns Plain object
35114
+ */
35115
+ public static toObject(message: temporal.api.sdk.v1.WorkflowDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
35116
+
35117
+ /**
35118
+ * Converts this WorkflowDefinition to JSON.
35119
+ * @returns JSON object
35120
+ */
35121
+ public toJSON(): { [k: string]: any };
35122
+
35123
+ /**
35124
+ * Gets the default type url for WorkflowDefinition
35125
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35126
+ * @returns The default type url
35127
+ */
35128
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35129
+ }
35130
+
35131
+ /** Properties of a WorkflowInteractionDefinition. */
35132
+ interface IWorkflowInteractionDefinition {
35133
+
35134
+ /**
35135
+ * An optional name for the handler. If missing, it represents
35136
+ * a dynamic handler that processes any interactions not handled by others.
35137
+ * There is at most one dynamic handler per workflow and interaction kind.
35138
+ */
35139
+ name?: (string|null);
35140
+
35141
+ /**
35142
+ * An optional interaction description provided by the application.
35143
+ * By convention, external tools may interpret its first part,
35144
+ * i.e., ending with a line break, as a summary of the description.
35145
+ */
35146
+ description?: (string|null);
35147
+ }
35148
+
35149
+ /**
35150
+ * (-- api-linter: core::0123::resource-annotation=disabled
35151
+ * aip.dev/not-precedent: The `name` field is optional. --)
35152
+ * (-- api-linter: core::0203::optional=disabled --)
35153
+ */
35154
+ class WorkflowInteractionDefinition implements IWorkflowInteractionDefinition {
35155
+
35156
+ /**
35157
+ * Constructs a new WorkflowInteractionDefinition.
35158
+ * @param [properties] Properties to set
35159
+ */
35160
+ constructor(properties?: temporal.api.sdk.v1.IWorkflowInteractionDefinition);
35161
+
35162
+ /**
35163
+ * An optional name for the handler. If missing, it represents
35164
+ * a dynamic handler that processes any interactions not handled by others.
35165
+ * There is at most one dynamic handler per workflow and interaction kind.
35166
+ */
35167
+ public name: string;
35168
+
35169
+ /**
35170
+ * An optional interaction description provided by the application.
35171
+ * By convention, external tools may interpret its first part,
35172
+ * i.e., ending with a line break, as a summary of the description.
35173
+ */
35174
+ public description: string;
35175
+
35176
+ /**
35177
+ * Creates a new WorkflowInteractionDefinition instance using the specified properties.
35178
+ * @param [properties] Properties to set
35179
+ * @returns WorkflowInteractionDefinition instance
35180
+ */
35181
+ public static create(properties?: temporal.api.sdk.v1.IWorkflowInteractionDefinition): temporal.api.sdk.v1.WorkflowInteractionDefinition;
35182
+
35183
+ /**
35184
+ * Encodes the specified WorkflowInteractionDefinition message. Does not implicitly {@link temporal.api.sdk.v1.WorkflowInteractionDefinition.verify|verify} messages.
35185
+ * @param message WorkflowInteractionDefinition message or plain object to encode
35186
+ * @param [writer] Writer to encode to
35187
+ * @returns Writer
35188
+ */
35189
+ public static encode(message: temporal.api.sdk.v1.IWorkflowInteractionDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
35190
+
35191
+ /**
35192
+ * Encodes the specified WorkflowInteractionDefinition message, length delimited. Does not implicitly {@link temporal.api.sdk.v1.WorkflowInteractionDefinition.verify|verify} messages.
35193
+ * @param message WorkflowInteractionDefinition message or plain object to encode
35194
+ * @param [writer] Writer to encode to
35195
+ * @returns Writer
35196
+ */
35197
+ public static encodeDelimited(message: temporal.api.sdk.v1.IWorkflowInteractionDefinition, writer?: $protobuf.Writer): $protobuf.Writer;
35198
+
35199
+ /**
35200
+ * Decodes a WorkflowInteractionDefinition message from the specified reader or buffer.
35201
+ * @param reader Reader or buffer to decode from
35202
+ * @param [length] Message length if known beforehand
35203
+ * @returns WorkflowInteractionDefinition
35204
+ * @throws {Error} If the payload is not a reader or valid buffer
35205
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35206
+ */
35207
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): temporal.api.sdk.v1.WorkflowInteractionDefinition;
35208
+
35209
+ /**
35210
+ * Decodes a WorkflowInteractionDefinition message from the specified reader or buffer, length delimited.
35211
+ * @param reader Reader or buffer to decode from
35212
+ * @returns WorkflowInteractionDefinition
35213
+ * @throws {Error} If the payload is not a reader or valid buffer
35214
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
35215
+ */
35216
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): temporal.api.sdk.v1.WorkflowInteractionDefinition;
35217
+
35218
+ /**
35219
+ * Creates a WorkflowInteractionDefinition message from a plain object. Also converts values to their respective internal types.
35220
+ * @param object Plain object
35221
+ * @returns WorkflowInteractionDefinition
35222
+ */
35223
+ public static fromObject(object: { [k: string]: any }): temporal.api.sdk.v1.WorkflowInteractionDefinition;
35224
+
35225
+ /**
35226
+ * Creates a plain object from a WorkflowInteractionDefinition message. Also converts values to other types if specified.
35227
+ * @param message WorkflowInteractionDefinition
35228
+ * @param [options] Conversion options
35229
+ * @returns Plain object
35230
+ */
35231
+ public static toObject(message: temporal.api.sdk.v1.WorkflowInteractionDefinition, options?: $protobuf.IConversionOptions): { [k: string]: any };
35232
+
35233
+ /**
35234
+ * Converts this WorkflowInteractionDefinition to JSON.
35235
+ * @returns JSON object
35236
+ */
35237
+ public toJSON(): { [k: string]: any };
35238
+
35239
+ /**
35240
+ * Gets the default type url for WorkflowInteractionDefinition
35241
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
35242
+ * @returns The default type url
35243
+ */
35244
+ public static getTypeUrl(typeUrlPrefix?: string): string;
35245
+ }
34912
35246
  }
34913
35247
  }
34914
35248