@hatchet-dev/typescript-sdk 0.1.1 → 0.1.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/clients/admin/admin-client.d.ts +12 -0
- package/clients/admin/admin-client.js +47 -0
- package/clients/dispatcher/action-listener.d.ts +26 -0
- package/clients/dispatcher/action-listener.js +113 -0
- package/clients/dispatcher/dispatcher-client.d.ts +20 -0
- package/clients/dispatcher/dispatcher-client.js +58 -0
- package/clients/event/event-client.d.ts +11 -0
- package/clients/event/event-client.js +32 -0
- package/clients/hatchet-client/client-config.d.ts +72 -0
- package/clients/hatchet-client/client-config.js +17 -0
- package/clients/hatchet-client/hatchet-client.d.ts +26 -0
- package/clients/hatchet-client/hatchet-client.js +133 -0
- package/clients/hatchet-client/index.d.ts +2 -0
- package/clients/hatchet-client/index.js +18 -0
- package/clients/worker/index.d.ts +1 -0
- package/clients/worker/index.js +17 -0
- package/clients/worker/worker.d.ts +34 -0
- package/clients/worker/worker.js +317 -0
- package/index.d.ts +2 -0
- package/index.js +4 -0
- package/package.json +2 -2
- package/protoc/dispatcher/dispatcher.d.ts +333 -0
- package/protoc/dispatcher/dispatcher.js +1152 -0
- package/protoc/dispatcher/index.d.ts +1 -0
- package/protoc/dispatcher/index.js +17 -0
- package/protoc/events/events.d.ts +165 -0
- package/protoc/events/events.js +443 -0
- package/protoc/events/index.d.ts +1 -0
- package/protoc/events/index.js +17 -0
- package/protoc/google/protobuf/timestamp.d.ts +121 -0
- package/protoc/google/protobuf/timestamp.js +110 -0
- package/protoc/google/protobuf/wrappers.d.ts +160 -0
- package/protoc/google/protobuf/wrappers.js +527 -0
- package/protoc/workflows/index.d.ts +1 -0
- package/protoc/workflows/index.js +17 -0
- package/protoc/workflows/workflows.d.ts +464 -0
- package/protoc/workflows/workflows.js +1951 -0
- package/sdk.d.ts +2 -0
- package/sdk.js +4 -0
- package/step.d.ts +33 -0
- package/step.js +65 -0
- package/util/config-loader/config-loader.d.ts +13 -0
- package/util/config-loader/config-loader.js +85 -0
- package/util/config-loader/index.d.ts +1 -0
- package/util/config-loader/index.js +17 -0
- package/util/errors/hatchet-error.d.ts +4 -0
- package/util/errors/hatchet-error.js +9 -0
- package/util/hatchet-promise/hatchet-promise.d.ts +6 -0
- package/util/hatchet-promise/hatchet-promise.js +12 -0
- package/util/logger/index.d.ts +1 -0
- package/util/logger/index.js +17 -0
- package/util/logger/logger.d.ts +12 -0
- package/util/logger/logger.js +37 -0
- package/util/sleep.d.ts +2 -0
- package/util/sleep.js +6 -0
- package/workflow.d.ts +111 -0
- package/workflow.js +54 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* A Timestamp represents a point in time independent of any time zone or local
|
|
5
|
+
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
6
|
+
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
|
7
|
+
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
|
8
|
+
* Gregorian calendar backwards to year one.
|
|
9
|
+
*
|
|
10
|
+
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
|
11
|
+
* second table is needed for interpretation, using a [24-hour linear
|
|
12
|
+
* smear](https://developers.google.com/time/smear).
|
|
13
|
+
*
|
|
14
|
+
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
|
15
|
+
* restricting to that range, we ensure that we can convert to and from [RFC
|
|
16
|
+
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
|
17
|
+
*
|
|
18
|
+
* # Examples
|
|
19
|
+
*
|
|
20
|
+
* Example 1: Compute Timestamp from POSIX `time()`.
|
|
21
|
+
*
|
|
22
|
+
* Timestamp timestamp;
|
|
23
|
+
* timestamp.set_seconds(time(NULL));
|
|
24
|
+
* timestamp.set_nanos(0);
|
|
25
|
+
*
|
|
26
|
+
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
27
|
+
*
|
|
28
|
+
* struct timeval tv;
|
|
29
|
+
* gettimeofday(&tv, NULL);
|
|
30
|
+
*
|
|
31
|
+
* Timestamp timestamp;
|
|
32
|
+
* timestamp.set_seconds(tv.tv_sec);
|
|
33
|
+
* timestamp.set_nanos(tv.tv_usec * 1000);
|
|
34
|
+
*
|
|
35
|
+
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
36
|
+
*
|
|
37
|
+
* FILETIME ft;
|
|
38
|
+
* GetSystemTimeAsFileTime(&ft);
|
|
39
|
+
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
40
|
+
*
|
|
41
|
+
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
42
|
+
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
43
|
+
* Timestamp timestamp;
|
|
44
|
+
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
45
|
+
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
46
|
+
*
|
|
47
|
+
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
48
|
+
*
|
|
49
|
+
* long millis = System.currentTimeMillis();
|
|
50
|
+
*
|
|
51
|
+
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
52
|
+
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
53
|
+
*
|
|
54
|
+
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
55
|
+
*
|
|
56
|
+
* Instant now = Instant.now();
|
|
57
|
+
*
|
|
58
|
+
* Timestamp timestamp =
|
|
59
|
+
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
60
|
+
* .setNanos(now.getNano()).build();
|
|
61
|
+
*
|
|
62
|
+
* Example 6: Compute Timestamp from current time in Python.
|
|
63
|
+
*
|
|
64
|
+
* timestamp = Timestamp()
|
|
65
|
+
* timestamp.GetCurrentTime()
|
|
66
|
+
*
|
|
67
|
+
* # JSON Mapping
|
|
68
|
+
*
|
|
69
|
+
* In JSON format, the Timestamp type is encoded as a string in the
|
|
70
|
+
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
71
|
+
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
72
|
+
* where {year} is always expressed using four digits while {month}, {day},
|
|
73
|
+
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
74
|
+
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
75
|
+
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
76
|
+
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
77
|
+
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
78
|
+
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
79
|
+
*
|
|
80
|
+
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
81
|
+
* 01:30 UTC on January 15, 2017.
|
|
82
|
+
*
|
|
83
|
+
* In JavaScript, one can convert a Date object to this format using the
|
|
84
|
+
* standard
|
|
85
|
+
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
|
86
|
+
* method. In Python, a standard `datetime.datetime` object can be converted
|
|
87
|
+
* to this format using
|
|
88
|
+
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
89
|
+
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
90
|
+
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
91
|
+
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
|
92
|
+
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
93
|
+
*/
|
|
94
|
+
export interface Timestamp {
|
|
95
|
+
/**
|
|
96
|
+
* Represents seconds of UTC time since Unix epoch
|
|
97
|
+
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
98
|
+
* 9999-12-31T23:59:59Z inclusive.
|
|
99
|
+
*/
|
|
100
|
+
seconds: number;
|
|
101
|
+
/**
|
|
102
|
+
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
103
|
+
* second values with fractions must still have non-negative nanos values
|
|
104
|
+
* that count forward in time. Must be from 0 to 999,999,999
|
|
105
|
+
* inclusive.
|
|
106
|
+
*/
|
|
107
|
+
nanos: number;
|
|
108
|
+
}
|
|
109
|
+
export declare const Timestamp: {
|
|
110
|
+
encode(message: Timestamp, writer?: _m0.Writer): _m0.Writer;
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp;
|
|
112
|
+
fromJSON(object: any): Timestamp;
|
|
113
|
+
toJSON(message: Timestamp): unknown;
|
|
114
|
+
create(base?: DeepPartial<Timestamp>): Timestamp;
|
|
115
|
+
fromPartial(object: DeepPartial<Timestamp>): Timestamp;
|
|
116
|
+
};
|
|
117
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
118
|
+
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 {} ? {
|
|
119
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
120
|
+
} : Partial<T>;
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Timestamp = exports.protobufPackage = void 0;
|
|
27
|
+
/* eslint-disable */
|
|
28
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
29
|
+
const Long = require("long");
|
|
30
|
+
exports.protobufPackage = "google.protobuf";
|
|
31
|
+
function createBaseTimestamp() {
|
|
32
|
+
return { seconds: 0, nanos: 0 };
|
|
33
|
+
}
|
|
34
|
+
exports.Timestamp = {
|
|
35
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36
|
+
if (message.seconds !== 0) {
|
|
37
|
+
writer.uint32(8).int64(message.seconds);
|
|
38
|
+
}
|
|
39
|
+
if (message.nanos !== 0) {
|
|
40
|
+
writer.uint32(16).int32(message.nanos);
|
|
41
|
+
}
|
|
42
|
+
return writer;
|
|
43
|
+
},
|
|
44
|
+
decode(input, length) {
|
|
45
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
46
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
47
|
+
const message = createBaseTimestamp();
|
|
48
|
+
while (reader.pos < end) {
|
|
49
|
+
const tag = reader.uint32();
|
|
50
|
+
switch (tag >>> 3) {
|
|
51
|
+
case 1:
|
|
52
|
+
if (tag !== 8) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.seconds = longToNumber(reader.int64());
|
|
56
|
+
continue;
|
|
57
|
+
case 2:
|
|
58
|
+
if (tag !== 16) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
message.nanos = reader.int32();
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
reader.skipType(tag & 7);
|
|
68
|
+
}
|
|
69
|
+
return message;
|
|
70
|
+
},
|
|
71
|
+
fromJSON(object) {
|
|
72
|
+
return {
|
|
73
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
74
|
+
nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
toJSON(message) {
|
|
78
|
+
const obj = {};
|
|
79
|
+
if (message.seconds !== 0) {
|
|
80
|
+
obj.seconds = Math.round(message.seconds);
|
|
81
|
+
}
|
|
82
|
+
if (message.nanos !== 0) {
|
|
83
|
+
obj.nanos = Math.round(message.nanos);
|
|
84
|
+
}
|
|
85
|
+
return obj;
|
|
86
|
+
},
|
|
87
|
+
create(base) {
|
|
88
|
+
return exports.Timestamp.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
89
|
+
},
|
|
90
|
+
fromPartial(object) {
|
|
91
|
+
var _a, _b;
|
|
92
|
+
const message = createBaseTimestamp();
|
|
93
|
+
message.seconds = (_a = object.seconds) !== null && _a !== void 0 ? _a : 0;
|
|
94
|
+
message.nanos = (_b = object.nanos) !== null && _b !== void 0 ? _b : 0;
|
|
95
|
+
return message;
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
function longToNumber(long) {
|
|
99
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
100
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
101
|
+
}
|
|
102
|
+
return long.toNumber();
|
|
103
|
+
}
|
|
104
|
+
if (_m0.util.Long !== Long) {
|
|
105
|
+
_m0.util.Long = Long;
|
|
106
|
+
_m0.configure();
|
|
107
|
+
}
|
|
108
|
+
function isSet(value) {
|
|
109
|
+
return value !== null && value !== undefined;
|
|
110
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "google.protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* Wrapper message for `double`.
|
|
5
|
+
*
|
|
6
|
+
* The JSON representation for `DoubleValue` is JSON number.
|
|
7
|
+
*/
|
|
8
|
+
export interface DoubleValue {
|
|
9
|
+
/** The double value. */
|
|
10
|
+
value: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Wrapper message for `float`.
|
|
14
|
+
*
|
|
15
|
+
* The JSON representation for `FloatValue` is JSON number.
|
|
16
|
+
*/
|
|
17
|
+
export interface FloatValue {
|
|
18
|
+
/** The float value. */
|
|
19
|
+
value: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Wrapper message for `int64`.
|
|
23
|
+
*
|
|
24
|
+
* The JSON representation for `Int64Value` is JSON string.
|
|
25
|
+
*/
|
|
26
|
+
export interface Int64Value {
|
|
27
|
+
/** The int64 value. */
|
|
28
|
+
value: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Wrapper message for `uint64`.
|
|
32
|
+
*
|
|
33
|
+
* The JSON representation for `UInt64Value` is JSON string.
|
|
34
|
+
*/
|
|
35
|
+
export interface UInt64Value {
|
|
36
|
+
/** The uint64 value. */
|
|
37
|
+
value: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Wrapper message for `int32`.
|
|
41
|
+
*
|
|
42
|
+
* The JSON representation for `Int32Value` is JSON number.
|
|
43
|
+
*/
|
|
44
|
+
export interface Int32Value {
|
|
45
|
+
/** The int32 value. */
|
|
46
|
+
value: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Wrapper message for `uint32`.
|
|
50
|
+
*
|
|
51
|
+
* The JSON representation for `UInt32Value` is JSON number.
|
|
52
|
+
*/
|
|
53
|
+
export interface UInt32Value {
|
|
54
|
+
/** The uint32 value. */
|
|
55
|
+
value: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Wrapper message for `bool`.
|
|
59
|
+
*
|
|
60
|
+
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
|
61
|
+
*/
|
|
62
|
+
export interface BoolValue {
|
|
63
|
+
/** The bool value. */
|
|
64
|
+
value: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Wrapper message for `string`.
|
|
68
|
+
*
|
|
69
|
+
* The JSON representation for `StringValue` is JSON string.
|
|
70
|
+
*/
|
|
71
|
+
export interface StringValue {
|
|
72
|
+
/** The string value. */
|
|
73
|
+
value: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Wrapper message for `bytes`.
|
|
77
|
+
*
|
|
78
|
+
* The JSON representation for `BytesValue` is JSON string.
|
|
79
|
+
*/
|
|
80
|
+
export interface BytesValue {
|
|
81
|
+
/** The bytes value. */
|
|
82
|
+
value: Uint8Array;
|
|
83
|
+
}
|
|
84
|
+
export declare const DoubleValue: {
|
|
85
|
+
encode(message: DoubleValue, writer?: _m0.Writer): _m0.Writer;
|
|
86
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DoubleValue;
|
|
87
|
+
fromJSON(object: any): DoubleValue;
|
|
88
|
+
toJSON(message: DoubleValue): unknown;
|
|
89
|
+
create(base?: DeepPartial<DoubleValue>): DoubleValue;
|
|
90
|
+
fromPartial(object: DeepPartial<DoubleValue>): DoubleValue;
|
|
91
|
+
};
|
|
92
|
+
export declare const FloatValue: {
|
|
93
|
+
encode(message: FloatValue, writer?: _m0.Writer): _m0.Writer;
|
|
94
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FloatValue;
|
|
95
|
+
fromJSON(object: any): FloatValue;
|
|
96
|
+
toJSON(message: FloatValue): unknown;
|
|
97
|
+
create(base?: DeepPartial<FloatValue>): FloatValue;
|
|
98
|
+
fromPartial(object: DeepPartial<FloatValue>): FloatValue;
|
|
99
|
+
};
|
|
100
|
+
export declare const Int64Value: {
|
|
101
|
+
encode(message: Int64Value, writer?: _m0.Writer): _m0.Writer;
|
|
102
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Int64Value;
|
|
103
|
+
fromJSON(object: any): Int64Value;
|
|
104
|
+
toJSON(message: Int64Value): unknown;
|
|
105
|
+
create(base?: DeepPartial<Int64Value>): Int64Value;
|
|
106
|
+
fromPartial(object: DeepPartial<Int64Value>): Int64Value;
|
|
107
|
+
};
|
|
108
|
+
export declare const UInt64Value: {
|
|
109
|
+
encode(message: UInt64Value, writer?: _m0.Writer): _m0.Writer;
|
|
110
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UInt64Value;
|
|
111
|
+
fromJSON(object: any): UInt64Value;
|
|
112
|
+
toJSON(message: UInt64Value): unknown;
|
|
113
|
+
create(base?: DeepPartial<UInt64Value>): UInt64Value;
|
|
114
|
+
fromPartial(object: DeepPartial<UInt64Value>): UInt64Value;
|
|
115
|
+
};
|
|
116
|
+
export declare const Int32Value: {
|
|
117
|
+
encode(message: Int32Value, writer?: _m0.Writer): _m0.Writer;
|
|
118
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Int32Value;
|
|
119
|
+
fromJSON(object: any): Int32Value;
|
|
120
|
+
toJSON(message: Int32Value): unknown;
|
|
121
|
+
create(base?: DeepPartial<Int32Value>): Int32Value;
|
|
122
|
+
fromPartial(object: DeepPartial<Int32Value>): Int32Value;
|
|
123
|
+
};
|
|
124
|
+
export declare const UInt32Value: {
|
|
125
|
+
encode(message: UInt32Value, writer?: _m0.Writer): _m0.Writer;
|
|
126
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UInt32Value;
|
|
127
|
+
fromJSON(object: any): UInt32Value;
|
|
128
|
+
toJSON(message: UInt32Value): unknown;
|
|
129
|
+
create(base?: DeepPartial<UInt32Value>): UInt32Value;
|
|
130
|
+
fromPartial(object: DeepPartial<UInt32Value>): UInt32Value;
|
|
131
|
+
};
|
|
132
|
+
export declare const BoolValue: {
|
|
133
|
+
encode(message: BoolValue, writer?: _m0.Writer): _m0.Writer;
|
|
134
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BoolValue;
|
|
135
|
+
fromJSON(object: any): BoolValue;
|
|
136
|
+
toJSON(message: BoolValue): unknown;
|
|
137
|
+
create(base?: DeepPartial<BoolValue>): BoolValue;
|
|
138
|
+
fromPartial(object: DeepPartial<BoolValue>): BoolValue;
|
|
139
|
+
};
|
|
140
|
+
export declare const StringValue: {
|
|
141
|
+
encode(message: StringValue, writer?: _m0.Writer): _m0.Writer;
|
|
142
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StringValue;
|
|
143
|
+
fromJSON(object: any): StringValue;
|
|
144
|
+
toJSON(message: StringValue): unknown;
|
|
145
|
+
create(base?: DeepPartial<StringValue>): StringValue;
|
|
146
|
+
fromPartial(object: DeepPartial<StringValue>): StringValue;
|
|
147
|
+
};
|
|
148
|
+
export declare const BytesValue: {
|
|
149
|
+
encode(message: BytesValue, writer?: _m0.Writer): _m0.Writer;
|
|
150
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BytesValue;
|
|
151
|
+
fromJSON(object: any): BytesValue;
|
|
152
|
+
toJSON(message: BytesValue): unknown;
|
|
153
|
+
create(base?: DeepPartial<BytesValue>): BytesValue;
|
|
154
|
+
fromPartial(object: DeepPartial<BytesValue>): BytesValue;
|
|
155
|
+
};
|
|
156
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
157
|
+
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 {} ? {
|
|
158
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
159
|
+
} : Partial<T>;
|
|
160
|
+
export {};
|