@hatchet-dev/typescript-sdk 1.25.0 → 1.26.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/clients/dispatcher/action-listener.d.ts +1 -0
- package/clients/dispatcher/action-listener.js +5 -0
- package/clients/rest/generated/Api.d.ts +77 -3
- package/clients/rest/generated/Api.js +42 -2
- package/clients/rest/generated/data-contracts.d.ts +126 -2
- package/clients/rest/generated/data-contracts.js +26 -1
- package/opentelemetry/instrumentor.js +2 -1
- package/package.json +3 -3
- package/protoc/google/protobuf/any.d.ts +133 -0
- package/protoc/google/protobuf/any.js +112 -0
- package/protoc/google/rpc/status.d.ts +45 -0
- package/protoc/google/rpc/status.js +102 -0
- package/protoc/v1/workflows.d.ts +21 -0
- package/protoc/v1/workflows.js +231 -1
- package/util/errors/bulk-trigger-idempotency-collision-error.d.ts +6 -0
- package/util/errors/bulk-trigger-idempotency-collision-error.js +13 -0
- package/util/errors/idempotency-collision-error.d.ts +5 -0
- package/util/errors/idempotency-collision-error.js +16 -0
- package/util/retrier.d.ts +1 -1
- package/util/retrier.js +4 -1
- package/v1/client/admin.js +125 -9
- package/v1/client/worker/context.d.ts +8 -1
- package/v1/client/worker/context.js +11 -1
- package/v1/client/worker/worker-internal.js +6 -0
- package/v1/declaration.d.ts +6 -1
- package/v1/examples/e2e-worker.js +30 -27
- package/v1/examples/idempotency/run.d.ts +1 -0
- package/v1/examples/idempotency/run.js +37 -0
- package/v1/examples/idempotency/workflow.d.ts +10 -0
- package/v1/examples/idempotency/workflow.js +39 -0
- package/v1/index.d.ts +2 -0
- package/v1/index.js +5 -1
- package/v1/task.d.ts +24 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
5
|
+
* URL that describes the type of the serialized message.
|
|
6
|
+
*
|
|
7
|
+
* Protobuf library provides support to pack/unpack Any values in the form
|
|
8
|
+
* of utility functions or additional generated methods of the Any type.
|
|
9
|
+
*
|
|
10
|
+
* Example 1: Pack and unpack a message in C++.
|
|
11
|
+
*
|
|
12
|
+
* Foo foo = ...;
|
|
13
|
+
* Any any;
|
|
14
|
+
* any.PackFrom(foo);
|
|
15
|
+
* ...
|
|
16
|
+
* if (any.UnpackTo(&foo)) {
|
|
17
|
+
* ...
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* Example 2: Pack and unpack a message in Java.
|
|
21
|
+
*
|
|
22
|
+
* Foo foo = ...;
|
|
23
|
+
* Any any = Any.pack(foo);
|
|
24
|
+
* ...
|
|
25
|
+
* if (any.is(Foo.class)) {
|
|
26
|
+
* foo = any.unpack(Foo.class);
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* Example 3: Pack and unpack a message in Python.
|
|
30
|
+
*
|
|
31
|
+
* foo = Foo(...)
|
|
32
|
+
* any = Any()
|
|
33
|
+
* any.Pack(foo)
|
|
34
|
+
* ...
|
|
35
|
+
* if any.Is(Foo.DESCRIPTOR):
|
|
36
|
+
* any.Unpack(foo)
|
|
37
|
+
* ...
|
|
38
|
+
*
|
|
39
|
+
* Example 4: Pack and unpack a message in Go
|
|
40
|
+
*
|
|
41
|
+
* foo := &pb.Foo{...}
|
|
42
|
+
* any, err := anypb.New(foo)
|
|
43
|
+
* if err != nil {
|
|
44
|
+
* ...
|
|
45
|
+
* }
|
|
46
|
+
* ...
|
|
47
|
+
* foo := &pb.Foo{}
|
|
48
|
+
* if err := any.UnmarshalTo(foo); err != nil {
|
|
49
|
+
* ...
|
|
50
|
+
* }
|
|
51
|
+
*
|
|
52
|
+
* The pack methods provided by protobuf library will by default use
|
|
53
|
+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
54
|
+
* methods only use the fully qualified type name after the last '/'
|
|
55
|
+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
56
|
+
* name "y.z".
|
|
57
|
+
*
|
|
58
|
+
* JSON
|
|
59
|
+
* ====
|
|
60
|
+
* The JSON representation of an `Any` value uses the regular
|
|
61
|
+
* representation of the deserialized, embedded message, with an
|
|
62
|
+
* additional field `@type` which contains the type URL. Example:
|
|
63
|
+
*
|
|
64
|
+
* package google.profile;
|
|
65
|
+
* message Person {
|
|
66
|
+
* string first_name = 1;
|
|
67
|
+
* string last_name = 2;
|
|
68
|
+
* }
|
|
69
|
+
*
|
|
70
|
+
* {
|
|
71
|
+
* "@type": "type.googleapis.com/google.profile.Person",
|
|
72
|
+
* "firstName": <string>,
|
|
73
|
+
* "lastName": <string>
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* If the embedded message type is well-known and has a custom JSON
|
|
77
|
+
* representation, that representation will be embedded adding a field
|
|
78
|
+
* `value` which holds the custom JSON in addition to the `@type`
|
|
79
|
+
* field. Example (for message [google.protobuf.Duration][]):
|
|
80
|
+
*
|
|
81
|
+
* {
|
|
82
|
+
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
83
|
+
* "value": "1.212s"
|
|
84
|
+
* }
|
|
85
|
+
*/
|
|
86
|
+
export interface Any {
|
|
87
|
+
/**
|
|
88
|
+
* A URL/resource name that uniquely identifies the type of the serialized
|
|
89
|
+
* protocol buffer message. This string must contain at least
|
|
90
|
+
* one "/" character. The last segment of the URL's path must represent
|
|
91
|
+
* the fully qualified name of the type (as in
|
|
92
|
+
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
93
|
+
* (e.g., leading "." is not accepted).
|
|
94
|
+
*
|
|
95
|
+
* In practice, teams usually precompile into the binary all types that they
|
|
96
|
+
* expect it to use in the context of Any. However, for URLs which use the
|
|
97
|
+
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
98
|
+
* server that maps type URLs to message definitions as follows:
|
|
99
|
+
*
|
|
100
|
+
* * If no scheme is provided, `https` is assumed.
|
|
101
|
+
* * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
|
102
|
+
* value in binary format, or produce an error.
|
|
103
|
+
* * Applications are allowed to cache lookup results based on the
|
|
104
|
+
* URL, or have them precompiled into a binary to avoid any
|
|
105
|
+
* lookup. Therefore, binary compatibility needs to be preserved
|
|
106
|
+
* on changes to types. (Use versioned type names to manage
|
|
107
|
+
* breaking changes.)
|
|
108
|
+
*
|
|
109
|
+
* Note: this functionality is not currently available in the official
|
|
110
|
+
* protobuf release, and it is not used for type URLs beginning with
|
|
111
|
+
* type.googleapis.com.
|
|
112
|
+
*
|
|
113
|
+
* Schemes other than `http`, `https` (or the empty scheme) might be
|
|
114
|
+
* used with implementation specific semantics.
|
|
115
|
+
*/
|
|
116
|
+
typeUrl: string;
|
|
117
|
+
/** Must be a valid serialized protocol buffer of the above specified type. */
|
|
118
|
+
value: Uint8Array;
|
|
119
|
+
}
|
|
120
|
+
export declare const Any: MessageFns<Any>;
|
|
121
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
122
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
123
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
124
|
+
} : Partial<T>;
|
|
125
|
+
export interface MessageFns<T> {
|
|
126
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
127
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
128
|
+
fromJSON(object: any): T;
|
|
129
|
+
toJSON(message: T): unknown;
|
|
130
|
+
create(base?: DeepPartial<T>): T;
|
|
131
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
132
|
+
}
|
|
133
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.6
|
|
5
|
+
// protoc v3.19.1
|
|
6
|
+
// source: google/protobuf/any.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Any = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = 'google.protobuf';
|
|
12
|
+
function createBaseAny() {
|
|
13
|
+
return { typeUrl: '', value: new Uint8Array(0) };
|
|
14
|
+
}
|
|
15
|
+
exports.Any = {
|
|
16
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
if (message.typeUrl !== '') {
|
|
18
|
+
writer.uint32(10).string(message.typeUrl);
|
|
19
|
+
}
|
|
20
|
+
if (message.value.length !== 0) {
|
|
21
|
+
writer.uint32(18).bytes(message.value);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
27
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBaseAny();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1: {
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.typeUrl = reader.string();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
case 2: {
|
|
40
|
+
if (tag !== 18) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
message.value = reader.bytes();
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
reader.skip(tag & 7);
|
|
51
|
+
}
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
fromJSON(object) {
|
|
55
|
+
return {
|
|
56
|
+
typeUrl: isSet(object.typeUrl)
|
|
57
|
+
? globalThis.String(object.typeUrl)
|
|
58
|
+
: isSet(object.type_url)
|
|
59
|
+
? globalThis.String(object.type_url)
|
|
60
|
+
: '',
|
|
61
|
+
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
toJSON(message) {
|
|
65
|
+
const obj = {};
|
|
66
|
+
if (message.typeUrl !== '') {
|
|
67
|
+
obj.typeUrl = message.typeUrl;
|
|
68
|
+
}
|
|
69
|
+
if (message.value.length !== 0) {
|
|
70
|
+
obj.value = base64FromBytes(message.value);
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
},
|
|
74
|
+
create(base) {
|
|
75
|
+
return exports.Any.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
76
|
+
},
|
|
77
|
+
fromPartial(object) {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
const message = createBaseAny();
|
|
80
|
+
message.typeUrl = (_a = object.typeUrl) !== null && _a !== void 0 ? _a : '';
|
|
81
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array(0);
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
function bytesFromBase64(b64) {
|
|
86
|
+
if (globalThis.Buffer) {
|
|
87
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, 'base64'));
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const bin = globalThis.atob(b64);
|
|
91
|
+
const arr = new Uint8Array(bin.length);
|
|
92
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
93
|
+
arr[i] = bin.charCodeAt(i);
|
|
94
|
+
}
|
|
95
|
+
return arr;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function base64FromBytes(arr) {
|
|
99
|
+
if (globalThis.Buffer) {
|
|
100
|
+
return globalThis.Buffer.from(arr).toString('base64');
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
const bin = [];
|
|
104
|
+
arr.forEach((byte) => {
|
|
105
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
106
|
+
});
|
|
107
|
+
return globalThis.btoa(bin.join(''));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function isSet(value) {
|
|
111
|
+
return value !== null && value !== undefined;
|
|
112
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from '@bufbuild/protobuf/wire';
|
|
2
|
+
import { Any } from '../protobuf/any';
|
|
3
|
+
export declare const protobufPackage = "google.rpc";
|
|
4
|
+
/**
|
|
5
|
+
* The `Status` type defines a logical error model that is suitable for
|
|
6
|
+
* different programming environments, including REST APIs and RPC APIs. It is
|
|
7
|
+
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
8
|
+
* three pieces of data: error code, error message, and error details.
|
|
9
|
+
*
|
|
10
|
+
* You can find out more about this error model and how to work with it in the
|
|
11
|
+
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
12
|
+
*/
|
|
13
|
+
export interface Status {
|
|
14
|
+
/**
|
|
15
|
+
* The status code, which should be an enum value of
|
|
16
|
+
* [google.rpc.Code][google.rpc.Code].
|
|
17
|
+
*/
|
|
18
|
+
code: number;
|
|
19
|
+
/**
|
|
20
|
+
* A developer-facing error message, which should be in English. Any
|
|
21
|
+
* user-facing error message should be localized and sent in the
|
|
22
|
+
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized
|
|
23
|
+
* by the client.
|
|
24
|
+
*/
|
|
25
|
+
message: string;
|
|
26
|
+
/**
|
|
27
|
+
* A list of messages that carry the error details. There is a common set of
|
|
28
|
+
* message types for APIs to use.
|
|
29
|
+
*/
|
|
30
|
+
details: Any[];
|
|
31
|
+
}
|
|
32
|
+
export declare const Status: MessageFns<Status>;
|
|
33
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
34
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
35
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
36
|
+
} : Partial<T>;
|
|
37
|
+
export interface MessageFns<T> {
|
|
38
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
39
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
40
|
+
fromJSON(object: any): T;
|
|
41
|
+
toJSON(message: T): unknown;
|
|
42
|
+
create(base?: DeepPartial<T>): T;
|
|
43
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
44
|
+
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.6
|
|
5
|
+
// protoc v3.19.1
|
|
6
|
+
// source: google/rpc/status.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Status = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const any_1 = require("../protobuf/any");
|
|
12
|
+
exports.protobufPackage = 'google.rpc';
|
|
13
|
+
function createBaseStatus() {
|
|
14
|
+
return { code: 0, message: '', details: [] };
|
|
15
|
+
}
|
|
16
|
+
exports.Status = {
|
|
17
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
18
|
+
if (message.code !== 0) {
|
|
19
|
+
writer.uint32(8).int32(message.code);
|
|
20
|
+
}
|
|
21
|
+
if (message.message !== '') {
|
|
22
|
+
writer.uint32(18).string(message.message);
|
|
23
|
+
}
|
|
24
|
+
for (const v of message.details) {
|
|
25
|
+
any_1.Any.encode(v, writer.uint32(26).fork()).join();
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
31
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseStatus();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1: {
|
|
37
|
+
if (tag !== 8) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.code = reader.int32();
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
case 2: {
|
|
44
|
+
if (tag !== 18) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.message = reader.string();
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
case 3: {
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.details.push(any_1.Any.decode(reader, reader.uint32()));
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
reader.skip(tag & 7);
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromJSON(object) {
|
|
66
|
+
return {
|
|
67
|
+
code: isSet(object.code) ? globalThis.Number(object.code) : 0,
|
|
68
|
+
message: isSet(object.message) ? globalThis.String(object.message) : '',
|
|
69
|
+
details: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.details)
|
|
70
|
+
? object.details.map((e) => any_1.Any.fromJSON(e))
|
|
71
|
+
: [],
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
toJSON(message) {
|
|
75
|
+
var _a;
|
|
76
|
+
const obj = {};
|
|
77
|
+
if (message.code !== 0) {
|
|
78
|
+
obj.code = Math.round(message.code);
|
|
79
|
+
}
|
|
80
|
+
if (message.message !== '') {
|
|
81
|
+
obj.message = message.message;
|
|
82
|
+
}
|
|
83
|
+
if ((_a = message.details) === null || _a === void 0 ? void 0 : _a.length) {
|
|
84
|
+
obj.details = message.details.map((e) => any_1.Any.toJSON(e));
|
|
85
|
+
}
|
|
86
|
+
return obj;
|
|
87
|
+
},
|
|
88
|
+
create(base) {
|
|
89
|
+
return exports.Status.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
90
|
+
},
|
|
91
|
+
fromPartial(object) {
|
|
92
|
+
var _a, _b, _c;
|
|
93
|
+
const message = createBaseStatus();
|
|
94
|
+
message.code = (_a = object.code) !== null && _a !== void 0 ? _a : 0;
|
|
95
|
+
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : '';
|
|
96
|
+
message.details = ((_c = object.details) === null || _c === void 0 ? void 0 : _c.map((e) => any_1.Any.fromPartial(e))) || [];
|
|
97
|
+
return message;
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
function isSet(value) {
|
|
101
|
+
return value !== null && value !== undefined;
|
|
102
|
+
}
|
package/protoc/v1/workflows.d.ts
CHANGED
|
@@ -130,6 +130,24 @@ export interface CreateWorkflowVersionRequest {
|
|
|
130
130
|
defaultFilters: DefaultFilter[];
|
|
131
131
|
/** (optional) the JSON schema for the workflow input */
|
|
132
132
|
inputJsonSchema?: Uint8Array | undefined;
|
|
133
|
+
/** (optional) idempotency configuration for the workflow */
|
|
134
|
+
idempotency?: IdempotencyConfig | undefined;
|
|
135
|
+
}
|
|
136
|
+
export interface IdempotencyConfig {
|
|
137
|
+
/** a CEL expression for determining the idempotency key for workflow runs */
|
|
138
|
+
expression: string;
|
|
139
|
+
/** time-to-live for idempotency keys in milliseconds */
|
|
140
|
+
ttlMs: number;
|
|
141
|
+
}
|
|
142
|
+
export interface IdempotencyCollisionError {
|
|
143
|
+
/** the external ID of the existing workflow run that caused the collision */
|
|
144
|
+
existingRunExternalId: string;
|
|
145
|
+
}
|
|
146
|
+
export interface BulkTriggerIdempotencyCollisionError {
|
|
147
|
+
/** the external IDs of the successfully triggered workflow runs */
|
|
148
|
+
successfulWorkflowRunExternalIds: string[];
|
|
149
|
+
/** the idempotency collision errors */
|
|
150
|
+
collisions: IdempotencyCollisionError[];
|
|
133
151
|
}
|
|
134
152
|
export interface DefaultFilter {
|
|
135
153
|
/** (required) the CEL expression for the filter */
|
|
@@ -260,6 +278,9 @@ export declare const TriggerWorkflowRunResponse: MessageFns<TriggerWorkflowRunRe
|
|
|
260
278
|
export declare const BranchDurableTaskRequest: MessageFns<BranchDurableTaskRequest>;
|
|
261
279
|
export declare const BranchDurableTaskResponse: MessageFns<BranchDurableTaskResponse>;
|
|
262
280
|
export declare const CreateWorkflowVersionRequest: MessageFns<CreateWorkflowVersionRequest>;
|
|
281
|
+
export declare const IdempotencyConfig: MessageFns<IdempotencyConfig>;
|
|
282
|
+
export declare const IdempotencyCollisionError: MessageFns<IdempotencyCollisionError>;
|
|
283
|
+
export declare const BulkTriggerIdempotencyCollisionError: MessageFns<BulkTriggerIdempotencyCollisionError>;
|
|
263
284
|
export declare const DefaultFilter: MessageFns<DefaultFilter>;
|
|
264
285
|
export declare const Concurrency: MessageFns<Concurrency>;
|
|
265
286
|
export declare const CreateTaskOpts: MessageFns<CreateTaskOpts>;
|