@temporalio/proto 1.11.1 → 1.11.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 +2 -2
- package/protos/json-module.js +8 -4
- package/protos/root.d.ts +70 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/proto",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.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": "
|
|
42
|
+
"gitHead": "e78b4f71236ccd3227e674bad68439e961fec639"
|
|
43
43
|
}
|
package/protos/json-module.js
CHANGED
|
@@ -399,7 +399,7 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
|
|
|
399
399
|
oneofs: {
|
|
400
400
|
variant: {
|
|
401
401
|
oneof: [
|
|
402
|
-
"
|
|
402
|
+
"initializeWorkflow",
|
|
403
403
|
"fireTimer",
|
|
404
404
|
"updateRandomSeed",
|
|
405
405
|
"queryWorkflow",
|
|
@@ -417,8 +417,8 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
|
|
|
417
417
|
}
|
|
418
418
|
},
|
|
419
419
|
fields: {
|
|
420
|
-
|
|
421
|
-
type: "
|
|
420
|
+
initializeWorkflow: {
|
|
421
|
+
type: "InitializeWorkflow",
|
|
422
422
|
id: 1
|
|
423
423
|
},
|
|
424
424
|
fireTimer: {
|
|
@@ -475,7 +475,7 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
|
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
|
-
|
|
478
|
+
InitializeWorkflow: {
|
|
479
479
|
fields: {
|
|
480
480
|
workflowType: {
|
|
481
481
|
type: "string",
|
|
@@ -590,6 +590,10 @@ var $root = ($protobuf.roots.__temporal || ($protobuf.roots.__temporal = new $pr
|
|
|
590
590
|
result: {
|
|
591
591
|
type: "activity_result.ActivityResolution",
|
|
592
592
|
id: 2
|
|
593
|
+
},
|
|
594
|
+
isLocal: {
|
|
595
|
+
type: "bool",
|
|
596
|
+
id: 3
|
|
593
597
|
}
|
|
594
598
|
}
|
|
595
599
|
},
|
package/protos/root.d.ts
CHANGED
|
@@ -1740,22 +1740,38 @@ export namespace coresdk {
|
|
|
1740
1740
|
* ## Job ordering guarantees and semantics
|
|
1741
1741
|
*
|
|
1742
1742
|
* Core will, by default, order jobs within the activation as follows:
|
|
1743
|
-
*
|
|
1743
|
+
* 1. init workflow
|
|
1744
|
+
* 2. patches
|
|
1745
|
+
* 3. random-seed-updates
|
|
1746
|
+
* 4. signals/updates
|
|
1747
|
+
* 5. all others
|
|
1748
|
+
* 6. local activity resolutions
|
|
1749
|
+
* 7. queries
|
|
1750
|
+
* 8. evictions
|
|
1744
1751
|
*
|
|
1745
1752
|
* This is because:
|
|
1746
1753
|
* * Patches are expected to apply to the entire activation
|
|
1747
1754
|
* * Signal and update handlers should be invoked before workflow routines are iterated. That is to
|
|
1748
1755
|
* say before the users' main workflow function and anything spawned by it is allowed to continue.
|
|
1756
|
+
* * Local activities resolutions go after other normal jobs because while *not* replaying, they
|
|
1757
|
+
* will always take longer than anything else that produces an immediate job (which is
|
|
1758
|
+
* effectively instant). When *replaying* we need to scan ahead for LA markers so that we can
|
|
1759
|
+
* resolve them in the same activation that they completed in when not replaying. However, doing
|
|
1760
|
+
* so would, by default, put those resolutions *before* any other immediate jobs that happened
|
|
1761
|
+
* in that same activation (prime example: cancelling not-wait-for-cancel activities). So, we do
|
|
1762
|
+
* this to ensure the LA resolution happens after that cancel (or whatever else it may be) as it
|
|
1763
|
+
* normally would have when executing.
|
|
1749
1764
|
* * Queries always go last (and, in fact, always come in their own activation)
|
|
1750
1765
|
* * Evictions also always come in their own activation
|
|
1751
1766
|
*
|
|
1752
|
-
*
|
|
1753
|
-
*
|
|
1754
|
-
*
|
|
1755
|
-
*
|
|
1756
|
-
*
|
|
1757
|
-
*
|
|
1758
|
-
*
|
|
1767
|
+
* Core does this reordering to ensure that langs observe jobs in the same order during replay as
|
|
1768
|
+
* they would have during execution. However, in principle, this ordering is not necessary
|
|
1769
|
+
* (excepting queries/evictions, which definitely must come last) if lang layers apply all jobs to
|
|
1770
|
+
* state *first* (by resolving promises/futures, marking handlers to be invoked, etc as they iterate
|
|
1771
|
+
* over the jobs) and then only *after* that is done, drive coroutines/threads/whatever. If
|
|
1772
|
+
* execution works this way, then determinism is only impacted by the order routines are driven in
|
|
1773
|
+
* (which must be stable based on lang implementation or convention), rather than the order jobs are
|
|
1774
|
+
* processed.
|
|
1759
1775
|
*
|
|
1760
1776
|
* ## Evictions
|
|
1761
1777
|
*
|
|
@@ -1886,8 +1902,8 @@ export namespace coresdk {
|
|
|
1886
1902
|
/** Properties of a WorkflowActivationJob. */
|
|
1887
1903
|
interface IWorkflowActivationJob {
|
|
1888
1904
|
|
|
1889
|
-
/**
|
|
1890
|
-
|
|
1905
|
+
/** A workflow is starting, record all of the information from its start event */
|
|
1906
|
+
initializeWorkflow?: (coresdk.workflow_activation.IInitializeWorkflow|null);
|
|
1891
1907
|
|
|
1892
1908
|
/** A timer has fired, allowing whatever was waiting on it (if anything) to proceed */
|
|
1893
1909
|
fireTimer?: (coresdk.workflow_activation.IFireTimer|null);
|
|
@@ -1949,8 +1965,8 @@ export namespace coresdk {
|
|
|
1949
1965
|
*/
|
|
1950
1966
|
constructor(properties?: coresdk.workflow_activation.IWorkflowActivationJob);
|
|
1951
1967
|
|
|
1952
|
-
/**
|
|
1953
|
-
public
|
|
1968
|
+
/** A workflow is starting, record all of the information from its start event */
|
|
1969
|
+
public initializeWorkflow?: (coresdk.workflow_activation.IInitializeWorkflow|null);
|
|
1954
1970
|
|
|
1955
1971
|
/** A timer has fired, allowing whatever was waiting on it (if anything) to proceed */
|
|
1956
1972
|
public fireTimer?: (coresdk.workflow_activation.IFireTimer|null);
|
|
@@ -2003,7 +2019,7 @@ export namespace coresdk {
|
|
|
2003
2019
|
public removeFromCache?: (coresdk.workflow_activation.IRemoveFromCache|null);
|
|
2004
2020
|
|
|
2005
2021
|
/** WorkflowActivationJob variant. */
|
|
2006
|
-
public variant?: ("
|
|
2022
|
+
public variant?: ("initializeWorkflow"|"fireTimer"|"updateRandomSeed"|"queryWorkflow"|"cancelWorkflow"|"signalWorkflow"|"resolveActivity"|"notifyHasPatch"|"resolveChildWorkflowExecutionStart"|"resolveChildWorkflowExecution"|"resolveSignalExternalWorkflow"|"resolveRequestCancelExternalWorkflow"|"doUpdate"|"removeFromCache");
|
|
2007
2023
|
|
|
2008
2024
|
/**
|
|
2009
2025
|
* Creates a new WorkflowActivationJob instance using the specified properties.
|
|
@@ -2076,8 +2092,8 @@ export namespace coresdk {
|
|
|
2076
2092
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2077
2093
|
}
|
|
2078
2094
|
|
|
2079
|
-
/** Properties of
|
|
2080
|
-
interface
|
|
2095
|
+
/** Properties of an InitializeWorkflow. */
|
|
2096
|
+
interface IInitializeWorkflow {
|
|
2081
2097
|
|
|
2082
2098
|
/** The identifier the lang-specific sdk uses to execute workflow code */
|
|
2083
2099
|
workflowType?: (string|null);
|
|
@@ -2161,14 +2177,14 @@ export namespace coresdk {
|
|
|
2161
2177
|
startTime?: (google.protobuf.ITimestamp|null);
|
|
2162
2178
|
}
|
|
2163
2179
|
|
|
2164
|
-
/**
|
|
2165
|
-
class
|
|
2180
|
+
/** Initialize a new workflow */
|
|
2181
|
+
class InitializeWorkflow implements IInitializeWorkflow {
|
|
2166
2182
|
|
|
2167
2183
|
/**
|
|
2168
|
-
* Constructs a new
|
|
2184
|
+
* Constructs a new InitializeWorkflow.
|
|
2169
2185
|
* @param [properties] Properties to set
|
|
2170
2186
|
*/
|
|
2171
|
-
constructor(properties?: coresdk.workflow_activation.
|
|
2187
|
+
constructor(properties?: coresdk.workflow_activation.IInitializeWorkflow);
|
|
2172
2188
|
|
|
2173
2189
|
/** The identifier the lang-specific sdk uses to execute workflow code */
|
|
2174
2190
|
public workflowType: string;
|
|
@@ -2252,70 +2268,70 @@ export namespace coresdk {
|
|
|
2252
2268
|
public startTime?: (google.protobuf.ITimestamp|null);
|
|
2253
2269
|
|
|
2254
2270
|
/**
|
|
2255
|
-
* Creates a new
|
|
2271
|
+
* Creates a new InitializeWorkflow instance using the specified properties.
|
|
2256
2272
|
* @param [properties] Properties to set
|
|
2257
|
-
* @returns
|
|
2273
|
+
* @returns InitializeWorkflow instance
|
|
2258
2274
|
*/
|
|
2259
|
-
public static create(properties?: coresdk.workflow_activation.
|
|
2275
|
+
public static create(properties?: coresdk.workflow_activation.IInitializeWorkflow): coresdk.workflow_activation.InitializeWorkflow;
|
|
2260
2276
|
|
|
2261
2277
|
/**
|
|
2262
|
-
* Encodes the specified
|
|
2263
|
-
* @param message
|
|
2278
|
+
* Encodes the specified InitializeWorkflow message. Does not implicitly {@link coresdk.workflow_activation.InitializeWorkflow.verify|verify} messages.
|
|
2279
|
+
* @param message InitializeWorkflow message or plain object to encode
|
|
2264
2280
|
* @param [writer] Writer to encode to
|
|
2265
2281
|
* @returns Writer
|
|
2266
2282
|
*/
|
|
2267
|
-
public static encode(message: coresdk.workflow_activation.
|
|
2283
|
+
public static encode(message: coresdk.workflow_activation.IInitializeWorkflow, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2268
2284
|
|
|
2269
2285
|
/**
|
|
2270
|
-
* Encodes the specified
|
|
2271
|
-
* @param message
|
|
2286
|
+
* Encodes the specified InitializeWorkflow message, length delimited. Does not implicitly {@link coresdk.workflow_activation.InitializeWorkflow.verify|verify} messages.
|
|
2287
|
+
* @param message InitializeWorkflow message or plain object to encode
|
|
2272
2288
|
* @param [writer] Writer to encode to
|
|
2273
2289
|
* @returns Writer
|
|
2274
2290
|
*/
|
|
2275
|
-
public static encodeDelimited(message: coresdk.workflow_activation.
|
|
2291
|
+
public static encodeDelimited(message: coresdk.workflow_activation.IInitializeWorkflow, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2276
2292
|
|
|
2277
2293
|
/**
|
|
2278
|
-
* Decodes
|
|
2294
|
+
* Decodes an InitializeWorkflow message from the specified reader or buffer.
|
|
2279
2295
|
* @param reader Reader or buffer to decode from
|
|
2280
2296
|
* @param [length] Message length if known beforehand
|
|
2281
|
-
* @returns
|
|
2297
|
+
* @returns InitializeWorkflow
|
|
2282
2298
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2283
2299
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2284
2300
|
*/
|
|
2285
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coresdk.workflow_activation.
|
|
2301
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): coresdk.workflow_activation.InitializeWorkflow;
|
|
2286
2302
|
|
|
2287
2303
|
/**
|
|
2288
|
-
* Decodes
|
|
2304
|
+
* Decodes an InitializeWorkflow message from the specified reader or buffer, length delimited.
|
|
2289
2305
|
* @param reader Reader or buffer to decode from
|
|
2290
|
-
* @returns
|
|
2306
|
+
* @returns InitializeWorkflow
|
|
2291
2307
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2292
2308
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2293
2309
|
*/
|
|
2294
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coresdk.workflow_activation.
|
|
2310
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): coresdk.workflow_activation.InitializeWorkflow;
|
|
2295
2311
|
|
|
2296
2312
|
/**
|
|
2297
|
-
* Creates
|
|
2313
|
+
* Creates an InitializeWorkflow message from a plain object. Also converts values to their respective internal types.
|
|
2298
2314
|
* @param object Plain object
|
|
2299
|
-
* @returns
|
|
2315
|
+
* @returns InitializeWorkflow
|
|
2300
2316
|
*/
|
|
2301
|
-
public static fromObject(object: { [k: string]: any }): coresdk.workflow_activation.
|
|
2317
|
+
public static fromObject(object: { [k: string]: any }): coresdk.workflow_activation.InitializeWorkflow;
|
|
2302
2318
|
|
|
2303
2319
|
/**
|
|
2304
|
-
* Creates a plain object from
|
|
2305
|
-
* @param message
|
|
2320
|
+
* Creates a plain object from an InitializeWorkflow message. Also converts values to other types if specified.
|
|
2321
|
+
* @param message InitializeWorkflow
|
|
2306
2322
|
* @param [options] Conversion options
|
|
2307
2323
|
* @returns Plain object
|
|
2308
2324
|
*/
|
|
2309
|
-
public static toObject(message: coresdk.workflow_activation.
|
|
2325
|
+
public static toObject(message: coresdk.workflow_activation.InitializeWorkflow, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2310
2326
|
|
|
2311
2327
|
/**
|
|
2312
|
-
* Converts this
|
|
2328
|
+
* Converts this InitializeWorkflow to JSON.
|
|
2313
2329
|
* @returns JSON object
|
|
2314
2330
|
*/
|
|
2315
2331
|
public toJSON(): { [k: string]: any };
|
|
2316
2332
|
|
|
2317
2333
|
/**
|
|
2318
|
-
* Gets the default type url for
|
|
2334
|
+
* Gets the default type url for InitializeWorkflow
|
|
2319
2335
|
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2320
2336
|
* @returns The default type url
|
|
2321
2337
|
*/
|
|
@@ -2420,6 +2436,12 @@ export namespace coresdk {
|
|
|
2420
2436
|
|
|
2421
2437
|
/** ResolveActivity result */
|
|
2422
2438
|
result?: (coresdk.activity_result.IActivityResolution|null);
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Set to true if the resolution is for a local activity. This is used internally by Core and
|
|
2442
|
+
* lang does not need to care about it.
|
|
2443
|
+
*/
|
|
2444
|
+
isLocal?: (boolean|null);
|
|
2423
2445
|
}
|
|
2424
2446
|
|
|
2425
2447
|
/** Notify a workflow that an activity has been resolved */
|
|
@@ -2437,6 +2459,12 @@ export namespace coresdk {
|
|
|
2437
2459
|
/** ResolveActivity result. */
|
|
2438
2460
|
public result?: (coresdk.activity_result.IActivityResolution|null);
|
|
2439
2461
|
|
|
2462
|
+
/**
|
|
2463
|
+
* Set to true if the resolution is for a local activity. This is used internally by Core and
|
|
2464
|
+
* lang does not need to care about it.
|
|
2465
|
+
*/
|
|
2466
|
+
public isLocal: boolean;
|
|
2467
|
+
|
|
2440
2468
|
/**
|
|
2441
2469
|
* Creates a new ResolveActivity instance using the specified properties.
|
|
2442
2470
|
* @param [properties] Properties to set
|