weave-typescript 0.47.1 → 0.48.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/weaveapi/agent/v1/agent.pb.d.ts +31 -0
- package/dist/weaveapi/agent/v1/agent.pb.js +436 -1
- package/dist/weaveapi/agent/v1/service.pb.d.ts +24 -1
- package/dist/weaveapi/agent/v1/service.pb.js +201 -2
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +24 -1
- package/dist/weaveapi/workflow/v1/service.pb.js +201 -2
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +31 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.js +436 -1
- package/dist/weavesql/weavedb/agent_sql.d.ts +56 -0
- package/dist/weavesql/weavedb/agent_sql.js +100 -1
- package/dist/weavesql/weavedb/workflow_sql.d.ts +56 -0
- package/dist/weavesql/weavedb/workflow_sql.js +100 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/agent/v1/service.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AgentServiceDefinition = exports.AgentServiceClientImpl = exports.AgentServiceServiceName = exports.WatchAgentRunEventsResponse = exports.WatchAgentRunEventsRequest = exports.ListAgentRunsResponse = exports.ListAgentRunsRequest = exports.GetAgentRunResponse = exports.GetAgentRunRequest = exports.RunAgentResponse = exports.RunAgentRequest = exports.ListAgentVersionsResponse = exports.ListAgentVersionsRequest = exports.GetAgentVersionResponse = exports.GetAgentVersionRequest = exports.PublishAgentDefinitionResponse = exports.PublishAgentDefinitionRequest = exports.PlanAgentPublishResponse = exports.PlanAgentPublishRequest = exports.UpdateAgentDraftResponse = exports.UpdateAgentDraftRequest = exports.ListAgentDefinitionsResponse = exports.ListAgentDefinitionsRequest = exports.GetAgentDefinitionResponse = exports.GetAgentDefinitionRequest = exports.CreateAgentDefinitionResponse = exports.CreateAgentDefinitionRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.AgentServiceDefinition = exports.AgentServiceClientImpl = exports.AgentServiceServiceName = exports.WatchAgentRunEventsResponse = exports.WatchAgentRunEventsRequest = exports.ListAgentRunsResponse = exports.ListAgentRunsRequest = exports.GetAgentRunResponse = exports.GetAgentRunRequest = exports.RunAgentResponse = exports.RunAgentRequest = exports.ListAgentVersionsResponse = exports.ListAgentVersionsRequest = exports.GetAgentVersionResponse = exports.GetAgentVersionRequest = exports.PublishAgentDefinitionResponse = exports.PublishAgentDefinitionRequest = exports.PlanAgentPublishResponse = exports.PlanAgentPublishRequest = exports.WatchAgentDraftEventsResponse = exports.WatchAgentDraftEventsRequest = exports.UpdateAgentDraftResponse = exports.UpdateAgentDraftRequest = exports.ListAgentDefinitionsResponse = exports.ListAgentDefinitionsRequest = exports.GetAgentDefinitionResponse = exports.GetAgentDefinitionRequest = exports.CreateAgentDefinitionResponse = exports.CreateAgentDefinitionRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const operators_1 = require("rxjs/operators");
|
|
@@ -697,6 +697,8 @@ function createBaseUpdateAgentDraftRequest() {
|
|
|
697
697
|
outputSchema: undefined,
|
|
698
698
|
metadata: undefined,
|
|
699
699
|
patch: undefined,
|
|
700
|
+
source: "",
|
|
701
|
+
clientRequestId: "",
|
|
700
702
|
};
|
|
701
703
|
}
|
|
702
704
|
exports.UpdateAgentDraftRequest = {
|
|
@@ -740,6 +742,12 @@ exports.UpdateAgentDraftRequest = {
|
|
|
740
742
|
if (message.patch !== undefined) {
|
|
741
743
|
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.patch), writer.uint32(106).fork()).join();
|
|
742
744
|
}
|
|
745
|
+
if (message.source !== "") {
|
|
746
|
+
writer.uint32(114).string(message.source);
|
|
747
|
+
}
|
|
748
|
+
if (message.clientRequestId !== "") {
|
|
749
|
+
writer.uint32(122).string(message.clientRequestId);
|
|
750
|
+
}
|
|
743
751
|
return writer;
|
|
744
752
|
},
|
|
745
753
|
decode(input, length) {
|
|
@@ -840,6 +848,20 @@ exports.UpdateAgentDraftRequest = {
|
|
|
840
848
|
message.patch = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
841
849
|
continue;
|
|
842
850
|
}
|
|
851
|
+
case 14: {
|
|
852
|
+
if (tag !== 114) {
|
|
853
|
+
break;
|
|
854
|
+
}
|
|
855
|
+
message.source = reader.string();
|
|
856
|
+
continue;
|
|
857
|
+
}
|
|
858
|
+
case 15: {
|
|
859
|
+
if (tag !== 122) {
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
message.clientRequestId = reader.string();
|
|
863
|
+
continue;
|
|
864
|
+
}
|
|
843
865
|
}
|
|
844
866
|
if ((tag & 7) === 4 || tag === 0) {
|
|
845
867
|
break;
|
|
@@ -893,6 +915,12 @@ exports.UpdateAgentDraftRequest = {
|
|
|
893
915
|
: undefined,
|
|
894
916
|
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
895
917
|
patch: isObject(object.patch) ? object.patch : undefined,
|
|
918
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
919
|
+
clientRequestId: isSet(object.clientRequestId)
|
|
920
|
+
? globalThis.String(object.clientRequestId)
|
|
921
|
+
: isSet(object.client_request_id)
|
|
922
|
+
? globalThis.String(object.client_request_id)
|
|
923
|
+
: "",
|
|
896
924
|
};
|
|
897
925
|
},
|
|
898
926
|
toJSON(message) {
|
|
@@ -937,6 +965,12 @@ exports.UpdateAgentDraftRequest = {
|
|
|
937
965
|
if (message.patch !== undefined) {
|
|
938
966
|
obj.patch = message.patch;
|
|
939
967
|
}
|
|
968
|
+
if (message.source !== "") {
|
|
969
|
+
obj.source = message.source;
|
|
970
|
+
}
|
|
971
|
+
if (message.clientRequestId !== "") {
|
|
972
|
+
obj.clientRequestId = message.clientRequestId;
|
|
973
|
+
}
|
|
940
974
|
return obj;
|
|
941
975
|
},
|
|
942
976
|
create(base) {
|
|
@@ -944,7 +978,7 @@ exports.UpdateAgentDraftRequest = {
|
|
|
944
978
|
},
|
|
945
979
|
fromPartial(object) {
|
|
946
980
|
var _a;
|
|
947
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
981
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
948
982
|
const message = createBaseUpdateAgentDraftRequest();
|
|
949
983
|
message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
|
|
950
984
|
message.agentDefinitionId = (_c = object.agentDefinitionId) !== null && _c !== void 0 ? _c : "";
|
|
@@ -959,6 +993,8 @@ exports.UpdateAgentDraftRequest = {
|
|
|
959
993
|
message.outputSchema = (_l = object.outputSchema) !== null && _l !== void 0 ? _l : undefined;
|
|
960
994
|
message.metadata = (_m = object.metadata) !== null && _m !== void 0 ? _m : undefined;
|
|
961
995
|
message.patch = (_o = object.patch) !== null && _o !== void 0 ? _o : undefined;
|
|
996
|
+
message.source = (_p = object.source) !== null && _p !== void 0 ? _p : "";
|
|
997
|
+
message.clientRequestId = (_q = object.clientRequestId) !== null && _q !== void 0 ? _q : "";
|
|
962
998
|
return message;
|
|
963
999
|
},
|
|
964
1000
|
};
|
|
@@ -1015,6 +1051,155 @@ exports.UpdateAgentDraftResponse = {
|
|
|
1015
1051
|
return message;
|
|
1016
1052
|
},
|
|
1017
1053
|
};
|
|
1054
|
+
function createBaseWatchAgentDraftEventsRequest() {
|
|
1055
|
+
return { organizationId: "", agentDefinitionId: "", afterSequence: 0 };
|
|
1056
|
+
}
|
|
1057
|
+
exports.WatchAgentDraftEventsRequest = {
|
|
1058
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1059
|
+
if (message.organizationId !== "") {
|
|
1060
|
+
writer.uint32(10).string(message.organizationId);
|
|
1061
|
+
}
|
|
1062
|
+
if (message.agentDefinitionId !== "") {
|
|
1063
|
+
writer.uint32(18).string(message.agentDefinitionId);
|
|
1064
|
+
}
|
|
1065
|
+
if (message.afterSequence !== 0) {
|
|
1066
|
+
writer.uint32(24).uint64(message.afterSequence);
|
|
1067
|
+
}
|
|
1068
|
+
return writer;
|
|
1069
|
+
},
|
|
1070
|
+
decode(input, length) {
|
|
1071
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1072
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1073
|
+
const message = createBaseWatchAgentDraftEventsRequest();
|
|
1074
|
+
while (reader.pos < end) {
|
|
1075
|
+
const tag = reader.uint32();
|
|
1076
|
+
switch (tag >>> 3) {
|
|
1077
|
+
case 1: {
|
|
1078
|
+
if (tag !== 10) {
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
message.organizationId = reader.string();
|
|
1082
|
+
continue;
|
|
1083
|
+
}
|
|
1084
|
+
case 2: {
|
|
1085
|
+
if (tag !== 18) {
|
|
1086
|
+
break;
|
|
1087
|
+
}
|
|
1088
|
+
message.agentDefinitionId = reader.string();
|
|
1089
|
+
continue;
|
|
1090
|
+
}
|
|
1091
|
+
case 3: {
|
|
1092
|
+
if (tag !== 24) {
|
|
1093
|
+
break;
|
|
1094
|
+
}
|
|
1095
|
+
message.afterSequence = longToNumber(reader.uint64());
|
|
1096
|
+
continue;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1100
|
+
break;
|
|
1101
|
+
}
|
|
1102
|
+
reader.skip(tag & 7);
|
|
1103
|
+
}
|
|
1104
|
+
return message;
|
|
1105
|
+
},
|
|
1106
|
+
fromJSON(object) {
|
|
1107
|
+
return {
|
|
1108
|
+
organizationId: isSet(object.organizationId)
|
|
1109
|
+
? globalThis.String(object.organizationId)
|
|
1110
|
+
: isSet(object.organization_id)
|
|
1111
|
+
? globalThis.String(object.organization_id)
|
|
1112
|
+
: "",
|
|
1113
|
+
agentDefinitionId: isSet(object.agentDefinitionId)
|
|
1114
|
+
? globalThis.String(object.agentDefinitionId)
|
|
1115
|
+
: isSet(object.agent_definition_id)
|
|
1116
|
+
? globalThis.String(object.agent_definition_id)
|
|
1117
|
+
: "",
|
|
1118
|
+
afterSequence: isSet(object.afterSequence)
|
|
1119
|
+
? globalThis.Number(object.afterSequence)
|
|
1120
|
+
: isSet(object.after_sequence)
|
|
1121
|
+
? globalThis.Number(object.after_sequence)
|
|
1122
|
+
: 0,
|
|
1123
|
+
};
|
|
1124
|
+
},
|
|
1125
|
+
toJSON(message) {
|
|
1126
|
+
const obj = {};
|
|
1127
|
+
if (message.organizationId !== "") {
|
|
1128
|
+
obj.organizationId = message.organizationId;
|
|
1129
|
+
}
|
|
1130
|
+
if (message.agentDefinitionId !== "") {
|
|
1131
|
+
obj.agentDefinitionId = message.agentDefinitionId;
|
|
1132
|
+
}
|
|
1133
|
+
if (message.afterSequence !== 0) {
|
|
1134
|
+
obj.afterSequence = Math.round(message.afterSequence);
|
|
1135
|
+
}
|
|
1136
|
+
return obj;
|
|
1137
|
+
},
|
|
1138
|
+
create(base) {
|
|
1139
|
+
return exports.WatchAgentDraftEventsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1140
|
+
},
|
|
1141
|
+
fromPartial(object) {
|
|
1142
|
+
var _a, _b, _c;
|
|
1143
|
+
const message = createBaseWatchAgentDraftEventsRequest();
|
|
1144
|
+
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
1145
|
+
message.agentDefinitionId = (_b = object.agentDefinitionId) !== null && _b !== void 0 ? _b : "";
|
|
1146
|
+
message.afterSequence = (_c = object.afterSequence) !== null && _c !== void 0 ? _c : 0;
|
|
1147
|
+
return message;
|
|
1148
|
+
},
|
|
1149
|
+
};
|
|
1150
|
+
function createBaseWatchAgentDraftEventsResponse() {
|
|
1151
|
+
return { event: undefined };
|
|
1152
|
+
}
|
|
1153
|
+
exports.WatchAgentDraftEventsResponse = {
|
|
1154
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1155
|
+
if (message.event !== undefined) {
|
|
1156
|
+
agent_pb_1.AgentDraftEvent.encode(message.event, writer.uint32(10).fork()).join();
|
|
1157
|
+
}
|
|
1158
|
+
return writer;
|
|
1159
|
+
},
|
|
1160
|
+
decode(input, length) {
|
|
1161
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1162
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1163
|
+
const message = createBaseWatchAgentDraftEventsResponse();
|
|
1164
|
+
while (reader.pos < end) {
|
|
1165
|
+
const tag = reader.uint32();
|
|
1166
|
+
switch (tag >>> 3) {
|
|
1167
|
+
case 1: {
|
|
1168
|
+
if (tag !== 10) {
|
|
1169
|
+
break;
|
|
1170
|
+
}
|
|
1171
|
+
message.event = agent_pb_1.AgentDraftEvent.decode(reader, reader.uint32());
|
|
1172
|
+
continue;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1176
|
+
break;
|
|
1177
|
+
}
|
|
1178
|
+
reader.skip(tag & 7);
|
|
1179
|
+
}
|
|
1180
|
+
return message;
|
|
1181
|
+
},
|
|
1182
|
+
fromJSON(object) {
|
|
1183
|
+
return { event: isSet(object.event) ? agent_pb_1.AgentDraftEvent.fromJSON(object.event) : undefined };
|
|
1184
|
+
},
|
|
1185
|
+
toJSON(message) {
|
|
1186
|
+
const obj = {};
|
|
1187
|
+
if (message.event !== undefined) {
|
|
1188
|
+
obj.event = agent_pb_1.AgentDraftEvent.toJSON(message.event);
|
|
1189
|
+
}
|
|
1190
|
+
return obj;
|
|
1191
|
+
},
|
|
1192
|
+
create(base) {
|
|
1193
|
+
return exports.WatchAgentDraftEventsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1194
|
+
},
|
|
1195
|
+
fromPartial(object) {
|
|
1196
|
+
const message = createBaseWatchAgentDraftEventsResponse();
|
|
1197
|
+
message.event = (object.event !== undefined && object.event !== null)
|
|
1198
|
+
? agent_pb_1.AgentDraftEvent.fromPartial(object.event)
|
|
1199
|
+
: undefined;
|
|
1200
|
+
return message;
|
|
1201
|
+
},
|
|
1202
|
+
};
|
|
1018
1203
|
function createBasePlanAgentPublishRequest() {
|
|
1019
1204
|
return { organizationId: "", agentDefinitionId: "", draftRevision: 0 };
|
|
1020
1205
|
}
|
|
@@ -2318,6 +2503,7 @@ class AgentServiceClientImpl {
|
|
|
2318
2503
|
this.GetAgentDefinition = this.GetAgentDefinition.bind(this);
|
|
2319
2504
|
this.ListAgentDefinitions = this.ListAgentDefinitions.bind(this);
|
|
2320
2505
|
this.UpdateAgentDraft = this.UpdateAgentDraft.bind(this);
|
|
2506
|
+
this.WatchAgentDraftEvents = this.WatchAgentDraftEvents.bind(this);
|
|
2321
2507
|
this.PlanAgentPublish = this.PlanAgentPublish.bind(this);
|
|
2322
2508
|
this.PublishAgentDefinition = this.PublishAgentDefinition.bind(this);
|
|
2323
2509
|
this.GetAgentVersion = this.GetAgentVersion.bind(this);
|
|
@@ -2347,6 +2533,11 @@ class AgentServiceClientImpl {
|
|
|
2347
2533
|
const promise = this.rpc.request(this.service, "UpdateAgentDraft", data);
|
|
2348
2534
|
return promise.then((data) => exports.UpdateAgentDraftResponse.decode(new wire_1.BinaryReader(data)));
|
|
2349
2535
|
}
|
|
2536
|
+
WatchAgentDraftEvents(request) {
|
|
2537
|
+
const data = exports.WatchAgentDraftEventsRequest.encode(request).finish();
|
|
2538
|
+
const result = this.rpc.serverStreamingRequest(this.service, "WatchAgentDraftEvents", data);
|
|
2539
|
+
return result.pipe((0, operators_1.map)((data) => exports.WatchAgentDraftEventsResponse.decode(new wire_1.BinaryReader(data))));
|
|
2540
|
+
}
|
|
2350
2541
|
PlanAgentPublish(request) {
|
|
2351
2542
|
const data = exports.PlanAgentPublishRequest.encode(request).finish();
|
|
2352
2543
|
const promise = this.rpc.request(this.service, "PlanAgentPublish", data);
|
|
@@ -2528,6 +2719,14 @@ exports.AgentServiceDefinition = {
|
|
|
2528
2719
|
},
|
|
2529
2720
|
},
|
|
2530
2721
|
},
|
|
2722
|
+
watchAgentDraftEvents: {
|
|
2723
|
+
name: "WatchAgentDraftEvents",
|
|
2724
|
+
requestType: exports.WatchAgentDraftEventsRequest,
|
|
2725
|
+
requestStream: false,
|
|
2726
|
+
responseType: exports.WatchAgentDraftEventsResponse,
|
|
2727
|
+
responseStream: true,
|
|
2728
|
+
options: {},
|
|
2729
|
+
},
|
|
2531
2730
|
planAgentPublish: {
|
|
2532
2731
|
name: "PlanAgentPublish",
|
|
2533
2732
|
requestType: exports.PlanAgentPublishRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { WorkflowDefinition, WorkflowDefinitionStatus, WorkflowDraft, WorkflowGraph, WorkflowPublishPlan, WorkflowRun, WorkflowRunEvent, WorkflowRunStatus, WorkflowStepRun, WorkflowVersion } from "./workflow.pb";
|
|
3
|
+
import { WorkflowDefinition, WorkflowDefinitionStatus, WorkflowDraft, WorkflowDraftEvent, WorkflowGraph, WorkflowPublishPlan, WorkflowRun, WorkflowRunEvent, WorkflowRunStatus, WorkflowStepRun, WorkflowVersion } from "./workflow.pb";
|
|
4
4
|
export declare const protobufPackage = "weaveapi.workflow.v1";
|
|
5
5
|
export interface CreateWorkflowDefinitionRequest {
|
|
6
6
|
organizationId: string;
|
|
@@ -57,13 +57,24 @@ export interface UpdateWorkflowDraftRequest {
|
|
|
57
57
|
metadata: {
|
|
58
58
|
[key: string]: any;
|
|
59
59
|
} | undefined;
|
|
60
|
+
/** @deprecated */
|
|
60
61
|
patch: {
|
|
61
62
|
[key: string]: any;
|
|
62
63
|
} | undefined;
|
|
64
|
+
source: string;
|
|
65
|
+
clientRequestId: string;
|
|
63
66
|
}
|
|
64
67
|
export interface UpdateWorkflowDraftResponse {
|
|
65
68
|
draft: WorkflowDraft | undefined;
|
|
66
69
|
}
|
|
70
|
+
export interface WatchWorkflowDraftEventsRequest {
|
|
71
|
+
organizationId: string;
|
|
72
|
+
workflowDefinitionId: string;
|
|
73
|
+
afterSequence: number;
|
|
74
|
+
}
|
|
75
|
+
export interface WatchWorkflowDraftEventsResponse {
|
|
76
|
+
event: WorkflowDraftEvent | undefined;
|
|
77
|
+
}
|
|
67
78
|
export interface PlanWorkflowPublishRequest {
|
|
68
79
|
organizationId: string;
|
|
69
80
|
workflowDefinitionId: string;
|
|
@@ -145,6 +156,8 @@ export declare const ListWorkflowDefinitionsRequest: MessageFns<ListWorkflowDefi
|
|
|
145
156
|
export declare const ListWorkflowDefinitionsResponse: MessageFns<ListWorkflowDefinitionsResponse>;
|
|
146
157
|
export declare const UpdateWorkflowDraftRequest: MessageFns<UpdateWorkflowDraftRequest>;
|
|
147
158
|
export declare const UpdateWorkflowDraftResponse: MessageFns<UpdateWorkflowDraftResponse>;
|
|
159
|
+
export declare const WatchWorkflowDraftEventsRequest: MessageFns<WatchWorkflowDraftEventsRequest>;
|
|
160
|
+
export declare const WatchWorkflowDraftEventsResponse: MessageFns<WatchWorkflowDraftEventsResponse>;
|
|
148
161
|
export declare const PlanWorkflowPublishRequest: MessageFns<PlanWorkflowPublishRequest>;
|
|
149
162
|
export declare const PlanWorkflowPublishResponse: MessageFns<PlanWorkflowPublishResponse>;
|
|
150
163
|
export declare const PublishWorkflowDefinitionRequest: MessageFns<PublishWorkflowDefinitionRequest>;
|
|
@@ -166,6 +179,7 @@ export interface WorkflowService {
|
|
|
166
179
|
GetWorkflowDefinition(request: GetWorkflowDefinitionRequest): Promise<GetWorkflowDefinitionResponse>;
|
|
167
180
|
ListWorkflowDefinitions(request: ListWorkflowDefinitionsRequest): Promise<ListWorkflowDefinitionsResponse>;
|
|
168
181
|
UpdateWorkflowDraft(request: UpdateWorkflowDraftRequest): Promise<UpdateWorkflowDraftResponse>;
|
|
182
|
+
WatchWorkflowDraftEvents(request: WatchWorkflowDraftEventsRequest): Observable<WatchWorkflowDraftEventsResponse>;
|
|
169
183
|
PlanWorkflowPublish(request: PlanWorkflowPublishRequest): Promise<PlanWorkflowPublishResponse>;
|
|
170
184
|
PublishWorkflowDefinition(request: PublishWorkflowDefinitionRequest): Promise<PublishWorkflowDefinitionResponse>;
|
|
171
185
|
GetWorkflowVersion(request: GetWorkflowVersionRequest): Promise<GetWorkflowVersionResponse>;
|
|
@@ -186,6 +200,7 @@ export declare class WorkflowServiceClientImpl implements WorkflowService {
|
|
|
186
200
|
GetWorkflowDefinition(request: GetWorkflowDefinitionRequest): Promise<GetWorkflowDefinitionResponse>;
|
|
187
201
|
ListWorkflowDefinitions(request: ListWorkflowDefinitionsRequest): Promise<ListWorkflowDefinitionsResponse>;
|
|
188
202
|
UpdateWorkflowDraft(request: UpdateWorkflowDraftRequest): Promise<UpdateWorkflowDraftResponse>;
|
|
203
|
+
WatchWorkflowDraftEvents(request: WatchWorkflowDraftEventsRequest): Observable<WatchWorkflowDraftEventsResponse>;
|
|
189
204
|
PlanWorkflowPublish(request: PlanWorkflowPublishRequest): Promise<PlanWorkflowPublishResponse>;
|
|
190
205
|
PublishWorkflowDefinition(request: PublishWorkflowDefinitionRequest): Promise<PublishWorkflowDefinitionResponse>;
|
|
191
206
|
GetWorkflowVersion(request: GetWorkflowVersionRequest): Promise<GetWorkflowVersionResponse>;
|
|
@@ -248,6 +263,14 @@ export declare const WorkflowServiceDefinition: {
|
|
|
248
263
|
};
|
|
249
264
|
};
|
|
250
265
|
};
|
|
266
|
+
readonly watchWorkflowDraftEvents: {
|
|
267
|
+
readonly name: "WatchWorkflowDraftEvents";
|
|
268
|
+
readonly requestType: typeof WatchWorkflowDraftEventsRequest;
|
|
269
|
+
readonly requestStream: false;
|
|
270
|
+
readonly responseType: typeof WatchWorkflowDraftEventsResponse;
|
|
271
|
+
readonly responseStream: true;
|
|
272
|
+
readonly options: {};
|
|
273
|
+
};
|
|
251
274
|
readonly planWorkflowPublish: {
|
|
252
275
|
readonly name: "PlanWorkflowPublish";
|
|
253
276
|
readonly requestType: typeof PlanWorkflowPublishRequest;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/workflow/v1/service.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.WorkflowServiceDefinition = exports.WorkflowServiceClientImpl = exports.WorkflowServiceServiceName = exports.WatchWorkflowRunEventsResponse = exports.WatchWorkflowRunEventsRequest = exports.ListWorkflowRunsResponse = exports.ListWorkflowRunsRequest = exports.GetWorkflowRunResponse = exports.GetWorkflowRunRequest = exports.RunWorkflowResponse = exports.RunWorkflowRequest = exports.ListWorkflowVersionsResponse = exports.ListWorkflowVersionsRequest = exports.GetWorkflowVersionResponse = exports.GetWorkflowVersionRequest = exports.PublishWorkflowDefinitionResponse = exports.PublishWorkflowDefinitionRequest = exports.PlanWorkflowPublishResponse = exports.PlanWorkflowPublishRequest = exports.UpdateWorkflowDraftResponse = exports.UpdateWorkflowDraftRequest = exports.ListWorkflowDefinitionsResponse = exports.ListWorkflowDefinitionsRequest = exports.GetWorkflowDefinitionResponse = exports.GetWorkflowDefinitionRequest = exports.CreateWorkflowDefinitionResponse = exports.CreateWorkflowDefinitionRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.WorkflowServiceDefinition = exports.WorkflowServiceClientImpl = exports.WorkflowServiceServiceName = exports.WatchWorkflowRunEventsResponse = exports.WatchWorkflowRunEventsRequest = exports.ListWorkflowRunsResponse = exports.ListWorkflowRunsRequest = exports.GetWorkflowRunResponse = exports.GetWorkflowRunRequest = exports.RunWorkflowResponse = exports.RunWorkflowRequest = exports.ListWorkflowVersionsResponse = exports.ListWorkflowVersionsRequest = exports.GetWorkflowVersionResponse = exports.GetWorkflowVersionRequest = exports.PublishWorkflowDefinitionResponse = exports.PublishWorkflowDefinitionRequest = exports.PlanWorkflowPublishResponse = exports.PlanWorkflowPublishRequest = exports.WatchWorkflowDraftEventsResponse = exports.WatchWorkflowDraftEventsRequest = exports.UpdateWorkflowDraftResponse = exports.UpdateWorkflowDraftRequest = exports.ListWorkflowDefinitionsResponse = exports.ListWorkflowDefinitionsRequest = exports.GetWorkflowDefinitionResponse = exports.GetWorkflowDefinitionRequest = exports.CreateWorkflowDefinitionResponse = exports.CreateWorkflowDefinitionRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const operators_1 = require("rxjs/operators");
|
|
@@ -636,6 +636,8 @@ function createBaseUpdateWorkflowDraftRequest() {
|
|
|
636
636
|
outputSchema: undefined,
|
|
637
637
|
metadata: undefined,
|
|
638
638
|
patch: undefined,
|
|
639
|
+
source: "",
|
|
640
|
+
clientRequestId: "",
|
|
639
641
|
};
|
|
640
642
|
}
|
|
641
643
|
exports.UpdateWorkflowDraftRequest = {
|
|
@@ -670,6 +672,12 @@ exports.UpdateWorkflowDraftRequest = {
|
|
|
670
672
|
if (message.patch !== undefined) {
|
|
671
673
|
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.patch), writer.uint32(82).fork()).join();
|
|
672
674
|
}
|
|
675
|
+
if (message.source !== "") {
|
|
676
|
+
writer.uint32(90).string(message.source);
|
|
677
|
+
}
|
|
678
|
+
if (message.clientRequestId !== "") {
|
|
679
|
+
writer.uint32(98).string(message.clientRequestId);
|
|
680
|
+
}
|
|
673
681
|
return writer;
|
|
674
682
|
},
|
|
675
683
|
decode(input, length) {
|
|
@@ -749,6 +757,20 @@ exports.UpdateWorkflowDraftRequest = {
|
|
|
749
757
|
message.patch = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
750
758
|
continue;
|
|
751
759
|
}
|
|
760
|
+
case 11: {
|
|
761
|
+
if (tag !== 90) {
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
764
|
+
message.source = reader.string();
|
|
765
|
+
continue;
|
|
766
|
+
}
|
|
767
|
+
case 12: {
|
|
768
|
+
if (tag !== 98) {
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
message.clientRequestId = reader.string();
|
|
772
|
+
continue;
|
|
773
|
+
}
|
|
752
774
|
}
|
|
753
775
|
if ((tag & 7) === 4 || tag === 0) {
|
|
754
776
|
break;
|
|
@@ -789,6 +811,12 @@ exports.UpdateWorkflowDraftRequest = {
|
|
|
789
811
|
: undefined,
|
|
790
812
|
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
791
813
|
patch: isObject(object.patch) ? object.patch : undefined,
|
|
814
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
815
|
+
clientRequestId: isSet(object.clientRequestId)
|
|
816
|
+
? globalThis.String(object.clientRequestId)
|
|
817
|
+
: isSet(object.client_request_id)
|
|
818
|
+
? globalThis.String(object.client_request_id)
|
|
819
|
+
: "",
|
|
792
820
|
};
|
|
793
821
|
},
|
|
794
822
|
toJSON(message) {
|
|
@@ -823,13 +851,19 @@ exports.UpdateWorkflowDraftRequest = {
|
|
|
823
851
|
if (message.patch !== undefined) {
|
|
824
852
|
obj.patch = message.patch;
|
|
825
853
|
}
|
|
854
|
+
if (message.source !== "") {
|
|
855
|
+
obj.source = message.source;
|
|
856
|
+
}
|
|
857
|
+
if (message.clientRequestId !== "") {
|
|
858
|
+
obj.clientRequestId = message.clientRequestId;
|
|
859
|
+
}
|
|
826
860
|
return obj;
|
|
827
861
|
},
|
|
828
862
|
create(base) {
|
|
829
863
|
return exports.UpdateWorkflowDraftRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
830
864
|
},
|
|
831
865
|
fromPartial(object) {
|
|
832
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
866
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
833
867
|
const message = createBaseUpdateWorkflowDraftRequest();
|
|
834
868
|
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
835
869
|
message.workflowDefinitionId = (_b = object.workflowDefinitionId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -843,6 +877,8 @@ exports.UpdateWorkflowDraftRequest = {
|
|
|
843
877
|
message.outputSchema = (_g = object.outputSchema) !== null && _g !== void 0 ? _g : undefined;
|
|
844
878
|
message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : undefined;
|
|
845
879
|
message.patch = (_j = object.patch) !== null && _j !== void 0 ? _j : undefined;
|
|
880
|
+
message.source = (_k = object.source) !== null && _k !== void 0 ? _k : "";
|
|
881
|
+
message.clientRequestId = (_l = object.clientRequestId) !== null && _l !== void 0 ? _l : "";
|
|
846
882
|
return message;
|
|
847
883
|
},
|
|
848
884
|
};
|
|
@@ -899,6 +935,155 @@ exports.UpdateWorkflowDraftResponse = {
|
|
|
899
935
|
return message;
|
|
900
936
|
},
|
|
901
937
|
};
|
|
938
|
+
function createBaseWatchWorkflowDraftEventsRequest() {
|
|
939
|
+
return { organizationId: "", workflowDefinitionId: "", afterSequence: 0 };
|
|
940
|
+
}
|
|
941
|
+
exports.WatchWorkflowDraftEventsRequest = {
|
|
942
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
943
|
+
if (message.organizationId !== "") {
|
|
944
|
+
writer.uint32(10).string(message.organizationId);
|
|
945
|
+
}
|
|
946
|
+
if (message.workflowDefinitionId !== "") {
|
|
947
|
+
writer.uint32(18).string(message.workflowDefinitionId);
|
|
948
|
+
}
|
|
949
|
+
if (message.afterSequence !== 0) {
|
|
950
|
+
writer.uint32(24).uint64(message.afterSequence);
|
|
951
|
+
}
|
|
952
|
+
return writer;
|
|
953
|
+
},
|
|
954
|
+
decode(input, length) {
|
|
955
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
956
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
957
|
+
const message = createBaseWatchWorkflowDraftEventsRequest();
|
|
958
|
+
while (reader.pos < end) {
|
|
959
|
+
const tag = reader.uint32();
|
|
960
|
+
switch (tag >>> 3) {
|
|
961
|
+
case 1: {
|
|
962
|
+
if (tag !== 10) {
|
|
963
|
+
break;
|
|
964
|
+
}
|
|
965
|
+
message.organizationId = reader.string();
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
968
|
+
case 2: {
|
|
969
|
+
if (tag !== 18) {
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
message.workflowDefinitionId = reader.string();
|
|
973
|
+
continue;
|
|
974
|
+
}
|
|
975
|
+
case 3: {
|
|
976
|
+
if (tag !== 24) {
|
|
977
|
+
break;
|
|
978
|
+
}
|
|
979
|
+
message.afterSequence = longToNumber(reader.uint64());
|
|
980
|
+
continue;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
984
|
+
break;
|
|
985
|
+
}
|
|
986
|
+
reader.skip(tag & 7);
|
|
987
|
+
}
|
|
988
|
+
return message;
|
|
989
|
+
},
|
|
990
|
+
fromJSON(object) {
|
|
991
|
+
return {
|
|
992
|
+
organizationId: isSet(object.organizationId)
|
|
993
|
+
? globalThis.String(object.organizationId)
|
|
994
|
+
: isSet(object.organization_id)
|
|
995
|
+
? globalThis.String(object.organization_id)
|
|
996
|
+
: "",
|
|
997
|
+
workflowDefinitionId: isSet(object.workflowDefinitionId)
|
|
998
|
+
? globalThis.String(object.workflowDefinitionId)
|
|
999
|
+
: isSet(object.workflow_definition_id)
|
|
1000
|
+
? globalThis.String(object.workflow_definition_id)
|
|
1001
|
+
: "",
|
|
1002
|
+
afterSequence: isSet(object.afterSequence)
|
|
1003
|
+
? globalThis.Number(object.afterSequence)
|
|
1004
|
+
: isSet(object.after_sequence)
|
|
1005
|
+
? globalThis.Number(object.after_sequence)
|
|
1006
|
+
: 0,
|
|
1007
|
+
};
|
|
1008
|
+
},
|
|
1009
|
+
toJSON(message) {
|
|
1010
|
+
const obj = {};
|
|
1011
|
+
if (message.organizationId !== "") {
|
|
1012
|
+
obj.organizationId = message.organizationId;
|
|
1013
|
+
}
|
|
1014
|
+
if (message.workflowDefinitionId !== "") {
|
|
1015
|
+
obj.workflowDefinitionId = message.workflowDefinitionId;
|
|
1016
|
+
}
|
|
1017
|
+
if (message.afterSequence !== 0) {
|
|
1018
|
+
obj.afterSequence = Math.round(message.afterSequence);
|
|
1019
|
+
}
|
|
1020
|
+
return obj;
|
|
1021
|
+
},
|
|
1022
|
+
create(base) {
|
|
1023
|
+
return exports.WatchWorkflowDraftEventsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1024
|
+
},
|
|
1025
|
+
fromPartial(object) {
|
|
1026
|
+
var _a, _b, _c;
|
|
1027
|
+
const message = createBaseWatchWorkflowDraftEventsRequest();
|
|
1028
|
+
message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
|
|
1029
|
+
message.workflowDefinitionId = (_b = object.workflowDefinitionId) !== null && _b !== void 0 ? _b : "";
|
|
1030
|
+
message.afterSequence = (_c = object.afterSequence) !== null && _c !== void 0 ? _c : 0;
|
|
1031
|
+
return message;
|
|
1032
|
+
},
|
|
1033
|
+
};
|
|
1034
|
+
function createBaseWatchWorkflowDraftEventsResponse() {
|
|
1035
|
+
return { event: undefined };
|
|
1036
|
+
}
|
|
1037
|
+
exports.WatchWorkflowDraftEventsResponse = {
|
|
1038
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1039
|
+
if (message.event !== undefined) {
|
|
1040
|
+
workflow_pb_1.WorkflowDraftEvent.encode(message.event, writer.uint32(10).fork()).join();
|
|
1041
|
+
}
|
|
1042
|
+
return writer;
|
|
1043
|
+
},
|
|
1044
|
+
decode(input, length) {
|
|
1045
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1046
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1047
|
+
const message = createBaseWatchWorkflowDraftEventsResponse();
|
|
1048
|
+
while (reader.pos < end) {
|
|
1049
|
+
const tag = reader.uint32();
|
|
1050
|
+
switch (tag >>> 3) {
|
|
1051
|
+
case 1: {
|
|
1052
|
+
if (tag !== 10) {
|
|
1053
|
+
break;
|
|
1054
|
+
}
|
|
1055
|
+
message.event = workflow_pb_1.WorkflowDraftEvent.decode(reader, reader.uint32());
|
|
1056
|
+
continue;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1060
|
+
break;
|
|
1061
|
+
}
|
|
1062
|
+
reader.skip(tag & 7);
|
|
1063
|
+
}
|
|
1064
|
+
return message;
|
|
1065
|
+
},
|
|
1066
|
+
fromJSON(object) {
|
|
1067
|
+
return { event: isSet(object.event) ? workflow_pb_1.WorkflowDraftEvent.fromJSON(object.event) : undefined };
|
|
1068
|
+
},
|
|
1069
|
+
toJSON(message) {
|
|
1070
|
+
const obj = {};
|
|
1071
|
+
if (message.event !== undefined) {
|
|
1072
|
+
obj.event = workflow_pb_1.WorkflowDraftEvent.toJSON(message.event);
|
|
1073
|
+
}
|
|
1074
|
+
return obj;
|
|
1075
|
+
},
|
|
1076
|
+
create(base) {
|
|
1077
|
+
return exports.WatchWorkflowDraftEventsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1078
|
+
},
|
|
1079
|
+
fromPartial(object) {
|
|
1080
|
+
const message = createBaseWatchWorkflowDraftEventsResponse();
|
|
1081
|
+
message.event = (object.event !== undefined && object.event !== null)
|
|
1082
|
+
? workflow_pb_1.WorkflowDraftEvent.fromPartial(object.event)
|
|
1083
|
+
: undefined;
|
|
1084
|
+
return message;
|
|
1085
|
+
},
|
|
1086
|
+
};
|
|
902
1087
|
function createBasePlanWorkflowPublishRequest() {
|
|
903
1088
|
return { organizationId: "", workflowDefinitionId: "", draftRevision: 0 };
|
|
904
1089
|
}
|
|
@@ -2221,6 +2406,7 @@ class WorkflowServiceClientImpl {
|
|
|
2221
2406
|
this.GetWorkflowDefinition = this.GetWorkflowDefinition.bind(this);
|
|
2222
2407
|
this.ListWorkflowDefinitions = this.ListWorkflowDefinitions.bind(this);
|
|
2223
2408
|
this.UpdateWorkflowDraft = this.UpdateWorkflowDraft.bind(this);
|
|
2409
|
+
this.WatchWorkflowDraftEvents = this.WatchWorkflowDraftEvents.bind(this);
|
|
2224
2410
|
this.PlanWorkflowPublish = this.PlanWorkflowPublish.bind(this);
|
|
2225
2411
|
this.PublishWorkflowDefinition = this.PublishWorkflowDefinition.bind(this);
|
|
2226
2412
|
this.GetWorkflowVersion = this.GetWorkflowVersion.bind(this);
|
|
@@ -2250,6 +2436,11 @@ class WorkflowServiceClientImpl {
|
|
|
2250
2436
|
const promise = this.rpc.request(this.service, "UpdateWorkflowDraft", data);
|
|
2251
2437
|
return promise.then((data) => exports.UpdateWorkflowDraftResponse.decode(new wire_1.BinaryReader(data)));
|
|
2252
2438
|
}
|
|
2439
|
+
WatchWorkflowDraftEvents(request) {
|
|
2440
|
+
const data = exports.WatchWorkflowDraftEventsRequest.encode(request).finish();
|
|
2441
|
+
const result = this.rpc.serverStreamingRequest(this.service, "WatchWorkflowDraftEvents", data);
|
|
2442
|
+
return result.pipe((0, operators_1.map)((data) => exports.WatchWorkflowDraftEventsResponse.decode(new wire_1.BinaryReader(data))));
|
|
2443
|
+
}
|
|
2253
2444
|
PlanWorkflowPublish(request) {
|
|
2254
2445
|
const data = exports.PlanWorkflowPublishRequest.encode(request).finish();
|
|
2255
2446
|
const promise = this.rpc.request(this.service, "PlanWorkflowPublish", data);
|
|
@@ -2465,6 +2656,14 @@ exports.WorkflowServiceDefinition = {
|
|
|
2465
2656
|
},
|
|
2466
2657
|
},
|
|
2467
2658
|
},
|
|
2659
|
+
watchWorkflowDraftEvents: {
|
|
2660
|
+
name: "WatchWorkflowDraftEvents",
|
|
2661
|
+
requestType: exports.WatchWorkflowDraftEventsRequest,
|
|
2662
|
+
requestStream: false,
|
|
2663
|
+
responseType: exports.WatchWorkflowDraftEventsResponse,
|
|
2664
|
+
responseStream: true,
|
|
2665
|
+
options: {},
|
|
2666
|
+
},
|
|
2468
2667
|
planWorkflowPublish: {
|
|
2469
2668
|
name: "PlanWorkflowPublish",
|
|
2470
2669
|
requestType: exports.PlanWorkflowPublishRequest,
|