weave-typescript 0.12.0 → 0.14.0

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