weave-typescript 0.12.0 → 0.14.0
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/dist/google/api/annotations.pb.js +1 -1
- package/dist/google/api/http.pb.js +1 -1
- package/dist/google/protobuf/descriptor.pb.d.ts +8 -1
- package/dist/google/protobuf/descriptor.pb.js +8 -1
- package/dist/google/protobuf/struct.pb.js +1 -1
- package/dist/google/protobuf/timestamp.pb.d.ts +7 -6
- package/dist/google/protobuf/timestamp.pb.js +1 -1
- package/dist/index.d.ts +9 -16
- package/dist/index.js +13 -21
- package/dist/weaveapi/{storage/v1/auth.pb.d.ts → atc/v1/event.pb.d.ts} +12 -6
- package/dist/weaveapi/atc/v1/event.pb.js +263 -0
- package/dist/weaveapi/{auth/v1/session.pb.d.ts → atc/v1/message.pb.d.ts} +22 -21
- package/dist/weaveapi/atc/v1/message.pb.js +287 -0
- package/dist/weaveapi/atc/v1/process.pb.d.ts +91 -0
- package/dist/weaveapi/atc/v1/process.pb.js +658 -0
- package/dist/weaveapi/atc/v1/run.pb.d.ts +71 -0
- package/dist/weaveapi/atc/v1/run.pb.js +525 -0
- package/dist/weaveapi/atc/v1/service.pb.d.ts +339 -0
- package/dist/weaveapi/atc/v1/service.pb.js +1922 -0
- package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
- package/dist/weaveapi/project/v1/project.pb.js +765 -66
- package/dist/weaveapi/project/v1/service.pb.d.ts +117 -76
- package/dist/weaveapi/project/v1/service.pb.js +1088 -401
- package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
- package/dist/weaveapi/task/v1/service.pb.js +1416 -0
- package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
- package/dist/weaveapi/task/v1/task.pb.js +782 -0
- package/dist/weavesql/atcdb/event_sql.d.ts +101 -0
- package/dist/weavesql/atcdb/event_sql.js +191 -0
- package/dist/weavesql/atcdb/mailbox_sql.d.ts +43 -0
- package/dist/weavesql/atcdb/mailbox_sql.js +85 -0
- package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
- package/dist/weavesql/weavedb/project_sql.js +304 -112
- package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
- package/dist/weavesql/weavedb/task_sql.js +328 -0
- package/package.json +1 -1
- package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
- package/dist/weaveapi/auth/v1/service.pb.js +0 -4977
- package/dist/weaveapi/auth/v1/session.pb.js +0 -308
- package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
- package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
- package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
- package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
- package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
- package/dist/weaveapi/data/v1/data.pb.js +0 -411
- package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
- package/dist/weaveapi/data/v1/service.pb.js +0 -2777
- package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
- package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
- package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
- package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
- package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
- package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
- package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
- package/dist/weaveapi/input/v1/input.pb.js +0 -632
- package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/input/v1/service.pb.js +0 -3610
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
- package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
- package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
- package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
- package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
- package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
- package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
- package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
- package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
- package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
- package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
- package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
- package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
- package/dist/weaveapi/llmx/v1/service.pb.js +0 -5266
- package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
- package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
- package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
- package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
- package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
- package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
- package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
- package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
- package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
- package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
- package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
- package/dist/weaveapi/report/v1/report.pb.js +0 -678
- package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
- package/dist/weaveapi/report/v1/service.pb.js +0 -1923
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
- package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
- package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
- package/dist/weaveapi/run/v1/run.pb.js +0 -1155
- package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
- package/dist/weaveapi/run/v1/service.pb.js +0 -2426
- package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
- package/dist/weaveapi/script/v1/script.pb.js +0 -1025
- package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
- package/dist/weaveapi/script/v1/service.pb.js +0 -4871
- package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
- package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
- package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
- package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
- package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
- package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
- package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
- package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
- package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
- package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
- package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
- package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
- package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
- package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
- package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
- package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
- package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
- package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
- package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
- package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
- package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
- package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
- package/dist/weaveapi/synthesize/v1/service.pb.js +0 -917
- package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
- package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
- package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
- package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
- package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
- package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
|
@@ -0,0 +1,658 @@
|
|
|
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 unknown
|
|
6
|
+
// source: weaveapi/atc/v1/process.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ProcessTypeSummary = exports.Process = exports.ProcessAuthorityLevel = exports.ProcessType = exports.ProcessStatus = exports.protobufPackage = void 0;
|
|
9
|
+
exports.processStatusFromJSON = processStatusFromJSON;
|
|
10
|
+
exports.processStatusToJSON = processStatusToJSON;
|
|
11
|
+
exports.processTypeFromJSON = processTypeFromJSON;
|
|
12
|
+
exports.processTypeToJSON = processTypeToJSON;
|
|
13
|
+
exports.processAuthorityLevelFromJSON = processAuthorityLevelFromJSON;
|
|
14
|
+
exports.processAuthorityLevelToJSON = processAuthorityLevelToJSON;
|
|
15
|
+
/* eslint-disable */
|
|
16
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
17
|
+
const struct_pb_1 = require("../../../google/protobuf/struct.pb");
|
|
18
|
+
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
19
|
+
exports.protobufPackage = "weaveapi.atc.v1";
|
|
20
|
+
/** ProcessStatus represents the lifecycle state of a process. */
|
|
21
|
+
var ProcessStatus;
|
|
22
|
+
(function (ProcessStatus) {
|
|
23
|
+
ProcessStatus[ProcessStatus["PROCESS_STATUS_UNSPECIFIED"] = 0] = "PROCESS_STATUS_UNSPECIFIED";
|
|
24
|
+
ProcessStatus[ProcessStatus["PROCESS_STATUS_PENDING"] = 1] = "PROCESS_STATUS_PENDING";
|
|
25
|
+
ProcessStatus[ProcessStatus["PROCESS_STATUS_RUNNING"] = 2] = "PROCESS_STATUS_RUNNING";
|
|
26
|
+
ProcessStatus[ProcessStatus["PROCESS_STATUS_PAUSED"] = 3] = "PROCESS_STATUS_PAUSED";
|
|
27
|
+
ProcessStatus[ProcessStatus["PROCESS_STATUS_COMPLETED"] = 4] = "PROCESS_STATUS_COMPLETED";
|
|
28
|
+
ProcessStatus[ProcessStatus["PROCESS_STATUS_FAILED"] = 5] = "PROCESS_STATUS_FAILED";
|
|
29
|
+
ProcessStatus[ProcessStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
30
|
+
})(ProcessStatus || (exports.ProcessStatus = ProcessStatus = {}));
|
|
31
|
+
function processStatusFromJSON(object) {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case 0:
|
|
34
|
+
case "PROCESS_STATUS_UNSPECIFIED":
|
|
35
|
+
return ProcessStatus.PROCESS_STATUS_UNSPECIFIED;
|
|
36
|
+
case 1:
|
|
37
|
+
case "PROCESS_STATUS_PENDING":
|
|
38
|
+
return ProcessStatus.PROCESS_STATUS_PENDING;
|
|
39
|
+
case 2:
|
|
40
|
+
case "PROCESS_STATUS_RUNNING":
|
|
41
|
+
return ProcessStatus.PROCESS_STATUS_RUNNING;
|
|
42
|
+
case 3:
|
|
43
|
+
case "PROCESS_STATUS_PAUSED":
|
|
44
|
+
return ProcessStatus.PROCESS_STATUS_PAUSED;
|
|
45
|
+
case 4:
|
|
46
|
+
case "PROCESS_STATUS_COMPLETED":
|
|
47
|
+
return ProcessStatus.PROCESS_STATUS_COMPLETED;
|
|
48
|
+
case 5:
|
|
49
|
+
case "PROCESS_STATUS_FAILED":
|
|
50
|
+
return ProcessStatus.PROCESS_STATUS_FAILED;
|
|
51
|
+
case -1:
|
|
52
|
+
case "UNRECOGNIZED":
|
|
53
|
+
default:
|
|
54
|
+
return ProcessStatus.UNRECOGNIZED;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function processStatusToJSON(object) {
|
|
58
|
+
switch (object) {
|
|
59
|
+
case ProcessStatus.PROCESS_STATUS_UNSPECIFIED:
|
|
60
|
+
return "PROCESS_STATUS_UNSPECIFIED";
|
|
61
|
+
case ProcessStatus.PROCESS_STATUS_PENDING:
|
|
62
|
+
return "PROCESS_STATUS_PENDING";
|
|
63
|
+
case ProcessStatus.PROCESS_STATUS_RUNNING:
|
|
64
|
+
return "PROCESS_STATUS_RUNNING";
|
|
65
|
+
case ProcessStatus.PROCESS_STATUS_PAUSED:
|
|
66
|
+
return "PROCESS_STATUS_PAUSED";
|
|
67
|
+
case ProcessStatus.PROCESS_STATUS_COMPLETED:
|
|
68
|
+
return "PROCESS_STATUS_COMPLETED";
|
|
69
|
+
case ProcessStatus.PROCESS_STATUS_FAILED:
|
|
70
|
+
return "PROCESS_STATUS_FAILED";
|
|
71
|
+
case ProcessStatus.UNRECOGNIZED:
|
|
72
|
+
default:
|
|
73
|
+
return "UNRECOGNIZED";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/** ProcessType identifies the runtime role category of a process. */
|
|
77
|
+
var ProcessType;
|
|
78
|
+
(function (ProcessType) {
|
|
79
|
+
ProcessType[ProcessType["PROCESS_TYPE_UNSPECIFIED"] = 0] = "PROCESS_TYPE_UNSPECIFIED";
|
|
80
|
+
ProcessType[ProcessType["PROCESS_TYPE_AGENT"] = 1] = "PROCESS_TYPE_AGENT";
|
|
81
|
+
ProcessType[ProcessType["PROCESS_TYPE_CONTROLLER"] = 2] = "PROCESS_TYPE_CONTROLLER";
|
|
82
|
+
ProcessType[ProcessType["PROCESS_TYPE_VALIDATOR"] = 3] = "PROCESS_TYPE_VALIDATOR";
|
|
83
|
+
ProcessType[ProcessType["PROCESS_TYPE_SYSTEM"] = 4] = "PROCESS_TYPE_SYSTEM";
|
|
84
|
+
ProcessType[ProcessType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
85
|
+
})(ProcessType || (exports.ProcessType = ProcessType = {}));
|
|
86
|
+
function processTypeFromJSON(object) {
|
|
87
|
+
switch (object) {
|
|
88
|
+
case 0:
|
|
89
|
+
case "PROCESS_TYPE_UNSPECIFIED":
|
|
90
|
+
return ProcessType.PROCESS_TYPE_UNSPECIFIED;
|
|
91
|
+
case 1:
|
|
92
|
+
case "PROCESS_TYPE_AGENT":
|
|
93
|
+
return ProcessType.PROCESS_TYPE_AGENT;
|
|
94
|
+
case 2:
|
|
95
|
+
case "PROCESS_TYPE_CONTROLLER":
|
|
96
|
+
return ProcessType.PROCESS_TYPE_CONTROLLER;
|
|
97
|
+
case 3:
|
|
98
|
+
case "PROCESS_TYPE_VALIDATOR":
|
|
99
|
+
return ProcessType.PROCESS_TYPE_VALIDATOR;
|
|
100
|
+
case 4:
|
|
101
|
+
case "PROCESS_TYPE_SYSTEM":
|
|
102
|
+
return ProcessType.PROCESS_TYPE_SYSTEM;
|
|
103
|
+
case -1:
|
|
104
|
+
case "UNRECOGNIZED":
|
|
105
|
+
default:
|
|
106
|
+
return ProcessType.UNRECOGNIZED;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function processTypeToJSON(object) {
|
|
110
|
+
switch (object) {
|
|
111
|
+
case ProcessType.PROCESS_TYPE_UNSPECIFIED:
|
|
112
|
+
return "PROCESS_TYPE_UNSPECIFIED";
|
|
113
|
+
case ProcessType.PROCESS_TYPE_AGENT:
|
|
114
|
+
return "PROCESS_TYPE_AGENT";
|
|
115
|
+
case ProcessType.PROCESS_TYPE_CONTROLLER:
|
|
116
|
+
return "PROCESS_TYPE_CONTROLLER";
|
|
117
|
+
case ProcessType.PROCESS_TYPE_VALIDATOR:
|
|
118
|
+
return "PROCESS_TYPE_VALIDATOR";
|
|
119
|
+
case ProcessType.PROCESS_TYPE_SYSTEM:
|
|
120
|
+
return "PROCESS_TYPE_SYSTEM";
|
|
121
|
+
case ProcessType.UNRECOGNIZED:
|
|
122
|
+
default:
|
|
123
|
+
return "UNRECOGNIZED";
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* ProcessAuthorityLevel defines which managed-process primitives a
|
|
128
|
+
* process may use.
|
|
129
|
+
*/
|
|
130
|
+
var ProcessAuthorityLevel;
|
|
131
|
+
(function (ProcessAuthorityLevel) {
|
|
132
|
+
ProcessAuthorityLevel[ProcessAuthorityLevel["PROCESS_AUTHORITY_LEVEL_UNSPECIFIED"] = 0] = "PROCESS_AUTHORITY_LEVEL_UNSPECIFIED";
|
|
133
|
+
ProcessAuthorityLevel[ProcessAuthorityLevel["PROCESS_AUTHORITY_LEVEL_OPAQUE"] = 1] = "PROCESS_AUTHORITY_LEVEL_OPAQUE";
|
|
134
|
+
ProcessAuthorityLevel[ProcessAuthorityLevel["PROCESS_AUTHORITY_LEVEL_OBSERVE"] = 2] = "PROCESS_AUTHORITY_LEVEL_OBSERVE";
|
|
135
|
+
ProcessAuthorityLevel[ProcessAuthorityLevel["PROCESS_AUTHORITY_LEVEL_OPERATE"] = 3] = "PROCESS_AUTHORITY_LEVEL_OPERATE";
|
|
136
|
+
ProcessAuthorityLevel[ProcessAuthorityLevel["PROCESS_AUTHORITY_LEVEL_CONTROL"] = 4] = "PROCESS_AUTHORITY_LEVEL_CONTROL";
|
|
137
|
+
ProcessAuthorityLevel[ProcessAuthorityLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
138
|
+
})(ProcessAuthorityLevel || (exports.ProcessAuthorityLevel = ProcessAuthorityLevel = {}));
|
|
139
|
+
function processAuthorityLevelFromJSON(object) {
|
|
140
|
+
switch (object) {
|
|
141
|
+
case 0:
|
|
142
|
+
case "PROCESS_AUTHORITY_LEVEL_UNSPECIFIED":
|
|
143
|
+
return ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_UNSPECIFIED;
|
|
144
|
+
case 1:
|
|
145
|
+
case "PROCESS_AUTHORITY_LEVEL_OPAQUE":
|
|
146
|
+
return ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_OPAQUE;
|
|
147
|
+
case 2:
|
|
148
|
+
case "PROCESS_AUTHORITY_LEVEL_OBSERVE":
|
|
149
|
+
return ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_OBSERVE;
|
|
150
|
+
case 3:
|
|
151
|
+
case "PROCESS_AUTHORITY_LEVEL_OPERATE":
|
|
152
|
+
return ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_OPERATE;
|
|
153
|
+
case 4:
|
|
154
|
+
case "PROCESS_AUTHORITY_LEVEL_CONTROL":
|
|
155
|
+
return ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_CONTROL;
|
|
156
|
+
case -1:
|
|
157
|
+
case "UNRECOGNIZED":
|
|
158
|
+
default:
|
|
159
|
+
return ProcessAuthorityLevel.UNRECOGNIZED;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function processAuthorityLevelToJSON(object) {
|
|
163
|
+
switch (object) {
|
|
164
|
+
case ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_UNSPECIFIED:
|
|
165
|
+
return "PROCESS_AUTHORITY_LEVEL_UNSPECIFIED";
|
|
166
|
+
case ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_OPAQUE:
|
|
167
|
+
return "PROCESS_AUTHORITY_LEVEL_OPAQUE";
|
|
168
|
+
case ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_OBSERVE:
|
|
169
|
+
return "PROCESS_AUTHORITY_LEVEL_OBSERVE";
|
|
170
|
+
case ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_OPERATE:
|
|
171
|
+
return "PROCESS_AUTHORITY_LEVEL_OPERATE";
|
|
172
|
+
case ProcessAuthorityLevel.PROCESS_AUTHORITY_LEVEL_CONTROL:
|
|
173
|
+
return "PROCESS_AUTHORITY_LEVEL_CONTROL";
|
|
174
|
+
case ProcessAuthorityLevel.UNRECOGNIZED:
|
|
175
|
+
default:
|
|
176
|
+
return "UNRECOGNIZED";
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function createBaseProcess() {
|
|
180
|
+
return {
|
|
181
|
+
processId: "",
|
|
182
|
+
runId: "",
|
|
183
|
+
mailboxId: "",
|
|
184
|
+
status: 0,
|
|
185
|
+
processType: 0,
|
|
186
|
+
authorityLevel: 0,
|
|
187
|
+
taskName: "",
|
|
188
|
+
adapterType: "",
|
|
189
|
+
handlerType: "",
|
|
190
|
+
processRole: "",
|
|
191
|
+
parentProcessId: "",
|
|
192
|
+
config: undefined,
|
|
193
|
+
createdAt: undefined,
|
|
194
|
+
lastHeartbeatAt: undefined,
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
exports.Process = {
|
|
198
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
199
|
+
if (message.processId !== "") {
|
|
200
|
+
writer.uint32(10).string(message.processId);
|
|
201
|
+
}
|
|
202
|
+
if (message.runId !== "") {
|
|
203
|
+
writer.uint32(18).string(message.runId);
|
|
204
|
+
}
|
|
205
|
+
if (message.mailboxId !== "") {
|
|
206
|
+
writer.uint32(26).string(message.mailboxId);
|
|
207
|
+
}
|
|
208
|
+
if (message.status !== 0) {
|
|
209
|
+
writer.uint32(32).int32(message.status);
|
|
210
|
+
}
|
|
211
|
+
if (message.processType !== 0) {
|
|
212
|
+
writer.uint32(40).int32(message.processType);
|
|
213
|
+
}
|
|
214
|
+
if (message.authorityLevel !== 0) {
|
|
215
|
+
writer.uint32(48).int32(message.authorityLevel);
|
|
216
|
+
}
|
|
217
|
+
if (message.taskName !== "") {
|
|
218
|
+
writer.uint32(58).string(message.taskName);
|
|
219
|
+
}
|
|
220
|
+
if (message.adapterType !== "") {
|
|
221
|
+
writer.uint32(66).string(message.adapterType);
|
|
222
|
+
}
|
|
223
|
+
if (message.handlerType !== "") {
|
|
224
|
+
writer.uint32(74).string(message.handlerType);
|
|
225
|
+
}
|
|
226
|
+
if (message.processRole !== "") {
|
|
227
|
+
writer.uint32(82).string(message.processRole);
|
|
228
|
+
}
|
|
229
|
+
if (message.parentProcessId !== "") {
|
|
230
|
+
writer.uint32(90).string(message.parentProcessId);
|
|
231
|
+
}
|
|
232
|
+
if (message.config !== undefined) {
|
|
233
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.config), writer.uint32(98).fork()).join();
|
|
234
|
+
}
|
|
235
|
+
if (message.createdAt !== undefined) {
|
|
236
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(106).fork()).join();
|
|
237
|
+
}
|
|
238
|
+
if (message.lastHeartbeatAt !== undefined) {
|
|
239
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.lastHeartbeatAt), writer.uint32(114).fork()).join();
|
|
240
|
+
}
|
|
241
|
+
return writer;
|
|
242
|
+
},
|
|
243
|
+
decode(input, length) {
|
|
244
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
245
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
246
|
+
const message = createBaseProcess();
|
|
247
|
+
while (reader.pos < end) {
|
|
248
|
+
const tag = reader.uint32();
|
|
249
|
+
switch (tag >>> 3) {
|
|
250
|
+
case 1: {
|
|
251
|
+
if (tag !== 10) {
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
message.processId = reader.string();
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
case 2: {
|
|
258
|
+
if (tag !== 18) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.runId = reader.string();
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
case 3: {
|
|
265
|
+
if (tag !== 26) {
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
message.mailboxId = reader.string();
|
|
269
|
+
continue;
|
|
270
|
+
}
|
|
271
|
+
case 4: {
|
|
272
|
+
if (tag !== 32) {
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
message.status = reader.int32();
|
|
276
|
+
continue;
|
|
277
|
+
}
|
|
278
|
+
case 5: {
|
|
279
|
+
if (tag !== 40) {
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
message.processType = reader.int32();
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
case 6: {
|
|
286
|
+
if (tag !== 48) {
|
|
287
|
+
break;
|
|
288
|
+
}
|
|
289
|
+
message.authorityLevel = reader.int32();
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
case 7: {
|
|
293
|
+
if (tag !== 58) {
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
message.taskName = reader.string();
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
case 8: {
|
|
300
|
+
if (tag !== 66) {
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
message.adapterType = reader.string();
|
|
304
|
+
continue;
|
|
305
|
+
}
|
|
306
|
+
case 9: {
|
|
307
|
+
if (tag !== 74) {
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
message.handlerType = reader.string();
|
|
311
|
+
continue;
|
|
312
|
+
}
|
|
313
|
+
case 10: {
|
|
314
|
+
if (tag !== 82) {
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
message.processRole = reader.string();
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
case 11: {
|
|
321
|
+
if (tag !== 90) {
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
message.parentProcessId = reader.string();
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
case 12: {
|
|
328
|
+
if (tag !== 98) {
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
message.config = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
332
|
+
continue;
|
|
333
|
+
}
|
|
334
|
+
case 13: {
|
|
335
|
+
if (tag !== 106) {
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
339
|
+
continue;
|
|
340
|
+
}
|
|
341
|
+
case 14: {
|
|
342
|
+
if (tag !== 114) {
|
|
343
|
+
break;
|
|
344
|
+
}
|
|
345
|
+
message.lastHeartbeatAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
346
|
+
continue;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
350
|
+
break;
|
|
351
|
+
}
|
|
352
|
+
reader.skip(tag & 7);
|
|
353
|
+
}
|
|
354
|
+
return message;
|
|
355
|
+
},
|
|
356
|
+
fromJSON(object) {
|
|
357
|
+
return {
|
|
358
|
+
processId: isSet(object.processId)
|
|
359
|
+
? globalThis.String(object.processId)
|
|
360
|
+
: isSet(object.process_id)
|
|
361
|
+
? globalThis.String(object.process_id)
|
|
362
|
+
: "",
|
|
363
|
+
runId: isSet(object.runId)
|
|
364
|
+
? globalThis.String(object.runId)
|
|
365
|
+
: isSet(object.run_id)
|
|
366
|
+
? globalThis.String(object.run_id)
|
|
367
|
+
: "",
|
|
368
|
+
mailboxId: isSet(object.mailboxId)
|
|
369
|
+
? globalThis.String(object.mailboxId)
|
|
370
|
+
: isSet(object.mailbox_id)
|
|
371
|
+
? globalThis.String(object.mailbox_id)
|
|
372
|
+
: "",
|
|
373
|
+
status: isSet(object.status) ? processStatusFromJSON(object.status) : 0,
|
|
374
|
+
processType: isSet(object.processType)
|
|
375
|
+
? processTypeFromJSON(object.processType)
|
|
376
|
+
: isSet(object.process_type)
|
|
377
|
+
? processTypeFromJSON(object.process_type)
|
|
378
|
+
: 0,
|
|
379
|
+
authorityLevel: isSet(object.authorityLevel)
|
|
380
|
+
? processAuthorityLevelFromJSON(object.authorityLevel)
|
|
381
|
+
: isSet(object.authority_level)
|
|
382
|
+
? processAuthorityLevelFromJSON(object.authority_level)
|
|
383
|
+
: 0,
|
|
384
|
+
taskName: isSet(object.taskName)
|
|
385
|
+
? globalThis.String(object.taskName)
|
|
386
|
+
: isSet(object.task_name)
|
|
387
|
+
? globalThis.String(object.task_name)
|
|
388
|
+
: "",
|
|
389
|
+
adapterType: isSet(object.adapterType)
|
|
390
|
+
? globalThis.String(object.adapterType)
|
|
391
|
+
: isSet(object.adapter_type)
|
|
392
|
+
? globalThis.String(object.adapter_type)
|
|
393
|
+
: "",
|
|
394
|
+
handlerType: isSet(object.handlerType)
|
|
395
|
+
? globalThis.String(object.handlerType)
|
|
396
|
+
: isSet(object.handler_type)
|
|
397
|
+
? globalThis.String(object.handler_type)
|
|
398
|
+
: "",
|
|
399
|
+
processRole: isSet(object.processRole)
|
|
400
|
+
? globalThis.String(object.processRole)
|
|
401
|
+
: isSet(object.process_role)
|
|
402
|
+
? globalThis.String(object.process_role)
|
|
403
|
+
: "",
|
|
404
|
+
parentProcessId: isSet(object.parentProcessId)
|
|
405
|
+
? globalThis.String(object.parentProcessId)
|
|
406
|
+
: isSet(object.parent_process_id)
|
|
407
|
+
? globalThis.String(object.parent_process_id)
|
|
408
|
+
: "",
|
|
409
|
+
config: isObject(object.config) ? object.config : undefined,
|
|
410
|
+
createdAt: isSet(object.createdAt)
|
|
411
|
+
? fromJsonTimestamp(object.createdAt)
|
|
412
|
+
: isSet(object.created_at)
|
|
413
|
+
? fromJsonTimestamp(object.created_at)
|
|
414
|
+
: undefined,
|
|
415
|
+
lastHeartbeatAt: isSet(object.lastHeartbeatAt)
|
|
416
|
+
? fromJsonTimestamp(object.lastHeartbeatAt)
|
|
417
|
+
: isSet(object.last_heartbeat_at)
|
|
418
|
+
? fromJsonTimestamp(object.last_heartbeat_at)
|
|
419
|
+
: undefined,
|
|
420
|
+
};
|
|
421
|
+
},
|
|
422
|
+
toJSON(message) {
|
|
423
|
+
const obj = {};
|
|
424
|
+
if (message.processId !== "") {
|
|
425
|
+
obj.processId = message.processId;
|
|
426
|
+
}
|
|
427
|
+
if (message.runId !== "") {
|
|
428
|
+
obj.runId = message.runId;
|
|
429
|
+
}
|
|
430
|
+
if (message.mailboxId !== "") {
|
|
431
|
+
obj.mailboxId = message.mailboxId;
|
|
432
|
+
}
|
|
433
|
+
if (message.status !== 0) {
|
|
434
|
+
obj.status = processStatusToJSON(message.status);
|
|
435
|
+
}
|
|
436
|
+
if (message.processType !== 0) {
|
|
437
|
+
obj.processType = processTypeToJSON(message.processType);
|
|
438
|
+
}
|
|
439
|
+
if (message.authorityLevel !== 0) {
|
|
440
|
+
obj.authorityLevel = processAuthorityLevelToJSON(message.authorityLevel);
|
|
441
|
+
}
|
|
442
|
+
if (message.taskName !== "") {
|
|
443
|
+
obj.taskName = message.taskName;
|
|
444
|
+
}
|
|
445
|
+
if (message.adapterType !== "") {
|
|
446
|
+
obj.adapterType = message.adapterType;
|
|
447
|
+
}
|
|
448
|
+
if (message.handlerType !== "") {
|
|
449
|
+
obj.handlerType = message.handlerType;
|
|
450
|
+
}
|
|
451
|
+
if (message.processRole !== "") {
|
|
452
|
+
obj.processRole = message.processRole;
|
|
453
|
+
}
|
|
454
|
+
if (message.parentProcessId !== "") {
|
|
455
|
+
obj.parentProcessId = message.parentProcessId;
|
|
456
|
+
}
|
|
457
|
+
if (message.config !== undefined) {
|
|
458
|
+
obj.config = message.config;
|
|
459
|
+
}
|
|
460
|
+
if (message.createdAt !== undefined) {
|
|
461
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
462
|
+
}
|
|
463
|
+
if (message.lastHeartbeatAt !== undefined) {
|
|
464
|
+
obj.lastHeartbeatAt = message.lastHeartbeatAt.toISOString();
|
|
465
|
+
}
|
|
466
|
+
return obj;
|
|
467
|
+
},
|
|
468
|
+
create(base) {
|
|
469
|
+
return exports.Process.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
470
|
+
},
|
|
471
|
+
fromPartial(object) {
|
|
472
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
473
|
+
const message = createBaseProcess();
|
|
474
|
+
message.processId = (_a = object.processId) !== null && _a !== void 0 ? _a : "";
|
|
475
|
+
message.runId = (_b = object.runId) !== null && _b !== void 0 ? _b : "";
|
|
476
|
+
message.mailboxId = (_c = object.mailboxId) !== null && _c !== void 0 ? _c : "";
|
|
477
|
+
message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
|
|
478
|
+
message.processType = (_e = object.processType) !== null && _e !== void 0 ? _e : 0;
|
|
479
|
+
message.authorityLevel = (_f = object.authorityLevel) !== null && _f !== void 0 ? _f : 0;
|
|
480
|
+
message.taskName = (_g = object.taskName) !== null && _g !== void 0 ? _g : "";
|
|
481
|
+
message.adapterType = (_h = object.adapterType) !== null && _h !== void 0 ? _h : "";
|
|
482
|
+
message.handlerType = (_j = object.handlerType) !== null && _j !== void 0 ? _j : "";
|
|
483
|
+
message.processRole = (_k = object.processRole) !== null && _k !== void 0 ? _k : "";
|
|
484
|
+
message.parentProcessId = (_l = object.parentProcessId) !== null && _l !== void 0 ? _l : "";
|
|
485
|
+
message.config = (_m = object.config) !== null && _m !== void 0 ? _m : undefined;
|
|
486
|
+
message.createdAt = (_o = object.createdAt) !== null && _o !== void 0 ? _o : undefined;
|
|
487
|
+
message.lastHeartbeatAt = (_p = object.lastHeartbeatAt) !== null && _p !== void 0 ? _p : undefined;
|
|
488
|
+
return message;
|
|
489
|
+
},
|
|
490
|
+
};
|
|
491
|
+
function createBaseProcessTypeSummary() {
|
|
492
|
+
return { name: "", humanDesc: "", llmDesc: "", kind: "", version: 0, capabilities: [] };
|
|
493
|
+
}
|
|
494
|
+
exports.ProcessTypeSummary = {
|
|
495
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
496
|
+
if (message.name !== "") {
|
|
497
|
+
writer.uint32(10).string(message.name);
|
|
498
|
+
}
|
|
499
|
+
if (message.humanDesc !== "") {
|
|
500
|
+
writer.uint32(18).string(message.humanDesc);
|
|
501
|
+
}
|
|
502
|
+
if (message.llmDesc !== "") {
|
|
503
|
+
writer.uint32(26).string(message.llmDesc);
|
|
504
|
+
}
|
|
505
|
+
if (message.kind !== "") {
|
|
506
|
+
writer.uint32(34).string(message.kind);
|
|
507
|
+
}
|
|
508
|
+
if (message.version !== 0) {
|
|
509
|
+
writer.uint32(40).int32(message.version);
|
|
510
|
+
}
|
|
511
|
+
for (const v of message.capabilities) {
|
|
512
|
+
writer.uint32(50).string(v);
|
|
513
|
+
}
|
|
514
|
+
return writer;
|
|
515
|
+
},
|
|
516
|
+
decode(input, length) {
|
|
517
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
518
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
519
|
+
const message = createBaseProcessTypeSummary();
|
|
520
|
+
while (reader.pos < end) {
|
|
521
|
+
const tag = reader.uint32();
|
|
522
|
+
switch (tag >>> 3) {
|
|
523
|
+
case 1: {
|
|
524
|
+
if (tag !== 10) {
|
|
525
|
+
break;
|
|
526
|
+
}
|
|
527
|
+
message.name = reader.string();
|
|
528
|
+
continue;
|
|
529
|
+
}
|
|
530
|
+
case 2: {
|
|
531
|
+
if (tag !== 18) {
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
message.humanDesc = reader.string();
|
|
535
|
+
continue;
|
|
536
|
+
}
|
|
537
|
+
case 3: {
|
|
538
|
+
if (tag !== 26) {
|
|
539
|
+
break;
|
|
540
|
+
}
|
|
541
|
+
message.llmDesc = reader.string();
|
|
542
|
+
continue;
|
|
543
|
+
}
|
|
544
|
+
case 4: {
|
|
545
|
+
if (tag !== 34) {
|
|
546
|
+
break;
|
|
547
|
+
}
|
|
548
|
+
message.kind = reader.string();
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
case 5: {
|
|
552
|
+
if (tag !== 40) {
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
message.version = reader.int32();
|
|
556
|
+
continue;
|
|
557
|
+
}
|
|
558
|
+
case 6: {
|
|
559
|
+
if (tag !== 50) {
|
|
560
|
+
break;
|
|
561
|
+
}
|
|
562
|
+
message.capabilities.push(reader.string());
|
|
563
|
+
continue;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
reader.skip(tag & 7);
|
|
570
|
+
}
|
|
571
|
+
return message;
|
|
572
|
+
},
|
|
573
|
+
fromJSON(object) {
|
|
574
|
+
return {
|
|
575
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
576
|
+
humanDesc: isSet(object.humanDesc)
|
|
577
|
+
? globalThis.String(object.humanDesc)
|
|
578
|
+
: isSet(object.human_desc)
|
|
579
|
+
? globalThis.String(object.human_desc)
|
|
580
|
+
: "",
|
|
581
|
+
llmDesc: isSet(object.llmDesc)
|
|
582
|
+
? globalThis.String(object.llmDesc)
|
|
583
|
+
: isSet(object.llm_desc)
|
|
584
|
+
? globalThis.String(object.llm_desc)
|
|
585
|
+
: "",
|
|
586
|
+
kind: isSet(object.kind) ? globalThis.String(object.kind) : "",
|
|
587
|
+
version: isSet(object.version) ? globalThis.Number(object.version) : 0,
|
|
588
|
+
capabilities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.capabilities)
|
|
589
|
+
? object.capabilities.map((e) => globalThis.String(e))
|
|
590
|
+
: [],
|
|
591
|
+
};
|
|
592
|
+
},
|
|
593
|
+
toJSON(message) {
|
|
594
|
+
var _a;
|
|
595
|
+
const obj = {};
|
|
596
|
+
if (message.name !== "") {
|
|
597
|
+
obj.name = message.name;
|
|
598
|
+
}
|
|
599
|
+
if (message.humanDesc !== "") {
|
|
600
|
+
obj.humanDesc = message.humanDesc;
|
|
601
|
+
}
|
|
602
|
+
if (message.llmDesc !== "") {
|
|
603
|
+
obj.llmDesc = message.llmDesc;
|
|
604
|
+
}
|
|
605
|
+
if (message.kind !== "") {
|
|
606
|
+
obj.kind = message.kind;
|
|
607
|
+
}
|
|
608
|
+
if (message.version !== 0) {
|
|
609
|
+
obj.version = Math.round(message.version);
|
|
610
|
+
}
|
|
611
|
+
if ((_a = message.capabilities) === null || _a === void 0 ? void 0 : _a.length) {
|
|
612
|
+
obj.capabilities = message.capabilities;
|
|
613
|
+
}
|
|
614
|
+
return obj;
|
|
615
|
+
},
|
|
616
|
+
create(base) {
|
|
617
|
+
return exports.ProcessTypeSummary.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
618
|
+
},
|
|
619
|
+
fromPartial(object) {
|
|
620
|
+
var _a;
|
|
621
|
+
var _b, _c, _d, _e, _f;
|
|
622
|
+
const message = createBaseProcessTypeSummary();
|
|
623
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
624
|
+
message.humanDesc = (_c = object.humanDesc) !== null && _c !== void 0 ? _c : "";
|
|
625
|
+
message.llmDesc = (_d = object.llmDesc) !== null && _d !== void 0 ? _d : "";
|
|
626
|
+
message.kind = (_e = object.kind) !== null && _e !== void 0 ? _e : "";
|
|
627
|
+
message.version = (_f = object.version) !== null && _f !== void 0 ? _f : 0;
|
|
628
|
+
message.capabilities = ((_a = object.capabilities) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
629
|
+
return message;
|
|
630
|
+
},
|
|
631
|
+
};
|
|
632
|
+
function toTimestamp(date) {
|
|
633
|
+
const seconds = Math.trunc(date.getTime() / 1000);
|
|
634
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
635
|
+
return { seconds, nanos };
|
|
636
|
+
}
|
|
637
|
+
function fromTimestamp(t) {
|
|
638
|
+
let millis = (t.seconds || 0) * 1000;
|
|
639
|
+
millis += (t.nanos || 0) / 1000000;
|
|
640
|
+
return new globalThis.Date(millis);
|
|
641
|
+
}
|
|
642
|
+
function fromJsonTimestamp(o) {
|
|
643
|
+
if (o instanceof globalThis.Date) {
|
|
644
|
+
return o;
|
|
645
|
+
}
|
|
646
|
+
else if (typeof o === "string") {
|
|
647
|
+
return new globalThis.Date(o);
|
|
648
|
+
}
|
|
649
|
+
else {
|
|
650
|
+
return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
function isObject(value) {
|
|
654
|
+
return typeof value === "object" && value !== null;
|
|
655
|
+
}
|
|
656
|
+
function isSet(value) {
|
|
657
|
+
return value !== null && value !== undefined;
|
|
658
|
+
}
|