weave-typescript 0.51.3 → 0.53.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/protobuf/duration.pb.d.ts +99 -0
- package/dist/google/protobuf/duration.pb.js +93 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/weave/authz/v1/index.d.ts +1 -0
- package/dist/weave/authz/v1/index.js +38 -0
- package/dist/weave/authz/v1/options.pb.d.ts +52 -0
- package/dist/weave/authz/v1/options.pb.js +403 -0
- package/dist/weave/filter/v1/index.d.ts +1 -0
- package/dist/weave/filter/v1/index.js +38 -0
- package/dist/{weaveapi/atc/v1/message.pb.d.ts → weave/filter/v1/options.pb.d.ts} +33 -21
- package/dist/weave/filter/v1/options.pb.js +417 -0
- package/dist/weave/index.d.ts +2 -0
- package/dist/weave/index.js +39 -0
- package/dist/weaveapi/agent/v1/agent.pb.d.ts +137 -188
- package/dist/weaveapi/agent/v1/agent.pb.js +891 -2151
- package/dist/weaveapi/agent/v1/index.d.ts +1 -1
- package/dist/weaveapi/agent/v1/index.js +2 -2
- package/dist/weaveapi/agent/v1/run.pb.d.ts +289 -0
- package/dist/weaveapi/agent/v1/run.pb.js +2763 -0
- package/dist/weaveapi/auth/v1/auth.pb.d.ts +67 -14
- package/dist/weaveapi/auth/v1/auth.pb.js +829 -89
- package/dist/weaveapi/auth/v1/index.d.ts +4 -1
- package/dist/weaveapi/auth/v1/index.js +5 -2
- package/dist/weaveapi/auth/v1/{service.pb.d.ts → organization_admin.pb.d.ts} +39 -530
- package/dist/weaveapi/auth/v1/{service.pb.js → organization_admin.pb.js} +2978 -5812
- package/dist/weaveapi/auth/v1/personal_access_token.pb.d.ts +114 -0
- package/dist/weaveapi/auth/v1/personal_access_token.pb.js +750 -0
- package/dist/weaveapi/auth/v1/profile.pb.d.ts +161 -0
- package/dist/weaveapi/auth/v1/profile.pb.js +1007 -0
- package/dist/weaveapi/auth/v1/session.pb.d.ts +460 -0
- package/dist/weaveapi/auth/v1/session.pb.js +3544 -0
- package/dist/weaveapi/chat/v1/chat.pb.d.ts +377 -149
- package/dist/weaveapi/chat/v1/chat.pb.js +3492 -1614
- package/dist/weaveapi/chat/v1/index.d.ts +0 -1
- package/dist/weaveapi/chat/v1/index.js +1 -2
- package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +95 -0
- package/dist/weaveapi/consolidation/v1/consolidation.pb.js +770 -1
- package/dist/weaveapi/consolidation/v1/index.d.ts +0 -1
- package/dist/weaveapi/consolidation/v1/index.js +1 -2
- package/dist/weaveapi/content/v1/content.pb.d.ts +63 -0
- package/dist/weaveapi/content/v1/content.pb.js +470 -0
- package/dist/weaveapi/content/v1/index.d.ts +1 -0
- package/dist/weaveapi/content/v1/index.js +38 -0
- package/dist/weaveapi/gateway/v1/gateway.pb.d.ts +247 -523
- package/dist/weaveapi/gateway/v1/gateway.pb.js +1648 -5783
- package/dist/weaveapi/gateway/v1/index.d.ts +0 -1
- package/dist/weaveapi/gateway/v1/index.js +1 -2
- package/dist/weaveapi/index.d.ts +5 -5
- package/dist/weaveapi/index.js +6 -6
- package/dist/weaveapi/inference/v1/generate.pb.d.ts +120 -0
- package/dist/weaveapi/inference/v1/generate.pb.js +1159 -0
- package/dist/weaveapi/inference/v1/index.d.ts +4 -0
- package/dist/weaveapi/{provider → inference}/v1/index.js +4 -2
- package/dist/weaveapi/{model → inference}/v1/model.pb.d.ts +54 -15
- package/dist/weaveapi/{model → inference}/v1/model.pb.js +573 -116
- package/dist/weaveapi/{model/v1/service.pb.d.ts → inference/v1/model_route.pb.d.ts} +184 -110
- package/dist/weaveapi/{model/v1/service.pb.js → inference/v1/model_route.pb.js} +2240 -1061
- package/dist/weaveapi/inference/v1/provider.pb.d.ts +264 -0
- package/dist/weaveapi/inference/v1/provider.pb.js +2590 -0
- package/dist/weaveapi/ingestion/v1/index.d.ts +0 -2
- package/dist/weaveapi/ingestion/v1/index.js +1 -3
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +543 -0
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +5550 -16
- package/dist/weaveapi/initialization/v1/index.d.ts +1 -0
- package/dist/weaveapi/initialization/v1/index.js +38 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.d.ts +99 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.js +510 -0
- package/dist/weaveapi/organization/v1/index.d.ts +0 -1
- package/dist/weaveapi/organization/v1/index.js +1 -2
- package/dist/weaveapi/organization/v1/organization.pb.d.ts +241 -0
- package/dist/weaveapi/organization/v1/organization.pb.js +1838 -1
- package/dist/weaveapi/reporting/index.d.ts +1 -0
- package/dist/weaveapi/reporting/index.js +38 -0
- package/dist/weaveapi/{task → reporting}/v1/index.d.ts +1 -1
- package/dist/weaveapi/{model → reporting}/v1/index.js +2 -2
- package/dist/weaveapi/reporting/v1/service.pb.d.ts +38 -0
- package/dist/weaveapi/reporting/v1/service.pb.js +167 -0
- package/dist/weaveapi/reporting/v1/usage.pb.d.ts +150 -0
- package/dist/weaveapi/reporting/v1/usage.pb.js +1837 -0
- package/dist/weaveapi/retrieval/v1/index.d.ts +0 -1
- package/dist/weaveapi/retrieval/v1/index.js +1 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +96 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +690 -10
- package/dist/weaveapi/tool/index.d.ts +1 -0
- package/dist/weaveapi/tool/index.js +38 -0
- package/dist/weaveapi/tool/v1/index.d.ts +1 -0
- package/dist/weaveapi/tool/v1/index.js +38 -0
- package/dist/weaveapi/tool/v1/tool.pb.d.ts +370 -0
- package/dist/weaveapi/tool/v1/tool.pb.js +2717 -0
- package/dist/weaveapi/workflow/v1/index.d.ts +1 -1
- package/dist/weaveapi/workflow/v1/index.js +2 -2
- package/dist/weaveapi/workflow/v1/run.pb.d.ts +244 -0
- package/dist/weaveapi/workflow/v1/run.pb.js +2084 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +122 -275
- package/dist/weaveapi/workflow/v1/workflow.pb.js +790 -3261
- package/dist/weavesql/weavedb/agent_sql.d.ts +173 -477
- package/dist/weavesql/weavedb/agent_sql.js +281 -758
- package/dist/weavesql/weavedb/authorization_outbox_sql.d.ts +261 -0
- package/dist/weavesql/weavedb/authorization_outbox_sql.js +445 -0
- package/dist/weavesql/weavedb/chat_sql.d.ts +103 -345
- package/dist/weavesql/weavedb/chat_sql.js +312 -597
- package/dist/weavesql/weavedb/document_consolidation_sql.d.ts +217 -0
- package/dist/weavesql/weavedb/document_consolidation_sql.js +486 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.d.ts +1433 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.js +3488 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.d.ts +314 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.js +965 -0
- package/dist/weavesql/weavedb/document_table_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/document_table_sql.js +12 -12
- package/dist/weavesql/weavedb/identity_sql.d.ts +1021 -0
- package/dist/weavesql/weavedb/identity_sql.js +1818 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.d.ts +167 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.js +483 -0
- package/dist/weavesql/weavedb/inference_provider_sql.d.ts +125 -0
- package/dist/weavesql/weavedb/inference_provider_sql.js +228 -0
- package/dist/weavesql/weavedb/initialization_sql.d.ts +15 -0
- package/dist/weavesql/weavedb/initialization_sql.js +33 -0
- package/dist/weavesql/weavedb/model_catalog_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/model_catalog_sql.js +6 -6
- package/dist/weavesql/weavedb/organization_sql.d.ts +24 -102
- package/dist/weavesql/weavedb/organization_sql.js +56 -262
- package/dist/weavesql/weavedb/tool_sql.d.ts +209 -0
- package/dist/weavesql/weavedb/tool_sql.js +407 -0
- package/dist/weavesql/weavedb/usage_sql.d.ts +356 -0
- package/dist/weavesql/weavedb/usage_sql.js +568 -0
- package/dist/weavesql/weavedb/workflow_sql.d.ts +159 -546
- package/dist/weavesql/weavedb/workflow_sql.js +281 -909
- package/package.json +1 -1
- package/dist/weaveapi/agent/v1/service.pb.d.ts +0 -397
- package/dist/weaveapi/agent/v1/service.pb.js +0 -3152
- package/dist/weaveapi/atc/v1/event.pb.d.ts +0 -134
- package/dist/weaveapi/atc/v1/event.pb.js +0 -1124
- package/dist/weaveapi/atc/v1/index.d.ts +0 -5
- package/dist/weaveapi/atc/v1/index.js +0 -42
- package/dist/weaveapi/atc/v1/message.pb.js +0 -287
- package/dist/weaveapi/atc/v1/process.pb.d.ts +0 -91
- package/dist/weaveapi/atc/v1/process.pb.js +0 -658
- package/dist/weaveapi/atc/v1/run.pb.d.ts +0 -71
- package/dist/weaveapi/atc/v1/run.pb.js +0 -525
- package/dist/weaveapi/atc/v1/service.pb.d.ts +0 -472
- package/dist/weaveapi/atc/v1/service.pb.js +0 -3093
- package/dist/weaveapi/chat/v1/service.pb.d.ts +0 -345
- package/dist/weaveapi/chat/v1/service.pb.js +0 -2545
- package/dist/weaveapi/consolidation/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/consolidation/v1/service.pb.js +0 -427
- package/dist/weaveapi/gateway/v1/service.pb.d.ts +0 -235
- package/dist/weaveapi/gateway/v1/service.pb.js +0 -651
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +0 -420
- package/dist/weaveapi/ingestion/v1/service.pb.js +0 -2311
- package/dist/weaveapi/ingestion/v1/table.pb.d.ts +0 -121
- package/dist/weaveapi/ingestion/v1/table.pb.js +0 -1478
- package/dist/weaveapi/model/v1/index.d.ts +0 -2
- package/dist/weaveapi/organization/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/organization/v1/service.pb.js +0 -1561
- package/dist/weaveapi/project/v1/index.d.ts +0 -2
- package/dist/weaveapi/project/v1/index.js +0 -39
- package/dist/weaveapi/project/v1/project.pb.d.ts +0 -105
- package/dist/weaveapi/project/v1/project.pb.js +0 -1004
- package/dist/weaveapi/project/v1/service.pb.d.ts +0 -247
- package/dist/weaveapi/project/v1/service.pb.js +0 -1994
- package/dist/weaveapi/provider/v1/index.d.ts +0 -2
- package/dist/weaveapi/provider/v1/provider.pb.d.ts +0 -137
- package/dist/weaveapi/provider/v1/provider.pb.js +0 -1000
- package/dist/weaveapi/provider/v1/service.pb.d.ts +0 -223
- package/dist/weaveapi/provider/v1/service.pb.js +0 -1888
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/retrieval/v1/service.pb.js +0 -385
- package/dist/weaveapi/task/v1/index.js +0 -39
- package/dist/weaveapi/task/v1/service.pb.d.ts +0 -172
- package/dist/weaveapi/task/v1/service.pb.js +0 -1436
- package/dist/weaveapi/task/v1/task.pb.d.ts +0 -85
- package/dist/weaveapi/task/v1/task.pb.js +0 -802
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -392
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -3146
- /package/dist/{weaveapi/atc → weave/authz}/index.d.ts +0 -0
- /package/dist/{weaveapi/atc → weave/authz}/index.js +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.d.ts +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.js +0 -0
- /package/dist/weaveapi/{project → content}/index.d.ts +0 -0
- /package/dist/weaveapi/{project → content}/index.js +0 -0
- /package/dist/weaveapi/{provider → inference}/index.d.ts +0 -0
- /package/dist/weaveapi/{provider → inference}/index.js +0 -0
- /package/dist/weaveapi/{task → initialization}/index.d.ts +0 -0
- /package/dist/weaveapi/{task → initialization}/index.js +0 -0
|
@@ -5,513 +5,76 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/workflow/v1/workflow.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.workflowStepKindFromJSON = workflowStepKindFromJSON;
|
|
12
|
-
exports.workflowStepKindToJSON = workflowStepKindToJSON;
|
|
13
|
-
exports.workflowRunStatusFromJSON = workflowRunStatusFromJSON;
|
|
14
|
-
exports.workflowRunStatusToJSON = workflowRunStatusToJSON;
|
|
15
|
-
exports.workflowStepRunStatusFromJSON = workflowStepRunStatusFromJSON;
|
|
16
|
-
exports.workflowStepRunStatusToJSON = workflowStepRunStatusToJSON;
|
|
17
|
-
exports.workflowRunEventKindFromJSON = workflowRunEventKindFromJSON;
|
|
18
|
-
exports.workflowRunEventKindToJSON = workflowRunEventKindToJSON;
|
|
19
|
-
exports.workflowDraftEventKindFromJSON = workflowDraftEventKindFromJSON;
|
|
20
|
-
exports.workflowDraftEventKindToJSON = workflowDraftEventKindToJSON;
|
|
21
|
-
exports.toolCallStateFromJSON = toolCallStateFromJSON;
|
|
22
|
-
exports.toolCallStateToJSON = toolCallStateToJSON;
|
|
8
|
+
exports.WorkflowServiceDefinition = exports.WorkflowServiceClientImpl = exports.WorkflowServiceServiceName = exports.Workflow = exports.ListWorkflowsResponse = exports.ListWorkflowsRequest = exports.UpdateWorkflowResponse = exports.UpdateWorkflowRequest = exports.GetWorkflowResponse = exports.GetWorkflowRequest = exports.CreateWorkflowResponse = exports.CreateWorkflowRequest = exports.WorkflowStatus = exports.protobufPackage = void 0;
|
|
9
|
+
exports.workflowStatusFromJSON = workflowStatusFromJSON;
|
|
10
|
+
exports.workflowStatusToJSON = workflowStatusToJSON;
|
|
23
11
|
/* eslint-disable */
|
|
24
12
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
25
13
|
const struct_pb_1 = require("../../../google/protobuf/struct.pb");
|
|
26
|
-
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
27
14
|
exports.protobufPackage = "weaveapi.workflow.v1";
|
|
28
|
-
var
|
|
29
|
-
(function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})(
|
|
35
|
-
function
|
|
15
|
+
var WorkflowStatus;
|
|
16
|
+
(function (WorkflowStatus) {
|
|
17
|
+
WorkflowStatus[WorkflowStatus["WORKFLOW_STATUS_UNSPECIFIED"] = 0] = "WORKFLOW_STATUS_UNSPECIFIED";
|
|
18
|
+
WorkflowStatus[WorkflowStatus["WORKFLOW_STATUS_ACTIVE"] = 1] = "WORKFLOW_STATUS_ACTIVE";
|
|
19
|
+
WorkflowStatus[WorkflowStatus["WORKFLOW_STATUS_DISABLED"] = 2] = "WORKFLOW_STATUS_DISABLED";
|
|
20
|
+
WorkflowStatus[WorkflowStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
21
|
+
})(WorkflowStatus || (exports.WorkflowStatus = WorkflowStatus = {}));
|
|
22
|
+
function workflowStatusFromJSON(object) {
|
|
36
23
|
switch (object) {
|
|
37
24
|
case 0:
|
|
38
|
-
case "
|
|
39
|
-
return
|
|
25
|
+
case "WORKFLOW_STATUS_UNSPECIFIED":
|
|
26
|
+
return WorkflowStatus.WORKFLOW_STATUS_UNSPECIFIED;
|
|
40
27
|
case 1:
|
|
41
|
-
case "
|
|
42
|
-
return
|
|
28
|
+
case "WORKFLOW_STATUS_ACTIVE":
|
|
29
|
+
return WorkflowStatus.WORKFLOW_STATUS_ACTIVE;
|
|
43
30
|
case 2:
|
|
44
|
-
case "
|
|
45
|
-
return
|
|
31
|
+
case "WORKFLOW_STATUS_DISABLED":
|
|
32
|
+
return WorkflowStatus.WORKFLOW_STATUS_DISABLED;
|
|
46
33
|
case -1:
|
|
47
34
|
case "UNRECOGNIZED":
|
|
48
35
|
default:
|
|
49
|
-
return
|
|
36
|
+
return WorkflowStatus.UNRECOGNIZED;
|
|
50
37
|
}
|
|
51
38
|
}
|
|
52
|
-
function
|
|
39
|
+
function workflowStatusToJSON(object) {
|
|
53
40
|
switch (object) {
|
|
54
|
-
case
|
|
55
|
-
return "
|
|
56
|
-
case
|
|
57
|
-
return "
|
|
58
|
-
case
|
|
59
|
-
return "
|
|
60
|
-
case
|
|
41
|
+
case WorkflowStatus.WORKFLOW_STATUS_UNSPECIFIED:
|
|
42
|
+
return "WORKFLOW_STATUS_UNSPECIFIED";
|
|
43
|
+
case WorkflowStatus.WORKFLOW_STATUS_ACTIVE:
|
|
44
|
+
return "WORKFLOW_STATUS_ACTIVE";
|
|
45
|
+
case WorkflowStatus.WORKFLOW_STATUS_DISABLED:
|
|
46
|
+
return "WORKFLOW_STATUS_DISABLED";
|
|
47
|
+
case WorkflowStatus.UNRECOGNIZED:
|
|
61
48
|
default:
|
|
62
49
|
return "UNRECOGNIZED";
|
|
63
50
|
}
|
|
64
51
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
WorkflowStepKind[WorkflowStepKind["WORKFLOW_STEP_KIND_UNSPECIFIED"] = 0] = "WORKFLOW_STEP_KIND_UNSPECIFIED";
|
|
68
|
-
WorkflowStepKind[WorkflowStepKind["WORKFLOW_STEP_KIND_AGENT"] = 1] = "WORKFLOW_STEP_KIND_AGENT";
|
|
69
|
-
WorkflowStepKind[WorkflowStepKind["WORKFLOW_STEP_KIND_WORKFLOW"] = 2] = "WORKFLOW_STEP_KIND_WORKFLOW";
|
|
70
|
-
WorkflowStepKind[WorkflowStepKind["WORKFLOW_STEP_KIND_TOOL"] = 3] = "WORKFLOW_STEP_KIND_TOOL";
|
|
71
|
-
WorkflowStepKind[WorkflowStepKind["WORKFLOW_STEP_KIND_SERVICE"] = 4] = "WORKFLOW_STEP_KIND_SERVICE";
|
|
72
|
-
WorkflowStepKind[WorkflowStepKind["WORKFLOW_STEP_KIND_PARALLEL"] = 5] = "WORKFLOW_STEP_KIND_PARALLEL";
|
|
73
|
-
WorkflowStepKind[WorkflowStepKind["WORKFLOW_STEP_KIND_LOOP"] = 6] = "WORKFLOW_STEP_KIND_LOOP";
|
|
74
|
-
WorkflowStepKind[WorkflowStepKind["WORKFLOW_STEP_KIND_APPROVAL"] = 7] = "WORKFLOW_STEP_KIND_APPROVAL";
|
|
75
|
-
WorkflowStepKind[WorkflowStepKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
76
|
-
})(WorkflowStepKind || (exports.WorkflowStepKind = WorkflowStepKind = {}));
|
|
77
|
-
function workflowStepKindFromJSON(object) {
|
|
78
|
-
switch (object) {
|
|
79
|
-
case 0:
|
|
80
|
-
case "WORKFLOW_STEP_KIND_UNSPECIFIED":
|
|
81
|
-
return WorkflowStepKind.WORKFLOW_STEP_KIND_UNSPECIFIED;
|
|
82
|
-
case 1:
|
|
83
|
-
case "WORKFLOW_STEP_KIND_AGENT":
|
|
84
|
-
return WorkflowStepKind.WORKFLOW_STEP_KIND_AGENT;
|
|
85
|
-
case 2:
|
|
86
|
-
case "WORKFLOW_STEP_KIND_WORKFLOW":
|
|
87
|
-
return WorkflowStepKind.WORKFLOW_STEP_KIND_WORKFLOW;
|
|
88
|
-
case 3:
|
|
89
|
-
case "WORKFLOW_STEP_KIND_TOOL":
|
|
90
|
-
return WorkflowStepKind.WORKFLOW_STEP_KIND_TOOL;
|
|
91
|
-
case 4:
|
|
92
|
-
case "WORKFLOW_STEP_KIND_SERVICE":
|
|
93
|
-
return WorkflowStepKind.WORKFLOW_STEP_KIND_SERVICE;
|
|
94
|
-
case 5:
|
|
95
|
-
case "WORKFLOW_STEP_KIND_PARALLEL":
|
|
96
|
-
return WorkflowStepKind.WORKFLOW_STEP_KIND_PARALLEL;
|
|
97
|
-
case 6:
|
|
98
|
-
case "WORKFLOW_STEP_KIND_LOOP":
|
|
99
|
-
return WorkflowStepKind.WORKFLOW_STEP_KIND_LOOP;
|
|
100
|
-
case 7:
|
|
101
|
-
case "WORKFLOW_STEP_KIND_APPROVAL":
|
|
102
|
-
return WorkflowStepKind.WORKFLOW_STEP_KIND_APPROVAL;
|
|
103
|
-
case -1:
|
|
104
|
-
case "UNRECOGNIZED":
|
|
105
|
-
default:
|
|
106
|
-
return WorkflowStepKind.UNRECOGNIZED;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function workflowStepKindToJSON(object) {
|
|
110
|
-
switch (object) {
|
|
111
|
-
case WorkflowStepKind.WORKFLOW_STEP_KIND_UNSPECIFIED:
|
|
112
|
-
return "WORKFLOW_STEP_KIND_UNSPECIFIED";
|
|
113
|
-
case WorkflowStepKind.WORKFLOW_STEP_KIND_AGENT:
|
|
114
|
-
return "WORKFLOW_STEP_KIND_AGENT";
|
|
115
|
-
case WorkflowStepKind.WORKFLOW_STEP_KIND_WORKFLOW:
|
|
116
|
-
return "WORKFLOW_STEP_KIND_WORKFLOW";
|
|
117
|
-
case WorkflowStepKind.WORKFLOW_STEP_KIND_TOOL:
|
|
118
|
-
return "WORKFLOW_STEP_KIND_TOOL";
|
|
119
|
-
case WorkflowStepKind.WORKFLOW_STEP_KIND_SERVICE:
|
|
120
|
-
return "WORKFLOW_STEP_KIND_SERVICE";
|
|
121
|
-
case WorkflowStepKind.WORKFLOW_STEP_KIND_PARALLEL:
|
|
122
|
-
return "WORKFLOW_STEP_KIND_PARALLEL";
|
|
123
|
-
case WorkflowStepKind.WORKFLOW_STEP_KIND_LOOP:
|
|
124
|
-
return "WORKFLOW_STEP_KIND_LOOP";
|
|
125
|
-
case WorkflowStepKind.WORKFLOW_STEP_KIND_APPROVAL:
|
|
126
|
-
return "WORKFLOW_STEP_KIND_APPROVAL";
|
|
127
|
-
case WorkflowStepKind.UNRECOGNIZED:
|
|
128
|
-
default:
|
|
129
|
-
return "UNRECOGNIZED";
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
var WorkflowRunStatus;
|
|
133
|
-
(function (WorkflowRunStatus) {
|
|
134
|
-
WorkflowRunStatus[WorkflowRunStatus["WORKFLOW_RUN_STATUS_UNSPECIFIED"] = 0] = "WORKFLOW_RUN_STATUS_UNSPECIFIED";
|
|
135
|
-
WorkflowRunStatus[WorkflowRunStatus["WORKFLOW_RUN_STATUS_PENDING"] = 1] = "WORKFLOW_RUN_STATUS_PENDING";
|
|
136
|
-
WorkflowRunStatus[WorkflowRunStatus["WORKFLOW_RUN_STATUS_RUNNING"] = 2] = "WORKFLOW_RUN_STATUS_RUNNING";
|
|
137
|
-
WorkflowRunStatus[WorkflowRunStatus["WORKFLOW_RUN_STATUS_WAITING"] = 3] = "WORKFLOW_RUN_STATUS_WAITING";
|
|
138
|
-
WorkflowRunStatus[WorkflowRunStatus["WORKFLOW_RUN_STATUS_COMPLETED"] = 4] = "WORKFLOW_RUN_STATUS_COMPLETED";
|
|
139
|
-
WorkflowRunStatus[WorkflowRunStatus["WORKFLOW_RUN_STATUS_FAILED"] = 5] = "WORKFLOW_RUN_STATUS_FAILED";
|
|
140
|
-
WorkflowRunStatus[WorkflowRunStatus["WORKFLOW_RUN_STATUS_CANCELED"] = 6] = "WORKFLOW_RUN_STATUS_CANCELED";
|
|
141
|
-
WorkflowRunStatus[WorkflowRunStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
142
|
-
})(WorkflowRunStatus || (exports.WorkflowRunStatus = WorkflowRunStatus = {}));
|
|
143
|
-
function workflowRunStatusFromJSON(object) {
|
|
144
|
-
switch (object) {
|
|
145
|
-
case 0:
|
|
146
|
-
case "WORKFLOW_RUN_STATUS_UNSPECIFIED":
|
|
147
|
-
return WorkflowRunStatus.WORKFLOW_RUN_STATUS_UNSPECIFIED;
|
|
148
|
-
case 1:
|
|
149
|
-
case "WORKFLOW_RUN_STATUS_PENDING":
|
|
150
|
-
return WorkflowRunStatus.WORKFLOW_RUN_STATUS_PENDING;
|
|
151
|
-
case 2:
|
|
152
|
-
case "WORKFLOW_RUN_STATUS_RUNNING":
|
|
153
|
-
return WorkflowRunStatus.WORKFLOW_RUN_STATUS_RUNNING;
|
|
154
|
-
case 3:
|
|
155
|
-
case "WORKFLOW_RUN_STATUS_WAITING":
|
|
156
|
-
return WorkflowRunStatus.WORKFLOW_RUN_STATUS_WAITING;
|
|
157
|
-
case 4:
|
|
158
|
-
case "WORKFLOW_RUN_STATUS_COMPLETED":
|
|
159
|
-
return WorkflowRunStatus.WORKFLOW_RUN_STATUS_COMPLETED;
|
|
160
|
-
case 5:
|
|
161
|
-
case "WORKFLOW_RUN_STATUS_FAILED":
|
|
162
|
-
return WorkflowRunStatus.WORKFLOW_RUN_STATUS_FAILED;
|
|
163
|
-
case 6:
|
|
164
|
-
case "WORKFLOW_RUN_STATUS_CANCELED":
|
|
165
|
-
return WorkflowRunStatus.WORKFLOW_RUN_STATUS_CANCELED;
|
|
166
|
-
case -1:
|
|
167
|
-
case "UNRECOGNIZED":
|
|
168
|
-
default:
|
|
169
|
-
return WorkflowRunStatus.UNRECOGNIZED;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
function workflowRunStatusToJSON(object) {
|
|
173
|
-
switch (object) {
|
|
174
|
-
case WorkflowRunStatus.WORKFLOW_RUN_STATUS_UNSPECIFIED:
|
|
175
|
-
return "WORKFLOW_RUN_STATUS_UNSPECIFIED";
|
|
176
|
-
case WorkflowRunStatus.WORKFLOW_RUN_STATUS_PENDING:
|
|
177
|
-
return "WORKFLOW_RUN_STATUS_PENDING";
|
|
178
|
-
case WorkflowRunStatus.WORKFLOW_RUN_STATUS_RUNNING:
|
|
179
|
-
return "WORKFLOW_RUN_STATUS_RUNNING";
|
|
180
|
-
case WorkflowRunStatus.WORKFLOW_RUN_STATUS_WAITING:
|
|
181
|
-
return "WORKFLOW_RUN_STATUS_WAITING";
|
|
182
|
-
case WorkflowRunStatus.WORKFLOW_RUN_STATUS_COMPLETED:
|
|
183
|
-
return "WORKFLOW_RUN_STATUS_COMPLETED";
|
|
184
|
-
case WorkflowRunStatus.WORKFLOW_RUN_STATUS_FAILED:
|
|
185
|
-
return "WORKFLOW_RUN_STATUS_FAILED";
|
|
186
|
-
case WorkflowRunStatus.WORKFLOW_RUN_STATUS_CANCELED:
|
|
187
|
-
return "WORKFLOW_RUN_STATUS_CANCELED";
|
|
188
|
-
case WorkflowRunStatus.UNRECOGNIZED:
|
|
189
|
-
default:
|
|
190
|
-
return "UNRECOGNIZED";
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
var WorkflowStepRunStatus;
|
|
194
|
-
(function (WorkflowStepRunStatus) {
|
|
195
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["WORKFLOW_STEP_RUN_STATUS_UNSPECIFIED"] = 0] = "WORKFLOW_STEP_RUN_STATUS_UNSPECIFIED";
|
|
196
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["WORKFLOW_STEP_RUN_STATUS_PENDING"] = 1] = "WORKFLOW_STEP_RUN_STATUS_PENDING";
|
|
197
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["WORKFLOW_STEP_RUN_STATUS_RUNNING"] = 2] = "WORKFLOW_STEP_RUN_STATUS_RUNNING";
|
|
198
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["WORKFLOW_STEP_RUN_STATUS_WAITING"] = 3] = "WORKFLOW_STEP_RUN_STATUS_WAITING";
|
|
199
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["WORKFLOW_STEP_RUN_STATUS_COMPLETED"] = 4] = "WORKFLOW_STEP_RUN_STATUS_COMPLETED";
|
|
200
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["WORKFLOW_STEP_RUN_STATUS_FAILED"] = 5] = "WORKFLOW_STEP_RUN_STATUS_FAILED";
|
|
201
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["WORKFLOW_STEP_RUN_STATUS_SKIPPED"] = 6] = "WORKFLOW_STEP_RUN_STATUS_SKIPPED";
|
|
202
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["WORKFLOW_STEP_RUN_STATUS_CANCELED"] = 7] = "WORKFLOW_STEP_RUN_STATUS_CANCELED";
|
|
203
|
-
WorkflowStepRunStatus[WorkflowStepRunStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
204
|
-
})(WorkflowStepRunStatus || (exports.WorkflowStepRunStatus = WorkflowStepRunStatus = {}));
|
|
205
|
-
function workflowStepRunStatusFromJSON(object) {
|
|
206
|
-
switch (object) {
|
|
207
|
-
case 0:
|
|
208
|
-
case "WORKFLOW_STEP_RUN_STATUS_UNSPECIFIED":
|
|
209
|
-
return WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_UNSPECIFIED;
|
|
210
|
-
case 1:
|
|
211
|
-
case "WORKFLOW_STEP_RUN_STATUS_PENDING":
|
|
212
|
-
return WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_PENDING;
|
|
213
|
-
case 2:
|
|
214
|
-
case "WORKFLOW_STEP_RUN_STATUS_RUNNING":
|
|
215
|
-
return WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_RUNNING;
|
|
216
|
-
case 3:
|
|
217
|
-
case "WORKFLOW_STEP_RUN_STATUS_WAITING":
|
|
218
|
-
return WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_WAITING;
|
|
219
|
-
case 4:
|
|
220
|
-
case "WORKFLOW_STEP_RUN_STATUS_COMPLETED":
|
|
221
|
-
return WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_COMPLETED;
|
|
222
|
-
case 5:
|
|
223
|
-
case "WORKFLOW_STEP_RUN_STATUS_FAILED":
|
|
224
|
-
return WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_FAILED;
|
|
225
|
-
case 6:
|
|
226
|
-
case "WORKFLOW_STEP_RUN_STATUS_SKIPPED":
|
|
227
|
-
return WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_SKIPPED;
|
|
228
|
-
case 7:
|
|
229
|
-
case "WORKFLOW_STEP_RUN_STATUS_CANCELED":
|
|
230
|
-
return WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_CANCELED;
|
|
231
|
-
case -1:
|
|
232
|
-
case "UNRECOGNIZED":
|
|
233
|
-
default:
|
|
234
|
-
return WorkflowStepRunStatus.UNRECOGNIZED;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
function workflowStepRunStatusToJSON(object) {
|
|
238
|
-
switch (object) {
|
|
239
|
-
case WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_UNSPECIFIED:
|
|
240
|
-
return "WORKFLOW_STEP_RUN_STATUS_UNSPECIFIED";
|
|
241
|
-
case WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_PENDING:
|
|
242
|
-
return "WORKFLOW_STEP_RUN_STATUS_PENDING";
|
|
243
|
-
case WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_RUNNING:
|
|
244
|
-
return "WORKFLOW_STEP_RUN_STATUS_RUNNING";
|
|
245
|
-
case WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_WAITING:
|
|
246
|
-
return "WORKFLOW_STEP_RUN_STATUS_WAITING";
|
|
247
|
-
case WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_COMPLETED:
|
|
248
|
-
return "WORKFLOW_STEP_RUN_STATUS_COMPLETED";
|
|
249
|
-
case WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_FAILED:
|
|
250
|
-
return "WORKFLOW_STEP_RUN_STATUS_FAILED";
|
|
251
|
-
case WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_SKIPPED:
|
|
252
|
-
return "WORKFLOW_STEP_RUN_STATUS_SKIPPED";
|
|
253
|
-
case WorkflowStepRunStatus.WORKFLOW_STEP_RUN_STATUS_CANCELED:
|
|
254
|
-
return "WORKFLOW_STEP_RUN_STATUS_CANCELED";
|
|
255
|
-
case WorkflowStepRunStatus.UNRECOGNIZED:
|
|
256
|
-
default:
|
|
257
|
-
return "UNRECOGNIZED";
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
var WorkflowRunEventKind;
|
|
261
|
-
(function (WorkflowRunEventKind) {
|
|
262
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_UNSPECIFIED"] = 0] = "WORKFLOW_RUN_EVENT_KIND_UNSPECIFIED";
|
|
263
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_STARTED"] = 1] = "WORKFLOW_RUN_EVENT_KIND_STARTED";
|
|
264
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_STEP_STARTED"] = 2] = "WORKFLOW_RUN_EVENT_KIND_STEP_STARTED";
|
|
265
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_STEP_COMPLETED"] = 3] = "WORKFLOW_RUN_EVENT_KIND_STEP_COMPLETED";
|
|
266
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_STEP_FAILED"] = 4] = "WORKFLOW_RUN_EVENT_KIND_STEP_FAILED";
|
|
267
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_PROPOSED"] = 5] = "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_PROPOSED";
|
|
268
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_STARTED"] = 6] = "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_STARTED";
|
|
269
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_COMPLETED"] = 7] = "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_COMPLETED";
|
|
270
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_FAILED"] = 8] = "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_FAILED";
|
|
271
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_WAITING"] = 9] = "WORKFLOW_RUN_EVENT_KIND_WAITING";
|
|
272
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_COMPLETED"] = 10] = "WORKFLOW_RUN_EVENT_KIND_COMPLETED";
|
|
273
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_FAILED"] = 11] = "WORKFLOW_RUN_EVENT_KIND_FAILED";
|
|
274
|
-
WorkflowRunEventKind[WorkflowRunEventKind["WORKFLOW_RUN_EVENT_KIND_CANCELED"] = 12] = "WORKFLOW_RUN_EVENT_KIND_CANCELED";
|
|
275
|
-
WorkflowRunEventKind[WorkflowRunEventKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
276
|
-
})(WorkflowRunEventKind || (exports.WorkflowRunEventKind = WorkflowRunEventKind = {}));
|
|
277
|
-
function workflowRunEventKindFromJSON(object) {
|
|
278
|
-
switch (object) {
|
|
279
|
-
case 0:
|
|
280
|
-
case "WORKFLOW_RUN_EVENT_KIND_UNSPECIFIED":
|
|
281
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_UNSPECIFIED;
|
|
282
|
-
case 1:
|
|
283
|
-
case "WORKFLOW_RUN_EVENT_KIND_STARTED":
|
|
284
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_STARTED;
|
|
285
|
-
case 2:
|
|
286
|
-
case "WORKFLOW_RUN_EVENT_KIND_STEP_STARTED":
|
|
287
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_STEP_STARTED;
|
|
288
|
-
case 3:
|
|
289
|
-
case "WORKFLOW_RUN_EVENT_KIND_STEP_COMPLETED":
|
|
290
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_STEP_COMPLETED;
|
|
291
|
-
case 4:
|
|
292
|
-
case "WORKFLOW_RUN_EVENT_KIND_STEP_FAILED":
|
|
293
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_STEP_FAILED;
|
|
294
|
-
case 5:
|
|
295
|
-
case "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_PROPOSED":
|
|
296
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_PROPOSED;
|
|
297
|
-
case 6:
|
|
298
|
-
case "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_STARTED":
|
|
299
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_STARTED;
|
|
300
|
-
case 7:
|
|
301
|
-
case "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_COMPLETED":
|
|
302
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_COMPLETED;
|
|
303
|
-
case 8:
|
|
304
|
-
case "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_FAILED":
|
|
305
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_FAILED;
|
|
306
|
-
case 9:
|
|
307
|
-
case "WORKFLOW_RUN_EVENT_KIND_WAITING":
|
|
308
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_WAITING;
|
|
309
|
-
case 10:
|
|
310
|
-
case "WORKFLOW_RUN_EVENT_KIND_COMPLETED":
|
|
311
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_COMPLETED;
|
|
312
|
-
case 11:
|
|
313
|
-
case "WORKFLOW_RUN_EVENT_KIND_FAILED":
|
|
314
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_FAILED;
|
|
315
|
-
case 12:
|
|
316
|
-
case "WORKFLOW_RUN_EVENT_KIND_CANCELED":
|
|
317
|
-
return WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_CANCELED;
|
|
318
|
-
case -1:
|
|
319
|
-
case "UNRECOGNIZED":
|
|
320
|
-
default:
|
|
321
|
-
return WorkflowRunEventKind.UNRECOGNIZED;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
function workflowRunEventKindToJSON(object) {
|
|
325
|
-
switch (object) {
|
|
326
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_UNSPECIFIED:
|
|
327
|
-
return "WORKFLOW_RUN_EVENT_KIND_UNSPECIFIED";
|
|
328
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_STARTED:
|
|
329
|
-
return "WORKFLOW_RUN_EVENT_KIND_STARTED";
|
|
330
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_STEP_STARTED:
|
|
331
|
-
return "WORKFLOW_RUN_EVENT_KIND_STEP_STARTED";
|
|
332
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_STEP_COMPLETED:
|
|
333
|
-
return "WORKFLOW_RUN_EVENT_KIND_STEP_COMPLETED";
|
|
334
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_STEP_FAILED:
|
|
335
|
-
return "WORKFLOW_RUN_EVENT_KIND_STEP_FAILED";
|
|
336
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_PROPOSED:
|
|
337
|
-
return "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_PROPOSED";
|
|
338
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_STARTED:
|
|
339
|
-
return "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_STARTED";
|
|
340
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_COMPLETED:
|
|
341
|
-
return "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_COMPLETED";
|
|
342
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_FAILED:
|
|
343
|
-
return "WORKFLOW_RUN_EVENT_KIND_TOOL_CALL_FAILED";
|
|
344
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_WAITING:
|
|
345
|
-
return "WORKFLOW_RUN_EVENT_KIND_WAITING";
|
|
346
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_COMPLETED:
|
|
347
|
-
return "WORKFLOW_RUN_EVENT_KIND_COMPLETED";
|
|
348
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_FAILED:
|
|
349
|
-
return "WORKFLOW_RUN_EVENT_KIND_FAILED";
|
|
350
|
-
case WorkflowRunEventKind.WORKFLOW_RUN_EVENT_KIND_CANCELED:
|
|
351
|
-
return "WORKFLOW_RUN_EVENT_KIND_CANCELED";
|
|
352
|
-
case WorkflowRunEventKind.UNRECOGNIZED:
|
|
353
|
-
default:
|
|
354
|
-
return "UNRECOGNIZED";
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
var WorkflowDraftEventKind;
|
|
358
|
-
(function (WorkflowDraftEventKind) {
|
|
359
|
-
WorkflowDraftEventKind[WorkflowDraftEventKind["WORKFLOW_DRAFT_EVENT_KIND_UNSPECIFIED"] = 0] = "WORKFLOW_DRAFT_EVENT_KIND_UNSPECIFIED";
|
|
360
|
-
WorkflowDraftEventKind[WorkflowDraftEventKind["WORKFLOW_DRAFT_EVENT_KIND_PATCH_APPLIED"] = 1] = "WORKFLOW_DRAFT_EVENT_KIND_PATCH_APPLIED";
|
|
361
|
-
WorkflowDraftEventKind[WorkflowDraftEventKind["WORKFLOW_DRAFT_EVENT_KIND_PATCH_REJECTED"] = 2] = "WORKFLOW_DRAFT_EVENT_KIND_PATCH_REJECTED";
|
|
362
|
-
WorkflowDraftEventKind[WorkflowDraftEventKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
363
|
-
})(WorkflowDraftEventKind || (exports.WorkflowDraftEventKind = WorkflowDraftEventKind = {}));
|
|
364
|
-
function workflowDraftEventKindFromJSON(object) {
|
|
365
|
-
switch (object) {
|
|
366
|
-
case 0:
|
|
367
|
-
case "WORKFLOW_DRAFT_EVENT_KIND_UNSPECIFIED":
|
|
368
|
-
return WorkflowDraftEventKind.WORKFLOW_DRAFT_EVENT_KIND_UNSPECIFIED;
|
|
369
|
-
case 1:
|
|
370
|
-
case "WORKFLOW_DRAFT_EVENT_KIND_PATCH_APPLIED":
|
|
371
|
-
return WorkflowDraftEventKind.WORKFLOW_DRAFT_EVENT_KIND_PATCH_APPLIED;
|
|
372
|
-
case 2:
|
|
373
|
-
case "WORKFLOW_DRAFT_EVENT_KIND_PATCH_REJECTED":
|
|
374
|
-
return WorkflowDraftEventKind.WORKFLOW_DRAFT_EVENT_KIND_PATCH_REJECTED;
|
|
375
|
-
case -1:
|
|
376
|
-
case "UNRECOGNIZED":
|
|
377
|
-
default:
|
|
378
|
-
return WorkflowDraftEventKind.UNRECOGNIZED;
|
|
379
|
-
}
|
|
52
|
+
function createBaseCreateWorkflowRequest() {
|
|
53
|
+
return { slug: "", name: "", description: "", definition: undefined, metadata: undefined };
|
|
380
54
|
}
|
|
381
|
-
|
|
382
|
-
switch (object) {
|
|
383
|
-
case WorkflowDraftEventKind.WORKFLOW_DRAFT_EVENT_KIND_UNSPECIFIED:
|
|
384
|
-
return "WORKFLOW_DRAFT_EVENT_KIND_UNSPECIFIED";
|
|
385
|
-
case WorkflowDraftEventKind.WORKFLOW_DRAFT_EVENT_KIND_PATCH_APPLIED:
|
|
386
|
-
return "WORKFLOW_DRAFT_EVENT_KIND_PATCH_APPLIED";
|
|
387
|
-
case WorkflowDraftEventKind.WORKFLOW_DRAFT_EVENT_KIND_PATCH_REJECTED:
|
|
388
|
-
return "WORKFLOW_DRAFT_EVENT_KIND_PATCH_REJECTED";
|
|
389
|
-
case WorkflowDraftEventKind.UNRECOGNIZED:
|
|
390
|
-
default:
|
|
391
|
-
return "UNRECOGNIZED";
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
var ToolCallState;
|
|
395
|
-
(function (ToolCallState) {
|
|
396
|
-
ToolCallState[ToolCallState["TOOL_CALL_STATE_UNSPECIFIED"] = 0] = "TOOL_CALL_STATE_UNSPECIFIED";
|
|
397
|
-
ToolCallState[ToolCallState["TOOL_CALL_STATE_PROPOSED"] = 1] = "TOOL_CALL_STATE_PROPOSED";
|
|
398
|
-
ToolCallState[ToolCallState["TOOL_CALL_STATE_APPROVED"] = 2] = "TOOL_CALL_STATE_APPROVED";
|
|
399
|
-
ToolCallState[ToolCallState["TOOL_CALL_STATE_REJECTED"] = 3] = "TOOL_CALL_STATE_REJECTED";
|
|
400
|
-
ToolCallState[ToolCallState["TOOL_CALL_STATE_RUNNING"] = 4] = "TOOL_CALL_STATE_RUNNING";
|
|
401
|
-
ToolCallState[ToolCallState["TOOL_CALL_STATE_COMPLETED"] = 5] = "TOOL_CALL_STATE_COMPLETED";
|
|
402
|
-
ToolCallState[ToolCallState["TOOL_CALL_STATE_FAILED"] = 6] = "TOOL_CALL_STATE_FAILED";
|
|
403
|
-
ToolCallState[ToolCallState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
404
|
-
})(ToolCallState || (exports.ToolCallState = ToolCallState = {}));
|
|
405
|
-
function toolCallStateFromJSON(object) {
|
|
406
|
-
switch (object) {
|
|
407
|
-
case 0:
|
|
408
|
-
case "TOOL_CALL_STATE_UNSPECIFIED":
|
|
409
|
-
return ToolCallState.TOOL_CALL_STATE_UNSPECIFIED;
|
|
410
|
-
case 1:
|
|
411
|
-
case "TOOL_CALL_STATE_PROPOSED":
|
|
412
|
-
return ToolCallState.TOOL_CALL_STATE_PROPOSED;
|
|
413
|
-
case 2:
|
|
414
|
-
case "TOOL_CALL_STATE_APPROVED":
|
|
415
|
-
return ToolCallState.TOOL_CALL_STATE_APPROVED;
|
|
416
|
-
case 3:
|
|
417
|
-
case "TOOL_CALL_STATE_REJECTED":
|
|
418
|
-
return ToolCallState.TOOL_CALL_STATE_REJECTED;
|
|
419
|
-
case 4:
|
|
420
|
-
case "TOOL_CALL_STATE_RUNNING":
|
|
421
|
-
return ToolCallState.TOOL_CALL_STATE_RUNNING;
|
|
422
|
-
case 5:
|
|
423
|
-
case "TOOL_CALL_STATE_COMPLETED":
|
|
424
|
-
return ToolCallState.TOOL_CALL_STATE_COMPLETED;
|
|
425
|
-
case 6:
|
|
426
|
-
case "TOOL_CALL_STATE_FAILED":
|
|
427
|
-
return ToolCallState.TOOL_CALL_STATE_FAILED;
|
|
428
|
-
case -1:
|
|
429
|
-
case "UNRECOGNIZED":
|
|
430
|
-
default:
|
|
431
|
-
return ToolCallState.UNRECOGNIZED;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
function toolCallStateToJSON(object) {
|
|
435
|
-
switch (object) {
|
|
436
|
-
case ToolCallState.TOOL_CALL_STATE_UNSPECIFIED:
|
|
437
|
-
return "TOOL_CALL_STATE_UNSPECIFIED";
|
|
438
|
-
case ToolCallState.TOOL_CALL_STATE_PROPOSED:
|
|
439
|
-
return "TOOL_CALL_STATE_PROPOSED";
|
|
440
|
-
case ToolCallState.TOOL_CALL_STATE_APPROVED:
|
|
441
|
-
return "TOOL_CALL_STATE_APPROVED";
|
|
442
|
-
case ToolCallState.TOOL_CALL_STATE_REJECTED:
|
|
443
|
-
return "TOOL_CALL_STATE_REJECTED";
|
|
444
|
-
case ToolCallState.TOOL_CALL_STATE_RUNNING:
|
|
445
|
-
return "TOOL_CALL_STATE_RUNNING";
|
|
446
|
-
case ToolCallState.TOOL_CALL_STATE_COMPLETED:
|
|
447
|
-
return "TOOL_CALL_STATE_COMPLETED";
|
|
448
|
-
case ToolCallState.TOOL_CALL_STATE_FAILED:
|
|
449
|
-
return "TOOL_CALL_STATE_FAILED";
|
|
450
|
-
case ToolCallState.UNRECOGNIZED:
|
|
451
|
-
default:
|
|
452
|
-
return "UNRECOGNIZED";
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
function createBaseWorkflowDefinition() {
|
|
456
|
-
return {
|
|
457
|
-
id: "",
|
|
458
|
-
organizationId: "",
|
|
459
|
-
slug: "",
|
|
460
|
-
name: "",
|
|
461
|
-
description: "",
|
|
462
|
-
status: 0,
|
|
463
|
-
createdByUserId: "",
|
|
464
|
-
draftRevision: 0,
|
|
465
|
-
latestVersionId: "",
|
|
466
|
-
latestVersion: 0,
|
|
467
|
-
createdAt: undefined,
|
|
468
|
-
updatedAt: undefined,
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
exports.WorkflowDefinition = {
|
|
55
|
+
exports.CreateWorkflowRequest = {
|
|
472
56
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
473
|
-
if (message.id !== "") {
|
|
474
|
-
writer.uint32(10).string(message.id);
|
|
475
|
-
}
|
|
476
|
-
if (message.organizationId !== "") {
|
|
477
|
-
writer.uint32(18).string(message.organizationId);
|
|
478
|
-
}
|
|
479
57
|
if (message.slug !== "") {
|
|
480
|
-
writer.uint32(
|
|
58
|
+
writer.uint32(10).string(message.slug);
|
|
481
59
|
}
|
|
482
60
|
if (message.name !== "") {
|
|
483
|
-
writer.uint32(
|
|
61
|
+
writer.uint32(18).string(message.name);
|
|
484
62
|
}
|
|
485
63
|
if (message.description !== "") {
|
|
486
|
-
writer.uint32(
|
|
487
|
-
}
|
|
488
|
-
if (message.status !== 0) {
|
|
489
|
-
writer.uint32(48).int32(message.status);
|
|
490
|
-
}
|
|
491
|
-
if (message.createdByUserId !== "") {
|
|
492
|
-
writer.uint32(58).string(message.createdByUserId);
|
|
493
|
-
}
|
|
494
|
-
if (message.draftRevision !== 0) {
|
|
495
|
-
writer.uint32(64).int32(message.draftRevision);
|
|
64
|
+
writer.uint32(26).string(message.description);
|
|
496
65
|
}
|
|
497
|
-
if (message.
|
|
498
|
-
writer.uint32(
|
|
66
|
+
if (message.definition !== undefined) {
|
|
67
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.definition), writer.uint32(34).fork()).join();
|
|
499
68
|
}
|
|
500
|
-
if (message.
|
|
501
|
-
writer.uint32(
|
|
502
|
-
}
|
|
503
|
-
if (message.createdAt !== undefined) {
|
|
504
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).join();
|
|
505
|
-
}
|
|
506
|
-
if (message.updatedAt !== undefined) {
|
|
507
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(98).fork()).join();
|
|
69
|
+
if (message.metadata !== undefined) {
|
|
70
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
|
|
508
71
|
}
|
|
509
72
|
return writer;
|
|
510
73
|
},
|
|
511
74
|
decode(input, length) {
|
|
512
75
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
513
76
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
514
|
-
const message =
|
|
77
|
+
const message = createBaseCreateWorkflowRequest();
|
|
515
78
|
while (reader.pos < end) {
|
|
516
79
|
const tag = reader.uint32();
|
|
517
80
|
switch (tag >>> 3) {
|
|
@@ -519,84 +82,35 @@ exports.WorkflowDefinition = {
|
|
|
519
82
|
if (tag !== 10) {
|
|
520
83
|
break;
|
|
521
84
|
}
|
|
522
|
-
message.
|
|
85
|
+
message.slug = reader.string();
|
|
523
86
|
continue;
|
|
524
87
|
}
|
|
525
88
|
case 2: {
|
|
526
89
|
if (tag !== 18) {
|
|
527
90
|
break;
|
|
528
91
|
}
|
|
529
|
-
message.
|
|
92
|
+
message.name = reader.string();
|
|
530
93
|
continue;
|
|
531
94
|
}
|
|
532
95
|
case 3: {
|
|
533
96
|
if (tag !== 26) {
|
|
534
97
|
break;
|
|
535
98
|
}
|
|
536
|
-
message.
|
|
99
|
+
message.description = reader.string();
|
|
537
100
|
continue;
|
|
538
101
|
}
|
|
539
102
|
case 4: {
|
|
540
103
|
if (tag !== 34) {
|
|
541
104
|
break;
|
|
542
105
|
}
|
|
543
|
-
message.
|
|
106
|
+
message.definition = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
544
107
|
continue;
|
|
545
108
|
}
|
|
546
109
|
case 5: {
|
|
547
110
|
if (tag !== 42) {
|
|
548
111
|
break;
|
|
549
112
|
}
|
|
550
|
-
message.
|
|
551
|
-
continue;
|
|
552
|
-
}
|
|
553
|
-
case 6: {
|
|
554
|
-
if (tag !== 48) {
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
message.status = reader.int32();
|
|
558
|
-
continue;
|
|
559
|
-
}
|
|
560
|
-
case 7: {
|
|
561
|
-
if (tag !== 58) {
|
|
562
|
-
break;
|
|
563
|
-
}
|
|
564
|
-
message.createdByUserId = reader.string();
|
|
565
|
-
continue;
|
|
566
|
-
}
|
|
567
|
-
case 8: {
|
|
568
|
-
if (tag !== 64) {
|
|
569
|
-
break;
|
|
570
|
-
}
|
|
571
|
-
message.draftRevision = reader.int32();
|
|
572
|
-
continue;
|
|
573
|
-
}
|
|
574
|
-
case 9: {
|
|
575
|
-
if (tag !== 74) {
|
|
576
|
-
break;
|
|
577
|
-
}
|
|
578
|
-
message.latestVersionId = reader.string();
|
|
579
|
-
continue;
|
|
580
|
-
}
|
|
581
|
-
case 10: {
|
|
582
|
-
if (tag !== 80) {
|
|
583
|
-
break;
|
|
584
|
-
}
|
|
585
|
-
message.latestVersion = reader.int32();
|
|
586
|
-
continue;
|
|
587
|
-
}
|
|
588
|
-
case 11: {
|
|
589
|
-
if (tag !== 90) {
|
|
590
|
-
break;
|
|
591
|
-
}
|
|
592
|
-
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
593
|
-
continue;
|
|
594
|
-
}
|
|
595
|
-
case 12: {
|
|
596
|
-
if (tag !== 98) {
|
|
597
|
-
break;
|
|
598
|
-
}
|
|
599
|
-
message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
113
|
+
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
600
114
|
continue;
|
|
601
115
|
}
|
|
602
116
|
}
|
|
@@ -609,56 +123,15 @@ exports.WorkflowDefinition = {
|
|
|
609
123
|
},
|
|
610
124
|
fromJSON(object) {
|
|
611
125
|
return {
|
|
612
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
613
|
-
organizationId: isSet(object.organizationId)
|
|
614
|
-
? globalThis.String(object.organizationId)
|
|
615
|
-
: isSet(object.organization_id)
|
|
616
|
-
? globalThis.String(object.organization_id)
|
|
617
|
-
: "",
|
|
618
126
|
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
619
127
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
620
128
|
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
? globalThis.String(object.createdByUserId)
|
|
624
|
-
: isSet(object.created_by_user_id)
|
|
625
|
-
? globalThis.String(object.created_by_user_id)
|
|
626
|
-
: "",
|
|
627
|
-
draftRevision: isSet(object.draftRevision)
|
|
628
|
-
? globalThis.Number(object.draftRevision)
|
|
629
|
-
: isSet(object.draft_revision)
|
|
630
|
-
? globalThis.Number(object.draft_revision)
|
|
631
|
-
: 0,
|
|
632
|
-
latestVersionId: isSet(object.latestVersionId)
|
|
633
|
-
? globalThis.String(object.latestVersionId)
|
|
634
|
-
: isSet(object.latest_version_id)
|
|
635
|
-
? globalThis.String(object.latest_version_id)
|
|
636
|
-
: "",
|
|
637
|
-
latestVersion: isSet(object.latestVersion)
|
|
638
|
-
? globalThis.Number(object.latestVersion)
|
|
639
|
-
: isSet(object.latest_version)
|
|
640
|
-
? globalThis.Number(object.latest_version)
|
|
641
|
-
: 0,
|
|
642
|
-
createdAt: isSet(object.createdAt)
|
|
643
|
-
? fromJsonTimestamp(object.createdAt)
|
|
644
|
-
: isSet(object.created_at)
|
|
645
|
-
? fromJsonTimestamp(object.created_at)
|
|
646
|
-
: undefined,
|
|
647
|
-
updatedAt: isSet(object.updatedAt)
|
|
648
|
-
? fromJsonTimestamp(object.updatedAt)
|
|
649
|
-
: isSet(object.updated_at)
|
|
650
|
-
? fromJsonTimestamp(object.updated_at)
|
|
651
|
-
: undefined,
|
|
129
|
+
definition: isObject(object.definition) ? object.definition : undefined,
|
|
130
|
+
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
652
131
|
};
|
|
653
132
|
},
|
|
654
133
|
toJSON(message) {
|
|
655
134
|
const obj = {};
|
|
656
|
-
if (message.id !== "") {
|
|
657
|
-
obj.id = message.id;
|
|
658
|
-
}
|
|
659
|
-
if (message.organizationId !== "") {
|
|
660
|
-
obj.organizationId = message.organizationId;
|
|
661
|
-
}
|
|
662
135
|
if (message.slug !== "") {
|
|
663
136
|
obj.slug = message.slug;
|
|
664
137
|
}
|
|
@@ -668,118 +141,42 @@ exports.WorkflowDefinition = {
|
|
|
668
141
|
if (message.description !== "") {
|
|
669
142
|
obj.description = message.description;
|
|
670
143
|
}
|
|
671
|
-
if (message.
|
|
672
|
-
obj.
|
|
673
|
-
}
|
|
674
|
-
if (message.createdByUserId !== "") {
|
|
675
|
-
obj.createdByUserId = message.createdByUserId;
|
|
676
|
-
}
|
|
677
|
-
if (message.draftRevision !== 0) {
|
|
678
|
-
obj.draftRevision = Math.round(message.draftRevision);
|
|
679
|
-
}
|
|
680
|
-
if (message.latestVersionId !== "") {
|
|
681
|
-
obj.latestVersionId = message.latestVersionId;
|
|
144
|
+
if (message.definition !== undefined) {
|
|
145
|
+
obj.definition = message.definition;
|
|
682
146
|
}
|
|
683
|
-
if (message.
|
|
684
|
-
obj.
|
|
685
|
-
}
|
|
686
|
-
if (message.createdAt !== undefined) {
|
|
687
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
688
|
-
}
|
|
689
|
-
if (message.updatedAt !== undefined) {
|
|
690
|
-
obj.updatedAt = message.updatedAt.toISOString();
|
|
147
|
+
if (message.metadata !== undefined) {
|
|
148
|
+
obj.metadata = message.metadata;
|
|
691
149
|
}
|
|
692
150
|
return obj;
|
|
693
151
|
},
|
|
694
152
|
create(base) {
|
|
695
|
-
return exports.
|
|
153
|
+
return exports.CreateWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
696
154
|
},
|
|
697
155
|
fromPartial(object) {
|
|
698
|
-
var _a, _b, _c, _d, _e
|
|
699
|
-
const message =
|
|
700
|
-
message.
|
|
701
|
-
message.
|
|
702
|
-
message.
|
|
703
|
-
message.
|
|
704
|
-
message.
|
|
705
|
-
message.status = (_f = object.status) !== null && _f !== void 0 ? _f : 0;
|
|
706
|
-
message.createdByUserId = (_g = object.createdByUserId) !== null && _g !== void 0 ? _g : "";
|
|
707
|
-
message.draftRevision = (_h = object.draftRevision) !== null && _h !== void 0 ? _h : 0;
|
|
708
|
-
message.latestVersionId = (_j = object.latestVersionId) !== null && _j !== void 0 ? _j : "";
|
|
709
|
-
message.latestVersion = (_k = object.latestVersion) !== null && _k !== void 0 ? _k : 0;
|
|
710
|
-
message.createdAt = (_l = object.createdAt) !== null && _l !== void 0 ? _l : undefined;
|
|
711
|
-
message.updatedAt = (_m = object.updatedAt) !== null && _m !== void 0 ? _m : undefined;
|
|
156
|
+
var _a, _b, _c, _d, _e;
|
|
157
|
+
const message = createBaseCreateWorkflowRequest();
|
|
158
|
+
message.slug = (_a = object.slug) !== null && _a !== void 0 ? _a : "";
|
|
159
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
160
|
+
message.description = (_c = object.description) !== null && _c !== void 0 ? _c : "";
|
|
161
|
+
message.definition = (_d = object.definition) !== null && _d !== void 0 ? _d : undefined;
|
|
162
|
+
message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
|
|
712
163
|
return message;
|
|
713
164
|
},
|
|
714
165
|
};
|
|
715
|
-
function
|
|
716
|
-
return {
|
|
717
|
-
id: "",
|
|
718
|
-
definitionId: "",
|
|
719
|
-
organizationId: "",
|
|
720
|
-
baseVersionId: "",
|
|
721
|
-
revision: 0,
|
|
722
|
-
name: "",
|
|
723
|
-
description: "",
|
|
724
|
-
graph: undefined,
|
|
725
|
-
inputSchema: undefined,
|
|
726
|
-
outputSchema: undefined,
|
|
727
|
-
metadata: undefined,
|
|
728
|
-
updatedByUserId: "",
|
|
729
|
-
createdAt: undefined,
|
|
730
|
-
updatedAt: undefined,
|
|
731
|
-
};
|
|
166
|
+
function createBaseCreateWorkflowResponse() {
|
|
167
|
+
return { workflow: undefined };
|
|
732
168
|
}
|
|
733
|
-
exports.
|
|
169
|
+
exports.CreateWorkflowResponse = {
|
|
734
170
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
735
|
-
if (message.
|
|
736
|
-
writer.uint32(10).
|
|
737
|
-
}
|
|
738
|
-
if (message.definitionId !== "") {
|
|
739
|
-
writer.uint32(18).string(message.definitionId);
|
|
740
|
-
}
|
|
741
|
-
if (message.organizationId !== "") {
|
|
742
|
-
writer.uint32(26).string(message.organizationId);
|
|
743
|
-
}
|
|
744
|
-
if (message.baseVersionId !== "") {
|
|
745
|
-
writer.uint32(34).string(message.baseVersionId);
|
|
746
|
-
}
|
|
747
|
-
if (message.revision !== 0) {
|
|
748
|
-
writer.uint32(40).int32(message.revision);
|
|
749
|
-
}
|
|
750
|
-
if (message.name !== "") {
|
|
751
|
-
writer.uint32(50).string(message.name);
|
|
752
|
-
}
|
|
753
|
-
if (message.description !== "") {
|
|
754
|
-
writer.uint32(58).string(message.description);
|
|
755
|
-
}
|
|
756
|
-
if (message.graph !== undefined) {
|
|
757
|
-
exports.WorkflowGraph.encode(message.graph, writer.uint32(66).fork()).join();
|
|
758
|
-
}
|
|
759
|
-
if (message.inputSchema !== undefined) {
|
|
760
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.inputSchema), writer.uint32(74).fork()).join();
|
|
761
|
-
}
|
|
762
|
-
if (message.outputSchema !== undefined) {
|
|
763
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.outputSchema), writer.uint32(82).fork()).join();
|
|
764
|
-
}
|
|
765
|
-
if (message.metadata !== undefined) {
|
|
766
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(90).fork()).join();
|
|
767
|
-
}
|
|
768
|
-
if (message.updatedByUserId !== "") {
|
|
769
|
-
writer.uint32(98).string(message.updatedByUserId);
|
|
770
|
-
}
|
|
771
|
-
if (message.createdAt !== undefined) {
|
|
772
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(106).fork()).join();
|
|
773
|
-
}
|
|
774
|
-
if (message.updatedAt !== undefined) {
|
|
775
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(114).fork()).join();
|
|
171
|
+
if (message.workflow !== undefined) {
|
|
172
|
+
exports.Workflow.encode(message.workflow, writer.uint32(10).fork()).join();
|
|
776
173
|
}
|
|
777
174
|
return writer;
|
|
778
175
|
},
|
|
779
176
|
decode(input, length) {
|
|
780
177
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
781
178
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
782
|
-
const message =
|
|
179
|
+
const message = createBaseCreateWorkflowResponse();
|
|
783
180
|
while (reader.pos < end) {
|
|
784
181
|
const tag = reader.uint32();
|
|
785
182
|
switch (tag >>> 3) {
|
|
@@ -787,1856 +184,60 @@ exports.WorkflowDraft = {
|
|
|
787
184
|
if (tag !== 10) {
|
|
788
185
|
break;
|
|
789
186
|
}
|
|
790
|
-
message.
|
|
791
|
-
continue;
|
|
792
|
-
}
|
|
793
|
-
case 2: {
|
|
794
|
-
if (tag !== 18) {
|
|
795
|
-
break;
|
|
796
|
-
}
|
|
797
|
-
message.definitionId = reader.string();
|
|
798
|
-
continue;
|
|
799
|
-
}
|
|
800
|
-
case 3: {
|
|
801
|
-
if (tag !== 26) {
|
|
802
|
-
break;
|
|
803
|
-
}
|
|
804
|
-
message.organizationId = reader.string();
|
|
805
|
-
continue;
|
|
806
|
-
}
|
|
807
|
-
case 4: {
|
|
808
|
-
if (tag !== 34) {
|
|
809
|
-
break;
|
|
810
|
-
}
|
|
811
|
-
message.baseVersionId = reader.string();
|
|
187
|
+
message.workflow = exports.Workflow.decode(reader, reader.uint32());
|
|
812
188
|
continue;
|
|
813
189
|
}
|
|
814
|
-
|
|
815
|
-
|
|
190
|
+
}
|
|
191
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
reader.skip(tag & 7);
|
|
195
|
+
}
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
fromJSON(object) {
|
|
199
|
+
return { workflow: isSet(object.workflow) ? exports.Workflow.fromJSON(object.workflow) : undefined };
|
|
200
|
+
},
|
|
201
|
+
toJSON(message) {
|
|
202
|
+
const obj = {};
|
|
203
|
+
if (message.workflow !== undefined) {
|
|
204
|
+
obj.workflow = exports.Workflow.toJSON(message.workflow);
|
|
205
|
+
}
|
|
206
|
+
return obj;
|
|
207
|
+
},
|
|
208
|
+
create(base) {
|
|
209
|
+
return exports.CreateWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
210
|
+
},
|
|
211
|
+
fromPartial(object) {
|
|
212
|
+
const message = createBaseCreateWorkflowResponse();
|
|
213
|
+
message.workflow = (object.workflow !== undefined && object.workflow !== null)
|
|
214
|
+
? exports.Workflow.fromPartial(object.workflow)
|
|
215
|
+
: undefined;
|
|
216
|
+
return message;
|
|
217
|
+
},
|
|
218
|
+
};
|
|
219
|
+
function createBaseGetWorkflowRequest() {
|
|
220
|
+
return { workflowId: "" };
|
|
221
|
+
}
|
|
222
|
+
exports.GetWorkflowRequest = {
|
|
223
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
224
|
+
if (message.workflowId !== "") {
|
|
225
|
+
writer.uint32(10).string(message.workflowId);
|
|
226
|
+
}
|
|
227
|
+
return writer;
|
|
228
|
+
},
|
|
229
|
+
decode(input, length) {
|
|
230
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
231
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
232
|
+
const message = createBaseGetWorkflowRequest();
|
|
233
|
+
while (reader.pos < end) {
|
|
234
|
+
const tag = reader.uint32();
|
|
235
|
+
switch (tag >>> 3) {
|
|
236
|
+
case 1: {
|
|
237
|
+
if (tag !== 10) {
|
|
816
238
|
break;
|
|
817
239
|
}
|
|
818
|
-
message.
|
|
819
|
-
continue;
|
|
820
|
-
}
|
|
821
|
-
case 6: {
|
|
822
|
-
if (tag !== 50) {
|
|
823
|
-
break;
|
|
824
|
-
}
|
|
825
|
-
message.name = reader.string();
|
|
826
|
-
continue;
|
|
827
|
-
}
|
|
828
|
-
case 7: {
|
|
829
|
-
if (tag !== 58) {
|
|
830
|
-
break;
|
|
831
|
-
}
|
|
832
|
-
message.description = reader.string();
|
|
833
|
-
continue;
|
|
834
|
-
}
|
|
835
|
-
case 8: {
|
|
836
|
-
if (tag !== 66) {
|
|
837
|
-
break;
|
|
838
|
-
}
|
|
839
|
-
message.graph = exports.WorkflowGraph.decode(reader, reader.uint32());
|
|
840
|
-
continue;
|
|
841
|
-
}
|
|
842
|
-
case 9: {
|
|
843
|
-
if (tag !== 74) {
|
|
844
|
-
break;
|
|
845
|
-
}
|
|
846
|
-
message.inputSchema = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
847
|
-
continue;
|
|
848
|
-
}
|
|
849
|
-
case 10: {
|
|
850
|
-
if (tag !== 82) {
|
|
851
|
-
break;
|
|
852
|
-
}
|
|
853
|
-
message.outputSchema = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
854
|
-
continue;
|
|
855
|
-
}
|
|
856
|
-
case 11: {
|
|
857
|
-
if (tag !== 90) {
|
|
858
|
-
break;
|
|
859
|
-
}
|
|
860
|
-
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
861
|
-
continue;
|
|
862
|
-
}
|
|
863
|
-
case 12: {
|
|
864
|
-
if (tag !== 98) {
|
|
865
|
-
break;
|
|
866
|
-
}
|
|
867
|
-
message.updatedByUserId = reader.string();
|
|
868
|
-
continue;
|
|
869
|
-
}
|
|
870
|
-
case 13: {
|
|
871
|
-
if (tag !== 106) {
|
|
872
|
-
break;
|
|
873
|
-
}
|
|
874
|
-
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
875
|
-
continue;
|
|
876
|
-
}
|
|
877
|
-
case 14: {
|
|
878
|
-
if (tag !== 114) {
|
|
879
|
-
break;
|
|
880
|
-
}
|
|
881
|
-
message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
882
|
-
continue;
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
886
|
-
break;
|
|
887
|
-
}
|
|
888
|
-
reader.skip(tag & 7);
|
|
889
|
-
}
|
|
890
|
-
return message;
|
|
891
|
-
},
|
|
892
|
-
fromJSON(object) {
|
|
893
|
-
return {
|
|
894
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
895
|
-
definitionId: isSet(object.definitionId)
|
|
896
|
-
? globalThis.String(object.definitionId)
|
|
897
|
-
: isSet(object.definition_id)
|
|
898
|
-
? globalThis.String(object.definition_id)
|
|
899
|
-
: "",
|
|
900
|
-
organizationId: isSet(object.organizationId)
|
|
901
|
-
? globalThis.String(object.organizationId)
|
|
902
|
-
: isSet(object.organization_id)
|
|
903
|
-
? globalThis.String(object.organization_id)
|
|
904
|
-
: "",
|
|
905
|
-
baseVersionId: isSet(object.baseVersionId)
|
|
906
|
-
? globalThis.String(object.baseVersionId)
|
|
907
|
-
: isSet(object.base_version_id)
|
|
908
|
-
? globalThis.String(object.base_version_id)
|
|
909
|
-
: "",
|
|
910
|
-
revision: isSet(object.revision) ? globalThis.Number(object.revision) : 0,
|
|
911
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
912
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
913
|
-
graph: isSet(object.graph) ? exports.WorkflowGraph.fromJSON(object.graph) : undefined,
|
|
914
|
-
inputSchema: isObject(object.inputSchema)
|
|
915
|
-
? object.inputSchema
|
|
916
|
-
: isObject(object.input_schema)
|
|
917
|
-
? object.input_schema
|
|
918
|
-
: undefined,
|
|
919
|
-
outputSchema: isObject(object.outputSchema)
|
|
920
|
-
? object.outputSchema
|
|
921
|
-
: isObject(object.output_schema)
|
|
922
|
-
? object.output_schema
|
|
923
|
-
: undefined,
|
|
924
|
-
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
925
|
-
updatedByUserId: isSet(object.updatedByUserId)
|
|
926
|
-
? globalThis.String(object.updatedByUserId)
|
|
927
|
-
: isSet(object.updated_by_user_id)
|
|
928
|
-
? globalThis.String(object.updated_by_user_id)
|
|
929
|
-
: "",
|
|
930
|
-
createdAt: isSet(object.createdAt)
|
|
931
|
-
? fromJsonTimestamp(object.createdAt)
|
|
932
|
-
: isSet(object.created_at)
|
|
933
|
-
? fromJsonTimestamp(object.created_at)
|
|
934
|
-
: undefined,
|
|
935
|
-
updatedAt: isSet(object.updatedAt)
|
|
936
|
-
? fromJsonTimestamp(object.updatedAt)
|
|
937
|
-
: isSet(object.updated_at)
|
|
938
|
-
? fromJsonTimestamp(object.updated_at)
|
|
939
|
-
: undefined,
|
|
940
|
-
};
|
|
941
|
-
},
|
|
942
|
-
toJSON(message) {
|
|
943
|
-
const obj = {};
|
|
944
|
-
if (message.id !== "") {
|
|
945
|
-
obj.id = message.id;
|
|
946
|
-
}
|
|
947
|
-
if (message.definitionId !== "") {
|
|
948
|
-
obj.definitionId = message.definitionId;
|
|
949
|
-
}
|
|
950
|
-
if (message.organizationId !== "") {
|
|
951
|
-
obj.organizationId = message.organizationId;
|
|
952
|
-
}
|
|
953
|
-
if (message.baseVersionId !== "") {
|
|
954
|
-
obj.baseVersionId = message.baseVersionId;
|
|
955
|
-
}
|
|
956
|
-
if (message.revision !== 0) {
|
|
957
|
-
obj.revision = Math.round(message.revision);
|
|
958
|
-
}
|
|
959
|
-
if (message.name !== "") {
|
|
960
|
-
obj.name = message.name;
|
|
961
|
-
}
|
|
962
|
-
if (message.description !== "") {
|
|
963
|
-
obj.description = message.description;
|
|
964
|
-
}
|
|
965
|
-
if (message.graph !== undefined) {
|
|
966
|
-
obj.graph = exports.WorkflowGraph.toJSON(message.graph);
|
|
967
|
-
}
|
|
968
|
-
if (message.inputSchema !== undefined) {
|
|
969
|
-
obj.inputSchema = message.inputSchema;
|
|
970
|
-
}
|
|
971
|
-
if (message.outputSchema !== undefined) {
|
|
972
|
-
obj.outputSchema = message.outputSchema;
|
|
973
|
-
}
|
|
974
|
-
if (message.metadata !== undefined) {
|
|
975
|
-
obj.metadata = message.metadata;
|
|
976
|
-
}
|
|
977
|
-
if (message.updatedByUserId !== "") {
|
|
978
|
-
obj.updatedByUserId = message.updatedByUserId;
|
|
979
|
-
}
|
|
980
|
-
if (message.createdAt !== undefined) {
|
|
981
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
982
|
-
}
|
|
983
|
-
if (message.updatedAt !== undefined) {
|
|
984
|
-
obj.updatedAt = message.updatedAt.toISOString();
|
|
985
|
-
}
|
|
986
|
-
return obj;
|
|
987
|
-
},
|
|
988
|
-
create(base) {
|
|
989
|
-
return exports.WorkflowDraft.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
990
|
-
},
|
|
991
|
-
fromPartial(object) {
|
|
992
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
993
|
-
const message = createBaseWorkflowDraft();
|
|
994
|
-
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
995
|
-
message.definitionId = (_b = object.definitionId) !== null && _b !== void 0 ? _b : "";
|
|
996
|
-
message.organizationId = (_c = object.organizationId) !== null && _c !== void 0 ? _c : "";
|
|
997
|
-
message.baseVersionId = (_d = object.baseVersionId) !== null && _d !== void 0 ? _d : "";
|
|
998
|
-
message.revision = (_e = object.revision) !== null && _e !== void 0 ? _e : 0;
|
|
999
|
-
message.name = (_f = object.name) !== null && _f !== void 0 ? _f : "";
|
|
1000
|
-
message.description = (_g = object.description) !== null && _g !== void 0 ? _g : "";
|
|
1001
|
-
message.graph = (object.graph !== undefined && object.graph !== null)
|
|
1002
|
-
? exports.WorkflowGraph.fromPartial(object.graph)
|
|
1003
|
-
: undefined;
|
|
1004
|
-
message.inputSchema = (_h = object.inputSchema) !== null && _h !== void 0 ? _h : undefined;
|
|
1005
|
-
message.outputSchema = (_j = object.outputSchema) !== null && _j !== void 0 ? _j : undefined;
|
|
1006
|
-
message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
|
|
1007
|
-
message.updatedByUserId = (_l = object.updatedByUserId) !== null && _l !== void 0 ? _l : "";
|
|
1008
|
-
message.createdAt = (_m = object.createdAt) !== null && _m !== void 0 ? _m : undefined;
|
|
1009
|
-
message.updatedAt = (_o = object.updatedAt) !== null && _o !== void 0 ? _o : undefined;
|
|
1010
|
-
return message;
|
|
1011
|
-
},
|
|
1012
|
-
};
|
|
1013
|
-
function createBaseWorkflowDraftPatch() {
|
|
1014
|
-
return {
|
|
1015
|
-
id: "",
|
|
1016
|
-
definitionId: "",
|
|
1017
|
-
organizationId: "",
|
|
1018
|
-
revision: 0,
|
|
1019
|
-
patch: undefined,
|
|
1020
|
-
createdByUserId: "",
|
|
1021
|
-
createdAt: undefined,
|
|
1022
|
-
};
|
|
1023
|
-
}
|
|
1024
|
-
exports.WorkflowDraftPatch = {
|
|
1025
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1026
|
-
if (message.id !== "") {
|
|
1027
|
-
writer.uint32(10).string(message.id);
|
|
1028
|
-
}
|
|
1029
|
-
if (message.definitionId !== "") {
|
|
1030
|
-
writer.uint32(18).string(message.definitionId);
|
|
1031
|
-
}
|
|
1032
|
-
if (message.organizationId !== "") {
|
|
1033
|
-
writer.uint32(26).string(message.organizationId);
|
|
1034
|
-
}
|
|
1035
|
-
if (message.revision !== 0) {
|
|
1036
|
-
writer.uint32(32).int32(message.revision);
|
|
1037
|
-
}
|
|
1038
|
-
if (message.patch !== undefined) {
|
|
1039
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.patch), writer.uint32(42).fork()).join();
|
|
1040
|
-
}
|
|
1041
|
-
if (message.createdByUserId !== "") {
|
|
1042
|
-
writer.uint32(50).string(message.createdByUserId);
|
|
1043
|
-
}
|
|
1044
|
-
if (message.createdAt !== undefined) {
|
|
1045
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).join();
|
|
1046
|
-
}
|
|
1047
|
-
return writer;
|
|
1048
|
-
},
|
|
1049
|
-
decode(input, length) {
|
|
1050
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1051
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1052
|
-
const message = createBaseWorkflowDraftPatch();
|
|
1053
|
-
while (reader.pos < end) {
|
|
1054
|
-
const tag = reader.uint32();
|
|
1055
|
-
switch (tag >>> 3) {
|
|
1056
|
-
case 1: {
|
|
1057
|
-
if (tag !== 10) {
|
|
1058
|
-
break;
|
|
1059
|
-
}
|
|
1060
|
-
message.id = reader.string();
|
|
1061
|
-
continue;
|
|
1062
|
-
}
|
|
1063
|
-
case 2: {
|
|
1064
|
-
if (tag !== 18) {
|
|
1065
|
-
break;
|
|
1066
|
-
}
|
|
1067
|
-
message.definitionId = reader.string();
|
|
1068
|
-
continue;
|
|
1069
|
-
}
|
|
1070
|
-
case 3: {
|
|
1071
|
-
if (tag !== 26) {
|
|
1072
|
-
break;
|
|
1073
|
-
}
|
|
1074
|
-
message.organizationId = reader.string();
|
|
1075
|
-
continue;
|
|
1076
|
-
}
|
|
1077
|
-
case 4: {
|
|
1078
|
-
if (tag !== 32) {
|
|
1079
|
-
break;
|
|
1080
|
-
}
|
|
1081
|
-
message.revision = reader.int32();
|
|
1082
|
-
continue;
|
|
1083
|
-
}
|
|
1084
|
-
case 5: {
|
|
1085
|
-
if (tag !== 42) {
|
|
1086
|
-
break;
|
|
1087
|
-
}
|
|
1088
|
-
message.patch = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1089
|
-
continue;
|
|
1090
|
-
}
|
|
1091
|
-
case 6: {
|
|
1092
|
-
if (tag !== 50) {
|
|
1093
|
-
break;
|
|
1094
|
-
}
|
|
1095
|
-
message.createdByUserId = reader.string();
|
|
1096
|
-
continue;
|
|
1097
|
-
}
|
|
1098
|
-
case 7: {
|
|
1099
|
-
if (tag !== 58) {
|
|
1100
|
-
break;
|
|
1101
|
-
}
|
|
1102
|
-
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1103
|
-
continue;
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1107
|
-
break;
|
|
1108
|
-
}
|
|
1109
|
-
reader.skip(tag & 7);
|
|
1110
|
-
}
|
|
1111
|
-
return message;
|
|
1112
|
-
},
|
|
1113
|
-
fromJSON(object) {
|
|
1114
|
-
return {
|
|
1115
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1116
|
-
definitionId: isSet(object.definitionId)
|
|
1117
|
-
? globalThis.String(object.definitionId)
|
|
1118
|
-
: isSet(object.definition_id)
|
|
1119
|
-
? globalThis.String(object.definition_id)
|
|
1120
|
-
: "",
|
|
1121
|
-
organizationId: isSet(object.organizationId)
|
|
1122
|
-
? globalThis.String(object.organizationId)
|
|
1123
|
-
: isSet(object.organization_id)
|
|
1124
|
-
? globalThis.String(object.organization_id)
|
|
1125
|
-
: "",
|
|
1126
|
-
revision: isSet(object.revision) ? globalThis.Number(object.revision) : 0,
|
|
1127
|
-
patch: isObject(object.patch) ? object.patch : undefined,
|
|
1128
|
-
createdByUserId: isSet(object.createdByUserId)
|
|
1129
|
-
? globalThis.String(object.createdByUserId)
|
|
1130
|
-
: isSet(object.created_by_user_id)
|
|
1131
|
-
? globalThis.String(object.created_by_user_id)
|
|
1132
|
-
: "",
|
|
1133
|
-
createdAt: isSet(object.createdAt)
|
|
1134
|
-
? fromJsonTimestamp(object.createdAt)
|
|
1135
|
-
: isSet(object.created_at)
|
|
1136
|
-
? fromJsonTimestamp(object.created_at)
|
|
1137
|
-
: undefined,
|
|
1138
|
-
};
|
|
1139
|
-
},
|
|
1140
|
-
toJSON(message) {
|
|
1141
|
-
const obj = {};
|
|
1142
|
-
if (message.id !== "") {
|
|
1143
|
-
obj.id = message.id;
|
|
1144
|
-
}
|
|
1145
|
-
if (message.definitionId !== "") {
|
|
1146
|
-
obj.definitionId = message.definitionId;
|
|
1147
|
-
}
|
|
1148
|
-
if (message.organizationId !== "") {
|
|
1149
|
-
obj.organizationId = message.organizationId;
|
|
1150
|
-
}
|
|
1151
|
-
if (message.revision !== 0) {
|
|
1152
|
-
obj.revision = Math.round(message.revision);
|
|
1153
|
-
}
|
|
1154
|
-
if (message.patch !== undefined) {
|
|
1155
|
-
obj.patch = message.patch;
|
|
1156
|
-
}
|
|
1157
|
-
if (message.createdByUserId !== "") {
|
|
1158
|
-
obj.createdByUserId = message.createdByUserId;
|
|
1159
|
-
}
|
|
1160
|
-
if (message.createdAt !== undefined) {
|
|
1161
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
1162
|
-
}
|
|
1163
|
-
return obj;
|
|
1164
|
-
},
|
|
1165
|
-
create(base) {
|
|
1166
|
-
return exports.WorkflowDraftPatch.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1167
|
-
},
|
|
1168
|
-
fromPartial(object) {
|
|
1169
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1170
|
-
const message = createBaseWorkflowDraftPatch();
|
|
1171
|
-
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1172
|
-
message.definitionId = (_b = object.definitionId) !== null && _b !== void 0 ? _b : "";
|
|
1173
|
-
message.organizationId = (_c = object.organizationId) !== null && _c !== void 0 ? _c : "";
|
|
1174
|
-
message.revision = (_d = object.revision) !== null && _d !== void 0 ? _d : 0;
|
|
1175
|
-
message.patch = (_e = object.patch) !== null && _e !== void 0 ? _e : undefined;
|
|
1176
|
-
message.createdByUserId = (_f = object.createdByUserId) !== null && _f !== void 0 ? _f : "";
|
|
1177
|
-
message.createdAt = (_g = object.createdAt) !== null && _g !== void 0 ? _g : undefined;
|
|
1178
|
-
return message;
|
|
1179
|
-
},
|
|
1180
|
-
};
|
|
1181
|
-
function createBaseWorkflowDraftPatchConflict() {
|
|
1182
|
-
return { baseRevision: 0, currentRevision: 0, reason: "" };
|
|
1183
|
-
}
|
|
1184
|
-
exports.WorkflowDraftPatchConflict = {
|
|
1185
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1186
|
-
if (message.baseRevision !== 0) {
|
|
1187
|
-
writer.uint32(8).int32(message.baseRevision);
|
|
1188
|
-
}
|
|
1189
|
-
if (message.currentRevision !== 0) {
|
|
1190
|
-
writer.uint32(16).int32(message.currentRevision);
|
|
1191
|
-
}
|
|
1192
|
-
if (message.reason !== "") {
|
|
1193
|
-
writer.uint32(26).string(message.reason);
|
|
1194
|
-
}
|
|
1195
|
-
return writer;
|
|
1196
|
-
},
|
|
1197
|
-
decode(input, length) {
|
|
1198
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1199
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1200
|
-
const message = createBaseWorkflowDraftPatchConflict();
|
|
1201
|
-
while (reader.pos < end) {
|
|
1202
|
-
const tag = reader.uint32();
|
|
1203
|
-
switch (tag >>> 3) {
|
|
1204
|
-
case 1: {
|
|
1205
|
-
if (tag !== 8) {
|
|
1206
|
-
break;
|
|
1207
|
-
}
|
|
1208
|
-
message.baseRevision = reader.int32();
|
|
1209
|
-
continue;
|
|
1210
|
-
}
|
|
1211
|
-
case 2: {
|
|
1212
|
-
if (tag !== 16) {
|
|
1213
|
-
break;
|
|
1214
|
-
}
|
|
1215
|
-
message.currentRevision = reader.int32();
|
|
1216
|
-
continue;
|
|
1217
|
-
}
|
|
1218
|
-
case 3: {
|
|
1219
|
-
if (tag !== 26) {
|
|
1220
|
-
break;
|
|
1221
|
-
}
|
|
1222
|
-
message.reason = reader.string();
|
|
1223
|
-
continue;
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1227
|
-
break;
|
|
1228
|
-
}
|
|
1229
|
-
reader.skip(tag & 7);
|
|
1230
|
-
}
|
|
1231
|
-
return message;
|
|
1232
|
-
},
|
|
1233
|
-
fromJSON(object) {
|
|
1234
|
-
return {
|
|
1235
|
-
baseRevision: isSet(object.baseRevision)
|
|
1236
|
-
? globalThis.Number(object.baseRevision)
|
|
1237
|
-
: isSet(object.base_revision)
|
|
1238
|
-
? globalThis.Number(object.base_revision)
|
|
1239
|
-
: 0,
|
|
1240
|
-
currentRevision: isSet(object.currentRevision)
|
|
1241
|
-
? globalThis.Number(object.currentRevision)
|
|
1242
|
-
: isSet(object.current_revision)
|
|
1243
|
-
? globalThis.Number(object.current_revision)
|
|
1244
|
-
: 0,
|
|
1245
|
-
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
1246
|
-
};
|
|
1247
|
-
},
|
|
1248
|
-
toJSON(message) {
|
|
1249
|
-
const obj = {};
|
|
1250
|
-
if (message.baseRevision !== 0) {
|
|
1251
|
-
obj.baseRevision = Math.round(message.baseRevision);
|
|
1252
|
-
}
|
|
1253
|
-
if (message.currentRevision !== 0) {
|
|
1254
|
-
obj.currentRevision = Math.round(message.currentRevision);
|
|
1255
|
-
}
|
|
1256
|
-
if (message.reason !== "") {
|
|
1257
|
-
obj.reason = message.reason;
|
|
1258
|
-
}
|
|
1259
|
-
return obj;
|
|
1260
|
-
},
|
|
1261
|
-
create(base) {
|
|
1262
|
-
return exports.WorkflowDraftPatchConflict.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1263
|
-
},
|
|
1264
|
-
fromPartial(object) {
|
|
1265
|
-
var _a, _b, _c;
|
|
1266
|
-
const message = createBaseWorkflowDraftPatchConflict();
|
|
1267
|
-
message.baseRevision = (_a = object.baseRevision) !== null && _a !== void 0 ? _a : 0;
|
|
1268
|
-
message.currentRevision = (_b = object.currentRevision) !== null && _b !== void 0 ? _b : 0;
|
|
1269
|
-
message.reason = (_c = object.reason) !== null && _c !== void 0 ? _c : "";
|
|
1270
|
-
return message;
|
|
1271
|
-
},
|
|
1272
|
-
};
|
|
1273
|
-
function createBaseWorkflowDraftEvent() {
|
|
1274
|
-
return {
|
|
1275
|
-
id: "",
|
|
1276
|
-
organizationId: "",
|
|
1277
|
-
definitionId: "",
|
|
1278
|
-
draftId: "",
|
|
1279
|
-
sequence: 0,
|
|
1280
|
-
kind: 0,
|
|
1281
|
-
baseRevision: 0,
|
|
1282
|
-
resultRevision: 0,
|
|
1283
|
-
changedFields: [],
|
|
1284
|
-
source: "",
|
|
1285
|
-
clientRequestId: "",
|
|
1286
|
-
conflict: undefined,
|
|
1287
|
-
createdByUserId: "",
|
|
1288
|
-
createdAt: undefined,
|
|
1289
|
-
};
|
|
1290
|
-
}
|
|
1291
|
-
exports.WorkflowDraftEvent = {
|
|
1292
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1293
|
-
if (message.id !== "") {
|
|
1294
|
-
writer.uint32(10).string(message.id);
|
|
1295
|
-
}
|
|
1296
|
-
if (message.organizationId !== "") {
|
|
1297
|
-
writer.uint32(18).string(message.organizationId);
|
|
1298
|
-
}
|
|
1299
|
-
if (message.definitionId !== "") {
|
|
1300
|
-
writer.uint32(26).string(message.definitionId);
|
|
1301
|
-
}
|
|
1302
|
-
if (message.draftId !== "") {
|
|
1303
|
-
writer.uint32(34).string(message.draftId);
|
|
1304
|
-
}
|
|
1305
|
-
if (message.sequence !== 0) {
|
|
1306
|
-
writer.uint32(40).uint64(message.sequence);
|
|
1307
|
-
}
|
|
1308
|
-
if (message.kind !== 0) {
|
|
1309
|
-
writer.uint32(48).int32(message.kind);
|
|
1310
|
-
}
|
|
1311
|
-
if (message.baseRevision !== 0) {
|
|
1312
|
-
writer.uint32(56).int32(message.baseRevision);
|
|
1313
|
-
}
|
|
1314
|
-
if (message.resultRevision !== 0) {
|
|
1315
|
-
writer.uint32(64).int32(message.resultRevision);
|
|
1316
|
-
}
|
|
1317
|
-
for (const v of message.changedFields) {
|
|
1318
|
-
writer.uint32(74).string(v);
|
|
1319
|
-
}
|
|
1320
|
-
if (message.source !== "") {
|
|
1321
|
-
writer.uint32(82).string(message.source);
|
|
1322
|
-
}
|
|
1323
|
-
if (message.clientRequestId !== "") {
|
|
1324
|
-
writer.uint32(90).string(message.clientRequestId);
|
|
1325
|
-
}
|
|
1326
|
-
if (message.conflict !== undefined) {
|
|
1327
|
-
exports.WorkflowDraftPatchConflict.encode(message.conflict, writer.uint32(98).fork()).join();
|
|
1328
|
-
}
|
|
1329
|
-
if (message.createdByUserId !== "") {
|
|
1330
|
-
writer.uint32(106).string(message.createdByUserId);
|
|
1331
|
-
}
|
|
1332
|
-
if (message.createdAt !== undefined) {
|
|
1333
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(114).fork()).join();
|
|
1334
|
-
}
|
|
1335
|
-
return writer;
|
|
1336
|
-
},
|
|
1337
|
-
decode(input, length) {
|
|
1338
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1339
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1340
|
-
const message = createBaseWorkflowDraftEvent();
|
|
1341
|
-
while (reader.pos < end) {
|
|
1342
|
-
const tag = reader.uint32();
|
|
1343
|
-
switch (tag >>> 3) {
|
|
1344
|
-
case 1: {
|
|
1345
|
-
if (tag !== 10) {
|
|
1346
|
-
break;
|
|
1347
|
-
}
|
|
1348
|
-
message.id = reader.string();
|
|
1349
|
-
continue;
|
|
1350
|
-
}
|
|
1351
|
-
case 2: {
|
|
1352
|
-
if (tag !== 18) {
|
|
1353
|
-
break;
|
|
1354
|
-
}
|
|
1355
|
-
message.organizationId = reader.string();
|
|
1356
|
-
continue;
|
|
1357
|
-
}
|
|
1358
|
-
case 3: {
|
|
1359
|
-
if (tag !== 26) {
|
|
1360
|
-
break;
|
|
1361
|
-
}
|
|
1362
|
-
message.definitionId = reader.string();
|
|
1363
|
-
continue;
|
|
1364
|
-
}
|
|
1365
|
-
case 4: {
|
|
1366
|
-
if (tag !== 34) {
|
|
1367
|
-
break;
|
|
1368
|
-
}
|
|
1369
|
-
message.draftId = reader.string();
|
|
1370
|
-
continue;
|
|
1371
|
-
}
|
|
1372
|
-
case 5: {
|
|
1373
|
-
if (tag !== 40) {
|
|
1374
|
-
break;
|
|
1375
|
-
}
|
|
1376
|
-
message.sequence = longToNumber(reader.uint64());
|
|
1377
|
-
continue;
|
|
1378
|
-
}
|
|
1379
|
-
case 6: {
|
|
1380
|
-
if (tag !== 48) {
|
|
1381
|
-
break;
|
|
1382
|
-
}
|
|
1383
|
-
message.kind = reader.int32();
|
|
1384
|
-
continue;
|
|
1385
|
-
}
|
|
1386
|
-
case 7: {
|
|
1387
|
-
if (tag !== 56) {
|
|
1388
|
-
break;
|
|
1389
|
-
}
|
|
1390
|
-
message.baseRevision = reader.int32();
|
|
1391
|
-
continue;
|
|
1392
|
-
}
|
|
1393
|
-
case 8: {
|
|
1394
|
-
if (tag !== 64) {
|
|
1395
|
-
break;
|
|
1396
|
-
}
|
|
1397
|
-
message.resultRevision = reader.int32();
|
|
1398
|
-
continue;
|
|
1399
|
-
}
|
|
1400
|
-
case 9: {
|
|
1401
|
-
if (tag !== 74) {
|
|
1402
|
-
break;
|
|
1403
|
-
}
|
|
1404
|
-
message.changedFields.push(reader.string());
|
|
1405
|
-
continue;
|
|
1406
|
-
}
|
|
1407
|
-
case 10: {
|
|
1408
|
-
if (tag !== 82) {
|
|
1409
|
-
break;
|
|
1410
|
-
}
|
|
1411
|
-
message.source = reader.string();
|
|
1412
|
-
continue;
|
|
1413
|
-
}
|
|
1414
|
-
case 11: {
|
|
1415
|
-
if (tag !== 90) {
|
|
1416
|
-
break;
|
|
1417
|
-
}
|
|
1418
|
-
message.clientRequestId = reader.string();
|
|
1419
|
-
continue;
|
|
1420
|
-
}
|
|
1421
|
-
case 12: {
|
|
1422
|
-
if (tag !== 98) {
|
|
1423
|
-
break;
|
|
1424
|
-
}
|
|
1425
|
-
message.conflict = exports.WorkflowDraftPatchConflict.decode(reader, reader.uint32());
|
|
1426
|
-
continue;
|
|
1427
|
-
}
|
|
1428
|
-
case 13: {
|
|
1429
|
-
if (tag !== 106) {
|
|
1430
|
-
break;
|
|
1431
|
-
}
|
|
1432
|
-
message.createdByUserId = reader.string();
|
|
1433
|
-
continue;
|
|
1434
|
-
}
|
|
1435
|
-
case 14: {
|
|
1436
|
-
if (tag !== 114) {
|
|
1437
|
-
break;
|
|
1438
|
-
}
|
|
1439
|
-
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1440
|
-
continue;
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1444
|
-
break;
|
|
1445
|
-
}
|
|
1446
|
-
reader.skip(tag & 7);
|
|
1447
|
-
}
|
|
1448
|
-
return message;
|
|
1449
|
-
},
|
|
1450
|
-
fromJSON(object) {
|
|
1451
|
-
return {
|
|
1452
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1453
|
-
organizationId: isSet(object.organizationId)
|
|
1454
|
-
? globalThis.String(object.organizationId)
|
|
1455
|
-
: isSet(object.organization_id)
|
|
1456
|
-
? globalThis.String(object.organization_id)
|
|
1457
|
-
: "",
|
|
1458
|
-
definitionId: isSet(object.definitionId)
|
|
1459
|
-
? globalThis.String(object.definitionId)
|
|
1460
|
-
: isSet(object.definition_id)
|
|
1461
|
-
? globalThis.String(object.definition_id)
|
|
1462
|
-
: "",
|
|
1463
|
-
draftId: isSet(object.draftId)
|
|
1464
|
-
? globalThis.String(object.draftId)
|
|
1465
|
-
: isSet(object.draft_id)
|
|
1466
|
-
? globalThis.String(object.draft_id)
|
|
1467
|
-
: "",
|
|
1468
|
-
sequence: isSet(object.sequence) ? globalThis.Number(object.sequence) : 0,
|
|
1469
|
-
kind: isSet(object.kind) ? workflowDraftEventKindFromJSON(object.kind) : 0,
|
|
1470
|
-
baseRevision: isSet(object.baseRevision)
|
|
1471
|
-
? globalThis.Number(object.baseRevision)
|
|
1472
|
-
: isSet(object.base_revision)
|
|
1473
|
-
? globalThis.Number(object.base_revision)
|
|
1474
|
-
: 0,
|
|
1475
|
-
resultRevision: isSet(object.resultRevision)
|
|
1476
|
-
? globalThis.Number(object.resultRevision)
|
|
1477
|
-
: isSet(object.result_revision)
|
|
1478
|
-
? globalThis.Number(object.result_revision)
|
|
1479
|
-
: 0,
|
|
1480
|
-
changedFields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.changedFields)
|
|
1481
|
-
? object.changedFields.map((e) => globalThis.String(e))
|
|
1482
|
-
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.changed_fields)
|
|
1483
|
-
? object.changed_fields.map((e) => globalThis.String(e))
|
|
1484
|
-
: [],
|
|
1485
|
-
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
1486
|
-
clientRequestId: isSet(object.clientRequestId)
|
|
1487
|
-
? globalThis.String(object.clientRequestId)
|
|
1488
|
-
: isSet(object.client_request_id)
|
|
1489
|
-
? globalThis.String(object.client_request_id)
|
|
1490
|
-
: "",
|
|
1491
|
-
conflict: isSet(object.conflict) ? exports.WorkflowDraftPatchConflict.fromJSON(object.conflict) : undefined,
|
|
1492
|
-
createdByUserId: isSet(object.createdByUserId)
|
|
1493
|
-
? globalThis.String(object.createdByUserId)
|
|
1494
|
-
: isSet(object.created_by_user_id)
|
|
1495
|
-
? globalThis.String(object.created_by_user_id)
|
|
1496
|
-
: "",
|
|
1497
|
-
createdAt: isSet(object.createdAt)
|
|
1498
|
-
? fromJsonTimestamp(object.createdAt)
|
|
1499
|
-
: isSet(object.created_at)
|
|
1500
|
-
? fromJsonTimestamp(object.created_at)
|
|
1501
|
-
: undefined,
|
|
1502
|
-
};
|
|
1503
|
-
},
|
|
1504
|
-
toJSON(message) {
|
|
1505
|
-
var _a;
|
|
1506
|
-
const obj = {};
|
|
1507
|
-
if (message.id !== "") {
|
|
1508
|
-
obj.id = message.id;
|
|
1509
|
-
}
|
|
1510
|
-
if (message.organizationId !== "") {
|
|
1511
|
-
obj.organizationId = message.organizationId;
|
|
1512
|
-
}
|
|
1513
|
-
if (message.definitionId !== "") {
|
|
1514
|
-
obj.definitionId = message.definitionId;
|
|
1515
|
-
}
|
|
1516
|
-
if (message.draftId !== "") {
|
|
1517
|
-
obj.draftId = message.draftId;
|
|
1518
|
-
}
|
|
1519
|
-
if (message.sequence !== 0) {
|
|
1520
|
-
obj.sequence = Math.round(message.sequence);
|
|
1521
|
-
}
|
|
1522
|
-
if (message.kind !== 0) {
|
|
1523
|
-
obj.kind = workflowDraftEventKindToJSON(message.kind);
|
|
1524
|
-
}
|
|
1525
|
-
if (message.baseRevision !== 0) {
|
|
1526
|
-
obj.baseRevision = Math.round(message.baseRevision);
|
|
1527
|
-
}
|
|
1528
|
-
if (message.resultRevision !== 0) {
|
|
1529
|
-
obj.resultRevision = Math.round(message.resultRevision);
|
|
1530
|
-
}
|
|
1531
|
-
if ((_a = message.changedFields) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1532
|
-
obj.changedFields = message.changedFields;
|
|
1533
|
-
}
|
|
1534
|
-
if (message.source !== "") {
|
|
1535
|
-
obj.source = message.source;
|
|
1536
|
-
}
|
|
1537
|
-
if (message.clientRequestId !== "") {
|
|
1538
|
-
obj.clientRequestId = message.clientRequestId;
|
|
1539
|
-
}
|
|
1540
|
-
if (message.conflict !== undefined) {
|
|
1541
|
-
obj.conflict = exports.WorkflowDraftPatchConflict.toJSON(message.conflict);
|
|
1542
|
-
}
|
|
1543
|
-
if (message.createdByUserId !== "") {
|
|
1544
|
-
obj.createdByUserId = message.createdByUserId;
|
|
1545
|
-
}
|
|
1546
|
-
if (message.createdAt !== undefined) {
|
|
1547
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
1548
|
-
}
|
|
1549
|
-
return obj;
|
|
1550
|
-
},
|
|
1551
|
-
create(base) {
|
|
1552
|
-
return exports.WorkflowDraftEvent.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1553
|
-
},
|
|
1554
|
-
fromPartial(object) {
|
|
1555
|
-
var _a;
|
|
1556
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1557
|
-
const message = createBaseWorkflowDraftEvent();
|
|
1558
|
-
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
1559
|
-
message.organizationId = (_c = object.organizationId) !== null && _c !== void 0 ? _c : "";
|
|
1560
|
-
message.definitionId = (_d = object.definitionId) !== null && _d !== void 0 ? _d : "";
|
|
1561
|
-
message.draftId = (_e = object.draftId) !== null && _e !== void 0 ? _e : "";
|
|
1562
|
-
message.sequence = (_f = object.sequence) !== null && _f !== void 0 ? _f : 0;
|
|
1563
|
-
message.kind = (_g = object.kind) !== null && _g !== void 0 ? _g : 0;
|
|
1564
|
-
message.baseRevision = (_h = object.baseRevision) !== null && _h !== void 0 ? _h : 0;
|
|
1565
|
-
message.resultRevision = (_j = object.resultRevision) !== null && _j !== void 0 ? _j : 0;
|
|
1566
|
-
message.changedFields = ((_a = object.changedFields) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
1567
|
-
message.source = (_k = object.source) !== null && _k !== void 0 ? _k : "";
|
|
1568
|
-
message.clientRequestId = (_l = object.clientRequestId) !== null && _l !== void 0 ? _l : "";
|
|
1569
|
-
message.conflict = (object.conflict !== undefined && object.conflict !== null)
|
|
1570
|
-
? exports.WorkflowDraftPatchConflict.fromPartial(object.conflict)
|
|
1571
|
-
: undefined;
|
|
1572
|
-
message.createdByUserId = (_m = object.createdByUserId) !== null && _m !== void 0 ? _m : "";
|
|
1573
|
-
message.createdAt = (_o = object.createdAt) !== null && _o !== void 0 ? _o : undefined;
|
|
1574
|
-
return message;
|
|
1575
|
-
},
|
|
1576
|
-
};
|
|
1577
|
-
function createBaseWorkflowVersion() {
|
|
1578
|
-
return {
|
|
1579
|
-
id: "",
|
|
1580
|
-
definitionId: "",
|
|
1581
|
-
organizationId: "",
|
|
1582
|
-
version: 0,
|
|
1583
|
-
sourceDraftRevision: 0,
|
|
1584
|
-
name: "",
|
|
1585
|
-
description: "",
|
|
1586
|
-
graph: undefined,
|
|
1587
|
-
inputSchema: undefined,
|
|
1588
|
-
outputSchema: undefined,
|
|
1589
|
-
metadata: undefined,
|
|
1590
|
-
publishedByUserId: "",
|
|
1591
|
-
publishedAt: undefined,
|
|
1592
|
-
};
|
|
1593
|
-
}
|
|
1594
|
-
exports.WorkflowVersion = {
|
|
1595
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1596
|
-
if (message.id !== "") {
|
|
1597
|
-
writer.uint32(10).string(message.id);
|
|
1598
|
-
}
|
|
1599
|
-
if (message.definitionId !== "") {
|
|
1600
|
-
writer.uint32(18).string(message.definitionId);
|
|
1601
|
-
}
|
|
1602
|
-
if (message.organizationId !== "") {
|
|
1603
|
-
writer.uint32(26).string(message.organizationId);
|
|
1604
|
-
}
|
|
1605
|
-
if (message.version !== 0) {
|
|
1606
|
-
writer.uint32(32).int32(message.version);
|
|
1607
|
-
}
|
|
1608
|
-
if (message.sourceDraftRevision !== 0) {
|
|
1609
|
-
writer.uint32(40).int32(message.sourceDraftRevision);
|
|
1610
|
-
}
|
|
1611
|
-
if (message.name !== "") {
|
|
1612
|
-
writer.uint32(50).string(message.name);
|
|
1613
|
-
}
|
|
1614
|
-
if (message.description !== "") {
|
|
1615
|
-
writer.uint32(58).string(message.description);
|
|
1616
|
-
}
|
|
1617
|
-
if (message.graph !== undefined) {
|
|
1618
|
-
exports.WorkflowGraph.encode(message.graph, writer.uint32(66).fork()).join();
|
|
1619
|
-
}
|
|
1620
|
-
if (message.inputSchema !== undefined) {
|
|
1621
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.inputSchema), writer.uint32(74).fork()).join();
|
|
1622
|
-
}
|
|
1623
|
-
if (message.outputSchema !== undefined) {
|
|
1624
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.outputSchema), writer.uint32(82).fork()).join();
|
|
1625
|
-
}
|
|
1626
|
-
if (message.metadata !== undefined) {
|
|
1627
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(90).fork()).join();
|
|
1628
|
-
}
|
|
1629
|
-
if (message.publishedByUserId !== "") {
|
|
1630
|
-
writer.uint32(98).string(message.publishedByUserId);
|
|
1631
|
-
}
|
|
1632
|
-
if (message.publishedAt !== undefined) {
|
|
1633
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.publishedAt), writer.uint32(106).fork()).join();
|
|
1634
|
-
}
|
|
1635
|
-
return writer;
|
|
1636
|
-
},
|
|
1637
|
-
decode(input, length) {
|
|
1638
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1639
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1640
|
-
const message = createBaseWorkflowVersion();
|
|
1641
|
-
while (reader.pos < end) {
|
|
1642
|
-
const tag = reader.uint32();
|
|
1643
|
-
switch (tag >>> 3) {
|
|
1644
|
-
case 1: {
|
|
1645
|
-
if (tag !== 10) {
|
|
1646
|
-
break;
|
|
1647
|
-
}
|
|
1648
|
-
message.id = reader.string();
|
|
1649
|
-
continue;
|
|
1650
|
-
}
|
|
1651
|
-
case 2: {
|
|
1652
|
-
if (tag !== 18) {
|
|
1653
|
-
break;
|
|
1654
|
-
}
|
|
1655
|
-
message.definitionId = reader.string();
|
|
1656
|
-
continue;
|
|
1657
|
-
}
|
|
1658
|
-
case 3: {
|
|
1659
|
-
if (tag !== 26) {
|
|
1660
|
-
break;
|
|
1661
|
-
}
|
|
1662
|
-
message.organizationId = reader.string();
|
|
1663
|
-
continue;
|
|
1664
|
-
}
|
|
1665
|
-
case 4: {
|
|
1666
|
-
if (tag !== 32) {
|
|
1667
|
-
break;
|
|
1668
|
-
}
|
|
1669
|
-
message.version = reader.int32();
|
|
1670
|
-
continue;
|
|
1671
|
-
}
|
|
1672
|
-
case 5: {
|
|
1673
|
-
if (tag !== 40) {
|
|
1674
|
-
break;
|
|
1675
|
-
}
|
|
1676
|
-
message.sourceDraftRevision = reader.int32();
|
|
1677
|
-
continue;
|
|
1678
|
-
}
|
|
1679
|
-
case 6: {
|
|
1680
|
-
if (tag !== 50) {
|
|
1681
|
-
break;
|
|
1682
|
-
}
|
|
1683
|
-
message.name = reader.string();
|
|
1684
|
-
continue;
|
|
1685
|
-
}
|
|
1686
|
-
case 7: {
|
|
1687
|
-
if (tag !== 58) {
|
|
1688
|
-
break;
|
|
1689
|
-
}
|
|
1690
|
-
message.description = reader.string();
|
|
1691
|
-
continue;
|
|
1692
|
-
}
|
|
1693
|
-
case 8: {
|
|
1694
|
-
if (tag !== 66) {
|
|
1695
|
-
break;
|
|
1696
|
-
}
|
|
1697
|
-
message.graph = exports.WorkflowGraph.decode(reader, reader.uint32());
|
|
1698
|
-
continue;
|
|
1699
|
-
}
|
|
1700
|
-
case 9: {
|
|
1701
|
-
if (tag !== 74) {
|
|
1702
|
-
break;
|
|
1703
|
-
}
|
|
1704
|
-
message.inputSchema = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1705
|
-
continue;
|
|
1706
|
-
}
|
|
1707
|
-
case 10: {
|
|
1708
|
-
if (tag !== 82) {
|
|
1709
|
-
break;
|
|
1710
|
-
}
|
|
1711
|
-
message.outputSchema = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1712
|
-
continue;
|
|
1713
|
-
}
|
|
1714
|
-
case 11: {
|
|
1715
|
-
if (tag !== 90) {
|
|
1716
|
-
break;
|
|
1717
|
-
}
|
|
1718
|
-
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1719
|
-
continue;
|
|
1720
|
-
}
|
|
1721
|
-
case 12: {
|
|
1722
|
-
if (tag !== 98) {
|
|
1723
|
-
break;
|
|
1724
|
-
}
|
|
1725
|
-
message.publishedByUserId = reader.string();
|
|
1726
|
-
continue;
|
|
1727
|
-
}
|
|
1728
|
-
case 13: {
|
|
1729
|
-
if (tag !== 106) {
|
|
1730
|
-
break;
|
|
1731
|
-
}
|
|
1732
|
-
message.publishedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
1733
|
-
continue;
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1737
|
-
break;
|
|
1738
|
-
}
|
|
1739
|
-
reader.skip(tag & 7);
|
|
1740
|
-
}
|
|
1741
|
-
return message;
|
|
1742
|
-
},
|
|
1743
|
-
fromJSON(object) {
|
|
1744
|
-
return {
|
|
1745
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1746
|
-
definitionId: isSet(object.definitionId)
|
|
1747
|
-
? globalThis.String(object.definitionId)
|
|
1748
|
-
: isSet(object.definition_id)
|
|
1749
|
-
? globalThis.String(object.definition_id)
|
|
1750
|
-
: "",
|
|
1751
|
-
organizationId: isSet(object.organizationId)
|
|
1752
|
-
? globalThis.String(object.organizationId)
|
|
1753
|
-
: isSet(object.organization_id)
|
|
1754
|
-
? globalThis.String(object.organization_id)
|
|
1755
|
-
: "",
|
|
1756
|
-
version: isSet(object.version) ? globalThis.Number(object.version) : 0,
|
|
1757
|
-
sourceDraftRevision: isSet(object.sourceDraftRevision)
|
|
1758
|
-
? globalThis.Number(object.sourceDraftRevision)
|
|
1759
|
-
: isSet(object.source_draft_revision)
|
|
1760
|
-
? globalThis.Number(object.source_draft_revision)
|
|
1761
|
-
: 0,
|
|
1762
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1763
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
1764
|
-
graph: isSet(object.graph) ? exports.WorkflowGraph.fromJSON(object.graph) : undefined,
|
|
1765
|
-
inputSchema: isObject(object.inputSchema)
|
|
1766
|
-
? object.inputSchema
|
|
1767
|
-
: isObject(object.input_schema)
|
|
1768
|
-
? object.input_schema
|
|
1769
|
-
: undefined,
|
|
1770
|
-
outputSchema: isObject(object.outputSchema)
|
|
1771
|
-
? object.outputSchema
|
|
1772
|
-
: isObject(object.output_schema)
|
|
1773
|
-
? object.output_schema
|
|
1774
|
-
: undefined,
|
|
1775
|
-
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
1776
|
-
publishedByUserId: isSet(object.publishedByUserId)
|
|
1777
|
-
? globalThis.String(object.publishedByUserId)
|
|
1778
|
-
: isSet(object.published_by_user_id)
|
|
1779
|
-
? globalThis.String(object.published_by_user_id)
|
|
1780
|
-
: "",
|
|
1781
|
-
publishedAt: isSet(object.publishedAt)
|
|
1782
|
-
? fromJsonTimestamp(object.publishedAt)
|
|
1783
|
-
: isSet(object.published_at)
|
|
1784
|
-
? fromJsonTimestamp(object.published_at)
|
|
1785
|
-
: undefined,
|
|
1786
|
-
};
|
|
1787
|
-
},
|
|
1788
|
-
toJSON(message) {
|
|
1789
|
-
const obj = {};
|
|
1790
|
-
if (message.id !== "") {
|
|
1791
|
-
obj.id = message.id;
|
|
1792
|
-
}
|
|
1793
|
-
if (message.definitionId !== "") {
|
|
1794
|
-
obj.definitionId = message.definitionId;
|
|
1795
|
-
}
|
|
1796
|
-
if (message.organizationId !== "") {
|
|
1797
|
-
obj.organizationId = message.organizationId;
|
|
1798
|
-
}
|
|
1799
|
-
if (message.version !== 0) {
|
|
1800
|
-
obj.version = Math.round(message.version);
|
|
1801
|
-
}
|
|
1802
|
-
if (message.sourceDraftRevision !== 0) {
|
|
1803
|
-
obj.sourceDraftRevision = Math.round(message.sourceDraftRevision);
|
|
1804
|
-
}
|
|
1805
|
-
if (message.name !== "") {
|
|
1806
|
-
obj.name = message.name;
|
|
1807
|
-
}
|
|
1808
|
-
if (message.description !== "") {
|
|
1809
|
-
obj.description = message.description;
|
|
1810
|
-
}
|
|
1811
|
-
if (message.graph !== undefined) {
|
|
1812
|
-
obj.graph = exports.WorkflowGraph.toJSON(message.graph);
|
|
1813
|
-
}
|
|
1814
|
-
if (message.inputSchema !== undefined) {
|
|
1815
|
-
obj.inputSchema = message.inputSchema;
|
|
1816
|
-
}
|
|
1817
|
-
if (message.outputSchema !== undefined) {
|
|
1818
|
-
obj.outputSchema = message.outputSchema;
|
|
1819
|
-
}
|
|
1820
|
-
if (message.metadata !== undefined) {
|
|
1821
|
-
obj.metadata = message.metadata;
|
|
1822
|
-
}
|
|
1823
|
-
if (message.publishedByUserId !== "") {
|
|
1824
|
-
obj.publishedByUserId = message.publishedByUserId;
|
|
1825
|
-
}
|
|
1826
|
-
if (message.publishedAt !== undefined) {
|
|
1827
|
-
obj.publishedAt = message.publishedAt.toISOString();
|
|
1828
|
-
}
|
|
1829
|
-
return obj;
|
|
1830
|
-
},
|
|
1831
|
-
create(base) {
|
|
1832
|
-
return exports.WorkflowVersion.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1833
|
-
},
|
|
1834
|
-
fromPartial(object) {
|
|
1835
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
1836
|
-
const message = createBaseWorkflowVersion();
|
|
1837
|
-
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
1838
|
-
message.definitionId = (_b = object.definitionId) !== null && _b !== void 0 ? _b : "";
|
|
1839
|
-
message.organizationId = (_c = object.organizationId) !== null && _c !== void 0 ? _c : "";
|
|
1840
|
-
message.version = (_d = object.version) !== null && _d !== void 0 ? _d : 0;
|
|
1841
|
-
message.sourceDraftRevision = (_e = object.sourceDraftRevision) !== null && _e !== void 0 ? _e : 0;
|
|
1842
|
-
message.name = (_f = object.name) !== null && _f !== void 0 ? _f : "";
|
|
1843
|
-
message.description = (_g = object.description) !== null && _g !== void 0 ? _g : "";
|
|
1844
|
-
message.graph = (object.graph !== undefined && object.graph !== null)
|
|
1845
|
-
? exports.WorkflowGraph.fromPartial(object.graph)
|
|
1846
|
-
: undefined;
|
|
1847
|
-
message.inputSchema = (_h = object.inputSchema) !== null && _h !== void 0 ? _h : undefined;
|
|
1848
|
-
message.outputSchema = (_j = object.outputSchema) !== null && _j !== void 0 ? _j : undefined;
|
|
1849
|
-
message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
|
|
1850
|
-
message.publishedByUserId = (_l = object.publishedByUserId) !== null && _l !== void 0 ? _l : "";
|
|
1851
|
-
message.publishedAt = (_m = object.publishedAt) !== null && _m !== void 0 ? _m : undefined;
|
|
1852
|
-
return message;
|
|
1853
|
-
},
|
|
1854
|
-
};
|
|
1855
|
-
function createBaseWorkflowGraph() {
|
|
1856
|
-
return { steps: [], edges: [], config: undefined };
|
|
1857
|
-
}
|
|
1858
|
-
exports.WorkflowGraph = {
|
|
1859
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1860
|
-
for (const v of message.steps) {
|
|
1861
|
-
exports.WorkflowStepDefinition.encode(v, writer.uint32(10).fork()).join();
|
|
1862
|
-
}
|
|
1863
|
-
for (const v of message.edges) {
|
|
1864
|
-
exports.WorkflowEdge.encode(v, writer.uint32(18).fork()).join();
|
|
1865
|
-
}
|
|
1866
|
-
if (message.config !== undefined) {
|
|
1867
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.config), writer.uint32(26).fork()).join();
|
|
1868
|
-
}
|
|
1869
|
-
return writer;
|
|
1870
|
-
},
|
|
1871
|
-
decode(input, length) {
|
|
1872
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1873
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1874
|
-
const message = createBaseWorkflowGraph();
|
|
1875
|
-
while (reader.pos < end) {
|
|
1876
|
-
const tag = reader.uint32();
|
|
1877
|
-
switch (tag >>> 3) {
|
|
1878
|
-
case 1: {
|
|
1879
|
-
if (tag !== 10) {
|
|
1880
|
-
break;
|
|
1881
|
-
}
|
|
1882
|
-
message.steps.push(exports.WorkflowStepDefinition.decode(reader, reader.uint32()));
|
|
1883
|
-
continue;
|
|
1884
|
-
}
|
|
1885
|
-
case 2: {
|
|
1886
|
-
if (tag !== 18) {
|
|
1887
|
-
break;
|
|
1888
|
-
}
|
|
1889
|
-
message.edges.push(exports.WorkflowEdge.decode(reader, reader.uint32()));
|
|
1890
|
-
continue;
|
|
1891
|
-
}
|
|
1892
|
-
case 3: {
|
|
1893
|
-
if (tag !== 26) {
|
|
1894
|
-
break;
|
|
1895
|
-
}
|
|
1896
|
-
message.config = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
1897
|
-
continue;
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1901
|
-
break;
|
|
1902
|
-
}
|
|
1903
|
-
reader.skip(tag & 7);
|
|
1904
|
-
}
|
|
1905
|
-
return message;
|
|
1906
|
-
},
|
|
1907
|
-
fromJSON(object) {
|
|
1908
|
-
return {
|
|
1909
|
-
steps: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.steps)
|
|
1910
|
-
? object.steps.map((e) => exports.WorkflowStepDefinition.fromJSON(e))
|
|
1911
|
-
: [],
|
|
1912
|
-
edges: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.edges) ? object.edges.map((e) => exports.WorkflowEdge.fromJSON(e)) : [],
|
|
1913
|
-
config: isObject(object.config) ? object.config : undefined,
|
|
1914
|
-
};
|
|
1915
|
-
},
|
|
1916
|
-
toJSON(message) {
|
|
1917
|
-
var _a, _b;
|
|
1918
|
-
const obj = {};
|
|
1919
|
-
if ((_a = message.steps) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1920
|
-
obj.steps = message.steps.map((e) => exports.WorkflowStepDefinition.toJSON(e));
|
|
1921
|
-
}
|
|
1922
|
-
if ((_b = message.edges) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1923
|
-
obj.edges = message.edges.map((e) => exports.WorkflowEdge.toJSON(e));
|
|
1924
|
-
}
|
|
1925
|
-
if (message.config !== undefined) {
|
|
1926
|
-
obj.config = message.config;
|
|
1927
|
-
}
|
|
1928
|
-
return obj;
|
|
1929
|
-
},
|
|
1930
|
-
create(base) {
|
|
1931
|
-
return exports.WorkflowGraph.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1932
|
-
},
|
|
1933
|
-
fromPartial(object) {
|
|
1934
|
-
var _a, _b;
|
|
1935
|
-
var _c;
|
|
1936
|
-
const message = createBaseWorkflowGraph();
|
|
1937
|
-
message.steps = ((_a = object.steps) === null || _a === void 0 ? void 0 : _a.map((e) => exports.WorkflowStepDefinition.fromPartial(e))) || [];
|
|
1938
|
-
message.edges = ((_b = object.edges) === null || _b === void 0 ? void 0 : _b.map((e) => exports.WorkflowEdge.fromPartial(e))) || [];
|
|
1939
|
-
message.config = (_c = object.config) !== null && _c !== void 0 ? _c : undefined;
|
|
1940
|
-
return message;
|
|
1941
|
-
},
|
|
1942
|
-
};
|
|
1943
|
-
function createBaseWorkflowStepDefinition() {
|
|
1944
|
-
return {
|
|
1945
|
-
key: "",
|
|
1946
|
-
name: "",
|
|
1947
|
-
kind: 0,
|
|
1948
|
-
agentVersionId: "",
|
|
1949
|
-
workflowVersionId: "",
|
|
1950
|
-
toolName: "",
|
|
1951
|
-
serviceName: "",
|
|
1952
|
-
config: undefined,
|
|
1953
|
-
inputMapping: undefined,
|
|
1954
|
-
outputMapping: undefined,
|
|
1955
|
-
};
|
|
1956
|
-
}
|
|
1957
|
-
exports.WorkflowStepDefinition = {
|
|
1958
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1959
|
-
if (message.key !== "") {
|
|
1960
|
-
writer.uint32(10).string(message.key);
|
|
1961
|
-
}
|
|
1962
|
-
if (message.name !== "") {
|
|
1963
|
-
writer.uint32(18).string(message.name);
|
|
1964
|
-
}
|
|
1965
|
-
if (message.kind !== 0) {
|
|
1966
|
-
writer.uint32(24).int32(message.kind);
|
|
1967
|
-
}
|
|
1968
|
-
if (message.agentVersionId !== "") {
|
|
1969
|
-
writer.uint32(34).string(message.agentVersionId);
|
|
1970
|
-
}
|
|
1971
|
-
if (message.workflowVersionId !== "") {
|
|
1972
|
-
writer.uint32(42).string(message.workflowVersionId);
|
|
1973
|
-
}
|
|
1974
|
-
if (message.toolName !== "") {
|
|
1975
|
-
writer.uint32(50).string(message.toolName);
|
|
1976
|
-
}
|
|
1977
|
-
if (message.serviceName !== "") {
|
|
1978
|
-
writer.uint32(58).string(message.serviceName);
|
|
1979
|
-
}
|
|
1980
|
-
if (message.config !== undefined) {
|
|
1981
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.config), writer.uint32(66).fork()).join();
|
|
1982
|
-
}
|
|
1983
|
-
if (message.inputMapping !== undefined) {
|
|
1984
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.inputMapping), writer.uint32(74).fork()).join();
|
|
1985
|
-
}
|
|
1986
|
-
if (message.outputMapping !== undefined) {
|
|
1987
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.outputMapping), writer.uint32(82).fork()).join();
|
|
1988
|
-
}
|
|
1989
|
-
return writer;
|
|
1990
|
-
},
|
|
1991
|
-
decode(input, length) {
|
|
1992
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1993
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1994
|
-
const message = createBaseWorkflowStepDefinition();
|
|
1995
|
-
while (reader.pos < end) {
|
|
1996
|
-
const tag = reader.uint32();
|
|
1997
|
-
switch (tag >>> 3) {
|
|
1998
|
-
case 1: {
|
|
1999
|
-
if (tag !== 10) {
|
|
2000
|
-
break;
|
|
2001
|
-
}
|
|
2002
|
-
message.key = reader.string();
|
|
2003
|
-
continue;
|
|
2004
|
-
}
|
|
2005
|
-
case 2: {
|
|
2006
|
-
if (tag !== 18) {
|
|
2007
|
-
break;
|
|
2008
|
-
}
|
|
2009
|
-
message.name = reader.string();
|
|
2010
|
-
continue;
|
|
2011
|
-
}
|
|
2012
|
-
case 3: {
|
|
2013
|
-
if (tag !== 24) {
|
|
2014
|
-
break;
|
|
2015
|
-
}
|
|
2016
|
-
message.kind = reader.int32();
|
|
2017
|
-
continue;
|
|
2018
|
-
}
|
|
2019
|
-
case 4: {
|
|
2020
|
-
if (tag !== 34) {
|
|
2021
|
-
break;
|
|
2022
|
-
}
|
|
2023
|
-
message.agentVersionId = reader.string();
|
|
2024
|
-
continue;
|
|
2025
|
-
}
|
|
2026
|
-
case 5: {
|
|
2027
|
-
if (tag !== 42) {
|
|
2028
|
-
break;
|
|
2029
|
-
}
|
|
2030
|
-
message.workflowVersionId = reader.string();
|
|
2031
|
-
continue;
|
|
2032
|
-
}
|
|
2033
|
-
case 6: {
|
|
2034
|
-
if (tag !== 50) {
|
|
2035
|
-
break;
|
|
2036
|
-
}
|
|
2037
|
-
message.toolName = reader.string();
|
|
2038
|
-
continue;
|
|
2039
|
-
}
|
|
2040
|
-
case 7: {
|
|
2041
|
-
if (tag !== 58) {
|
|
2042
|
-
break;
|
|
2043
|
-
}
|
|
2044
|
-
message.serviceName = reader.string();
|
|
2045
|
-
continue;
|
|
2046
|
-
}
|
|
2047
|
-
case 8: {
|
|
2048
|
-
if (tag !== 66) {
|
|
2049
|
-
break;
|
|
2050
|
-
}
|
|
2051
|
-
message.config = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2052
|
-
continue;
|
|
2053
|
-
}
|
|
2054
|
-
case 9: {
|
|
2055
|
-
if (tag !== 74) {
|
|
2056
|
-
break;
|
|
2057
|
-
}
|
|
2058
|
-
message.inputMapping = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2059
|
-
continue;
|
|
2060
|
-
}
|
|
2061
|
-
case 10: {
|
|
2062
|
-
if (tag !== 82) {
|
|
2063
|
-
break;
|
|
2064
|
-
}
|
|
2065
|
-
message.outputMapping = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2066
|
-
continue;
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2070
|
-
break;
|
|
2071
|
-
}
|
|
2072
|
-
reader.skip(tag & 7);
|
|
2073
|
-
}
|
|
2074
|
-
return message;
|
|
2075
|
-
},
|
|
2076
|
-
fromJSON(object) {
|
|
2077
|
-
return {
|
|
2078
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2079
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2080
|
-
kind: isSet(object.kind) ? workflowStepKindFromJSON(object.kind) : 0,
|
|
2081
|
-
agentVersionId: isSet(object.agentVersionId)
|
|
2082
|
-
? globalThis.String(object.agentVersionId)
|
|
2083
|
-
: isSet(object.agent_version_id)
|
|
2084
|
-
? globalThis.String(object.agent_version_id)
|
|
2085
|
-
: "",
|
|
2086
|
-
workflowVersionId: isSet(object.workflowVersionId)
|
|
2087
|
-
? globalThis.String(object.workflowVersionId)
|
|
2088
|
-
: isSet(object.workflow_version_id)
|
|
2089
|
-
? globalThis.String(object.workflow_version_id)
|
|
2090
|
-
: "",
|
|
2091
|
-
toolName: isSet(object.toolName)
|
|
2092
|
-
? globalThis.String(object.toolName)
|
|
2093
|
-
: isSet(object.tool_name)
|
|
2094
|
-
? globalThis.String(object.tool_name)
|
|
2095
|
-
: "",
|
|
2096
|
-
serviceName: isSet(object.serviceName)
|
|
2097
|
-
? globalThis.String(object.serviceName)
|
|
2098
|
-
: isSet(object.service_name)
|
|
2099
|
-
? globalThis.String(object.service_name)
|
|
2100
|
-
: "",
|
|
2101
|
-
config: isObject(object.config) ? object.config : undefined,
|
|
2102
|
-
inputMapping: isObject(object.inputMapping)
|
|
2103
|
-
? object.inputMapping
|
|
2104
|
-
: isObject(object.input_mapping)
|
|
2105
|
-
? object.input_mapping
|
|
2106
|
-
: undefined,
|
|
2107
|
-
outputMapping: isObject(object.outputMapping)
|
|
2108
|
-
? object.outputMapping
|
|
2109
|
-
: isObject(object.output_mapping)
|
|
2110
|
-
? object.output_mapping
|
|
2111
|
-
: undefined,
|
|
2112
|
-
};
|
|
2113
|
-
},
|
|
2114
|
-
toJSON(message) {
|
|
2115
|
-
const obj = {};
|
|
2116
|
-
if (message.key !== "") {
|
|
2117
|
-
obj.key = message.key;
|
|
2118
|
-
}
|
|
2119
|
-
if (message.name !== "") {
|
|
2120
|
-
obj.name = message.name;
|
|
2121
|
-
}
|
|
2122
|
-
if (message.kind !== 0) {
|
|
2123
|
-
obj.kind = workflowStepKindToJSON(message.kind);
|
|
2124
|
-
}
|
|
2125
|
-
if (message.agentVersionId !== "") {
|
|
2126
|
-
obj.agentVersionId = message.agentVersionId;
|
|
2127
|
-
}
|
|
2128
|
-
if (message.workflowVersionId !== "") {
|
|
2129
|
-
obj.workflowVersionId = message.workflowVersionId;
|
|
2130
|
-
}
|
|
2131
|
-
if (message.toolName !== "") {
|
|
2132
|
-
obj.toolName = message.toolName;
|
|
2133
|
-
}
|
|
2134
|
-
if (message.serviceName !== "") {
|
|
2135
|
-
obj.serviceName = message.serviceName;
|
|
2136
|
-
}
|
|
2137
|
-
if (message.config !== undefined) {
|
|
2138
|
-
obj.config = message.config;
|
|
2139
|
-
}
|
|
2140
|
-
if (message.inputMapping !== undefined) {
|
|
2141
|
-
obj.inputMapping = message.inputMapping;
|
|
2142
|
-
}
|
|
2143
|
-
if (message.outputMapping !== undefined) {
|
|
2144
|
-
obj.outputMapping = message.outputMapping;
|
|
2145
|
-
}
|
|
2146
|
-
return obj;
|
|
2147
|
-
},
|
|
2148
|
-
create(base) {
|
|
2149
|
-
return exports.WorkflowStepDefinition.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2150
|
-
},
|
|
2151
|
-
fromPartial(object) {
|
|
2152
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2153
|
-
const message = createBaseWorkflowStepDefinition();
|
|
2154
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
2155
|
-
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
2156
|
-
message.kind = (_c = object.kind) !== null && _c !== void 0 ? _c : 0;
|
|
2157
|
-
message.agentVersionId = (_d = object.agentVersionId) !== null && _d !== void 0 ? _d : "";
|
|
2158
|
-
message.workflowVersionId = (_e = object.workflowVersionId) !== null && _e !== void 0 ? _e : "";
|
|
2159
|
-
message.toolName = (_f = object.toolName) !== null && _f !== void 0 ? _f : "";
|
|
2160
|
-
message.serviceName = (_g = object.serviceName) !== null && _g !== void 0 ? _g : "";
|
|
2161
|
-
message.config = (_h = object.config) !== null && _h !== void 0 ? _h : undefined;
|
|
2162
|
-
message.inputMapping = (_j = object.inputMapping) !== null && _j !== void 0 ? _j : undefined;
|
|
2163
|
-
message.outputMapping = (_k = object.outputMapping) !== null && _k !== void 0 ? _k : undefined;
|
|
2164
|
-
return message;
|
|
2165
|
-
},
|
|
2166
|
-
};
|
|
2167
|
-
function createBaseWorkflowEdge() {
|
|
2168
|
-
return { fromStepKey: "", toStepKey: "", condition: "" };
|
|
2169
|
-
}
|
|
2170
|
-
exports.WorkflowEdge = {
|
|
2171
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2172
|
-
if (message.fromStepKey !== "") {
|
|
2173
|
-
writer.uint32(10).string(message.fromStepKey);
|
|
2174
|
-
}
|
|
2175
|
-
if (message.toStepKey !== "") {
|
|
2176
|
-
writer.uint32(18).string(message.toStepKey);
|
|
2177
|
-
}
|
|
2178
|
-
if (message.condition !== "") {
|
|
2179
|
-
writer.uint32(26).string(message.condition);
|
|
2180
|
-
}
|
|
2181
|
-
return writer;
|
|
2182
|
-
},
|
|
2183
|
-
decode(input, length) {
|
|
2184
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2185
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2186
|
-
const message = createBaseWorkflowEdge();
|
|
2187
|
-
while (reader.pos < end) {
|
|
2188
|
-
const tag = reader.uint32();
|
|
2189
|
-
switch (tag >>> 3) {
|
|
2190
|
-
case 1: {
|
|
2191
|
-
if (tag !== 10) {
|
|
2192
|
-
break;
|
|
2193
|
-
}
|
|
2194
|
-
message.fromStepKey = reader.string();
|
|
2195
|
-
continue;
|
|
2196
|
-
}
|
|
2197
|
-
case 2: {
|
|
2198
|
-
if (tag !== 18) {
|
|
2199
|
-
break;
|
|
2200
|
-
}
|
|
2201
|
-
message.toStepKey = reader.string();
|
|
2202
|
-
continue;
|
|
2203
|
-
}
|
|
2204
|
-
case 3: {
|
|
2205
|
-
if (tag !== 26) {
|
|
2206
|
-
break;
|
|
2207
|
-
}
|
|
2208
|
-
message.condition = reader.string();
|
|
2209
|
-
continue;
|
|
2210
|
-
}
|
|
2211
|
-
}
|
|
2212
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2213
|
-
break;
|
|
2214
|
-
}
|
|
2215
|
-
reader.skip(tag & 7);
|
|
2216
|
-
}
|
|
2217
|
-
return message;
|
|
2218
|
-
},
|
|
2219
|
-
fromJSON(object) {
|
|
2220
|
-
return {
|
|
2221
|
-
fromStepKey: isSet(object.fromStepKey)
|
|
2222
|
-
? globalThis.String(object.fromStepKey)
|
|
2223
|
-
: isSet(object.from_step_key)
|
|
2224
|
-
? globalThis.String(object.from_step_key)
|
|
2225
|
-
: "",
|
|
2226
|
-
toStepKey: isSet(object.toStepKey)
|
|
2227
|
-
? globalThis.String(object.toStepKey)
|
|
2228
|
-
: isSet(object.to_step_key)
|
|
2229
|
-
? globalThis.String(object.to_step_key)
|
|
2230
|
-
: "",
|
|
2231
|
-
condition: isSet(object.condition) ? globalThis.String(object.condition) : "",
|
|
2232
|
-
};
|
|
2233
|
-
},
|
|
2234
|
-
toJSON(message) {
|
|
2235
|
-
const obj = {};
|
|
2236
|
-
if (message.fromStepKey !== "") {
|
|
2237
|
-
obj.fromStepKey = message.fromStepKey;
|
|
2238
|
-
}
|
|
2239
|
-
if (message.toStepKey !== "") {
|
|
2240
|
-
obj.toStepKey = message.toStepKey;
|
|
2241
|
-
}
|
|
2242
|
-
if (message.condition !== "") {
|
|
2243
|
-
obj.condition = message.condition;
|
|
2244
|
-
}
|
|
2245
|
-
return obj;
|
|
2246
|
-
},
|
|
2247
|
-
create(base) {
|
|
2248
|
-
return exports.WorkflowEdge.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2249
|
-
},
|
|
2250
|
-
fromPartial(object) {
|
|
2251
|
-
var _a, _b, _c;
|
|
2252
|
-
const message = createBaseWorkflowEdge();
|
|
2253
|
-
message.fromStepKey = (_a = object.fromStepKey) !== null && _a !== void 0 ? _a : "";
|
|
2254
|
-
message.toStepKey = (_b = object.toStepKey) !== null && _b !== void 0 ? _b : "";
|
|
2255
|
-
message.condition = (_c = object.condition) !== null && _c !== void 0 ? _c : "";
|
|
2256
|
-
return message;
|
|
2257
|
-
},
|
|
2258
|
-
};
|
|
2259
|
-
function createBaseWorkflowPublishPlan() {
|
|
2260
|
-
return { definitionId: "", draftRevision: 0, publishable: false, issues: [], compiledPreview: undefined };
|
|
2261
|
-
}
|
|
2262
|
-
exports.WorkflowPublishPlan = {
|
|
2263
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2264
|
-
if (message.definitionId !== "") {
|
|
2265
|
-
writer.uint32(10).string(message.definitionId);
|
|
2266
|
-
}
|
|
2267
|
-
if (message.draftRevision !== 0) {
|
|
2268
|
-
writer.uint32(16).int32(message.draftRevision);
|
|
2269
|
-
}
|
|
2270
|
-
if (message.publishable !== false) {
|
|
2271
|
-
writer.uint32(24).bool(message.publishable);
|
|
2272
|
-
}
|
|
2273
|
-
for (const v of message.issues) {
|
|
2274
|
-
exports.WorkflowPublishPlanIssue.encode(v, writer.uint32(34).fork()).join();
|
|
2275
|
-
}
|
|
2276
|
-
if (message.compiledPreview !== undefined) {
|
|
2277
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.compiledPreview), writer.uint32(42).fork()).join();
|
|
2278
|
-
}
|
|
2279
|
-
return writer;
|
|
2280
|
-
},
|
|
2281
|
-
decode(input, length) {
|
|
2282
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2283
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2284
|
-
const message = createBaseWorkflowPublishPlan();
|
|
2285
|
-
while (reader.pos < end) {
|
|
2286
|
-
const tag = reader.uint32();
|
|
2287
|
-
switch (tag >>> 3) {
|
|
2288
|
-
case 1: {
|
|
2289
|
-
if (tag !== 10) {
|
|
2290
|
-
break;
|
|
2291
|
-
}
|
|
2292
|
-
message.definitionId = reader.string();
|
|
2293
|
-
continue;
|
|
2294
|
-
}
|
|
2295
|
-
case 2: {
|
|
2296
|
-
if (tag !== 16) {
|
|
2297
|
-
break;
|
|
2298
|
-
}
|
|
2299
|
-
message.draftRevision = reader.int32();
|
|
2300
|
-
continue;
|
|
2301
|
-
}
|
|
2302
|
-
case 3: {
|
|
2303
|
-
if (tag !== 24) {
|
|
2304
|
-
break;
|
|
2305
|
-
}
|
|
2306
|
-
message.publishable = reader.bool();
|
|
2307
|
-
continue;
|
|
2308
|
-
}
|
|
2309
|
-
case 4: {
|
|
2310
|
-
if (tag !== 34) {
|
|
2311
|
-
break;
|
|
2312
|
-
}
|
|
2313
|
-
message.issues.push(exports.WorkflowPublishPlanIssue.decode(reader, reader.uint32()));
|
|
2314
|
-
continue;
|
|
2315
|
-
}
|
|
2316
|
-
case 5: {
|
|
2317
|
-
if (tag !== 42) {
|
|
2318
|
-
break;
|
|
2319
|
-
}
|
|
2320
|
-
message.compiledPreview = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2321
|
-
continue;
|
|
2322
|
-
}
|
|
2323
|
-
}
|
|
2324
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2325
|
-
break;
|
|
2326
|
-
}
|
|
2327
|
-
reader.skip(tag & 7);
|
|
2328
|
-
}
|
|
2329
|
-
return message;
|
|
2330
|
-
},
|
|
2331
|
-
fromJSON(object) {
|
|
2332
|
-
return {
|
|
2333
|
-
definitionId: isSet(object.definitionId)
|
|
2334
|
-
? globalThis.String(object.definitionId)
|
|
2335
|
-
: isSet(object.definition_id)
|
|
2336
|
-
? globalThis.String(object.definition_id)
|
|
2337
|
-
: "",
|
|
2338
|
-
draftRevision: isSet(object.draftRevision)
|
|
2339
|
-
? globalThis.Number(object.draftRevision)
|
|
2340
|
-
: isSet(object.draft_revision)
|
|
2341
|
-
? globalThis.Number(object.draft_revision)
|
|
2342
|
-
: 0,
|
|
2343
|
-
publishable: isSet(object.publishable) ? globalThis.Boolean(object.publishable) : false,
|
|
2344
|
-
issues: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.issues)
|
|
2345
|
-
? object.issues.map((e) => exports.WorkflowPublishPlanIssue.fromJSON(e))
|
|
2346
|
-
: [],
|
|
2347
|
-
compiledPreview: isObject(object.compiledPreview)
|
|
2348
|
-
? object.compiledPreview
|
|
2349
|
-
: isObject(object.compiled_preview)
|
|
2350
|
-
? object.compiled_preview
|
|
2351
|
-
: undefined,
|
|
2352
|
-
};
|
|
2353
|
-
},
|
|
2354
|
-
toJSON(message) {
|
|
2355
|
-
var _a;
|
|
2356
|
-
const obj = {};
|
|
2357
|
-
if (message.definitionId !== "") {
|
|
2358
|
-
obj.definitionId = message.definitionId;
|
|
2359
|
-
}
|
|
2360
|
-
if (message.draftRevision !== 0) {
|
|
2361
|
-
obj.draftRevision = Math.round(message.draftRevision);
|
|
2362
|
-
}
|
|
2363
|
-
if (message.publishable !== false) {
|
|
2364
|
-
obj.publishable = message.publishable;
|
|
2365
|
-
}
|
|
2366
|
-
if ((_a = message.issues) === null || _a === void 0 ? void 0 : _a.length) {
|
|
2367
|
-
obj.issues = message.issues.map((e) => exports.WorkflowPublishPlanIssue.toJSON(e));
|
|
2368
|
-
}
|
|
2369
|
-
if (message.compiledPreview !== undefined) {
|
|
2370
|
-
obj.compiledPreview = message.compiledPreview;
|
|
2371
|
-
}
|
|
2372
|
-
return obj;
|
|
2373
|
-
},
|
|
2374
|
-
create(base) {
|
|
2375
|
-
return exports.WorkflowPublishPlan.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2376
|
-
},
|
|
2377
|
-
fromPartial(object) {
|
|
2378
|
-
var _a;
|
|
2379
|
-
var _b, _c, _d, _e;
|
|
2380
|
-
const message = createBaseWorkflowPublishPlan();
|
|
2381
|
-
message.definitionId = (_b = object.definitionId) !== null && _b !== void 0 ? _b : "";
|
|
2382
|
-
message.draftRevision = (_c = object.draftRevision) !== null && _c !== void 0 ? _c : 0;
|
|
2383
|
-
message.publishable = (_d = object.publishable) !== null && _d !== void 0 ? _d : false;
|
|
2384
|
-
message.issues = ((_a = object.issues) === null || _a === void 0 ? void 0 : _a.map((e) => exports.WorkflowPublishPlanIssue.fromPartial(e))) || [];
|
|
2385
|
-
message.compiledPreview = (_e = object.compiledPreview) !== null && _e !== void 0 ? _e : undefined;
|
|
2386
|
-
return message;
|
|
2387
|
-
},
|
|
2388
|
-
};
|
|
2389
|
-
function createBaseWorkflowPublishPlanIssue() {
|
|
2390
|
-
return { code: "", message: "", path: "" };
|
|
2391
|
-
}
|
|
2392
|
-
exports.WorkflowPublishPlanIssue = {
|
|
2393
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2394
|
-
if (message.code !== "") {
|
|
2395
|
-
writer.uint32(10).string(message.code);
|
|
2396
|
-
}
|
|
2397
|
-
if (message.message !== "") {
|
|
2398
|
-
writer.uint32(18).string(message.message);
|
|
2399
|
-
}
|
|
2400
|
-
if (message.path !== "") {
|
|
2401
|
-
writer.uint32(26).string(message.path);
|
|
2402
|
-
}
|
|
2403
|
-
return writer;
|
|
2404
|
-
},
|
|
2405
|
-
decode(input, length) {
|
|
2406
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2407
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2408
|
-
const message = createBaseWorkflowPublishPlanIssue();
|
|
2409
|
-
while (reader.pos < end) {
|
|
2410
|
-
const tag = reader.uint32();
|
|
2411
|
-
switch (tag >>> 3) {
|
|
2412
|
-
case 1: {
|
|
2413
|
-
if (tag !== 10) {
|
|
2414
|
-
break;
|
|
2415
|
-
}
|
|
2416
|
-
message.code = reader.string();
|
|
2417
|
-
continue;
|
|
2418
|
-
}
|
|
2419
|
-
case 2: {
|
|
2420
|
-
if (tag !== 18) {
|
|
2421
|
-
break;
|
|
2422
|
-
}
|
|
2423
|
-
message.message = reader.string();
|
|
2424
|
-
continue;
|
|
2425
|
-
}
|
|
2426
|
-
case 3: {
|
|
2427
|
-
if (tag !== 26) {
|
|
2428
|
-
break;
|
|
2429
|
-
}
|
|
2430
|
-
message.path = reader.string();
|
|
2431
|
-
continue;
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2435
|
-
break;
|
|
2436
|
-
}
|
|
2437
|
-
reader.skip(tag & 7);
|
|
2438
|
-
}
|
|
2439
|
-
return message;
|
|
2440
|
-
},
|
|
2441
|
-
fromJSON(object) {
|
|
2442
|
-
return {
|
|
2443
|
-
code: isSet(object.code) ? globalThis.String(object.code) : "",
|
|
2444
|
-
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
2445
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
2446
|
-
};
|
|
2447
|
-
},
|
|
2448
|
-
toJSON(message) {
|
|
2449
|
-
const obj = {};
|
|
2450
|
-
if (message.code !== "") {
|
|
2451
|
-
obj.code = message.code;
|
|
2452
|
-
}
|
|
2453
|
-
if (message.message !== "") {
|
|
2454
|
-
obj.message = message.message;
|
|
2455
|
-
}
|
|
2456
|
-
if (message.path !== "") {
|
|
2457
|
-
obj.path = message.path;
|
|
2458
|
-
}
|
|
2459
|
-
return obj;
|
|
2460
|
-
},
|
|
2461
|
-
create(base) {
|
|
2462
|
-
return exports.WorkflowPublishPlanIssue.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2463
|
-
},
|
|
2464
|
-
fromPartial(object) {
|
|
2465
|
-
var _a, _b, _c;
|
|
2466
|
-
const message = createBaseWorkflowPublishPlanIssue();
|
|
2467
|
-
message.code = (_a = object.code) !== null && _a !== void 0 ? _a : "";
|
|
2468
|
-
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
|
|
2469
|
-
message.path = (_c = object.path) !== null && _c !== void 0 ? _c : "";
|
|
2470
|
-
return message;
|
|
2471
|
-
},
|
|
2472
|
-
};
|
|
2473
|
-
function createBaseWorkflowRun() {
|
|
2474
|
-
return {
|
|
2475
|
-
id: "",
|
|
2476
|
-
organizationId: "",
|
|
2477
|
-
workflowDefinitionId: "",
|
|
2478
|
-
workflowVersionId: "",
|
|
2479
|
-
status: 0,
|
|
2480
|
-
createdByUserId: "",
|
|
2481
|
-
chatSessionId: "",
|
|
2482
|
-
input: undefined,
|
|
2483
|
-
output: undefined,
|
|
2484
|
-
errorCode: "",
|
|
2485
|
-
safeErrorMessage: "",
|
|
2486
|
-
createdAt: undefined,
|
|
2487
|
-
startedAt: undefined,
|
|
2488
|
-
finishedAt: undefined,
|
|
2489
|
-
};
|
|
2490
|
-
}
|
|
2491
|
-
exports.WorkflowRun = {
|
|
2492
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2493
|
-
if (message.id !== "") {
|
|
2494
|
-
writer.uint32(10).string(message.id);
|
|
2495
|
-
}
|
|
2496
|
-
if (message.organizationId !== "") {
|
|
2497
|
-
writer.uint32(18).string(message.organizationId);
|
|
2498
|
-
}
|
|
2499
|
-
if (message.workflowDefinitionId !== "") {
|
|
2500
|
-
writer.uint32(26).string(message.workflowDefinitionId);
|
|
2501
|
-
}
|
|
2502
|
-
if (message.workflowVersionId !== "") {
|
|
2503
|
-
writer.uint32(34).string(message.workflowVersionId);
|
|
2504
|
-
}
|
|
2505
|
-
if (message.status !== 0) {
|
|
2506
|
-
writer.uint32(40).int32(message.status);
|
|
2507
|
-
}
|
|
2508
|
-
if (message.createdByUserId !== "") {
|
|
2509
|
-
writer.uint32(50).string(message.createdByUserId);
|
|
2510
|
-
}
|
|
2511
|
-
if (message.chatSessionId !== "") {
|
|
2512
|
-
writer.uint32(58).string(message.chatSessionId);
|
|
2513
|
-
}
|
|
2514
|
-
if (message.input !== undefined) {
|
|
2515
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.input), writer.uint32(66).fork()).join();
|
|
2516
|
-
}
|
|
2517
|
-
if (message.output !== undefined) {
|
|
2518
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.output), writer.uint32(74).fork()).join();
|
|
2519
|
-
}
|
|
2520
|
-
if (message.errorCode !== "") {
|
|
2521
|
-
writer.uint32(82).string(message.errorCode);
|
|
2522
|
-
}
|
|
2523
|
-
if (message.safeErrorMessage !== "") {
|
|
2524
|
-
writer.uint32(90).string(message.safeErrorMessage);
|
|
2525
|
-
}
|
|
2526
|
-
if (message.createdAt !== undefined) {
|
|
2527
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(98).fork()).join();
|
|
2528
|
-
}
|
|
2529
|
-
if (message.startedAt !== undefined) {
|
|
2530
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(106).fork()).join();
|
|
2531
|
-
}
|
|
2532
|
-
if (message.finishedAt !== undefined) {
|
|
2533
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(114).fork()).join();
|
|
2534
|
-
}
|
|
2535
|
-
return writer;
|
|
2536
|
-
},
|
|
2537
|
-
decode(input, length) {
|
|
2538
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2539
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2540
|
-
const message = createBaseWorkflowRun();
|
|
2541
|
-
while (reader.pos < end) {
|
|
2542
|
-
const tag = reader.uint32();
|
|
2543
|
-
switch (tag >>> 3) {
|
|
2544
|
-
case 1: {
|
|
2545
|
-
if (tag !== 10) {
|
|
2546
|
-
break;
|
|
2547
|
-
}
|
|
2548
|
-
message.id = reader.string();
|
|
2549
|
-
continue;
|
|
2550
|
-
}
|
|
2551
|
-
case 2: {
|
|
2552
|
-
if (tag !== 18) {
|
|
2553
|
-
break;
|
|
2554
|
-
}
|
|
2555
|
-
message.organizationId = reader.string();
|
|
2556
|
-
continue;
|
|
2557
|
-
}
|
|
2558
|
-
case 3: {
|
|
2559
|
-
if (tag !== 26) {
|
|
2560
|
-
break;
|
|
2561
|
-
}
|
|
2562
|
-
message.workflowDefinitionId = reader.string();
|
|
2563
|
-
continue;
|
|
2564
|
-
}
|
|
2565
|
-
case 4: {
|
|
2566
|
-
if (tag !== 34) {
|
|
2567
|
-
break;
|
|
2568
|
-
}
|
|
2569
|
-
message.workflowVersionId = reader.string();
|
|
2570
|
-
continue;
|
|
2571
|
-
}
|
|
2572
|
-
case 5: {
|
|
2573
|
-
if (tag !== 40) {
|
|
2574
|
-
break;
|
|
2575
|
-
}
|
|
2576
|
-
message.status = reader.int32();
|
|
2577
|
-
continue;
|
|
2578
|
-
}
|
|
2579
|
-
case 6: {
|
|
2580
|
-
if (tag !== 50) {
|
|
2581
|
-
break;
|
|
2582
|
-
}
|
|
2583
|
-
message.createdByUserId = reader.string();
|
|
2584
|
-
continue;
|
|
2585
|
-
}
|
|
2586
|
-
case 7: {
|
|
2587
|
-
if (tag !== 58) {
|
|
2588
|
-
break;
|
|
2589
|
-
}
|
|
2590
|
-
message.chatSessionId = reader.string();
|
|
2591
|
-
continue;
|
|
2592
|
-
}
|
|
2593
|
-
case 8: {
|
|
2594
|
-
if (tag !== 66) {
|
|
2595
|
-
break;
|
|
2596
|
-
}
|
|
2597
|
-
message.input = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2598
|
-
continue;
|
|
2599
|
-
}
|
|
2600
|
-
case 9: {
|
|
2601
|
-
if (tag !== 74) {
|
|
2602
|
-
break;
|
|
2603
|
-
}
|
|
2604
|
-
message.output = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2605
|
-
continue;
|
|
2606
|
-
}
|
|
2607
|
-
case 10: {
|
|
2608
|
-
if (tag !== 82) {
|
|
2609
|
-
break;
|
|
2610
|
-
}
|
|
2611
|
-
message.errorCode = reader.string();
|
|
2612
|
-
continue;
|
|
2613
|
-
}
|
|
2614
|
-
case 11: {
|
|
2615
|
-
if (tag !== 90) {
|
|
2616
|
-
break;
|
|
2617
|
-
}
|
|
2618
|
-
message.safeErrorMessage = reader.string();
|
|
2619
|
-
continue;
|
|
2620
|
-
}
|
|
2621
|
-
case 12: {
|
|
2622
|
-
if (tag !== 98) {
|
|
2623
|
-
break;
|
|
2624
|
-
}
|
|
2625
|
-
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
2626
|
-
continue;
|
|
2627
|
-
}
|
|
2628
|
-
case 13: {
|
|
2629
|
-
if (tag !== 106) {
|
|
2630
|
-
break;
|
|
2631
|
-
}
|
|
2632
|
-
message.startedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
2633
|
-
continue;
|
|
2634
|
-
}
|
|
2635
|
-
case 14: {
|
|
2636
|
-
if (tag !== 114) {
|
|
2637
|
-
break;
|
|
2638
|
-
}
|
|
2639
|
-
message.finishedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
240
|
+
message.workflowId = reader.string();
|
|
2640
241
|
continue;
|
|
2641
242
|
}
|
|
2642
243
|
}
|
|
@@ -2649,207 +250,44 @@ exports.WorkflowRun = {
|
|
|
2649
250
|
},
|
|
2650
251
|
fromJSON(object) {
|
|
2651
252
|
return {
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
? globalThis.String(object.organization_id)
|
|
2657
|
-
: "",
|
|
2658
|
-
workflowDefinitionId: isSet(object.workflowDefinitionId)
|
|
2659
|
-
? globalThis.String(object.workflowDefinitionId)
|
|
2660
|
-
: isSet(object.workflow_definition_id)
|
|
2661
|
-
? globalThis.String(object.workflow_definition_id)
|
|
2662
|
-
: "",
|
|
2663
|
-
workflowVersionId: isSet(object.workflowVersionId)
|
|
2664
|
-
? globalThis.String(object.workflowVersionId)
|
|
2665
|
-
: isSet(object.workflow_version_id)
|
|
2666
|
-
? globalThis.String(object.workflow_version_id)
|
|
2667
|
-
: "",
|
|
2668
|
-
status: isSet(object.status) ? workflowRunStatusFromJSON(object.status) : 0,
|
|
2669
|
-
createdByUserId: isSet(object.createdByUserId)
|
|
2670
|
-
? globalThis.String(object.createdByUserId)
|
|
2671
|
-
: isSet(object.created_by_user_id)
|
|
2672
|
-
? globalThis.String(object.created_by_user_id)
|
|
2673
|
-
: "",
|
|
2674
|
-
chatSessionId: isSet(object.chatSessionId)
|
|
2675
|
-
? globalThis.String(object.chatSessionId)
|
|
2676
|
-
: isSet(object.chat_session_id)
|
|
2677
|
-
? globalThis.String(object.chat_session_id)
|
|
2678
|
-
: "",
|
|
2679
|
-
input: isObject(object.input) ? object.input : undefined,
|
|
2680
|
-
output: isObject(object.output) ? object.output : undefined,
|
|
2681
|
-
errorCode: isSet(object.errorCode)
|
|
2682
|
-
? globalThis.String(object.errorCode)
|
|
2683
|
-
: isSet(object.error_code)
|
|
2684
|
-
? globalThis.String(object.error_code)
|
|
2685
|
-
: "",
|
|
2686
|
-
safeErrorMessage: isSet(object.safeErrorMessage)
|
|
2687
|
-
? globalThis.String(object.safeErrorMessage)
|
|
2688
|
-
: isSet(object.safe_error_message)
|
|
2689
|
-
? globalThis.String(object.safe_error_message)
|
|
253
|
+
workflowId: isSet(object.workflowId)
|
|
254
|
+
? globalThis.String(object.workflowId)
|
|
255
|
+
: isSet(object.workflow_id)
|
|
256
|
+
? globalThis.String(object.workflow_id)
|
|
2690
257
|
: "",
|
|
2691
|
-
createdAt: isSet(object.createdAt)
|
|
2692
|
-
? fromJsonTimestamp(object.createdAt)
|
|
2693
|
-
: isSet(object.created_at)
|
|
2694
|
-
? fromJsonTimestamp(object.created_at)
|
|
2695
|
-
: undefined,
|
|
2696
|
-
startedAt: isSet(object.startedAt)
|
|
2697
|
-
? fromJsonTimestamp(object.startedAt)
|
|
2698
|
-
: isSet(object.started_at)
|
|
2699
|
-
? fromJsonTimestamp(object.started_at)
|
|
2700
|
-
: undefined,
|
|
2701
|
-
finishedAt: isSet(object.finishedAt)
|
|
2702
|
-
? fromJsonTimestamp(object.finishedAt)
|
|
2703
|
-
: isSet(object.finished_at)
|
|
2704
|
-
? fromJsonTimestamp(object.finished_at)
|
|
2705
|
-
: undefined,
|
|
2706
258
|
};
|
|
2707
259
|
},
|
|
2708
260
|
toJSON(message) {
|
|
2709
261
|
const obj = {};
|
|
2710
|
-
if (message.
|
|
2711
|
-
obj.
|
|
2712
|
-
}
|
|
2713
|
-
if (message.organizationId !== "") {
|
|
2714
|
-
obj.organizationId = message.organizationId;
|
|
2715
|
-
}
|
|
2716
|
-
if (message.workflowDefinitionId !== "") {
|
|
2717
|
-
obj.workflowDefinitionId = message.workflowDefinitionId;
|
|
2718
|
-
}
|
|
2719
|
-
if (message.workflowVersionId !== "") {
|
|
2720
|
-
obj.workflowVersionId = message.workflowVersionId;
|
|
2721
|
-
}
|
|
2722
|
-
if (message.status !== 0) {
|
|
2723
|
-
obj.status = workflowRunStatusToJSON(message.status);
|
|
2724
|
-
}
|
|
2725
|
-
if (message.createdByUserId !== "") {
|
|
2726
|
-
obj.createdByUserId = message.createdByUserId;
|
|
2727
|
-
}
|
|
2728
|
-
if (message.chatSessionId !== "") {
|
|
2729
|
-
obj.chatSessionId = message.chatSessionId;
|
|
2730
|
-
}
|
|
2731
|
-
if (message.input !== undefined) {
|
|
2732
|
-
obj.input = message.input;
|
|
2733
|
-
}
|
|
2734
|
-
if (message.output !== undefined) {
|
|
2735
|
-
obj.output = message.output;
|
|
2736
|
-
}
|
|
2737
|
-
if (message.errorCode !== "") {
|
|
2738
|
-
obj.errorCode = message.errorCode;
|
|
2739
|
-
}
|
|
2740
|
-
if (message.safeErrorMessage !== "") {
|
|
2741
|
-
obj.safeErrorMessage = message.safeErrorMessage;
|
|
2742
|
-
}
|
|
2743
|
-
if (message.createdAt !== undefined) {
|
|
2744
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
2745
|
-
}
|
|
2746
|
-
if (message.startedAt !== undefined) {
|
|
2747
|
-
obj.startedAt = message.startedAt.toISOString();
|
|
2748
|
-
}
|
|
2749
|
-
if (message.finishedAt !== undefined) {
|
|
2750
|
-
obj.finishedAt = message.finishedAt.toISOString();
|
|
262
|
+
if (message.workflowId !== "") {
|
|
263
|
+
obj.workflowId = message.workflowId;
|
|
2751
264
|
}
|
|
2752
265
|
return obj;
|
|
2753
266
|
},
|
|
2754
267
|
create(base) {
|
|
2755
|
-
return exports.
|
|
268
|
+
return exports.GetWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2756
269
|
},
|
|
2757
270
|
fromPartial(object) {
|
|
2758
|
-
var _a
|
|
2759
|
-
const message =
|
|
2760
|
-
message.
|
|
2761
|
-
message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
|
|
2762
|
-
message.workflowDefinitionId = (_c = object.workflowDefinitionId) !== null && _c !== void 0 ? _c : "";
|
|
2763
|
-
message.workflowVersionId = (_d = object.workflowVersionId) !== null && _d !== void 0 ? _d : "";
|
|
2764
|
-
message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
|
|
2765
|
-
message.createdByUserId = (_f = object.createdByUserId) !== null && _f !== void 0 ? _f : "";
|
|
2766
|
-
message.chatSessionId = (_g = object.chatSessionId) !== null && _g !== void 0 ? _g : "";
|
|
2767
|
-
message.input = (_h = object.input) !== null && _h !== void 0 ? _h : undefined;
|
|
2768
|
-
message.output = (_j = object.output) !== null && _j !== void 0 ? _j : undefined;
|
|
2769
|
-
message.errorCode = (_k = object.errorCode) !== null && _k !== void 0 ? _k : "";
|
|
2770
|
-
message.safeErrorMessage = (_l = object.safeErrorMessage) !== null && _l !== void 0 ? _l : "";
|
|
2771
|
-
message.createdAt = (_m = object.createdAt) !== null && _m !== void 0 ? _m : undefined;
|
|
2772
|
-
message.startedAt = (_o = object.startedAt) !== null && _o !== void 0 ? _o : undefined;
|
|
2773
|
-
message.finishedAt = (_p = object.finishedAt) !== null && _p !== void 0 ? _p : undefined;
|
|
271
|
+
var _a;
|
|
272
|
+
const message = createBaseGetWorkflowRequest();
|
|
273
|
+
message.workflowId = (_a = object.workflowId) !== null && _a !== void 0 ? _a : "";
|
|
2774
274
|
return message;
|
|
2775
275
|
},
|
|
2776
276
|
};
|
|
2777
|
-
function
|
|
2778
|
-
return {
|
|
2779
|
-
id: "",
|
|
2780
|
-
organizationId: "",
|
|
2781
|
-
workflowRunId: "",
|
|
2782
|
-
stepKey: "",
|
|
2783
|
-
stepName: "",
|
|
2784
|
-
stepKind: 0,
|
|
2785
|
-
status: 0,
|
|
2786
|
-
agentRunId: "",
|
|
2787
|
-
childWorkflowRunId: "",
|
|
2788
|
-
input: undefined,
|
|
2789
|
-
output: undefined,
|
|
2790
|
-
errorCode: "",
|
|
2791
|
-
safeErrorMessage: "",
|
|
2792
|
-
createdAt: undefined,
|
|
2793
|
-
startedAt: undefined,
|
|
2794
|
-
finishedAt: undefined,
|
|
2795
|
-
};
|
|
277
|
+
function createBaseGetWorkflowResponse() {
|
|
278
|
+
return { workflow: undefined };
|
|
2796
279
|
}
|
|
2797
|
-
exports.
|
|
280
|
+
exports.GetWorkflowResponse = {
|
|
2798
281
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2799
|
-
if (message.
|
|
2800
|
-
writer.uint32(10).
|
|
2801
|
-
}
|
|
2802
|
-
if (message.organizationId !== "") {
|
|
2803
|
-
writer.uint32(18).string(message.organizationId);
|
|
2804
|
-
}
|
|
2805
|
-
if (message.workflowRunId !== "") {
|
|
2806
|
-
writer.uint32(26).string(message.workflowRunId);
|
|
2807
|
-
}
|
|
2808
|
-
if (message.stepKey !== "") {
|
|
2809
|
-
writer.uint32(34).string(message.stepKey);
|
|
2810
|
-
}
|
|
2811
|
-
if (message.stepName !== "") {
|
|
2812
|
-
writer.uint32(42).string(message.stepName);
|
|
2813
|
-
}
|
|
2814
|
-
if (message.stepKind !== 0) {
|
|
2815
|
-
writer.uint32(48).int32(message.stepKind);
|
|
2816
|
-
}
|
|
2817
|
-
if (message.status !== 0) {
|
|
2818
|
-
writer.uint32(56).int32(message.status);
|
|
2819
|
-
}
|
|
2820
|
-
if (message.agentRunId !== "") {
|
|
2821
|
-
writer.uint32(66).string(message.agentRunId);
|
|
2822
|
-
}
|
|
2823
|
-
if (message.childWorkflowRunId !== "") {
|
|
2824
|
-
writer.uint32(74).string(message.childWorkflowRunId);
|
|
2825
|
-
}
|
|
2826
|
-
if (message.input !== undefined) {
|
|
2827
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.input), writer.uint32(82).fork()).join();
|
|
2828
|
-
}
|
|
2829
|
-
if (message.output !== undefined) {
|
|
2830
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.output), writer.uint32(90).fork()).join();
|
|
2831
|
-
}
|
|
2832
|
-
if (message.errorCode !== "") {
|
|
2833
|
-
writer.uint32(98).string(message.errorCode);
|
|
2834
|
-
}
|
|
2835
|
-
if (message.safeErrorMessage !== "") {
|
|
2836
|
-
writer.uint32(106).string(message.safeErrorMessage);
|
|
2837
|
-
}
|
|
2838
|
-
if (message.createdAt !== undefined) {
|
|
2839
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(114).fork()).join();
|
|
2840
|
-
}
|
|
2841
|
-
if (message.startedAt !== undefined) {
|
|
2842
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(122).fork()).join();
|
|
2843
|
-
}
|
|
2844
|
-
if (message.finishedAt !== undefined) {
|
|
2845
|
-
timestamp_pb_1.Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(130).fork()).join();
|
|
282
|
+
if (message.workflow !== undefined) {
|
|
283
|
+
exports.Workflow.encode(message.workflow, writer.uint32(10).fork()).join();
|
|
2846
284
|
}
|
|
2847
285
|
return writer;
|
|
2848
286
|
},
|
|
2849
287
|
decode(input, length) {
|
|
2850
288
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2851
289
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2852
|
-
const message =
|
|
290
|
+
const message = createBaseGetWorkflowResponse();
|
|
2853
291
|
while (reader.pos < end) {
|
|
2854
292
|
const tag = reader.uint32();
|
|
2855
293
|
switch (tag >>> 3) {
|
|
@@ -2857,112 +295,7 @@ exports.WorkflowStepRun = {
|
|
|
2857
295
|
if (tag !== 10) {
|
|
2858
296
|
break;
|
|
2859
297
|
}
|
|
2860
|
-
message.
|
|
2861
|
-
continue;
|
|
2862
|
-
}
|
|
2863
|
-
case 2: {
|
|
2864
|
-
if (tag !== 18) {
|
|
2865
|
-
break;
|
|
2866
|
-
}
|
|
2867
|
-
message.organizationId = reader.string();
|
|
2868
|
-
continue;
|
|
2869
|
-
}
|
|
2870
|
-
case 3: {
|
|
2871
|
-
if (tag !== 26) {
|
|
2872
|
-
break;
|
|
2873
|
-
}
|
|
2874
|
-
message.workflowRunId = reader.string();
|
|
2875
|
-
continue;
|
|
2876
|
-
}
|
|
2877
|
-
case 4: {
|
|
2878
|
-
if (tag !== 34) {
|
|
2879
|
-
break;
|
|
2880
|
-
}
|
|
2881
|
-
message.stepKey = reader.string();
|
|
2882
|
-
continue;
|
|
2883
|
-
}
|
|
2884
|
-
case 5: {
|
|
2885
|
-
if (tag !== 42) {
|
|
2886
|
-
break;
|
|
2887
|
-
}
|
|
2888
|
-
message.stepName = reader.string();
|
|
2889
|
-
continue;
|
|
2890
|
-
}
|
|
2891
|
-
case 6: {
|
|
2892
|
-
if (tag !== 48) {
|
|
2893
|
-
break;
|
|
2894
|
-
}
|
|
2895
|
-
message.stepKind = reader.int32();
|
|
2896
|
-
continue;
|
|
2897
|
-
}
|
|
2898
|
-
case 7: {
|
|
2899
|
-
if (tag !== 56) {
|
|
2900
|
-
break;
|
|
2901
|
-
}
|
|
2902
|
-
message.status = reader.int32();
|
|
2903
|
-
continue;
|
|
2904
|
-
}
|
|
2905
|
-
case 8: {
|
|
2906
|
-
if (tag !== 66) {
|
|
2907
|
-
break;
|
|
2908
|
-
}
|
|
2909
|
-
message.agentRunId = reader.string();
|
|
2910
|
-
continue;
|
|
2911
|
-
}
|
|
2912
|
-
case 9: {
|
|
2913
|
-
if (tag !== 74) {
|
|
2914
|
-
break;
|
|
2915
|
-
}
|
|
2916
|
-
message.childWorkflowRunId = reader.string();
|
|
2917
|
-
continue;
|
|
2918
|
-
}
|
|
2919
|
-
case 10: {
|
|
2920
|
-
if (tag !== 82) {
|
|
2921
|
-
break;
|
|
2922
|
-
}
|
|
2923
|
-
message.input = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2924
|
-
continue;
|
|
2925
|
-
}
|
|
2926
|
-
case 11: {
|
|
2927
|
-
if (tag !== 90) {
|
|
2928
|
-
break;
|
|
2929
|
-
}
|
|
2930
|
-
message.output = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
2931
|
-
continue;
|
|
2932
|
-
}
|
|
2933
|
-
case 12: {
|
|
2934
|
-
if (tag !== 98) {
|
|
2935
|
-
break;
|
|
2936
|
-
}
|
|
2937
|
-
message.errorCode = reader.string();
|
|
2938
|
-
continue;
|
|
2939
|
-
}
|
|
2940
|
-
case 13: {
|
|
2941
|
-
if (tag !== 106) {
|
|
2942
|
-
break;
|
|
2943
|
-
}
|
|
2944
|
-
message.safeErrorMessage = reader.string();
|
|
2945
|
-
continue;
|
|
2946
|
-
}
|
|
2947
|
-
case 14: {
|
|
2948
|
-
if (tag !== 114) {
|
|
2949
|
-
break;
|
|
2950
|
-
}
|
|
2951
|
-
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
2952
|
-
continue;
|
|
2953
|
-
}
|
|
2954
|
-
case 15: {
|
|
2955
|
-
if (tag !== 122) {
|
|
2956
|
-
break;
|
|
2957
|
-
}
|
|
2958
|
-
message.startedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
2959
|
-
continue;
|
|
2960
|
-
}
|
|
2961
|
-
case 16: {
|
|
2962
|
-
if (tag !== 130) {
|
|
2963
|
-
break;
|
|
2964
|
-
}
|
|
2965
|
-
message.finishedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
298
|
+
message.workflow = exports.Workflow.decode(reader, reader.uint32());
|
|
2966
299
|
continue;
|
|
2967
300
|
}
|
|
2968
301
|
}
|
|
@@ -2974,202 +307,58 @@ exports.WorkflowStepRun = {
|
|
|
2974
307
|
return message;
|
|
2975
308
|
},
|
|
2976
309
|
fromJSON(object) {
|
|
2977
|
-
return {
|
|
2978
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
2979
|
-
organizationId: isSet(object.organizationId)
|
|
2980
|
-
? globalThis.String(object.organizationId)
|
|
2981
|
-
: isSet(object.organization_id)
|
|
2982
|
-
? globalThis.String(object.organization_id)
|
|
2983
|
-
: "",
|
|
2984
|
-
workflowRunId: isSet(object.workflowRunId)
|
|
2985
|
-
? globalThis.String(object.workflowRunId)
|
|
2986
|
-
: isSet(object.workflow_run_id)
|
|
2987
|
-
? globalThis.String(object.workflow_run_id)
|
|
2988
|
-
: "",
|
|
2989
|
-
stepKey: isSet(object.stepKey)
|
|
2990
|
-
? globalThis.String(object.stepKey)
|
|
2991
|
-
: isSet(object.step_key)
|
|
2992
|
-
? globalThis.String(object.step_key)
|
|
2993
|
-
: "",
|
|
2994
|
-
stepName: isSet(object.stepName)
|
|
2995
|
-
? globalThis.String(object.stepName)
|
|
2996
|
-
: isSet(object.step_name)
|
|
2997
|
-
? globalThis.String(object.step_name)
|
|
2998
|
-
: "",
|
|
2999
|
-
stepKind: isSet(object.stepKind)
|
|
3000
|
-
? workflowStepKindFromJSON(object.stepKind)
|
|
3001
|
-
: isSet(object.step_kind)
|
|
3002
|
-
? workflowStepKindFromJSON(object.step_kind)
|
|
3003
|
-
: 0,
|
|
3004
|
-
status: isSet(object.status) ? workflowStepRunStatusFromJSON(object.status) : 0,
|
|
3005
|
-
agentRunId: isSet(object.agentRunId)
|
|
3006
|
-
? globalThis.String(object.agentRunId)
|
|
3007
|
-
: isSet(object.agent_run_id)
|
|
3008
|
-
? globalThis.String(object.agent_run_id)
|
|
3009
|
-
: "",
|
|
3010
|
-
childWorkflowRunId: isSet(object.childWorkflowRunId)
|
|
3011
|
-
? globalThis.String(object.childWorkflowRunId)
|
|
3012
|
-
: isSet(object.child_workflow_run_id)
|
|
3013
|
-
? globalThis.String(object.child_workflow_run_id)
|
|
3014
|
-
: "",
|
|
3015
|
-
input: isObject(object.input) ? object.input : undefined,
|
|
3016
|
-
output: isObject(object.output) ? object.output : undefined,
|
|
3017
|
-
errorCode: isSet(object.errorCode)
|
|
3018
|
-
? globalThis.String(object.errorCode)
|
|
3019
|
-
: isSet(object.error_code)
|
|
3020
|
-
? globalThis.String(object.error_code)
|
|
3021
|
-
: "",
|
|
3022
|
-
safeErrorMessage: isSet(object.safeErrorMessage)
|
|
3023
|
-
? globalThis.String(object.safeErrorMessage)
|
|
3024
|
-
: isSet(object.safe_error_message)
|
|
3025
|
-
? globalThis.String(object.safe_error_message)
|
|
3026
|
-
: "",
|
|
3027
|
-
createdAt: isSet(object.createdAt)
|
|
3028
|
-
? fromJsonTimestamp(object.createdAt)
|
|
3029
|
-
: isSet(object.created_at)
|
|
3030
|
-
? fromJsonTimestamp(object.created_at)
|
|
3031
|
-
: undefined,
|
|
3032
|
-
startedAt: isSet(object.startedAt)
|
|
3033
|
-
? fromJsonTimestamp(object.startedAt)
|
|
3034
|
-
: isSet(object.started_at)
|
|
3035
|
-
? fromJsonTimestamp(object.started_at)
|
|
3036
|
-
: undefined,
|
|
3037
|
-
finishedAt: isSet(object.finishedAt)
|
|
3038
|
-
? fromJsonTimestamp(object.finishedAt)
|
|
3039
|
-
: isSet(object.finished_at)
|
|
3040
|
-
? fromJsonTimestamp(object.finished_at)
|
|
3041
|
-
: undefined,
|
|
3042
|
-
};
|
|
310
|
+
return { workflow: isSet(object.workflow) ? exports.Workflow.fromJSON(object.workflow) : undefined };
|
|
3043
311
|
},
|
|
3044
312
|
toJSON(message) {
|
|
3045
313
|
const obj = {};
|
|
3046
|
-
if (message.
|
|
3047
|
-
obj.
|
|
3048
|
-
}
|
|
3049
|
-
if (message.organizationId !== "") {
|
|
3050
|
-
obj.organizationId = message.organizationId;
|
|
3051
|
-
}
|
|
3052
|
-
if (message.workflowRunId !== "") {
|
|
3053
|
-
obj.workflowRunId = message.workflowRunId;
|
|
3054
|
-
}
|
|
3055
|
-
if (message.stepKey !== "") {
|
|
3056
|
-
obj.stepKey = message.stepKey;
|
|
3057
|
-
}
|
|
3058
|
-
if (message.stepName !== "") {
|
|
3059
|
-
obj.stepName = message.stepName;
|
|
3060
|
-
}
|
|
3061
|
-
if (message.stepKind !== 0) {
|
|
3062
|
-
obj.stepKind = workflowStepKindToJSON(message.stepKind);
|
|
3063
|
-
}
|
|
3064
|
-
if (message.status !== 0) {
|
|
3065
|
-
obj.status = workflowStepRunStatusToJSON(message.status);
|
|
3066
|
-
}
|
|
3067
|
-
if (message.agentRunId !== "") {
|
|
3068
|
-
obj.agentRunId = message.agentRunId;
|
|
3069
|
-
}
|
|
3070
|
-
if (message.childWorkflowRunId !== "") {
|
|
3071
|
-
obj.childWorkflowRunId = message.childWorkflowRunId;
|
|
3072
|
-
}
|
|
3073
|
-
if (message.input !== undefined) {
|
|
3074
|
-
obj.input = message.input;
|
|
3075
|
-
}
|
|
3076
|
-
if (message.output !== undefined) {
|
|
3077
|
-
obj.output = message.output;
|
|
3078
|
-
}
|
|
3079
|
-
if (message.errorCode !== "") {
|
|
3080
|
-
obj.errorCode = message.errorCode;
|
|
3081
|
-
}
|
|
3082
|
-
if (message.safeErrorMessage !== "") {
|
|
3083
|
-
obj.safeErrorMessage = message.safeErrorMessage;
|
|
3084
|
-
}
|
|
3085
|
-
if (message.createdAt !== undefined) {
|
|
3086
|
-
obj.createdAt = message.createdAt.toISOString();
|
|
3087
|
-
}
|
|
3088
|
-
if (message.startedAt !== undefined) {
|
|
3089
|
-
obj.startedAt = message.startedAt.toISOString();
|
|
3090
|
-
}
|
|
3091
|
-
if (message.finishedAt !== undefined) {
|
|
3092
|
-
obj.finishedAt = message.finishedAt.toISOString();
|
|
314
|
+
if (message.workflow !== undefined) {
|
|
315
|
+
obj.workflow = exports.Workflow.toJSON(message.workflow);
|
|
3093
316
|
}
|
|
3094
317
|
return obj;
|
|
3095
318
|
},
|
|
3096
319
|
create(base) {
|
|
3097
|
-
return exports.
|
|
320
|
+
return exports.GetWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3098
321
|
},
|
|
3099
322
|
fromPartial(object) {
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
message.workflowRunId = (_c = object.workflowRunId) !== null && _c !== void 0 ? _c : "";
|
|
3105
|
-
message.stepKey = (_d = object.stepKey) !== null && _d !== void 0 ? _d : "";
|
|
3106
|
-
message.stepName = (_e = object.stepName) !== null && _e !== void 0 ? _e : "";
|
|
3107
|
-
message.stepKind = (_f = object.stepKind) !== null && _f !== void 0 ? _f : 0;
|
|
3108
|
-
message.status = (_g = object.status) !== null && _g !== void 0 ? _g : 0;
|
|
3109
|
-
message.agentRunId = (_h = object.agentRunId) !== null && _h !== void 0 ? _h : "";
|
|
3110
|
-
message.childWorkflowRunId = (_j = object.childWorkflowRunId) !== null && _j !== void 0 ? _j : "";
|
|
3111
|
-
message.input = (_k = object.input) !== null && _k !== void 0 ? _k : undefined;
|
|
3112
|
-
message.output = (_l = object.output) !== null && _l !== void 0 ? _l : undefined;
|
|
3113
|
-
message.errorCode = (_m = object.errorCode) !== null && _m !== void 0 ? _m : "";
|
|
3114
|
-
message.safeErrorMessage = (_o = object.safeErrorMessage) !== null && _o !== void 0 ? _o : "";
|
|
3115
|
-
message.createdAt = (_p = object.createdAt) !== null && _p !== void 0 ? _p : undefined;
|
|
3116
|
-
message.startedAt = (_q = object.startedAt) !== null && _q !== void 0 ? _q : undefined;
|
|
3117
|
-
message.finishedAt = (_r = object.finishedAt) !== null && _r !== void 0 ? _r : undefined;
|
|
323
|
+
const message = createBaseGetWorkflowResponse();
|
|
324
|
+
message.workflow = (object.workflow !== undefined && object.workflow !== null)
|
|
325
|
+
? exports.Workflow.fromPartial(object.workflow)
|
|
326
|
+
: undefined;
|
|
3118
327
|
return message;
|
|
3119
|
-
},
|
|
3120
|
-
};
|
|
3121
|
-
function
|
|
3122
|
-
return {
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
sequence: 0,
|
|
3129
|
-
kind: 0,
|
|
3130
|
-
message: "",
|
|
3131
|
-
payload: undefined,
|
|
3132
|
-
createdAt: undefined,
|
|
3133
|
-
};
|
|
3134
|
-
}
|
|
3135
|
-
exports.WorkflowRunEvent = {
|
|
3136
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3137
|
-
if (message.id !== "") {
|
|
3138
|
-
writer.uint32(10).string(message.id);
|
|
3139
|
-
}
|
|
3140
|
-
if (message.organizationId !== "") {
|
|
3141
|
-
writer.uint32(18).string(message.organizationId);
|
|
3142
|
-
}
|
|
3143
|
-
if (message.workflowRunId !== "") {
|
|
3144
|
-
writer.uint32(26).string(message.workflowRunId);
|
|
3145
|
-
}
|
|
3146
|
-
if (message.workflowStepRunId !== "") {
|
|
3147
|
-
writer.uint32(34).string(message.workflowStepRunId);
|
|
328
|
+
},
|
|
329
|
+
};
|
|
330
|
+
function createBaseUpdateWorkflowRequest() {
|
|
331
|
+
return { workflowId: "", slug: "", name: "", description: "", status: 0, definition: undefined, metadata: undefined };
|
|
332
|
+
}
|
|
333
|
+
exports.UpdateWorkflowRequest = {
|
|
334
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
335
|
+
if (message.workflowId !== "") {
|
|
336
|
+
writer.uint32(10).string(message.workflowId);
|
|
3148
337
|
}
|
|
3149
|
-
if (message.
|
|
3150
|
-
writer.uint32(
|
|
338
|
+
if (message.slug !== "") {
|
|
339
|
+
writer.uint32(18).string(message.slug);
|
|
3151
340
|
}
|
|
3152
|
-
if (message.
|
|
3153
|
-
writer.uint32(
|
|
341
|
+
if (message.name !== "") {
|
|
342
|
+
writer.uint32(26).string(message.name);
|
|
3154
343
|
}
|
|
3155
|
-
if (message.
|
|
3156
|
-
writer.uint32(
|
|
344
|
+
if (message.description !== "") {
|
|
345
|
+
writer.uint32(34).string(message.description);
|
|
3157
346
|
}
|
|
3158
|
-
if (message.
|
|
3159
|
-
writer.uint32(
|
|
347
|
+
if (message.status !== 0) {
|
|
348
|
+
writer.uint32(40).int32(message.status);
|
|
3160
349
|
}
|
|
3161
|
-
if (message.
|
|
3162
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.
|
|
350
|
+
if (message.definition !== undefined) {
|
|
351
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.definition), writer.uint32(50).fork()).join();
|
|
3163
352
|
}
|
|
3164
|
-
if (message.
|
|
3165
|
-
|
|
353
|
+
if (message.metadata !== undefined) {
|
|
354
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(58).fork()).join();
|
|
3166
355
|
}
|
|
3167
356
|
return writer;
|
|
3168
357
|
},
|
|
3169
358
|
decode(input, length) {
|
|
3170
359
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3171
360
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3172
|
-
const message =
|
|
361
|
+
const message = createBaseUpdateWorkflowRequest();
|
|
3173
362
|
while (reader.pos < end) {
|
|
3174
363
|
const tag = reader.uint32();
|
|
3175
364
|
switch (tag >>> 3) {
|
|
@@ -3177,70 +366,200 @@ exports.WorkflowRunEvent = {
|
|
|
3177
366
|
if (tag !== 10) {
|
|
3178
367
|
break;
|
|
3179
368
|
}
|
|
3180
|
-
message.
|
|
369
|
+
message.workflowId = reader.string();
|
|
3181
370
|
continue;
|
|
3182
371
|
}
|
|
3183
372
|
case 2: {
|
|
3184
373
|
if (tag !== 18) {
|
|
3185
374
|
break;
|
|
3186
375
|
}
|
|
3187
|
-
message.
|
|
376
|
+
message.slug = reader.string();
|
|
3188
377
|
continue;
|
|
3189
378
|
}
|
|
3190
379
|
case 3: {
|
|
3191
380
|
if (tag !== 26) {
|
|
3192
381
|
break;
|
|
3193
382
|
}
|
|
3194
|
-
message.
|
|
383
|
+
message.name = reader.string();
|
|
3195
384
|
continue;
|
|
3196
385
|
}
|
|
3197
386
|
case 4: {
|
|
3198
387
|
if (tag !== 34) {
|
|
3199
388
|
break;
|
|
3200
389
|
}
|
|
3201
|
-
message.
|
|
390
|
+
message.description = reader.string();
|
|
3202
391
|
continue;
|
|
3203
392
|
}
|
|
3204
393
|
case 5: {
|
|
3205
|
-
if (tag !==
|
|
394
|
+
if (tag !== 40) {
|
|
3206
395
|
break;
|
|
3207
396
|
}
|
|
3208
|
-
message.
|
|
397
|
+
message.status = reader.int32();
|
|
3209
398
|
continue;
|
|
3210
399
|
}
|
|
3211
400
|
case 6: {
|
|
3212
|
-
if (tag !==
|
|
401
|
+
if (tag !== 50) {
|
|
3213
402
|
break;
|
|
3214
403
|
}
|
|
3215
|
-
message.
|
|
404
|
+
message.definition = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
3216
405
|
continue;
|
|
3217
406
|
}
|
|
3218
407
|
case 7: {
|
|
3219
|
-
if (tag !==
|
|
408
|
+
if (tag !== 58) {
|
|
3220
409
|
break;
|
|
3221
410
|
}
|
|
3222
|
-
message.
|
|
411
|
+
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
3223
412
|
continue;
|
|
3224
413
|
}
|
|
3225
|
-
|
|
3226
|
-
|
|
414
|
+
}
|
|
415
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
reader.skip(tag & 7);
|
|
419
|
+
}
|
|
420
|
+
return message;
|
|
421
|
+
},
|
|
422
|
+
fromJSON(object) {
|
|
423
|
+
return {
|
|
424
|
+
workflowId: isSet(object.workflowId)
|
|
425
|
+
? globalThis.String(object.workflowId)
|
|
426
|
+
: isSet(object.workflow_id)
|
|
427
|
+
? globalThis.String(object.workflow_id)
|
|
428
|
+
: "",
|
|
429
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
430
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
431
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
432
|
+
status: isSet(object.status) ? workflowStatusFromJSON(object.status) : 0,
|
|
433
|
+
definition: isObject(object.definition) ? object.definition : undefined,
|
|
434
|
+
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
toJSON(message) {
|
|
438
|
+
const obj = {};
|
|
439
|
+
if (message.workflowId !== "") {
|
|
440
|
+
obj.workflowId = message.workflowId;
|
|
441
|
+
}
|
|
442
|
+
if (message.slug !== "") {
|
|
443
|
+
obj.slug = message.slug;
|
|
444
|
+
}
|
|
445
|
+
if (message.name !== "") {
|
|
446
|
+
obj.name = message.name;
|
|
447
|
+
}
|
|
448
|
+
if (message.description !== "") {
|
|
449
|
+
obj.description = message.description;
|
|
450
|
+
}
|
|
451
|
+
if (message.status !== 0) {
|
|
452
|
+
obj.status = workflowStatusToJSON(message.status);
|
|
453
|
+
}
|
|
454
|
+
if (message.definition !== undefined) {
|
|
455
|
+
obj.definition = message.definition;
|
|
456
|
+
}
|
|
457
|
+
if (message.metadata !== undefined) {
|
|
458
|
+
obj.metadata = message.metadata;
|
|
459
|
+
}
|
|
460
|
+
return obj;
|
|
461
|
+
},
|
|
462
|
+
create(base) {
|
|
463
|
+
return exports.UpdateWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
464
|
+
},
|
|
465
|
+
fromPartial(object) {
|
|
466
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
467
|
+
const message = createBaseUpdateWorkflowRequest();
|
|
468
|
+
message.workflowId = (_a = object.workflowId) !== null && _a !== void 0 ? _a : "";
|
|
469
|
+
message.slug = (_b = object.slug) !== null && _b !== void 0 ? _b : "";
|
|
470
|
+
message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
|
|
471
|
+
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
|
|
472
|
+
message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
|
|
473
|
+
message.definition = (_f = object.definition) !== null && _f !== void 0 ? _f : undefined;
|
|
474
|
+
message.metadata = (_g = object.metadata) !== null && _g !== void 0 ? _g : undefined;
|
|
475
|
+
return message;
|
|
476
|
+
},
|
|
477
|
+
};
|
|
478
|
+
function createBaseUpdateWorkflowResponse() {
|
|
479
|
+
return { workflow: undefined };
|
|
480
|
+
}
|
|
481
|
+
exports.UpdateWorkflowResponse = {
|
|
482
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
483
|
+
if (message.workflow !== undefined) {
|
|
484
|
+
exports.Workflow.encode(message.workflow, writer.uint32(10).fork()).join();
|
|
485
|
+
}
|
|
486
|
+
return writer;
|
|
487
|
+
},
|
|
488
|
+
decode(input, length) {
|
|
489
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
490
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
491
|
+
const message = createBaseUpdateWorkflowResponse();
|
|
492
|
+
while (reader.pos < end) {
|
|
493
|
+
const tag = reader.uint32();
|
|
494
|
+
switch (tag >>> 3) {
|
|
495
|
+
case 1: {
|
|
496
|
+
if (tag !== 10) {
|
|
3227
497
|
break;
|
|
3228
498
|
}
|
|
3229
|
-
message.
|
|
499
|
+
message.workflow = exports.Workflow.decode(reader, reader.uint32());
|
|
3230
500
|
continue;
|
|
3231
501
|
}
|
|
3232
|
-
|
|
3233
|
-
|
|
502
|
+
}
|
|
503
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
reader.skip(tag & 7);
|
|
507
|
+
}
|
|
508
|
+
return message;
|
|
509
|
+
},
|
|
510
|
+
fromJSON(object) {
|
|
511
|
+
return { workflow: isSet(object.workflow) ? exports.Workflow.fromJSON(object.workflow) : undefined };
|
|
512
|
+
},
|
|
513
|
+
toJSON(message) {
|
|
514
|
+
const obj = {};
|
|
515
|
+
if (message.workflow !== undefined) {
|
|
516
|
+
obj.workflow = exports.Workflow.toJSON(message.workflow);
|
|
517
|
+
}
|
|
518
|
+
return obj;
|
|
519
|
+
},
|
|
520
|
+
create(base) {
|
|
521
|
+
return exports.UpdateWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
522
|
+
},
|
|
523
|
+
fromPartial(object) {
|
|
524
|
+
const message = createBaseUpdateWorkflowResponse();
|
|
525
|
+
message.workflow = (object.workflow !== undefined && object.workflow !== null)
|
|
526
|
+
? exports.Workflow.fromPartial(object.workflow)
|
|
527
|
+
: undefined;
|
|
528
|
+
return message;
|
|
529
|
+
},
|
|
530
|
+
};
|
|
531
|
+
function createBaseListWorkflowsRequest() {
|
|
532
|
+
return { pageSize: 0, pageOffset: 0 };
|
|
533
|
+
}
|
|
534
|
+
exports.ListWorkflowsRequest = {
|
|
535
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
536
|
+
if (message.pageSize !== 0) {
|
|
537
|
+
writer.uint32(8).int32(message.pageSize);
|
|
538
|
+
}
|
|
539
|
+
if (message.pageOffset !== 0) {
|
|
540
|
+
writer.uint32(16).int32(message.pageOffset);
|
|
541
|
+
}
|
|
542
|
+
return writer;
|
|
543
|
+
},
|
|
544
|
+
decode(input, length) {
|
|
545
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
546
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
547
|
+
const message = createBaseListWorkflowsRequest();
|
|
548
|
+
while (reader.pos < end) {
|
|
549
|
+
const tag = reader.uint32();
|
|
550
|
+
switch (tag >>> 3) {
|
|
551
|
+
case 1: {
|
|
552
|
+
if (tag !== 8) {
|
|
3234
553
|
break;
|
|
3235
554
|
}
|
|
3236
|
-
message.
|
|
555
|
+
message.pageSize = reader.int32();
|
|
3237
556
|
continue;
|
|
3238
557
|
}
|
|
3239
|
-
case
|
|
3240
|
-
if (tag !==
|
|
558
|
+
case 2: {
|
|
559
|
+
if (tag !== 16) {
|
|
3241
560
|
break;
|
|
3242
561
|
}
|
|
3243
|
-
message.
|
|
562
|
+
message.pageOffset = reader.int32();
|
|
3244
563
|
continue;
|
|
3245
564
|
}
|
|
3246
565
|
}
|
|
@@ -3253,155 +572,140 @@ exports.WorkflowRunEvent = {
|
|
|
3253
572
|
},
|
|
3254
573
|
fromJSON(object) {
|
|
3255
574
|
return {
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
: "",
|
|
3267
|
-
workflowStepRunId: isSet(object.workflowStepRunId)
|
|
3268
|
-
? globalThis.String(object.workflowStepRunId)
|
|
3269
|
-
: isSet(object.workflow_step_run_id)
|
|
3270
|
-
? globalThis.String(object.workflow_step_run_id)
|
|
3271
|
-
: "",
|
|
3272
|
-
agentRunId: isSet(object.agentRunId)
|
|
3273
|
-
? globalThis.String(object.agentRunId)
|
|
3274
|
-
: isSet(object.agent_run_id)
|
|
3275
|
-
? globalThis.String(object.agent_run_id)
|
|
3276
|
-
: "",
|
|
3277
|
-
sequence: isSet(object.sequence) ? globalThis.Number(object.sequence) : 0,
|
|
3278
|
-
kind: isSet(object.kind) ? workflowRunEventKindFromJSON(object.kind) : 0,
|
|
3279
|
-
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
3280
|
-
payload: isObject(object.payload) ? object.payload : undefined,
|
|
3281
|
-
createdAt: isSet(object.createdAt)
|
|
3282
|
-
? fromJsonTimestamp(object.createdAt)
|
|
3283
|
-
: isSet(object.created_at)
|
|
3284
|
-
? fromJsonTimestamp(object.created_at)
|
|
3285
|
-
: undefined,
|
|
575
|
+
pageSize: isSet(object.pageSize)
|
|
576
|
+
? globalThis.Number(object.pageSize)
|
|
577
|
+
: isSet(object.page_size)
|
|
578
|
+
? globalThis.Number(object.page_size)
|
|
579
|
+
: 0,
|
|
580
|
+
pageOffset: isSet(object.pageOffset)
|
|
581
|
+
? globalThis.Number(object.pageOffset)
|
|
582
|
+
: isSet(object.page_offset)
|
|
583
|
+
? globalThis.Number(object.page_offset)
|
|
584
|
+
: 0,
|
|
3286
585
|
};
|
|
3287
586
|
},
|
|
3288
587
|
toJSON(message) {
|
|
3289
588
|
const obj = {};
|
|
3290
|
-
if (message.
|
|
3291
|
-
obj.
|
|
589
|
+
if (message.pageSize !== 0) {
|
|
590
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
3292
591
|
}
|
|
3293
|
-
if (message.
|
|
3294
|
-
obj.
|
|
592
|
+
if (message.pageOffset !== 0) {
|
|
593
|
+
obj.pageOffset = Math.round(message.pageOffset);
|
|
3295
594
|
}
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
595
|
+
return obj;
|
|
596
|
+
},
|
|
597
|
+
create(base) {
|
|
598
|
+
return exports.ListWorkflowsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
599
|
+
},
|
|
600
|
+
fromPartial(object) {
|
|
601
|
+
var _a, _b;
|
|
602
|
+
const message = createBaseListWorkflowsRequest();
|
|
603
|
+
message.pageSize = (_a = object.pageSize) !== null && _a !== void 0 ? _a : 0;
|
|
604
|
+
message.pageOffset = (_b = object.pageOffset) !== null && _b !== void 0 ? _b : 0;
|
|
605
|
+
return message;
|
|
606
|
+
},
|
|
607
|
+
};
|
|
608
|
+
function createBaseListWorkflowsResponse() {
|
|
609
|
+
return { workflows: [] };
|
|
610
|
+
}
|
|
611
|
+
exports.ListWorkflowsResponse = {
|
|
612
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
613
|
+
for (const v of message.workflows) {
|
|
614
|
+
exports.Workflow.encode(v, writer.uint32(10).fork()).join();
|
|
3313
615
|
}
|
|
3314
|
-
|
|
3315
|
-
|
|
616
|
+
return writer;
|
|
617
|
+
},
|
|
618
|
+
decode(input, length) {
|
|
619
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
620
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
621
|
+
const message = createBaseListWorkflowsResponse();
|
|
622
|
+
while (reader.pos < end) {
|
|
623
|
+
const tag = reader.uint32();
|
|
624
|
+
switch (tag >>> 3) {
|
|
625
|
+
case 1: {
|
|
626
|
+
if (tag !== 10) {
|
|
627
|
+
break;
|
|
628
|
+
}
|
|
629
|
+
message.workflows.push(exports.Workflow.decode(reader, reader.uint32()));
|
|
630
|
+
continue;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
636
|
+
reader.skip(tag & 7);
|
|
3316
637
|
}
|
|
3317
|
-
|
|
3318
|
-
|
|
638
|
+
return message;
|
|
639
|
+
},
|
|
640
|
+
fromJSON(object) {
|
|
641
|
+
return {
|
|
642
|
+
workflows: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.workflows)
|
|
643
|
+
? object.workflows.map((e) => exports.Workflow.fromJSON(e))
|
|
644
|
+
: [],
|
|
645
|
+
};
|
|
646
|
+
},
|
|
647
|
+
toJSON(message) {
|
|
648
|
+
var _a;
|
|
649
|
+
const obj = {};
|
|
650
|
+
if ((_a = message.workflows) === null || _a === void 0 ? void 0 : _a.length) {
|
|
651
|
+
obj.workflows = message.workflows.map((e) => exports.Workflow.toJSON(e));
|
|
3319
652
|
}
|
|
3320
653
|
return obj;
|
|
3321
654
|
},
|
|
3322
655
|
create(base) {
|
|
3323
|
-
return exports.
|
|
656
|
+
return exports.ListWorkflowsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3324
657
|
},
|
|
3325
658
|
fromPartial(object) {
|
|
3326
|
-
var _a
|
|
3327
|
-
const message =
|
|
3328
|
-
message.
|
|
3329
|
-
message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
|
|
3330
|
-
message.workflowRunId = (_c = object.workflowRunId) !== null && _c !== void 0 ? _c : "";
|
|
3331
|
-
message.workflowStepRunId = (_d = object.workflowStepRunId) !== null && _d !== void 0 ? _d : "";
|
|
3332
|
-
message.agentRunId = (_e = object.agentRunId) !== null && _e !== void 0 ? _e : "";
|
|
3333
|
-
message.sequence = (_f = object.sequence) !== null && _f !== void 0 ? _f : 0;
|
|
3334
|
-
message.kind = (_g = object.kind) !== null && _g !== void 0 ? _g : 0;
|
|
3335
|
-
message.message = (_h = object.message) !== null && _h !== void 0 ? _h : "";
|
|
3336
|
-
message.payload = (_j = object.payload) !== null && _j !== void 0 ? _j : undefined;
|
|
3337
|
-
message.createdAt = (_k = object.createdAt) !== null && _k !== void 0 ? _k : undefined;
|
|
659
|
+
var _a;
|
|
660
|
+
const message = createBaseListWorkflowsResponse();
|
|
661
|
+
message.workflows = ((_a = object.workflows) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Workflow.fromPartial(e))) || [];
|
|
3338
662
|
return message;
|
|
3339
663
|
},
|
|
3340
664
|
};
|
|
3341
|
-
function
|
|
665
|
+
function createBaseWorkflow() {
|
|
3342
666
|
return {
|
|
3343
667
|
id: "",
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
arguments: undefined,
|
|
3352
|
-
result: undefined,
|
|
3353
|
-
errorCode: "",
|
|
3354
|
-
safeErrorMessage: "",
|
|
3355
|
-
createdAt: undefined,
|
|
668
|
+
orgId: "",
|
|
669
|
+
slug: "",
|
|
670
|
+
name: "",
|
|
671
|
+
description: "",
|
|
672
|
+
status: 0,
|
|
673
|
+
definition: undefined,
|
|
674
|
+
metadata: undefined,
|
|
3356
675
|
};
|
|
3357
676
|
}
|
|
3358
|
-
exports.
|
|
677
|
+
exports.Workflow = {
|
|
3359
678
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3360
679
|
if (message.id !== "") {
|
|
3361
680
|
writer.uint32(10).string(message.id);
|
|
3362
681
|
}
|
|
3363
|
-
if (message.
|
|
3364
|
-
writer.uint32(18).string(message.
|
|
3365
|
-
}
|
|
3366
|
-
if (message.workflowRunId !== "") {
|
|
3367
|
-
writer.uint32(26).string(message.workflowRunId);
|
|
3368
|
-
}
|
|
3369
|
-
if (message.workflowStepRunId !== "") {
|
|
3370
|
-
writer.uint32(34).string(message.workflowStepRunId);
|
|
3371
|
-
}
|
|
3372
|
-
if (message.agentRunId !== "") {
|
|
3373
|
-
writer.uint32(42).string(message.agentRunId);
|
|
3374
|
-
}
|
|
3375
|
-
if (message.toolCallId !== "") {
|
|
3376
|
-
writer.uint32(50).string(message.toolCallId);
|
|
682
|
+
if (message.orgId !== "") {
|
|
683
|
+
writer.uint32(18).string(message.orgId);
|
|
3377
684
|
}
|
|
3378
|
-
if (message.
|
|
3379
|
-
writer.uint32(
|
|
3380
|
-
}
|
|
3381
|
-
if (message.state !== 0) {
|
|
3382
|
-
writer.uint32(64).int32(message.state);
|
|
685
|
+
if (message.slug !== "") {
|
|
686
|
+
writer.uint32(26).string(message.slug);
|
|
3383
687
|
}
|
|
3384
|
-
if (message.
|
|
3385
|
-
|
|
688
|
+
if (message.name !== "") {
|
|
689
|
+
writer.uint32(34).string(message.name);
|
|
3386
690
|
}
|
|
3387
|
-
if (message.
|
|
3388
|
-
|
|
691
|
+
if (message.description !== "") {
|
|
692
|
+
writer.uint32(42).string(message.description);
|
|
3389
693
|
}
|
|
3390
|
-
if (message.
|
|
3391
|
-
writer.uint32(
|
|
694
|
+
if (message.status !== 0) {
|
|
695
|
+
writer.uint32(48).int32(message.status);
|
|
3392
696
|
}
|
|
3393
|
-
if (message.
|
|
3394
|
-
writer.uint32(
|
|
697
|
+
if (message.definition !== undefined) {
|
|
698
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.definition), writer.uint32(58).fork()).join();
|
|
3395
699
|
}
|
|
3396
|
-
if (message.
|
|
3397
|
-
|
|
700
|
+
if (message.metadata !== undefined) {
|
|
701
|
+
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(66).fork()).join();
|
|
3398
702
|
}
|
|
3399
703
|
return writer;
|
|
3400
704
|
},
|
|
3401
705
|
decode(input, length) {
|
|
3402
706
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3403
707
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3404
|
-
const message =
|
|
708
|
+
const message = createBaseWorkflow();
|
|
3405
709
|
while (reader.pos < end) {
|
|
3406
710
|
const tag = reader.uint32();
|
|
3407
711
|
switch (tag >>> 3) {
|
|
@@ -3416,84 +720,49 @@ exports.ToolCallEvent = {
|
|
|
3416
720
|
if (tag !== 18) {
|
|
3417
721
|
break;
|
|
3418
722
|
}
|
|
3419
|
-
message.
|
|
723
|
+
message.orgId = reader.string();
|
|
3420
724
|
continue;
|
|
3421
725
|
}
|
|
3422
726
|
case 3: {
|
|
3423
727
|
if (tag !== 26) {
|
|
3424
728
|
break;
|
|
3425
729
|
}
|
|
3426
|
-
message.
|
|
730
|
+
message.slug = reader.string();
|
|
3427
731
|
continue;
|
|
3428
732
|
}
|
|
3429
733
|
case 4: {
|
|
3430
734
|
if (tag !== 34) {
|
|
3431
735
|
break;
|
|
3432
736
|
}
|
|
3433
|
-
message.
|
|
737
|
+
message.name = reader.string();
|
|
3434
738
|
continue;
|
|
3435
739
|
}
|
|
3436
740
|
case 5: {
|
|
3437
741
|
if (tag !== 42) {
|
|
3438
742
|
break;
|
|
3439
743
|
}
|
|
3440
|
-
message.
|
|
744
|
+
message.description = reader.string();
|
|
3441
745
|
continue;
|
|
3442
746
|
}
|
|
3443
747
|
case 6: {
|
|
3444
|
-
if (tag !==
|
|
748
|
+
if (tag !== 48) {
|
|
3445
749
|
break;
|
|
3446
750
|
}
|
|
3447
|
-
message.
|
|
751
|
+
message.status = reader.int32();
|
|
3448
752
|
continue;
|
|
3449
753
|
}
|
|
3450
754
|
case 7: {
|
|
3451
755
|
if (tag !== 58) {
|
|
3452
756
|
break;
|
|
3453
757
|
}
|
|
3454
|
-
message.
|
|
758
|
+
message.definition = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
3455
759
|
continue;
|
|
3456
760
|
}
|
|
3457
761
|
case 8: {
|
|
3458
|
-
if (tag !==
|
|
3459
|
-
break;
|
|
3460
|
-
}
|
|
3461
|
-
message.state = reader.int32();
|
|
3462
|
-
continue;
|
|
3463
|
-
}
|
|
3464
|
-
case 9: {
|
|
3465
|
-
if (tag !== 74) {
|
|
3466
|
-
break;
|
|
3467
|
-
}
|
|
3468
|
-
message.arguments = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
3469
|
-
continue;
|
|
3470
|
-
}
|
|
3471
|
-
case 10: {
|
|
3472
|
-
if (tag !== 82) {
|
|
3473
|
-
break;
|
|
3474
|
-
}
|
|
3475
|
-
message.result = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
3476
|
-
continue;
|
|
3477
|
-
}
|
|
3478
|
-
case 11: {
|
|
3479
|
-
if (tag !== 90) {
|
|
3480
|
-
break;
|
|
3481
|
-
}
|
|
3482
|
-
message.errorCode = reader.string();
|
|
3483
|
-
continue;
|
|
3484
|
-
}
|
|
3485
|
-
case 12: {
|
|
3486
|
-
if (tag !== 98) {
|
|
3487
|
-
break;
|
|
3488
|
-
}
|
|
3489
|
-
message.safeErrorMessage = reader.string();
|
|
3490
|
-
continue;
|
|
3491
|
-
}
|
|
3492
|
-
case 13: {
|
|
3493
|
-
if (tag !== 106) {
|
|
762
|
+
if (tag !== 66) {
|
|
3494
763
|
break;
|
|
3495
764
|
}
|
|
3496
|
-
message.
|
|
765
|
+
message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
3497
766
|
continue;
|
|
3498
767
|
}
|
|
3499
768
|
}
|
|
@@ -3507,54 +776,17 @@ exports.ToolCallEvent = {
|
|
|
3507
776
|
fromJSON(object) {
|
|
3508
777
|
return {
|
|
3509
778
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
3510
|
-
|
|
3511
|
-
? globalThis.String(object.
|
|
3512
|
-
: isSet(object.
|
|
3513
|
-
? globalThis.String(object.
|
|
3514
|
-
: "",
|
|
3515
|
-
workflowRunId: isSet(object.workflowRunId)
|
|
3516
|
-
? globalThis.String(object.workflowRunId)
|
|
3517
|
-
: isSet(object.workflow_run_id)
|
|
3518
|
-
? globalThis.String(object.workflow_run_id)
|
|
3519
|
-
: "",
|
|
3520
|
-
workflowStepRunId: isSet(object.workflowStepRunId)
|
|
3521
|
-
? globalThis.String(object.workflowStepRunId)
|
|
3522
|
-
: isSet(object.workflow_step_run_id)
|
|
3523
|
-
? globalThis.String(object.workflow_step_run_id)
|
|
779
|
+
orgId: isSet(object.orgId)
|
|
780
|
+
? globalThis.String(object.orgId)
|
|
781
|
+
: isSet(object.org_id)
|
|
782
|
+
? globalThis.String(object.org_id)
|
|
3524
783
|
: "",
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
? globalThis.String(object.toolCallId)
|
|
3532
|
-
: isSet(object.tool_call_id)
|
|
3533
|
-
? globalThis.String(object.tool_call_id)
|
|
3534
|
-
: "",
|
|
3535
|
-
toolName: isSet(object.toolName)
|
|
3536
|
-
? globalThis.String(object.toolName)
|
|
3537
|
-
: isSet(object.tool_name)
|
|
3538
|
-
? globalThis.String(object.tool_name)
|
|
3539
|
-
: "",
|
|
3540
|
-
state: isSet(object.state) ? toolCallStateFromJSON(object.state) : 0,
|
|
3541
|
-
arguments: isObject(object.arguments) ? object.arguments : undefined,
|
|
3542
|
-
result: isObject(object.result) ? object.result : undefined,
|
|
3543
|
-
errorCode: isSet(object.errorCode)
|
|
3544
|
-
? globalThis.String(object.errorCode)
|
|
3545
|
-
: isSet(object.error_code)
|
|
3546
|
-
? globalThis.String(object.error_code)
|
|
3547
|
-
: "",
|
|
3548
|
-
safeErrorMessage: isSet(object.safeErrorMessage)
|
|
3549
|
-
? globalThis.String(object.safeErrorMessage)
|
|
3550
|
-
: isSet(object.safe_error_message)
|
|
3551
|
-
? globalThis.String(object.safe_error_message)
|
|
3552
|
-
: "",
|
|
3553
|
-
createdAt: isSet(object.createdAt)
|
|
3554
|
-
? fromJsonTimestamp(object.createdAt)
|
|
3555
|
-
: isSet(object.created_at)
|
|
3556
|
-
? fromJsonTimestamp(object.created_at)
|
|
3557
|
-
: undefined,
|
|
784
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
785
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
786
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
787
|
+
status: isSet(object.status) ? workflowStatusFromJSON(object.status) : 0,
|
|
788
|
+
definition: isObject(object.definition) ? object.definition : undefined,
|
|
789
|
+
metadata: isObject(object.metadata) ? object.metadata : undefined,
|
|
3558
790
|
};
|
|
3559
791
|
},
|
|
3560
792
|
toJSON(message) {
|
|
@@ -3562,97 +794,394 @@ exports.ToolCallEvent = {
|
|
|
3562
794
|
if (message.id !== "") {
|
|
3563
795
|
obj.id = message.id;
|
|
3564
796
|
}
|
|
3565
|
-
if (message.
|
|
3566
|
-
obj.
|
|
3567
|
-
}
|
|
3568
|
-
if (message.workflowRunId !== "") {
|
|
3569
|
-
obj.workflowRunId = message.workflowRunId;
|
|
3570
|
-
}
|
|
3571
|
-
if (message.workflowStepRunId !== "") {
|
|
3572
|
-
obj.workflowStepRunId = message.workflowStepRunId;
|
|
3573
|
-
}
|
|
3574
|
-
if (message.agentRunId !== "") {
|
|
3575
|
-
obj.agentRunId = message.agentRunId;
|
|
797
|
+
if (message.orgId !== "") {
|
|
798
|
+
obj.orgId = message.orgId;
|
|
3576
799
|
}
|
|
3577
|
-
if (message.
|
|
3578
|
-
obj.
|
|
3579
|
-
}
|
|
3580
|
-
if (message.toolName !== "") {
|
|
3581
|
-
obj.toolName = message.toolName;
|
|
3582
|
-
}
|
|
3583
|
-
if (message.state !== 0) {
|
|
3584
|
-
obj.state = toolCallStateToJSON(message.state);
|
|
800
|
+
if (message.slug !== "") {
|
|
801
|
+
obj.slug = message.slug;
|
|
3585
802
|
}
|
|
3586
|
-
if (message.
|
|
3587
|
-
obj.
|
|
803
|
+
if (message.name !== "") {
|
|
804
|
+
obj.name = message.name;
|
|
3588
805
|
}
|
|
3589
|
-
if (message.
|
|
3590
|
-
obj.
|
|
806
|
+
if (message.description !== "") {
|
|
807
|
+
obj.description = message.description;
|
|
3591
808
|
}
|
|
3592
|
-
if (message.
|
|
3593
|
-
obj.
|
|
809
|
+
if (message.status !== 0) {
|
|
810
|
+
obj.status = workflowStatusToJSON(message.status);
|
|
3594
811
|
}
|
|
3595
|
-
if (message.
|
|
3596
|
-
obj.
|
|
812
|
+
if (message.definition !== undefined) {
|
|
813
|
+
obj.definition = message.definition;
|
|
3597
814
|
}
|
|
3598
|
-
if (message.
|
|
3599
|
-
obj.
|
|
815
|
+
if (message.metadata !== undefined) {
|
|
816
|
+
obj.metadata = message.metadata;
|
|
3600
817
|
}
|
|
3601
818
|
return obj;
|
|
3602
819
|
},
|
|
3603
820
|
create(base) {
|
|
3604
|
-
return exports.
|
|
821
|
+
return exports.Workflow.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3605
822
|
},
|
|
3606
823
|
fromPartial(object) {
|
|
3607
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
3608
|
-
const message =
|
|
824
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
825
|
+
const message = createBaseWorkflow();
|
|
3609
826
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
3610
|
-
message.
|
|
3611
|
-
message.
|
|
3612
|
-
message.
|
|
3613
|
-
message.
|
|
3614
|
-
message.
|
|
3615
|
-
message.
|
|
3616
|
-
message.
|
|
3617
|
-
message.arguments = (_j = object.arguments) !== null && _j !== void 0 ? _j : undefined;
|
|
3618
|
-
message.result = (_k = object.result) !== null && _k !== void 0 ? _k : undefined;
|
|
3619
|
-
message.errorCode = (_l = object.errorCode) !== null && _l !== void 0 ? _l : "";
|
|
3620
|
-
message.safeErrorMessage = (_m = object.safeErrorMessage) !== null && _m !== void 0 ? _m : "";
|
|
3621
|
-
message.createdAt = (_o = object.createdAt) !== null && _o !== void 0 ? _o : undefined;
|
|
827
|
+
message.orgId = (_b = object.orgId) !== null && _b !== void 0 ? _b : "";
|
|
828
|
+
message.slug = (_c = object.slug) !== null && _c !== void 0 ? _c : "";
|
|
829
|
+
message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
|
|
830
|
+
message.description = (_e = object.description) !== null && _e !== void 0 ? _e : "";
|
|
831
|
+
message.status = (_f = object.status) !== null && _f !== void 0 ? _f : 0;
|
|
832
|
+
message.definition = (_g = object.definition) !== null && _g !== void 0 ? _g : undefined;
|
|
833
|
+
message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : undefined;
|
|
3622
834
|
return message;
|
|
3623
835
|
},
|
|
3624
836
|
};
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
}
|
|
3635
|
-
function fromJsonTimestamp(o) {
|
|
3636
|
-
if (o instanceof globalThis.Date) {
|
|
3637
|
-
return o;
|
|
837
|
+
exports.WorkflowServiceServiceName = "weaveapi.workflow.v1.WorkflowService";
|
|
838
|
+
class WorkflowServiceClientImpl {
|
|
839
|
+
constructor(rpc, opts) {
|
|
840
|
+
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.WorkflowServiceServiceName;
|
|
841
|
+
this.rpc = rpc;
|
|
842
|
+
this.CreateWorkflow = this.CreateWorkflow.bind(this);
|
|
843
|
+
this.GetWorkflow = this.GetWorkflow.bind(this);
|
|
844
|
+
this.UpdateWorkflow = this.UpdateWorkflow.bind(this);
|
|
845
|
+
this.ListWorkflows = this.ListWorkflows.bind(this);
|
|
3638
846
|
}
|
|
3639
|
-
|
|
3640
|
-
|
|
847
|
+
CreateWorkflow(request) {
|
|
848
|
+
const data = exports.CreateWorkflowRequest.encode(request).finish();
|
|
849
|
+
const promise = this.rpc.request(this.service, "CreateWorkflow", data);
|
|
850
|
+
return promise.then((data) => exports.CreateWorkflowResponse.decode(new wire_1.BinaryReader(data)));
|
|
3641
851
|
}
|
|
3642
|
-
|
|
3643
|
-
|
|
852
|
+
GetWorkflow(request) {
|
|
853
|
+
const data = exports.GetWorkflowRequest.encode(request).finish();
|
|
854
|
+
const promise = this.rpc.request(this.service, "GetWorkflow", data);
|
|
855
|
+
return promise.then((data) => exports.GetWorkflowResponse.decode(new wire_1.BinaryReader(data)));
|
|
3644
856
|
}
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
857
|
+
UpdateWorkflow(request) {
|
|
858
|
+
const data = exports.UpdateWorkflowRequest.encode(request).finish();
|
|
859
|
+
const promise = this.rpc.request(this.service, "UpdateWorkflow", data);
|
|
860
|
+
return promise.then((data) => exports.UpdateWorkflowResponse.decode(new wire_1.BinaryReader(data)));
|
|
3650
861
|
}
|
|
3651
|
-
|
|
3652
|
-
|
|
862
|
+
ListWorkflows(request) {
|
|
863
|
+
const data = exports.ListWorkflowsRequest.encode(request).finish();
|
|
864
|
+
const promise = this.rpc.request(this.service, "ListWorkflows", data);
|
|
865
|
+
return promise.then((data) => exports.ListWorkflowsResponse.decode(new wire_1.BinaryReader(data)));
|
|
3653
866
|
}
|
|
3654
|
-
return num;
|
|
3655
867
|
}
|
|
868
|
+
exports.WorkflowServiceClientImpl = WorkflowServiceClientImpl;
|
|
869
|
+
exports.WorkflowServiceDefinition = {
|
|
870
|
+
name: "WorkflowService",
|
|
871
|
+
fullName: "weaveapi.workflow.v1.WorkflowService",
|
|
872
|
+
methods: {
|
|
873
|
+
createWorkflow: {
|
|
874
|
+
name: "CreateWorkflow",
|
|
875
|
+
requestType: exports.CreateWorkflowRequest,
|
|
876
|
+
requestStream: false,
|
|
877
|
+
responseType: exports.CreateWorkflowResponse,
|
|
878
|
+
responseStream: false,
|
|
879
|
+
options: {
|
|
880
|
+
_unknownFields: {
|
|
881
|
+
408002: [
|
|
882
|
+
new Uint8Array([
|
|
883
|
+
39,
|
|
884
|
+
10,
|
|
885
|
+
12,
|
|
886
|
+
111,
|
|
887
|
+
114,
|
|
888
|
+
103,
|
|
889
|
+
97,
|
|
890
|
+
110,
|
|
891
|
+
105,
|
|
892
|
+
122,
|
|
893
|
+
97,
|
|
894
|
+
116,
|
|
895
|
+
105,
|
|
896
|
+
111,
|
|
897
|
+
110,
|
|
898
|
+
18,
|
|
899
|
+
19,
|
|
900
|
+
99,
|
|
901
|
+
97,
|
|
902
|
+
110,
|
|
903
|
+
95,
|
|
904
|
+
99,
|
|
905
|
+
114,
|
|
906
|
+
101,
|
|
907
|
+
97,
|
|
908
|
+
116,
|
|
909
|
+
101,
|
|
910
|
+
95,
|
|
911
|
+
119,
|
|
912
|
+
111,
|
|
913
|
+
114,
|
|
914
|
+
107,
|
|
915
|
+
102,
|
|
916
|
+
108,
|
|
917
|
+
111,
|
|
918
|
+
119,
|
|
919
|
+
26,
|
|
920
|
+
2,
|
|
921
|
+
8,
|
|
922
|
+
1,
|
|
923
|
+
]),
|
|
924
|
+
],
|
|
925
|
+
578365826: [
|
|
926
|
+
new Uint8Array([
|
|
927
|
+
18,
|
|
928
|
+
58,
|
|
929
|
+
1,
|
|
930
|
+
42,
|
|
931
|
+
34,
|
|
932
|
+
13,
|
|
933
|
+
47,
|
|
934
|
+
118,
|
|
935
|
+
49,
|
|
936
|
+
47,
|
|
937
|
+
119,
|
|
938
|
+
111,
|
|
939
|
+
114,
|
|
940
|
+
107,
|
|
941
|
+
102,
|
|
942
|
+
108,
|
|
943
|
+
111,
|
|
944
|
+
119,
|
|
945
|
+
115,
|
|
946
|
+
]),
|
|
947
|
+
],
|
|
948
|
+
},
|
|
949
|
+
},
|
|
950
|
+
},
|
|
951
|
+
getWorkflow: {
|
|
952
|
+
name: "GetWorkflow",
|
|
953
|
+
requestType: exports.GetWorkflowRequest,
|
|
954
|
+
requestStream: false,
|
|
955
|
+
responseType: exports.GetWorkflowResponse,
|
|
956
|
+
responseStream: false,
|
|
957
|
+
options: {
|
|
958
|
+
_unknownFields: {
|
|
959
|
+
408002: [
|
|
960
|
+
new Uint8Array([
|
|
961
|
+
35,
|
|
962
|
+
10,
|
|
963
|
+
8,
|
|
964
|
+
119,
|
|
965
|
+
111,
|
|
966
|
+
114,
|
|
967
|
+
107,
|
|
968
|
+
102,
|
|
969
|
+
108,
|
|
970
|
+
111,
|
|
971
|
+
119,
|
|
972
|
+
18,
|
|
973
|
+
8,
|
|
974
|
+
99,
|
|
975
|
+
97,
|
|
976
|
+
110,
|
|
977
|
+
95,
|
|
978
|
+
114,
|
|
979
|
+
101,
|
|
980
|
+
97,
|
|
981
|
+
100,
|
|
982
|
+
26,
|
|
983
|
+
13,
|
|
984
|
+
18,
|
|
985
|
+
11,
|
|
986
|
+
119,
|
|
987
|
+
111,
|
|
988
|
+
114,
|
|
989
|
+
107,
|
|
990
|
+
102,
|
|
991
|
+
108,
|
|
992
|
+
111,
|
|
993
|
+
119,
|
|
994
|
+
95,
|
|
995
|
+
105,
|
|
996
|
+
100,
|
|
997
|
+
]),
|
|
998
|
+
],
|
|
999
|
+
578365826: [
|
|
1000
|
+
new Uint8Array([
|
|
1001
|
+
29,
|
|
1002
|
+
18,
|
|
1003
|
+
27,
|
|
1004
|
+
47,
|
|
1005
|
+
118,
|
|
1006
|
+
49,
|
|
1007
|
+
47,
|
|
1008
|
+
119,
|
|
1009
|
+
111,
|
|
1010
|
+
114,
|
|
1011
|
+
107,
|
|
1012
|
+
102,
|
|
1013
|
+
108,
|
|
1014
|
+
111,
|
|
1015
|
+
119,
|
|
1016
|
+
115,
|
|
1017
|
+
47,
|
|
1018
|
+
123,
|
|
1019
|
+
119,
|
|
1020
|
+
111,
|
|
1021
|
+
114,
|
|
1022
|
+
107,
|
|
1023
|
+
102,
|
|
1024
|
+
108,
|
|
1025
|
+
111,
|
|
1026
|
+
119,
|
|
1027
|
+
95,
|
|
1028
|
+
105,
|
|
1029
|
+
100,
|
|
1030
|
+
125,
|
|
1031
|
+
]),
|
|
1032
|
+
],
|
|
1033
|
+
},
|
|
1034
|
+
},
|
|
1035
|
+
},
|
|
1036
|
+
updateWorkflow: {
|
|
1037
|
+
name: "UpdateWorkflow",
|
|
1038
|
+
requestType: exports.UpdateWorkflowRequest,
|
|
1039
|
+
requestStream: false,
|
|
1040
|
+
responseType: exports.UpdateWorkflowResponse,
|
|
1041
|
+
responseStream: false,
|
|
1042
|
+
options: {
|
|
1043
|
+
_unknownFields: {
|
|
1044
|
+
408002: [
|
|
1045
|
+
new Uint8Array([
|
|
1046
|
+
37,
|
|
1047
|
+
10,
|
|
1048
|
+
8,
|
|
1049
|
+
119,
|
|
1050
|
+
111,
|
|
1051
|
+
114,
|
|
1052
|
+
107,
|
|
1053
|
+
102,
|
|
1054
|
+
108,
|
|
1055
|
+
111,
|
|
1056
|
+
119,
|
|
1057
|
+
18,
|
|
1058
|
+
10,
|
|
1059
|
+
99,
|
|
1060
|
+
97,
|
|
1061
|
+
110,
|
|
1062
|
+
95,
|
|
1063
|
+
117,
|
|
1064
|
+
112,
|
|
1065
|
+
100,
|
|
1066
|
+
97,
|
|
1067
|
+
116,
|
|
1068
|
+
101,
|
|
1069
|
+
26,
|
|
1070
|
+
13,
|
|
1071
|
+
18,
|
|
1072
|
+
11,
|
|
1073
|
+
119,
|
|
1074
|
+
111,
|
|
1075
|
+
114,
|
|
1076
|
+
107,
|
|
1077
|
+
102,
|
|
1078
|
+
108,
|
|
1079
|
+
111,
|
|
1080
|
+
119,
|
|
1081
|
+
95,
|
|
1082
|
+
105,
|
|
1083
|
+
100,
|
|
1084
|
+
]),
|
|
1085
|
+
],
|
|
1086
|
+
578365826: [
|
|
1087
|
+
new Uint8Array([
|
|
1088
|
+
32,
|
|
1089
|
+
58,
|
|
1090
|
+
1,
|
|
1091
|
+
42,
|
|
1092
|
+
50,
|
|
1093
|
+
27,
|
|
1094
|
+
47,
|
|
1095
|
+
118,
|
|
1096
|
+
49,
|
|
1097
|
+
47,
|
|
1098
|
+
119,
|
|
1099
|
+
111,
|
|
1100
|
+
114,
|
|
1101
|
+
107,
|
|
1102
|
+
102,
|
|
1103
|
+
108,
|
|
1104
|
+
111,
|
|
1105
|
+
119,
|
|
1106
|
+
115,
|
|
1107
|
+
47,
|
|
1108
|
+
123,
|
|
1109
|
+
119,
|
|
1110
|
+
111,
|
|
1111
|
+
114,
|
|
1112
|
+
107,
|
|
1113
|
+
102,
|
|
1114
|
+
108,
|
|
1115
|
+
111,
|
|
1116
|
+
119,
|
|
1117
|
+
95,
|
|
1118
|
+
105,
|
|
1119
|
+
100,
|
|
1120
|
+
125,
|
|
1121
|
+
]),
|
|
1122
|
+
],
|
|
1123
|
+
},
|
|
1124
|
+
},
|
|
1125
|
+
},
|
|
1126
|
+
listWorkflows: {
|
|
1127
|
+
name: "ListWorkflows",
|
|
1128
|
+
requestType: exports.ListWorkflowsRequest,
|
|
1129
|
+
requestStream: false,
|
|
1130
|
+
responseType: exports.ListWorkflowsResponse,
|
|
1131
|
+
responseStream: false,
|
|
1132
|
+
options: {
|
|
1133
|
+
_unknownFields: {
|
|
1134
|
+
408002: [
|
|
1135
|
+
new Uint8Array([
|
|
1136
|
+
38,
|
|
1137
|
+
10,
|
|
1138
|
+
12,
|
|
1139
|
+
111,
|
|
1140
|
+
114,
|
|
1141
|
+
103,
|
|
1142
|
+
97,
|
|
1143
|
+
110,
|
|
1144
|
+
105,
|
|
1145
|
+
122,
|
|
1146
|
+
97,
|
|
1147
|
+
116,
|
|
1148
|
+
105,
|
|
1149
|
+
111,
|
|
1150
|
+
110,
|
|
1151
|
+
18,
|
|
1152
|
+
18,
|
|
1153
|
+
99,
|
|
1154
|
+
97,
|
|
1155
|
+
110,
|
|
1156
|
+
95,
|
|
1157
|
+
108,
|
|
1158
|
+
105,
|
|
1159
|
+
115,
|
|
1160
|
+
116,
|
|
1161
|
+
95,
|
|
1162
|
+
119,
|
|
1163
|
+
111,
|
|
1164
|
+
114,
|
|
1165
|
+
107,
|
|
1166
|
+
102,
|
|
1167
|
+
108,
|
|
1168
|
+
111,
|
|
1169
|
+
119,
|
|
1170
|
+
115,
|
|
1171
|
+
26,
|
|
1172
|
+
2,
|
|
1173
|
+
8,
|
|
1174
|
+
1,
|
|
1175
|
+
]),
|
|
1176
|
+
],
|
|
1177
|
+
578365826: [
|
|
1178
|
+
new Uint8Array([15, 18, 13, 47, 118, 49, 47, 119, 111, 114, 107, 102, 108, 111, 119, 115]),
|
|
1179
|
+
],
|
|
1180
|
+
},
|
|
1181
|
+
},
|
|
1182
|
+
},
|
|
1183
|
+
},
|
|
1184
|
+
};
|
|
3656
1185
|
function isObject(value) {
|
|
3657
1186
|
return typeof value === "object" && value !== null;
|
|
3658
1187
|
}
|