weave-typescript 0.11.14 → 0.11.16

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 (75) hide show
  1. package/dist/weaveapi/data/v1/data.pb.d.ts +54 -0
  2. package/dist/weaveapi/data/v1/data.pb.js +411 -0
  3. package/dist/weaveapi/data/v1/service.pb.d.ts +296 -0
  4. package/dist/weaveapi/data/v1/service.pb.js +2779 -0
  5. package/dist/weaveapi/input/v1/input.pb.d.ts +77 -0
  6. package/dist/weaveapi/input/v1/input.pb.js +632 -0
  7. package/dist/weaveapi/input/v1/service.pb.d.ts +390 -0
  8. package/dist/weaveapi/input/v1/service.pb.js +3612 -0
  9. package/dist/weaveapi/integration/v1/integration.pb.d.ts +67 -0
  10. package/dist/weaveapi/integration/v1/integration.pb.js +486 -0
  11. package/dist/weaveapi/integration/v1/service.pb.d.ts +318 -0
  12. package/dist/weaveapi/integration/v1/service.pb.js +2994 -0
  13. package/dist/weaveapi/project/v1/project.pb.d.ts +1 -0
  14. package/dist/weaveapi/project/v1/project.pb.js +17 -1
  15. package/dist/weaveapi/project/v1/service.pb.d.ts +25 -0
  16. package/dist/weaveapi/project/v1/service.pb.js +248 -5
  17. package/dist/weaveapi/report/v1/report.pb.d.ts +81 -0
  18. package/dist/weaveapi/report/v1/report.pb.js +678 -0
  19. package/dist/weaveapi/report/v1/service.pb.d.ts +194 -0
  20. package/dist/weaveapi/report/v1/service.pb.js +1925 -0
  21. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +70 -0
  22. package/dist/weaveapi/requirement/v1/requirement.pb.js +570 -0
  23. package/dist/weaveapi/requirement/v1/service.pb.d.ts +390 -0
  24. package/dist/weaveapi/requirement/v1/service.pb.js +3638 -0
  25. package/dist/weaveapi/run/v1/run.pb.d.ts +117 -0
  26. package/dist/weaveapi/run/v1/run.pb.js +1155 -0
  27. package/dist/weaveapi/run/v1/service.pb.d.ts +229 -0
  28. package/dist/weaveapi/run/v1/service.pb.js +2428 -0
  29. package/dist/weaveapi/script/v1/script.pb.d.ts +102 -0
  30. package/dist/weaveapi/script/v1/script.pb.js +1025 -0
  31. package/dist/weaveapi/script/v1/service.pb.d.ts +502 -0
  32. package/dist/weaveapi/script/v1/service.pb.js +4873 -0
  33. package/dist/weaveapi/storage/v1/service.pb.d.ts +4 -0
  34. package/dist/weaveapi/storage/v1/service.pb.js +50 -7
  35. package/dist/weaveapi/storage/v1/storage.pb.d.ts +2 -0
  36. package/dist/weaveapi/storage/v1/storage.pb.js +23 -0
  37. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +75 -0
  38. package/dist/weaveapi/storage/v1/vcs.pb.js +864 -0
  39. package/dist/weaveapi/suite/v1/service.pb.d.ts +539 -0
  40. package/dist/weaveapi/suite/v1/service.pb.js +5281 -0
  41. package/dist/weaveapi/suite/v1/suite.pb.d.ts +92 -0
  42. package/dist/weaveapi/suite/v1/suite.pb.js +876 -0
  43. package/dist/weaveapi/testcase/v1/service.pb.d.ts +498 -0
  44. package/dist/weaveapi/testcase/v1/service.pb.js +4730 -0
  45. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +91 -0
  46. package/dist/weaveapi/testcase/v1/testcase.pb.js +794 -0
  47. package/dist/weaveapi/workflow/v1/service.pb.d.ts +26 -0
  48. package/dist/weaveapi/workflow/v1/service.pb.js +293 -5
  49. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +1 -0
  50. package/dist/weaveapi/workflow/v1/workflow.pb.js +17 -1
  51. package/dist/weavesql/weavedb/data_asset_sql.d.ts +206 -0
  52. package/dist/weavesql/weavedb/data_asset_sql.js +335 -0
  53. package/dist/weavesql/weavedb/input_sql.d.ts +293 -0
  54. package/dist/weavesql/weavedb/input_sql.js +500 -0
  55. package/dist/weavesql/weavedb/integration_sql.d.ts +236 -0
  56. package/dist/weavesql/weavedb/integration_sql.js +377 -0
  57. package/dist/weavesql/weavedb/project_sql.d.ts +29 -5
  58. package/dist/weavesql/weavedb/project_sql.js +73 -37
  59. package/dist/weavesql/weavedb/report_sql.d.ts +192 -0
  60. package/dist/weavesql/weavedb/report_sql.js +308 -0
  61. package/dist/weavesql/weavedb/requirement_sql.d.ts +231 -0
  62. package/dist/weavesql/weavedb/requirement_sql.js +399 -0
  63. package/dist/weavesql/weavedb/run_sql.d.ts +283 -0
  64. package/dist/weavesql/weavedb/run_sql.js +462 -0
  65. package/dist/weavesql/weavedb/suite_sql.d.ts +354 -0
  66. package/dist/weavesql/weavedb/suite_sql.js +631 -0
  67. package/dist/weavesql/weavedb/test_case_sql.d.ts +325 -0
  68. package/dist/weavesql/weavedb/test_case_sql.js +563 -0
  69. package/dist/weavesql/weavedb/test_script_sql.d.ts +354 -0
  70. package/dist/weavesql/weavedb/test_script_sql.js +605 -0
  71. package/dist/weavesql/weavedb/traceability_sql.d.ts +117 -0
  72. package/dist/weavesql/weavedb/traceability_sql.js +363 -0
  73. package/dist/weavesql/weavedb/workflow_sql.d.ts +30 -5
  74. package/dist/weavesql/weavedb/workflow_sql.js +76 -38
  75. package/package.json +1 -1
@@ -0,0 +1,2994 @@
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/integration/v1/service.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.IntegrationServiceDefinition = exports.IntegrationServiceClientImpl = exports.IntegrationServiceServiceName = exports.ValidateIntegrationEndpointResponse = exports.ValidateIntegrationEndpointRequest = exports.WorkflowIntegrationEndpointBinding = exports.ListWorkflowIntegrationEndpointBindingsResponse = exports.ListWorkflowIntegrationEndpointBindingsRequest = exports.DetachIntegrationEndpointFromWorkflowResponse = exports.DetachIntegrationEndpointFromWorkflowRequest = exports.AttachIntegrationEndpointToWorkflowResponse = exports.AttachIntegrationEndpointToWorkflowRequest = exports.DeleteIntegrationEndpointResponse = exports.DeleteIntegrationEndpointRequest = exports.ArchiveIntegrationEndpointResponse = exports.ArchiveIntegrationEndpointRequest = exports.UpdateIntegrationEndpointResponse = exports.UpdateIntegrationEndpointRequest = exports.ListIntegrationEndpointsResponse = exports.ListIntegrationEndpointsRequest = exports.GetIntegrationEndpointResponse = exports.GetIntegrationEndpointRequest = exports.CreateIntegrationEndpointResponse = exports.CreateIntegrationEndpointRequest = 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 integration_pb_1 = require("./integration.pb");
14
+ exports.protobufPackage = "weaveapi.integration.v1";
15
+ function createBaseCreateIntegrationEndpointRequest() {
16
+ return {
17
+ projectId: "",
18
+ name: "",
19
+ description: "",
20
+ integrationType: 0,
21
+ targetUri: "",
22
+ authReference: "",
23
+ config: undefined,
24
+ metadata: undefined,
25
+ };
26
+ }
27
+ exports.CreateIntegrationEndpointRequest = {
28
+ encode(message, writer = new wire_1.BinaryWriter()) {
29
+ if (message.projectId !== "") {
30
+ writer.uint32(10).string(message.projectId);
31
+ }
32
+ if (message.name !== "") {
33
+ writer.uint32(18).string(message.name);
34
+ }
35
+ if (message.description !== "") {
36
+ writer.uint32(26).string(message.description);
37
+ }
38
+ if (message.integrationType !== 0) {
39
+ writer.uint32(32).int32(message.integrationType);
40
+ }
41
+ if (message.targetUri !== "") {
42
+ writer.uint32(42).string(message.targetUri);
43
+ }
44
+ if (message.authReference !== "") {
45
+ writer.uint32(50).string(message.authReference);
46
+ }
47
+ if (message.config !== undefined) {
48
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.config), writer.uint32(58).fork()).join();
49
+ }
50
+ if (message.metadata !== undefined) {
51
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(66).fork()).join();
52
+ }
53
+ return writer;
54
+ },
55
+ decode(input, length) {
56
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
57
+ const end = length === undefined ? reader.len : reader.pos + length;
58
+ const message = createBaseCreateIntegrationEndpointRequest();
59
+ while (reader.pos < end) {
60
+ const tag = reader.uint32();
61
+ switch (tag >>> 3) {
62
+ case 1: {
63
+ if (tag !== 10) {
64
+ break;
65
+ }
66
+ message.projectId = reader.string();
67
+ continue;
68
+ }
69
+ case 2: {
70
+ if (tag !== 18) {
71
+ break;
72
+ }
73
+ message.name = reader.string();
74
+ continue;
75
+ }
76
+ case 3: {
77
+ if (tag !== 26) {
78
+ break;
79
+ }
80
+ message.description = reader.string();
81
+ continue;
82
+ }
83
+ case 4: {
84
+ if (tag !== 32) {
85
+ break;
86
+ }
87
+ message.integrationType = reader.int32();
88
+ continue;
89
+ }
90
+ case 5: {
91
+ if (tag !== 42) {
92
+ break;
93
+ }
94
+ message.targetUri = reader.string();
95
+ continue;
96
+ }
97
+ case 6: {
98
+ if (tag !== 50) {
99
+ break;
100
+ }
101
+ message.authReference = reader.string();
102
+ continue;
103
+ }
104
+ case 7: {
105
+ if (tag !== 58) {
106
+ break;
107
+ }
108
+ message.config = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
109
+ continue;
110
+ }
111
+ case 8: {
112
+ if (tag !== 66) {
113
+ break;
114
+ }
115
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
116
+ continue;
117
+ }
118
+ }
119
+ if ((tag & 7) === 4 || tag === 0) {
120
+ break;
121
+ }
122
+ reader.skip(tag & 7);
123
+ }
124
+ return message;
125
+ },
126
+ fromJSON(object) {
127
+ return {
128
+ projectId: isSet(object.projectId)
129
+ ? globalThis.String(object.projectId)
130
+ : isSet(object.project_id)
131
+ ? globalThis.String(object.project_id)
132
+ : "",
133
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
134
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
135
+ integrationType: isSet(object.integrationType)
136
+ ? (0, integration_pb_1.integrationTypeFromJSON)(object.integrationType)
137
+ : isSet(object.integration_type)
138
+ ? (0, integration_pb_1.integrationTypeFromJSON)(object.integration_type)
139
+ : 0,
140
+ targetUri: isSet(object.targetUri)
141
+ ? globalThis.String(object.targetUri)
142
+ : isSet(object.target_uri)
143
+ ? globalThis.String(object.target_uri)
144
+ : "",
145
+ authReference: isSet(object.authReference)
146
+ ? globalThis.String(object.authReference)
147
+ : isSet(object.auth_reference)
148
+ ? globalThis.String(object.auth_reference)
149
+ : "",
150
+ config: isObject(object.config) ? object.config : undefined,
151
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
152
+ };
153
+ },
154
+ toJSON(message) {
155
+ const obj = {};
156
+ if (message.projectId !== "") {
157
+ obj.projectId = message.projectId;
158
+ }
159
+ if (message.name !== "") {
160
+ obj.name = message.name;
161
+ }
162
+ if (message.description !== "") {
163
+ obj.description = message.description;
164
+ }
165
+ if (message.integrationType !== 0) {
166
+ obj.integrationType = (0, integration_pb_1.integrationTypeToJSON)(message.integrationType);
167
+ }
168
+ if (message.targetUri !== "") {
169
+ obj.targetUri = message.targetUri;
170
+ }
171
+ if (message.authReference !== "") {
172
+ obj.authReference = message.authReference;
173
+ }
174
+ if (message.config !== undefined) {
175
+ obj.config = message.config;
176
+ }
177
+ if (message.metadata !== undefined) {
178
+ obj.metadata = message.metadata;
179
+ }
180
+ return obj;
181
+ },
182
+ create(base) {
183
+ return exports.CreateIntegrationEndpointRequest.fromPartial(base !== null && base !== void 0 ? base : {});
184
+ },
185
+ fromPartial(object) {
186
+ var _a, _b, _c, _d, _e, _f, _g, _h;
187
+ const message = createBaseCreateIntegrationEndpointRequest();
188
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
189
+ message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
190
+ message.description = (_c = object.description) !== null && _c !== void 0 ? _c : "";
191
+ message.integrationType = (_d = object.integrationType) !== null && _d !== void 0 ? _d : 0;
192
+ message.targetUri = (_e = object.targetUri) !== null && _e !== void 0 ? _e : "";
193
+ message.authReference = (_f = object.authReference) !== null && _f !== void 0 ? _f : "";
194
+ message.config = (_g = object.config) !== null && _g !== void 0 ? _g : undefined;
195
+ message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : undefined;
196
+ return message;
197
+ },
198
+ };
199
+ function createBaseCreateIntegrationEndpointResponse() {
200
+ return { integrationEndpoint: undefined };
201
+ }
202
+ exports.CreateIntegrationEndpointResponse = {
203
+ encode(message, writer = new wire_1.BinaryWriter()) {
204
+ if (message.integrationEndpoint !== undefined) {
205
+ integration_pb_1.IntegrationEndpoint.encode(message.integrationEndpoint, writer.uint32(10).fork()).join();
206
+ }
207
+ return writer;
208
+ },
209
+ decode(input, length) {
210
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
211
+ const end = length === undefined ? reader.len : reader.pos + length;
212
+ const message = createBaseCreateIntegrationEndpointResponse();
213
+ while (reader.pos < end) {
214
+ const tag = reader.uint32();
215
+ switch (tag >>> 3) {
216
+ case 1: {
217
+ if (tag !== 10) {
218
+ break;
219
+ }
220
+ message.integrationEndpoint = integration_pb_1.IntegrationEndpoint.decode(reader, reader.uint32());
221
+ continue;
222
+ }
223
+ }
224
+ if ((tag & 7) === 4 || tag === 0) {
225
+ break;
226
+ }
227
+ reader.skip(tag & 7);
228
+ }
229
+ return message;
230
+ },
231
+ fromJSON(object) {
232
+ return {
233
+ integrationEndpoint: isSet(object.integrationEndpoint)
234
+ ? integration_pb_1.IntegrationEndpoint.fromJSON(object.integrationEndpoint)
235
+ : isSet(object.integration_endpoint)
236
+ ? integration_pb_1.IntegrationEndpoint.fromJSON(object.integration_endpoint)
237
+ : undefined,
238
+ };
239
+ },
240
+ toJSON(message) {
241
+ const obj = {};
242
+ if (message.integrationEndpoint !== undefined) {
243
+ obj.integrationEndpoint = integration_pb_1.IntegrationEndpoint.toJSON(message.integrationEndpoint);
244
+ }
245
+ return obj;
246
+ },
247
+ create(base) {
248
+ return exports.CreateIntegrationEndpointResponse.fromPartial(base !== null && base !== void 0 ? base : {});
249
+ },
250
+ fromPartial(object) {
251
+ const message = createBaseCreateIntegrationEndpointResponse();
252
+ message.integrationEndpoint = (object.integrationEndpoint !== undefined && object.integrationEndpoint !== null)
253
+ ? integration_pb_1.IntegrationEndpoint.fromPartial(object.integrationEndpoint)
254
+ : undefined;
255
+ return message;
256
+ },
257
+ };
258
+ function createBaseGetIntegrationEndpointRequest() {
259
+ return { projectId: "", integrationEndpointId: "" };
260
+ }
261
+ exports.GetIntegrationEndpointRequest = {
262
+ encode(message, writer = new wire_1.BinaryWriter()) {
263
+ if (message.projectId !== "") {
264
+ writer.uint32(10).string(message.projectId);
265
+ }
266
+ if (message.integrationEndpointId !== "") {
267
+ writer.uint32(18).string(message.integrationEndpointId);
268
+ }
269
+ return writer;
270
+ },
271
+ decode(input, length) {
272
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
273
+ const end = length === undefined ? reader.len : reader.pos + length;
274
+ const message = createBaseGetIntegrationEndpointRequest();
275
+ while (reader.pos < end) {
276
+ const tag = reader.uint32();
277
+ switch (tag >>> 3) {
278
+ case 1: {
279
+ if (tag !== 10) {
280
+ break;
281
+ }
282
+ message.projectId = reader.string();
283
+ continue;
284
+ }
285
+ case 2: {
286
+ if (tag !== 18) {
287
+ break;
288
+ }
289
+ message.integrationEndpointId = reader.string();
290
+ continue;
291
+ }
292
+ }
293
+ if ((tag & 7) === 4 || tag === 0) {
294
+ break;
295
+ }
296
+ reader.skip(tag & 7);
297
+ }
298
+ return message;
299
+ },
300
+ fromJSON(object) {
301
+ return {
302
+ projectId: isSet(object.projectId)
303
+ ? globalThis.String(object.projectId)
304
+ : isSet(object.project_id)
305
+ ? globalThis.String(object.project_id)
306
+ : "",
307
+ integrationEndpointId: isSet(object.integrationEndpointId)
308
+ ? globalThis.String(object.integrationEndpointId)
309
+ : isSet(object.integration_endpoint_id)
310
+ ? globalThis.String(object.integration_endpoint_id)
311
+ : "",
312
+ };
313
+ },
314
+ toJSON(message) {
315
+ const obj = {};
316
+ if (message.projectId !== "") {
317
+ obj.projectId = message.projectId;
318
+ }
319
+ if (message.integrationEndpointId !== "") {
320
+ obj.integrationEndpointId = message.integrationEndpointId;
321
+ }
322
+ return obj;
323
+ },
324
+ create(base) {
325
+ return exports.GetIntegrationEndpointRequest.fromPartial(base !== null && base !== void 0 ? base : {});
326
+ },
327
+ fromPartial(object) {
328
+ var _a, _b;
329
+ const message = createBaseGetIntegrationEndpointRequest();
330
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
331
+ message.integrationEndpointId = (_b = object.integrationEndpointId) !== null && _b !== void 0 ? _b : "";
332
+ return message;
333
+ },
334
+ };
335
+ function createBaseGetIntegrationEndpointResponse() {
336
+ return { integrationEndpoint: undefined };
337
+ }
338
+ exports.GetIntegrationEndpointResponse = {
339
+ encode(message, writer = new wire_1.BinaryWriter()) {
340
+ if (message.integrationEndpoint !== undefined) {
341
+ integration_pb_1.IntegrationEndpoint.encode(message.integrationEndpoint, writer.uint32(10).fork()).join();
342
+ }
343
+ return writer;
344
+ },
345
+ decode(input, length) {
346
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
347
+ const end = length === undefined ? reader.len : reader.pos + length;
348
+ const message = createBaseGetIntegrationEndpointResponse();
349
+ while (reader.pos < end) {
350
+ const tag = reader.uint32();
351
+ switch (tag >>> 3) {
352
+ case 1: {
353
+ if (tag !== 10) {
354
+ break;
355
+ }
356
+ message.integrationEndpoint = integration_pb_1.IntegrationEndpoint.decode(reader, reader.uint32());
357
+ continue;
358
+ }
359
+ }
360
+ if ((tag & 7) === 4 || tag === 0) {
361
+ break;
362
+ }
363
+ reader.skip(tag & 7);
364
+ }
365
+ return message;
366
+ },
367
+ fromJSON(object) {
368
+ return {
369
+ integrationEndpoint: isSet(object.integrationEndpoint)
370
+ ? integration_pb_1.IntegrationEndpoint.fromJSON(object.integrationEndpoint)
371
+ : isSet(object.integration_endpoint)
372
+ ? integration_pb_1.IntegrationEndpoint.fromJSON(object.integration_endpoint)
373
+ : undefined,
374
+ };
375
+ },
376
+ toJSON(message) {
377
+ const obj = {};
378
+ if (message.integrationEndpoint !== undefined) {
379
+ obj.integrationEndpoint = integration_pb_1.IntegrationEndpoint.toJSON(message.integrationEndpoint);
380
+ }
381
+ return obj;
382
+ },
383
+ create(base) {
384
+ return exports.GetIntegrationEndpointResponse.fromPartial(base !== null && base !== void 0 ? base : {});
385
+ },
386
+ fromPartial(object) {
387
+ const message = createBaseGetIntegrationEndpointResponse();
388
+ message.integrationEndpoint = (object.integrationEndpoint !== undefined && object.integrationEndpoint !== null)
389
+ ? integration_pb_1.IntegrationEndpoint.fromPartial(object.integrationEndpoint)
390
+ : undefined;
391
+ return message;
392
+ },
393
+ };
394
+ function createBaseListIntegrationEndpointsRequest() {
395
+ return { projectId: "", includeArchived: false, pageSize: 0, pageToken: "", workflowId: "" };
396
+ }
397
+ exports.ListIntegrationEndpointsRequest = {
398
+ encode(message, writer = new wire_1.BinaryWriter()) {
399
+ if (message.projectId !== "") {
400
+ writer.uint32(10).string(message.projectId);
401
+ }
402
+ if (message.includeArchived !== false) {
403
+ writer.uint32(16).bool(message.includeArchived);
404
+ }
405
+ if (message.pageSize !== 0) {
406
+ writer.uint32(24).int32(message.pageSize);
407
+ }
408
+ if (message.pageToken !== "") {
409
+ writer.uint32(34).string(message.pageToken);
410
+ }
411
+ if (message.workflowId !== "") {
412
+ writer.uint32(42).string(message.workflowId);
413
+ }
414
+ return writer;
415
+ },
416
+ decode(input, length) {
417
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
418
+ const end = length === undefined ? reader.len : reader.pos + length;
419
+ const message = createBaseListIntegrationEndpointsRequest();
420
+ while (reader.pos < end) {
421
+ const tag = reader.uint32();
422
+ switch (tag >>> 3) {
423
+ case 1: {
424
+ if (tag !== 10) {
425
+ break;
426
+ }
427
+ message.projectId = reader.string();
428
+ continue;
429
+ }
430
+ case 2: {
431
+ if (tag !== 16) {
432
+ break;
433
+ }
434
+ message.includeArchived = reader.bool();
435
+ continue;
436
+ }
437
+ case 3: {
438
+ if (tag !== 24) {
439
+ break;
440
+ }
441
+ message.pageSize = reader.int32();
442
+ continue;
443
+ }
444
+ case 4: {
445
+ if (tag !== 34) {
446
+ break;
447
+ }
448
+ message.pageToken = reader.string();
449
+ continue;
450
+ }
451
+ case 5: {
452
+ if (tag !== 42) {
453
+ break;
454
+ }
455
+ message.workflowId = reader.string();
456
+ continue;
457
+ }
458
+ }
459
+ if ((tag & 7) === 4 || tag === 0) {
460
+ break;
461
+ }
462
+ reader.skip(tag & 7);
463
+ }
464
+ return message;
465
+ },
466
+ fromJSON(object) {
467
+ return {
468
+ projectId: isSet(object.projectId)
469
+ ? globalThis.String(object.projectId)
470
+ : isSet(object.project_id)
471
+ ? globalThis.String(object.project_id)
472
+ : "",
473
+ includeArchived: isSet(object.includeArchived)
474
+ ? globalThis.Boolean(object.includeArchived)
475
+ : isSet(object.include_archived)
476
+ ? globalThis.Boolean(object.include_archived)
477
+ : false,
478
+ pageSize: isSet(object.pageSize)
479
+ ? globalThis.Number(object.pageSize)
480
+ : isSet(object.page_size)
481
+ ? globalThis.Number(object.page_size)
482
+ : 0,
483
+ pageToken: isSet(object.pageToken)
484
+ ? globalThis.String(object.pageToken)
485
+ : isSet(object.page_token)
486
+ ? globalThis.String(object.page_token)
487
+ : "",
488
+ workflowId: isSet(object.workflowId)
489
+ ? globalThis.String(object.workflowId)
490
+ : isSet(object.workflow_id)
491
+ ? globalThis.String(object.workflow_id)
492
+ : "",
493
+ };
494
+ },
495
+ toJSON(message) {
496
+ const obj = {};
497
+ if (message.projectId !== "") {
498
+ obj.projectId = message.projectId;
499
+ }
500
+ if (message.includeArchived !== false) {
501
+ obj.includeArchived = message.includeArchived;
502
+ }
503
+ if (message.pageSize !== 0) {
504
+ obj.pageSize = Math.round(message.pageSize);
505
+ }
506
+ if (message.pageToken !== "") {
507
+ obj.pageToken = message.pageToken;
508
+ }
509
+ if (message.workflowId !== "") {
510
+ obj.workflowId = message.workflowId;
511
+ }
512
+ return obj;
513
+ },
514
+ create(base) {
515
+ return exports.ListIntegrationEndpointsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
516
+ },
517
+ fromPartial(object) {
518
+ var _a, _b, _c, _d, _e;
519
+ const message = createBaseListIntegrationEndpointsRequest();
520
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
521
+ message.includeArchived = (_b = object.includeArchived) !== null && _b !== void 0 ? _b : false;
522
+ message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
523
+ message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
524
+ message.workflowId = (_e = object.workflowId) !== null && _e !== void 0 ? _e : "";
525
+ return message;
526
+ },
527
+ };
528
+ function createBaseListIntegrationEndpointsResponse() {
529
+ return { integrationEndpoints: [], nextPageToken: "" };
530
+ }
531
+ exports.ListIntegrationEndpointsResponse = {
532
+ encode(message, writer = new wire_1.BinaryWriter()) {
533
+ for (const v of message.integrationEndpoints) {
534
+ integration_pb_1.IntegrationEndpoint.encode(v, writer.uint32(10).fork()).join();
535
+ }
536
+ if (message.nextPageToken !== "") {
537
+ writer.uint32(18).string(message.nextPageToken);
538
+ }
539
+ return writer;
540
+ },
541
+ decode(input, length) {
542
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
543
+ const end = length === undefined ? reader.len : reader.pos + length;
544
+ const message = createBaseListIntegrationEndpointsResponse();
545
+ while (reader.pos < end) {
546
+ const tag = reader.uint32();
547
+ switch (tag >>> 3) {
548
+ case 1: {
549
+ if (tag !== 10) {
550
+ break;
551
+ }
552
+ message.integrationEndpoints.push(integration_pb_1.IntegrationEndpoint.decode(reader, reader.uint32()));
553
+ continue;
554
+ }
555
+ case 2: {
556
+ if (tag !== 18) {
557
+ break;
558
+ }
559
+ message.nextPageToken = reader.string();
560
+ continue;
561
+ }
562
+ }
563
+ if ((tag & 7) === 4 || tag === 0) {
564
+ break;
565
+ }
566
+ reader.skip(tag & 7);
567
+ }
568
+ return message;
569
+ },
570
+ fromJSON(object) {
571
+ return {
572
+ integrationEndpoints: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.integrationEndpoints)
573
+ ? object.integrationEndpoints.map((e) => integration_pb_1.IntegrationEndpoint.fromJSON(e))
574
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.integration_endpoints)
575
+ ? object.integration_endpoints.map((e) => integration_pb_1.IntegrationEndpoint.fromJSON(e))
576
+ : [],
577
+ nextPageToken: isSet(object.nextPageToken)
578
+ ? globalThis.String(object.nextPageToken)
579
+ : isSet(object.next_page_token)
580
+ ? globalThis.String(object.next_page_token)
581
+ : "",
582
+ };
583
+ },
584
+ toJSON(message) {
585
+ var _a;
586
+ const obj = {};
587
+ if ((_a = message.integrationEndpoints) === null || _a === void 0 ? void 0 : _a.length) {
588
+ obj.integrationEndpoints = message.integrationEndpoints.map((e) => integration_pb_1.IntegrationEndpoint.toJSON(e));
589
+ }
590
+ if (message.nextPageToken !== "") {
591
+ obj.nextPageToken = message.nextPageToken;
592
+ }
593
+ return obj;
594
+ },
595
+ create(base) {
596
+ return exports.ListIntegrationEndpointsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
597
+ },
598
+ fromPartial(object) {
599
+ var _a;
600
+ var _b;
601
+ const message = createBaseListIntegrationEndpointsResponse();
602
+ message.integrationEndpoints = ((_a = object.integrationEndpoints) === null || _a === void 0 ? void 0 : _a.map((e) => integration_pb_1.IntegrationEndpoint.fromPartial(e))) || [];
603
+ message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
604
+ return message;
605
+ },
606
+ };
607
+ function createBaseUpdateIntegrationEndpointRequest() {
608
+ return {
609
+ projectId: "",
610
+ integrationEndpointId: "",
611
+ name: "",
612
+ description: "",
613
+ integrationType: 0,
614
+ status: 0,
615
+ targetUri: "",
616
+ authReference: "",
617
+ config: undefined,
618
+ metadata: undefined,
619
+ };
620
+ }
621
+ exports.UpdateIntegrationEndpointRequest = {
622
+ encode(message, writer = new wire_1.BinaryWriter()) {
623
+ if (message.projectId !== "") {
624
+ writer.uint32(10).string(message.projectId);
625
+ }
626
+ if (message.integrationEndpointId !== "") {
627
+ writer.uint32(18).string(message.integrationEndpointId);
628
+ }
629
+ if (message.name !== "") {
630
+ writer.uint32(26).string(message.name);
631
+ }
632
+ if (message.description !== "") {
633
+ writer.uint32(34).string(message.description);
634
+ }
635
+ if (message.integrationType !== 0) {
636
+ writer.uint32(40).int32(message.integrationType);
637
+ }
638
+ if (message.status !== 0) {
639
+ writer.uint32(48).int32(message.status);
640
+ }
641
+ if (message.targetUri !== "") {
642
+ writer.uint32(58).string(message.targetUri);
643
+ }
644
+ if (message.authReference !== "") {
645
+ writer.uint32(66).string(message.authReference);
646
+ }
647
+ if (message.config !== undefined) {
648
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.config), writer.uint32(74).fork()).join();
649
+ }
650
+ if (message.metadata !== undefined) {
651
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(82).fork()).join();
652
+ }
653
+ return writer;
654
+ },
655
+ decode(input, length) {
656
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
657
+ const end = length === undefined ? reader.len : reader.pos + length;
658
+ const message = createBaseUpdateIntegrationEndpointRequest();
659
+ while (reader.pos < end) {
660
+ const tag = reader.uint32();
661
+ switch (tag >>> 3) {
662
+ case 1: {
663
+ if (tag !== 10) {
664
+ break;
665
+ }
666
+ message.projectId = reader.string();
667
+ continue;
668
+ }
669
+ case 2: {
670
+ if (tag !== 18) {
671
+ break;
672
+ }
673
+ message.integrationEndpointId = reader.string();
674
+ continue;
675
+ }
676
+ case 3: {
677
+ if (tag !== 26) {
678
+ break;
679
+ }
680
+ message.name = reader.string();
681
+ continue;
682
+ }
683
+ case 4: {
684
+ if (tag !== 34) {
685
+ break;
686
+ }
687
+ message.description = reader.string();
688
+ continue;
689
+ }
690
+ case 5: {
691
+ if (tag !== 40) {
692
+ break;
693
+ }
694
+ message.integrationType = reader.int32();
695
+ continue;
696
+ }
697
+ case 6: {
698
+ if (tag !== 48) {
699
+ break;
700
+ }
701
+ message.status = reader.int32();
702
+ continue;
703
+ }
704
+ case 7: {
705
+ if (tag !== 58) {
706
+ break;
707
+ }
708
+ message.targetUri = reader.string();
709
+ continue;
710
+ }
711
+ case 8: {
712
+ if (tag !== 66) {
713
+ break;
714
+ }
715
+ message.authReference = reader.string();
716
+ continue;
717
+ }
718
+ case 9: {
719
+ if (tag !== 74) {
720
+ break;
721
+ }
722
+ message.config = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
723
+ continue;
724
+ }
725
+ case 10: {
726
+ if (tag !== 82) {
727
+ break;
728
+ }
729
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
730
+ continue;
731
+ }
732
+ }
733
+ if ((tag & 7) === 4 || tag === 0) {
734
+ break;
735
+ }
736
+ reader.skip(tag & 7);
737
+ }
738
+ return message;
739
+ },
740
+ fromJSON(object) {
741
+ return {
742
+ projectId: isSet(object.projectId)
743
+ ? globalThis.String(object.projectId)
744
+ : isSet(object.project_id)
745
+ ? globalThis.String(object.project_id)
746
+ : "",
747
+ integrationEndpointId: isSet(object.integrationEndpointId)
748
+ ? globalThis.String(object.integrationEndpointId)
749
+ : isSet(object.integration_endpoint_id)
750
+ ? globalThis.String(object.integration_endpoint_id)
751
+ : "",
752
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
753
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
754
+ integrationType: isSet(object.integrationType)
755
+ ? (0, integration_pb_1.integrationTypeFromJSON)(object.integrationType)
756
+ : isSet(object.integration_type)
757
+ ? (0, integration_pb_1.integrationTypeFromJSON)(object.integration_type)
758
+ : 0,
759
+ status: isSet(object.status) ? (0, integration_pb_1.integrationStatusFromJSON)(object.status) : 0,
760
+ targetUri: isSet(object.targetUri)
761
+ ? globalThis.String(object.targetUri)
762
+ : isSet(object.target_uri)
763
+ ? globalThis.String(object.target_uri)
764
+ : "",
765
+ authReference: isSet(object.authReference)
766
+ ? globalThis.String(object.authReference)
767
+ : isSet(object.auth_reference)
768
+ ? globalThis.String(object.auth_reference)
769
+ : "",
770
+ config: isObject(object.config) ? object.config : undefined,
771
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
772
+ };
773
+ },
774
+ toJSON(message) {
775
+ const obj = {};
776
+ if (message.projectId !== "") {
777
+ obj.projectId = message.projectId;
778
+ }
779
+ if (message.integrationEndpointId !== "") {
780
+ obj.integrationEndpointId = message.integrationEndpointId;
781
+ }
782
+ if (message.name !== "") {
783
+ obj.name = message.name;
784
+ }
785
+ if (message.description !== "") {
786
+ obj.description = message.description;
787
+ }
788
+ if (message.integrationType !== 0) {
789
+ obj.integrationType = (0, integration_pb_1.integrationTypeToJSON)(message.integrationType);
790
+ }
791
+ if (message.status !== 0) {
792
+ obj.status = (0, integration_pb_1.integrationStatusToJSON)(message.status);
793
+ }
794
+ if (message.targetUri !== "") {
795
+ obj.targetUri = message.targetUri;
796
+ }
797
+ if (message.authReference !== "") {
798
+ obj.authReference = message.authReference;
799
+ }
800
+ if (message.config !== undefined) {
801
+ obj.config = message.config;
802
+ }
803
+ if (message.metadata !== undefined) {
804
+ obj.metadata = message.metadata;
805
+ }
806
+ return obj;
807
+ },
808
+ create(base) {
809
+ return exports.UpdateIntegrationEndpointRequest.fromPartial(base !== null && base !== void 0 ? base : {});
810
+ },
811
+ fromPartial(object) {
812
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
813
+ const message = createBaseUpdateIntegrationEndpointRequest();
814
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
815
+ message.integrationEndpointId = (_b = object.integrationEndpointId) !== null && _b !== void 0 ? _b : "";
816
+ message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
817
+ message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
818
+ message.integrationType = (_e = object.integrationType) !== null && _e !== void 0 ? _e : 0;
819
+ message.status = (_f = object.status) !== null && _f !== void 0 ? _f : 0;
820
+ message.targetUri = (_g = object.targetUri) !== null && _g !== void 0 ? _g : "";
821
+ message.authReference = (_h = object.authReference) !== null && _h !== void 0 ? _h : "";
822
+ message.config = (_j = object.config) !== null && _j !== void 0 ? _j : undefined;
823
+ message.metadata = (_k = object.metadata) !== null && _k !== void 0 ? _k : undefined;
824
+ return message;
825
+ },
826
+ };
827
+ function createBaseUpdateIntegrationEndpointResponse() {
828
+ return { integrationEndpoint: undefined };
829
+ }
830
+ exports.UpdateIntegrationEndpointResponse = {
831
+ encode(message, writer = new wire_1.BinaryWriter()) {
832
+ if (message.integrationEndpoint !== undefined) {
833
+ integration_pb_1.IntegrationEndpoint.encode(message.integrationEndpoint, writer.uint32(10).fork()).join();
834
+ }
835
+ return writer;
836
+ },
837
+ decode(input, length) {
838
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
839
+ const end = length === undefined ? reader.len : reader.pos + length;
840
+ const message = createBaseUpdateIntegrationEndpointResponse();
841
+ while (reader.pos < end) {
842
+ const tag = reader.uint32();
843
+ switch (tag >>> 3) {
844
+ case 1: {
845
+ if (tag !== 10) {
846
+ break;
847
+ }
848
+ message.integrationEndpoint = integration_pb_1.IntegrationEndpoint.decode(reader, reader.uint32());
849
+ continue;
850
+ }
851
+ }
852
+ if ((tag & 7) === 4 || tag === 0) {
853
+ break;
854
+ }
855
+ reader.skip(tag & 7);
856
+ }
857
+ return message;
858
+ },
859
+ fromJSON(object) {
860
+ return {
861
+ integrationEndpoint: isSet(object.integrationEndpoint)
862
+ ? integration_pb_1.IntegrationEndpoint.fromJSON(object.integrationEndpoint)
863
+ : isSet(object.integration_endpoint)
864
+ ? integration_pb_1.IntegrationEndpoint.fromJSON(object.integration_endpoint)
865
+ : undefined,
866
+ };
867
+ },
868
+ toJSON(message) {
869
+ const obj = {};
870
+ if (message.integrationEndpoint !== undefined) {
871
+ obj.integrationEndpoint = integration_pb_1.IntegrationEndpoint.toJSON(message.integrationEndpoint);
872
+ }
873
+ return obj;
874
+ },
875
+ create(base) {
876
+ return exports.UpdateIntegrationEndpointResponse.fromPartial(base !== null && base !== void 0 ? base : {});
877
+ },
878
+ fromPartial(object) {
879
+ const message = createBaseUpdateIntegrationEndpointResponse();
880
+ message.integrationEndpoint = (object.integrationEndpoint !== undefined && object.integrationEndpoint !== null)
881
+ ? integration_pb_1.IntegrationEndpoint.fromPartial(object.integrationEndpoint)
882
+ : undefined;
883
+ return message;
884
+ },
885
+ };
886
+ function createBaseArchiveIntegrationEndpointRequest() {
887
+ return { projectId: "", integrationEndpointId: "" };
888
+ }
889
+ exports.ArchiveIntegrationEndpointRequest = {
890
+ encode(message, writer = new wire_1.BinaryWriter()) {
891
+ if (message.projectId !== "") {
892
+ writer.uint32(10).string(message.projectId);
893
+ }
894
+ if (message.integrationEndpointId !== "") {
895
+ writer.uint32(18).string(message.integrationEndpointId);
896
+ }
897
+ return writer;
898
+ },
899
+ decode(input, length) {
900
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
901
+ const end = length === undefined ? reader.len : reader.pos + length;
902
+ const message = createBaseArchiveIntegrationEndpointRequest();
903
+ while (reader.pos < end) {
904
+ const tag = reader.uint32();
905
+ switch (tag >>> 3) {
906
+ case 1: {
907
+ if (tag !== 10) {
908
+ break;
909
+ }
910
+ message.projectId = reader.string();
911
+ continue;
912
+ }
913
+ case 2: {
914
+ if (tag !== 18) {
915
+ break;
916
+ }
917
+ message.integrationEndpointId = reader.string();
918
+ continue;
919
+ }
920
+ }
921
+ if ((tag & 7) === 4 || tag === 0) {
922
+ break;
923
+ }
924
+ reader.skip(tag & 7);
925
+ }
926
+ return message;
927
+ },
928
+ fromJSON(object) {
929
+ return {
930
+ projectId: isSet(object.projectId)
931
+ ? globalThis.String(object.projectId)
932
+ : isSet(object.project_id)
933
+ ? globalThis.String(object.project_id)
934
+ : "",
935
+ integrationEndpointId: isSet(object.integrationEndpointId)
936
+ ? globalThis.String(object.integrationEndpointId)
937
+ : isSet(object.integration_endpoint_id)
938
+ ? globalThis.String(object.integration_endpoint_id)
939
+ : "",
940
+ };
941
+ },
942
+ toJSON(message) {
943
+ const obj = {};
944
+ if (message.projectId !== "") {
945
+ obj.projectId = message.projectId;
946
+ }
947
+ if (message.integrationEndpointId !== "") {
948
+ obj.integrationEndpointId = message.integrationEndpointId;
949
+ }
950
+ return obj;
951
+ },
952
+ create(base) {
953
+ return exports.ArchiveIntegrationEndpointRequest.fromPartial(base !== null && base !== void 0 ? base : {});
954
+ },
955
+ fromPartial(object) {
956
+ var _a, _b;
957
+ const message = createBaseArchiveIntegrationEndpointRequest();
958
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
959
+ message.integrationEndpointId = (_b = object.integrationEndpointId) !== null && _b !== void 0 ? _b : "";
960
+ return message;
961
+ },
962
+ };
963
+ function createBaseArchiveIntegrationEndpointResponse() {
964
+ return { integrationEndpoint: undefined };
965
+ }
966
+ exports.ArchiveIntegrationEndpointResponse = {
967
+ encode(message, writer = new wire_1.BinaryWriter()) {
968
+ if (message.integrationEndpoint !== undefined) {
969
+ integration_pb_1.IntegrationEndpoint.encode(message.integrationEndpoint, writer.uint32(10).fork()).join();
970
+ }
971
+ return writer;
972
+ },
973
+ decode(input, length) {
974
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
975
+ const end = length === undefined ? reader.len : reader.pos + length;
976
+ const message = createBaseArchiveIntegrationEndpointResponse();
977
+ while (reader.pos < end) {
978
+ const tag = reader.uint32();
979
+ switch (tag >>> 3) {
980
+ case 1: {
981
+ if (tag !== 10) {
982
+ break;
983
+ }
984
+ message.integrationEndpoint = integration_pb_1.IntegrationEndpoint.decode(reader, reader.uint32());
985
+ continue;
986
+ }
987
+ }
988
+ if ((tag & 7) === 4 || tag === 0) {
989
+ break;
990
+ }
991
+ reader.skip(tag & 7);
992
+ }
993
+ return message;
994
+ },
995
+ fromJSON(object) {
996
+ return {
997
+ integrationEndpoint: isSet(object.integrationEndpoint)
998
+ ? integration_pb_1.IntegrationEndpoint.fromJSON(object.integrationEndpoint)
999
+ : isSet(object.integration_endpoint)
1000
+ ? integration_pb_1.IntegrationEndpoint.fromJSON(object.integration_endpoint)
1001
+ : undefined,
1002
+ };
1003
+ },
1004
+ toJSON(message) {
1005
+ const obj = {};
1006
+ if (message.integrationEndpoint !== undefined) {
1007
+ obj.integrationEndpoint = integration_pb_1.IntegrationEndpoint.toJSON(message.integrationEndpoint);
1008
+ }
1009
+ return obj;
1010
+ },
1011
+ create(base) {
1012
+ return exports.ArchiveIntegrationEndpointResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1013
+ },
1014
+ fromPartial(object) {
1015
+ const message = createBaseArchiveIntegrationEndpointResponse();
1016
+ message.integrationEndpoint = (object.integrationEndpoint !== undefined && object.integrationEndpoint !== null)
1017
+ ? integration_pb_1.IntegrationEndpoint.fromPartial(object.integrationEndpoint)
1018
+ : undefined;
1019
+ return message;
1020
+ },
1021
+ };
1022
+ function createBaseDeleteIntegrationEndpointRequest() {
1023
+ return { projectId: "", integrationEndpointId: "" };
1024
+ }
1025
+ exports.DeleteIntegrationEndpointRequest = {
1026
+ encode(message, writer = new wire_1.BinaryWriter()) {
1027
+ if (message.projectId !== "") {
1028
+ writer.uint32(10).string(message.projectId);
1029
+ }
1030
+ if (message.integrationEndpointId !== "") {
1031
+ writer.uint32(18).string(message.integrationEndpointId);
1032
+ }
1033
+ return writer;
1034
+ },
1035
+ decode(input, length) {
1036
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1037
+ const end = length === undefined ? reader.len : reader.pos + length;
1038
+ const message = createBaseDeleteIntegrationEndpointRequest();
1039
+ while (reader.pos < end) {
1040
+ const tag = reader.uint32();
1041
+ switch (tag >>> 3) {
1042
+ case 1: {
1043
+ if (tag !== 10) {
1044
+ break;
1045
+ }
1046
+ message.projectId = reader.string();
1047
+ continue;
1048
+ }
1049
+ case 2: {
1050
+ if (tag !== 18) {
1051
+ break;
1052
+ }
1053
+ message.integrationEndpointId = reader.string();
1054
+ continue;
1055
+ }
1056
+ }
1057
+ if ((tag & 7) === 4 || tag === 0) {
1058
+ break;
1059
+ }
1060
+ reader.skip(tag & 7);
1061
+ }
1062
+ return message;
1063
+ },
1064
+ fromJSON(object) {
1065
+ return {
1066
+ projectId: isSet(object.projectId)
1067
+ ? globalThis.String(object.projectId)
1068
+ : isSet(object.project_id)
1069
+ ? globalThis.String(object.project_id)
1070
+ : "",
1071
+ integrationEndpointId: isSet(object.integrationEndpointId)
1072
+ ? globalThis.String(object.integrationEndpointId)
1073
+ : isSet(object.integration_endpoint_id)
1074
+ ? globalThis.String(object.integration_endpoint_id)
1075
+ : "",
1076
+ };
1077
+ },
1078
+ toJSON(message) {
1079
+ const obj = {};
1080
+ if (message.projectId !== "") {
1081
+ obj.projectId = message.projectId;
1082
+ }
1083
+ if (message.integrationEndpointId !== "") {
1084
+ obj.integrationEndpointId = message.integrationEndpointId;
1085
+ }
1086
+ return obj;
1087
+ },
1088
+ create(base) {
1089
+ return exports.DeleteIntegrationEndpointRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1090
+ },
1091
+ fromPartial(object) {
1092
+ var _a, _b;
1093
+ const message = createBaseDeleteIntegrationEndpointRequest();
1094
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1095
+ message.integrationEndpointId = (_b = object.integrationEndpointId) !== null && _b !== void 0 ? _b : "";
1096
+ return message;
1097
+ },
1098
+ };
1099
+ function createBaseDeleteIntegrationEndpointResponse() {
1100
+ return {};
1101
+ }
1102
+ exports.DeleteIntegrationEndpointResponse = {
1103
+ encode(_, writer = new wire_1.BinaryWriter()) {
1104
+ return writer;
1105
+ },
1106
+ decode(input, length) {
1107
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1108
+ const end = length === undefined ? reader.len : reader.pos + length;
1109
+ const message = createBaseDeleteIntegrationEndpointResponse();
1110
+ while (reader.pos < end) {
1111
+ const tag = reader.uint32();
1112
+ switch (tag >>> 3) {
1113
+ }
1114
+ if ((tag & 7) === 4 || tag === 0) {
1115
+ break;
1116
+ }
1117
+ reader.skip(tag & 7);
1118
+ }
1119
+ return message;
1120
+ },
1121
+ fromJSON(_) {
1122
+ return {};
1123
+ },
1124
+ toJSON(_) {
1125
+ const obj = {};
1126
+ return obj;
1127
+ },
1128
+ create(base) {
1129
+ return exports.DeleteIntegrationEndpointResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1130
+ },
1131
+ fromPartial(_) {
1132
+ const message = createBaseDeleteIntegrationEndpointResponse();
1133
+ return message;
1134
+ },
1135
+ };
1136
+ function createBaseAttachIntegrationEndpointToWorkflowRequest() {
1137
+ return { projectId: "", workflowId: "", integrationEndpointId: "", attachedBy: "", metadata: undefined };
1138
+ }
1139
+ exports.AttachIntegrationEndpointToWorkflowRequest = {
1140
+ encode(message, writer = new wire_1.BinaryWriter()) {
1141
+ if (message.projectId !== "") {
1142
+ writer.uint32(10).string(message.projectId);
1143
+ }
1144
+ if (message.workflowId !== "") {
1145
+ writer.uint32(18).string(message.workflowId);
1146
+ }
1147
+ if (message.integrationEndpointId !== "") {
1148
+ writer.uint32(26).string(message.integrationEndpointId);
1149
+ }
1150
+ if (message.attachedBy !== "") {
1151
+ writer.uint32(34).string(message.attachedBy);
1152
+ }
1153
+ if (message.metadata !== undefined) {
1154
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
1155
+ }
1156
+ return writer;
1157
+ },
1158
+ decode(input, length) {
1159
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1160
+ const end = length === undefined ? reader.len : reader.pos + length;
1161
+ const message = createBaseAttachIntegrationEndpointToWorkflowRequest();
1162
+ while (reader.pos < end) {
1163
+ const tag = reader.uint32();
1164
+ switch (tag >>> 3) {
1165
+ case 1: {
1166
+ if (tag !== 10) {
1167
+ break;
1168
+ }
1169
+ message.projectId = reader.string();
1170
+ continue;
1171
+ }
1172
+ case 2: {
1173
+ if (tag !== 18) {
1174
+ break;
1175
+ }
1176
+ message.workflowId = reader.string();
1177
+ continue;
1178
+ }
1179
+ case 3: {
1180
+ if (tag !== 26) {
1181
+ break;
1182
+ }
1183
+ message.integrationEndpointId = reader.string();
1184
+ continue;
1185
+ }
1186
+ case 4: {
1187
+ if (tag !== 34) {
1188
+ break;
1189
+ }
1190
+ message.attachedBy = reader.string();
1191
+ continue;
1192
+ }
1193
+ case 5: {
1194
+ if (tag !== 42) {
1195
+ break;
1196
+ }
1197
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
1198
+ continue;
1199
+ }
1200
+ }
1201
+ if ((tag & 7) === 4 || tag === 0) {
1202
+ break;
1203
+ }
1204
+ reader.skip(tag & 7);
1205
+ }
1206
+ return message;
1207
+ },
1208
+ fromJSON(object) {
1209
+ return {
1210
+ projectId: isSet(object.projectId)
1211
+ ? globalThis.String(object.projectId)
1212
+ : isSet(object.project_id)
1213
+ ? globalThis.String(object.project_id)
1214
+ : "",
1215
+ workflowId: isSet(object.workflowId)
1216
+ ? globalThis.String(object.workflowId)
1217
+ : isSet(object.workflow_id)
1218
+ ? globalThis.String(object.workflow_id)
1219
+ : "",
1220
+ integrationEndpointId: isSet(object.integrationEndpointId)
1221
+ ? globalThis.String(object.integrationEndpointId)
1222
+ : isSet(object.integration_endpoint_id)
1223
+ ? globalThis.String(object.integration_endpoint_id)
1224
+ : "",
1225
+ attachedBy: isSet(object.attachedBy)
1226
+ ? globalThis.String(object.attachedBy)
1227
+ : isSet(object.attached_by)
1228
+ ? globalThis.String(object.attached_by)
1229
+ : "",
1230
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
1231
+ };
1232
+ },
1233
+ toJSON(message) {
1234
+ const obj = {};
1235
+ if (message.projectId !== "") {
1236
+ obj.projectId = message.projectId;
1237
+ }
1238
+ if (message.workflowId !== "") {
1239
+ obj.workflowId = message.workflowId;
1240
+ }
1241
+ if (message.integrationEndpointId !== "") {
1242
+ obj.integrationEndpointId = message.integrationEndpointId;
1243
+ }
1244
+ if (message.attachedBy !== "") {
1245
+ obj.attachedBy = message.attachedBy;
1246
+ }
1247
+ if (message.metadata !== undefined) {
1248
+ obj.metadata = message.metadata;
1249
+ }
1250
+ return obj;
1251
+ },
1252
+ create(base) {
1253
+ return exports.AttachIntegrationEndpointToWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1254
+ },
1255
+ fromPartial(object) {
1256
+ var _a, _b, _c, _d, _e;
1257
+ const message = createBaseAttachIntegrationEndpointToWorkflowRequest();
1258
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1259
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1260
+ message.integrationEndpointId = (_c = object.integrationEndpointId) !== null && _c !== void 0 ? _c : "";
1261
+ message.attachedBy = (_d = object.attachedBy) !== null && _d !== void 0 ? _d : "";
1262
+ message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
1263
+ return message;
1264
+ },
1265
+ };
1266
+ function createBaseAttachIntegrationEndpointToWorkflowResponse() {
1267
+ return { binding: undefined };
1268
+ }
1269
+ exports.AttachIntegrationEndpointToWorkflowResponse = {
1270
+ encode(message, writer = new wire_1.BinaryWriter()) {
1271
+ if (message.binding !== undefined) {
1272
+ exports.WorkflowIntegrationEndpointBinding.encode(message.binding, writer.uint32(10).fork()).join();
1273
+ }
1274
+ return writer;
1275
+ },
1276
+ decode(input, length) {
1277
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1278
+ const end = length === undefined ? reader.len : reader.pos + length;
1279
+ const message = createBaseAttachIntegrationEndpointToWorkflowResponse();
1280
+ while (reader.pos < end) {
1281
+ const tag = reader.uint32();
1282
+ switch (tag >>> 3) {
1283
+ case 1: {
1284
+ if (tag !== 10) {
1285
+ break;
1286
+ }
1287
+ message.binding = exports.WorkflowIntegrationEndpointBinding.decode(reader, reader.uint32());
1288
+ continue;
1289
+ }
1290
+ }
1291
+ if ((tag & 7) === 4 || tag === 0) {
1292
+ break;
1293
+ }
1294
+ reader.skip(tag & 7);
1295
+ }
1296
+ return message;
1297
+ },
1298
+ fromJSON(object) {
1299
+ return { binding: isSet(object.binding) ? exports.WorkflowIntegrationEndpointBinding.fromJSON(object.binding) : undefined };
1300
+ },
1301
+ toJSON(message) {
1302
+ const obj = {};
1303
+ if (message.binding !== undefined) {
1304
+ obj.binding = exports.WorkflowIntegrationEndpointBinding.toJSON(message.binding);
1305
+ }
1306
+ return obj;
1307
+ },
1308
+ create(base) {
1309
+ return exports.AttachIntegrationEndpointToWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1310
+ },
1311
+ fromPartial(object) {
1312
+ const message = createBaseAttachIntegrationEndpointToWorkflowResponse();
1313
+ message.binding = (object.binding !== undefined && object.binding !== null)
1314
+ ? exports.WorkflowIntegrationEndpointBinding.fromPartial(object.binding)
1315
+ : undefined;
1316
+ return message;
1317
+ },
1318
+ };
1319
+ function createBaseDetachIntegrationEndpointFromWorkflowRequest() {
1320
+ return { projectId: "", workflowId: "", integrationEndpointId: "" };
1321
+ }
1322
+ exports.DetachIntegrationEndpointFromWorkflowRequest = {
1323
+ encode(message, writer = new wire_1.BinaryWriter()) {
1324
+ if (message.projectId !== "") {
1325
+ writer.uint32(10).string(message.projectId);
1326
+ }
1327
+ if (message.workflowId !== "") {
1328
+ writer.uint32(18).string(message.workflowId);
1329
+ }
1330
+ if (message.integrationEndpointId !== "") {
1331
+ writer.uint32(26).string(message.integrationEndpointId);
1332
+ }
1333
+ return writer;
1334
+ },
1335
+ decode(input, length) {
1336
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1337
+ const end = length === undefined ? reader.len : reader.pos + length;
1338
+ const message = createBaseDetachIntegrationEndpointFromWorkflowRequest();
1339
+ while (reader.pos < end) {
1340
+ const tag = reader.uint32();
1341
+ switch (tag >>> 3) {
1342
+ case 1: {
1343
+ if (tag !== 10) {
1344
+ break;
1345
+ }
1346
+ message.projectId = reader.string();
1347
+ continue;
1348
+ }
1349
+ case 2: {
1350
+ if (tag !== 18) {
1351
+ break;
1352
+ }
1353
+ message.workflowId = reader.string();
1354
+ continue;
1355
+ }
1356
+ case 3: {
1357
+ if (tag !== 26) {
1358
+ break;
1359
+ }
1360
+ message.integrationEndpointId = reader.string();
1361
+ continue;
1362
+ }
1363
+ }
1364
+ if ((tag & 7) === 4 || tag === 0) {
1365
+ break;
1366
+ }
1367
+ reader.skip(tag & 7);
1368
+ }
1369
+ return message;
1370
+ },
1371
+ fromJSON(object) {
1372
+ return {
1373
+ projectId: isSet(object.projectId)
1374
+ ? globalThis.String(object.projectId)
1375
+ : isSet(object.project_id)
1376
+ ? globalThis.String(object.project_id)
1377
+ : "",
1378
+ workflowId: isSet(object.workflowId)
1379
+ ? globalThis.String(object.workflowId)
1380
+ : isSet(object.workflow_id)
1381
+ ? globalThis.String(object.workflow_id)
1382
+ : "",
1383
+ integrationEndpointId: isSet(object.integrationEndpointId)
1384
+ ? globalThis.String(object.integrationEndpointId)
1385
+ : isSet(object.integration_endpoint_id)
1386
+ ? globalThis.String(object.integration_endpoint_id)
1387
+ : "",
1388
+ };
1389
+ },
1390
+ toJSON(message) {
1391
+ const obj = {};
1392
+ if (message.projectId !== "") {
1393
+ obj.projectId = message.projectId;
1394
+ }
1395
+ if (message.workflowId !== "") {
1396
+ obj.workflowId = message.workflowId;
1397
+ }
1398
+ if (message.integrationEndpointId !== "") {
1399
+ obj.integrationEndpointId = message.integrationEndpointId;
1400
+ }
1401
+ return obj;
1402
+ },
1403
+ create(base) {
1404
+ return exports.DetachIntegrationEndpointFromWorkflowRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1405
+ },
1406
+ fromPartial(object) {
1407
+ var _a, _b, _c;
1408
+ const message = createBaseDetachIntegrationEndpointFromWorkflowRequest();
1409
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1410
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1411
+ message.integrationEndpointId = (_c = object.integrationEndpointId) !== null && _c !== void 0 ? _c : "";
1412
+ return message;
1413
+ },
1414
+ };
1415
+ function createBaseDetachIntegrationEndpointFromWorkflowResponse() {
1416
+ return {};
1417
+ }
1418
+ exports.DetachIntegrationEndpointFromWorkflowResponse = {
1419
+ encode(_, writer = new wire_1.BinaryWriter()) {
1420
+ return writer;
1421
+ },
1422
+ decode(input, length) {
1423
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1424
+ const end = length === undefined ? reader.len : reader.pos + length;
1425
+ const message = createBaseDetachIntegrationEndpointFromWorkflowResponse();
1426
+ while (reader.pos < end) {
1427
+ const tag = reader.uint32();
1428
+ switch (tag >>> 3) {
1429
+ }
1430
+ if ((tag & 7) === 4 || tag === 0) {
1431
+ break;
1432
+ }
1433
+ reader.skip(tag & 7);
1434
+ }
1435
+ return message;
1436
+ },
1437
+ fromJSON(_) {
1438
+ return {};
1439
+ },
1440
+ toJSON(_) {
1441
+ const obj = {};
1442
+ return obj;
1443
+ },
1444
+ create(base) {
1445
+ return exports.DetachIntegrationEndpointFromWorkflowResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1446
+ },
1447
+ fromPartial(_) {
1448
+ const message = createBaseDetachIntegrationEndpointFromWorkflowResponse();
1449
+ return message;
1450
+ },
1451
+ };
1452
+ function createBaseListWorkflowIntegrationEndpointBindingsRequest() {
1453
+ return { projectId: "", workflowId: "", pageSize: 0, pageToken: "" };
1454
+ }
1455
+ exports.ListWorkflowIntegrationEndpointBindingsRequest = {
1456
+ encode(message, writer = new wire_1.BinaryWriter()) {
1457
+ if (message.projectId !== "") {
1458
+ writer.uint32(10).string(message.projectId);
1459
+ }
1460
+ if (message.workflowId !== "") {
1461
+ writer.uint32(18).string(message.workflowId);
1462
+ }
1463
+ if (message.pageSize !== 0) {
1464
+ writer.uint32(24).int32(message.pageSize);
1465
+ }
1466
+ if (message.pageToken !== "") {
1467
+ writer.uint32(34).string(message.pageToken);
1468
+ }
1469
+ return writer;
1470
+ },
1471
+ decode(input, length) {
1472
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1473
+ const end = length === undefined ? reader.len : reader.pos + length;
1474
+ const message = createBaseListWorkflowIntegrationEndpointBindingsRequest();
1475
+ while (reader.pos < end) {
1476
+ const tag = reader.uint32();
1477
+ switch (tag >>> 3) {
1478
+ case 1: {
1479
+ if (tag !== 10) {
1480
+ break;
1481
+ }
1482
+ message.projectId = reader.string();
1483
+ continue;
1484
+ }
1485
+ case 2: {
1486
+ if (tag !== 18) {
1487
+ break;
1488
+ }
1489
+ message.workflowId = reader.string();
1490
+ continue;
1491
+ }
1492
+ case 3: {
1493
+ if (tag !== 24) {
1494
+ break;
1495
+ }
1496
+ message.pageSize = reader.int32();
1497
+ continue;
1498
+ }
1499
+ case 4: {
1500
+ if (tag !== 34) {
1501
+ break;
1502
+ }
1503
+ message.pageToken = reader.string();
1504
+ continue;
1505
+ }
1506
+ }
1507
+ if ((tag & 7) === 4 || tag === 0) {
1508
+ break;
1509
+ }
1510
+ reader.skip(tag & 7);
1511
+ }
1512
+ return message;
1513
+ },
1514
+ fromJSON(object) {
1515
+ return {
1516
+ projectId: isSet(object.projectId)
1517
+ ? globalThis.String(object.projectId)
1518
+ : isSet(object.project_id)
1519
+ ? globalThis.String(object.project_id)
1520
+ : "",
1521
+ workflowId: isSet(object.workflowId)
1522
+ ? globalThis.String(object.workflowId)
1523
+ : isSet(object.workflow_id)
1524
+ ? globalThis.String(object.workflow_id)
1525
+ : "",
1526
+ pageSize: isSet(object.pageSize)
1527
+ ? globalThis.Number(object.pageSize)
1528
+ : isSet(object.page_size)
1529
+ ? globalThis.Number(object.page_size)
1530
+ : 0,
1531
+ pageToken: isSet(object.pageToken)
1532
+ ? globalThis.String(object.pageToken)
1533
+ : isSet(object.page_token)
1534
+ ? globalThis.String(object.page_token)
1535
+ : "",
1536
+ };
1537
+ },
1538
+ toJSON(message) {
1539
+ const obj = {};
1540
+ if (message.projectId !== "") {
1541
+ obj.projectId = message.projectId;
1542
+ }
1543
+ if (message.workflowId !== "") {
1544
+ obj.workflowId = message.workflowId;
1545
+ }
1546
+ if (message.pageSize !== 0) {
1547
+ obj.pageSize = Math.round(message.pageSize);
1548
+ }
1549
+ if (message.pageToken !== "") {
1550
+ obj.pageToken = message.pageToken;
1551
+ }
1552
+ return obj;
1553
+ },
1554
+ create(base) {
1555
+ return exports.ListWorkflowIntegrationEndpointBindingsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1556
+ },
1557
+ fromPartial(object) {
1558
+ var _a, _b, _c, _d;
1559
+ const message = createBaseListWorkflowIntegrationEndpointBindingsRequest();
1560
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1561
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1562
+ message.pageSize = (_c = object.pageSize) !== null && _c !== void 0 ? _c : 0;
1563
+ message.pageToken = (_d = object.pageToken) !== null && _d !== void 0 ? _d : "";
1564
+ return message;
1565
+ },
1566
+ };
1567
+ function createBaseListWorkflowIntegrationEndpointBindingsResponse() {
1568
+ return { bindings: [], nextPageToken: "" };
1569
+ }
1570
+ exports.ListWorkflowIntegrationEndpointBindingsResponse = {
1571
+ encode(message, writer = new wire_1.BinaryWriter()) {
1572
+ for (const v of message.bindings) {
1573
+ exports.WorkflowIntegrationEndpointBinding.encode(v, writer.uint32(10).fork()).join();
1574
+ }
1575
+ if (message.nextPageToken !== "") {
1576
+ writer.uint32(18).string(message.nextPageToken);
1577
+ }
1578
+ return writer;
1579
+ },
1580
+ decode(input, length) {
1581
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1582
+ const end = length === undefined ? reader.len : reader.pos + length;
1583
+ const message = createBaseListWorkflowIntegrationEndpointBindingsResponse();
1584
+ while (reader.pos < end) {
1585
+ const tag = reader.uint32();
1586
+ switch (tag >>> 3) {
1587
+ case 1: {
1588
+ if (tag !== 10) {
1589
+ break;
1590
+ }
1591
+ message.bindings.push(exports.WorkflowIntegrationEndpointBinding.decode(reader, reader.uint32()));
1592
+ continue;
1593
+ }
1594
+ case 2: {
1595
+ if (tag !== 18) {
1596
+ break;
1597
+ }
1598
+ message.nextPageToken = reader.string();
1599
+ continue;
1600
+ }
1601
+ }
1602
+ if ((tag & 7) === 4 || tag === 0) {
1603
+ break;
1604
+ }
1605
+ reader.skip(tag & 7);
1606
+ }
1607
+ return message;
1608
+ },
1609
+ fromJSON(object) {
1610
+ return {
1611
+ bindings: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.bindings)
1612
+ ? object.bindings.map((e) => exports.WorkflowIntegrationEndpointBinding.fromJSON(e))
1613
+ : [],
1614
+ nextPageToken: isSet(object.nextPageToken)
1615
+ ? globalThis.String(object.nextPageToken)
1616
+ : isSet(object.next_page_token)
1617
+ ? globalThis.String(object.next_page_token)
1618
+ : "",
1619
+ };
1620
+ },
1621
+ toJSON(message) {
1622
+ var _a;
1623
+ const obj = {};
1624
+ if ((_a = message.bindings) === null || _a === void 0 ? void 0 : _a.length) {
1625
+ obj.bindings = message.bindings.map((e) => exports.WorkflowIntegrationEndpointBinding.toJSON(e));
1626
+ }
1627
+ if (message.nextPageToken !== "") {
1628
+ obj.nextPageToken = message.nextPageToken;
1629
+ }
1630
+ return obj;
1631
+ },
1632
+ create(base) {
1633
+ return exports.ListWorkflowIntegrationEndpointBindingsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1634
+ },
1635
+ fromPartial(object) {
1636
+ var _a;
1637
+ var _b;
1638
+ const message = createBaseListWorkflowIntegrationEndpointBindingsResponse();
1639
+ message.bindings = ((_a = object.bindings) === null || _a === void 0 ? void 0 : _a.map((e) => exports.WorkflowIntegrationEndpointBinding.fromPartial(e))) || [];
1640
+ message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
1641
+ return message;
1642
+ },
1643
+ };
1644
+ function createBaseWorkflowIntegrationEndpointBinding() {
1645
+ return {
1646
+ projectId: "",
1647
+ workflowId: "",
1648
+ integrationEndpointId: "",
1649
+ attachedBy: "",
1650
+ metadata: undefined,
1651
+ attachedAt: undefined,
1652
+ };
1653
+ }
1654
+ exports.WorkflowIntegrationEndpointBinding = {
1655
+ encode(message, writer = new wire_1.BinaryWriter()) {
1656
+ if (message.projectId !== "") {
1657
+ writer.uint32(10).string(message.projectId);
1658
+ }
1659
+ if (message.workflowId !== "") {
1660
+ writer.uint32(18).string(message.workflowId);
1661
+ }
1662
+ if (message.integrationEndpointId !== "") {
1663
+ writer.uint32(26).string(message.integrationEndpointId);
1664
+ }
1665
+ if (message.attachedBy !== "") {
1666
+ writer.uint32(34).string(message.attachedBy);
1667
+ }
1668
+ if (message.metadata !== undefined) {
1669
+ struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.metadata), writer.uint32(42).fork()).join();
1670
+ }
1671
+ if (message.attachedAt !== undefined) {
1672
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.attachedAt), writer.uint32(50).fork()).join();
1673
+ }
1674
+ return writer;
1675
+ },
1676
+ decode(input, length) {
1677
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1678
+ const end = length === undefined ? reader.len : reader.pos + length;
1679
+ const message = createBaseWorkflowIntegrationEndpointBinding();
1680
+ while (reader.pos < end) {
1681
+ const tag = reader.uint32();
1682
+ switch (tag >>> 3) {
1683
+ case 1: {
1684
+ if (tag !== 10) {
1685
+ break;
1686
+ }
1687
+ message.projectId = reader.string();
1688
+ continue;
1689
+ }
1690
+ case 2: {
1691
+ if (tag !== 18) {
1692
+ break;
1693
+ }
1694
+ message.workflowId = reader.string();
1695
+ continue;
1696
+ }
1697
+ case 3: {
1698
+ if (tag !== 26) {
1699
+ break;
1700
+ }
1701
+ message.integrationEndpointId = reader.string();
1702
+ continue;
1703
+ }
1704
+ case 4: {
1705
+ if (tag !== 34) {
1706
+ break;
1707
+ }
1708
+ message.attachedBy = reader.string();
1709
+ continue;
1710
+ }
1711
+ case 5: {
1712
+ if (tag !== 42) {
1713
+ break;
1714
+ }
1715
+ message.metadata = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
1716
+ continue;
1717
+ }
1718
+ case 6: {
1719
+ if (tag !== 50) {
1720
+ break;
1721
+ }
1722
+ message.attachedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
1723
+ continue;
1724
+ }
1725
+ }
1726
+ if ((tag & 7) === 4 || tag === 0) {
1727
+ break;
1728
+ }
1729
+ reader.skip(tag & 7);
1730
+ }
1731
+ return message;
1732
+ },
1733
+ fromJSON(object) {
1734
+ return {
1735
+ projectId: isSet(object.projectId)
1736
+ ? globalThis.String(object.projectId)
1737
+ : isSet(object.project_id)
1738
+ ? globalThis.String(object.project_id)
1739
+ : "",
1740
+ workflowId: isSet(object.workflowId)
1741
+ ? globalThis.String(object.workflowId)
1742
+ : isSet(object.workflow_id)
1743
+ ? globalThis.String(object.workflow_id)
1744
+ : "",
1745
+ integrationEndpointId: isSet(object.integrationEndpointId)
1746
+ ? globalThis.String(object.integrationEndpointId)
1747
+ : isSet(object.integration_endpoint_id)
1748
+ ? globalThis.String(object.integration_endpoint_id)
1749
+ : "",
1750
+ attachedBy: isSet(object.attachedBy)
1751
+ ? globalThis.String(object.attachedBy)
1752
+ : isSet(object.attached_by)
1753
+ ? globalThis.String(object.attached_by)
1754
+ : "",
1755
+ metadata: isObject(object.metadata) ? object.metadata : undefined,
1756
+ attachedAt: isSet(object.attachedAt)
1757
+ ? fromJsonTimestamp(object.attachedAt)
1758
+ : isSet(object.attached_at)
1759
+ ? fromJsonTimestamp(object.attached_at)
1760
+ : undefined,
1761
+ };
1762
+ },
1763
+ toJSON(message) {
1764
+ const obj = {};
1765
+ if (message.projectId !== "") {
1766
+ obj.projectId = message.projectId;
1767
+ }
1768
+ if (message.workflowId !== "") {
1769
+ obj.workflowId = message.workflowId;
1770
+ }
1771
+ if (message.integrationEndpointId !== "") {
1772
+ obj.integrationEndpointId = message.integrationEndpointId;
1773
+ }
1774
+ if (message.attachedBy !== "") {
1775
+ obj.attachedBy = message.attachedBy;
1776
+ }
1777
+ if (message.metadata !== undefined) {
1778
+ obj.metadata = message.metadata;
1779
+ }
1780
+ if (message.attachedAt !== undefined) {
1781
+ obj.attachedAt = message.attachedAt.toISOString();
1782
+ }
1783
+ return obj;
1784
+ },
1785
+ create(base) {
1786
+ return exports.WorkflowIntegrationEndpointBinding.fromPartial(base !== null && base !== void 0 ? base : {});
1787
+ },
1788
+ fromPartial(object) {
1789
+ var _a, _b, _c, _d, _e, _f;
1790
+ const message = createBaseWorkflowIntegrationEndpointBinding();
1791
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1792
+ message.workflowId = (_b = object.workflowId) !== null && _b !== void 0 ? _b : "";
1793
+ message.integrationEndpointId = (_c = object.integrationEndpointId) !== null && _c !== void 0 ? _c : "";
1794
+ message.attachedBy = (_d = object.attachedBy) !== null && _d !== void 0 ? _d : "";
1795
+ message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : undefined;
1796
+ message.attachedAt = (_f = object.attachedAt) !== null && _f !== void 0 ? _f : undefined;
1797
+ return message;
1798
+ },
1799
+ };
1800
+ function createBaseValidateIntegrationEndpointRequest() {
1801
+ return { projectId: "", integrationEndpointId: "" };
1802
+ }
1803
+ exports.ValidateIntegrationEndpointRequest = {
1804
+ encode(message, writer = new wire_1.BinaryWriter()) {
1805
+ if (message.projectId !== "") {
1806
+ writer.uint32(10).string(message.projectId);
1807
+ }
1808
+ if (message.integrationEndpointId !== "") {
1809
+ writer.uint32(18).string(message.integrationEndpointId);
1810
+ }
1811
+ return writer;
1812
+ },
1813
+ decode(input, length) {
1814
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1815
+ const end = length === undefined ? reader.len : reader.pos + length;
1816
+ const message = createBaseValidateIntegrationEndpointRequest();
1817
+ while (reader.pos < end) {
1818
+ const tag = reader.uint32();
1819
+ switch (tag >>> 3) {
1820
+ case 1: {
1821
+ if (tag !== 10) {
1822
+ break;
1823
+ }
1824
+ message.projectId = reader.string();
1825
+ continue;
1826
+ }
1827
+ case 2: {
1828
+ if (tag !== 18) {
1829
+ break;
1830
+ }
1831
+ message.integrationEndpointId = reader.string();
1832
+ continue;
1833
+ }
1834
+ }
1835
+ if ((tag & 7) === 4 || tag === 0) {
1836
+ break;
1837
+ }
1838
+ reader.skip(tag & 7);
1839
+ }
1840
+ return message;
1841
+ },
1842
+ fromJSON(object) {
1843
+ return {
1844
+ projectId: isSet(object.projectId)
1845
+ ? globalThis.String(object.projectId)
1846
+ : isSet(object.project_id)
1847
+ ? globalThis.String(object.project_id)
1848
+ : "",
1849
+ integrationEndpointId: isSet(object.integrationEndpointId)
1850
+ ? globalThis.String(object.integrationEndpointId)
1851
+ : isSet(object.integration_endpoint_id)
1852
+ ? globalThis.String(object.integration_endpoint_id)
1853
+ : "",
1854
+ };
1855
+ },
1856
+ toJSON(message) {
1857
+ const obj = {};
1858
+ if (message.projectId !== "") {
1859
+ obj.projectId = message.projectId;
1860
+ }
1861
+ if (message.integrationEndpointId !== "") {
1862
+ obj.integrationEndpointId = message.integrationEndpointId;
1863
+ }
1864
+ return obj;
1865
+ },
1866
+ create(base) {
1867
+ return exports.ValidateIntegrationEndpointRequest.fromPartial(base !== null && base !== void 0 ? base : {});
1868
+ },
1869
+ fromPartial(object) {
1870
+ var _a, _b;
1871
+ const message = createBaseValidateIntegrationEndpointRequest();
1872
+ message.projectId = (_a = object.projectId) !== null && _a !== void 0 ? _a : "";
1873
+ message.integrationEndpointId = (_b = object.integrationEndpointId) !== null && _b !== void 0 ? _b : "";
1874
+ return message;
1875
+ },
1876
+ };
1877
+ function createBaseValidateIntegrationEndpointResponse() {
1878
+ return { success: false, message: "", checkedAt: undefined };
1879
+ }
1880
+ exports.ValidateIntegrationEndpointResponse = {
1881
+ encode(message, writer = new wire_1.BinaryWriter()) {
1882
+ if (message.success !== false) {
1883
+ writer.uint32(8).bool(message.success);
1884
+ }
1885
+ if (message.message !== "") {
1886
+ writer.uint32(18).string(message.message);
1887
+ }
1888
+ if (message.checkedAt !== undefined) {
1889
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.checkedAt), writer.uint32(26).fork()).join();
1890
+ }
1891
+ return writer;
1892
+ },
1893
+ decode(input, length) {
1894
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1895
+ const end = length === undefined ? reader.len : reader.pos + length;
1896
+ const message = createBaseValidateIntegrationEndpointResponse();
1897
+ while (reader.pos < end) {
1898
+ const tag = reader.uint32();
1899
+ switch (tag >>> 3) {
1900
+ case 1: {
1901
+ if (tag !== 8) {
1902
+ break;
1903
+ }
1904
+ message.success = reader.bool();
1905
+ continue;
1906
+ }
1907
+ case 2: {
1908
+ if (tag !== 18) {
1909
+ break;
1910
+ }
1911
+ message.message = reader.string();
1912
+ continue;
1913
+ }
1914
+ case 3: {
1915
+ if (tag !== 26) {
1916
+ break;
1917
+ }
1918
+ message.checkedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
1919
+ continue;
1920
+ }
1921
+ }
1922
+ if ((tag & 7) === 4 || tag === 0) {
1923
+ break;
1924
+ }
1925
+ reader.skip(tag & 7);
1926
+ }
1927
+ return message;
1928
+ },
1929
+ fromJSON(object) {
1930
+ return {
1931
+ success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
1932
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
1933
+ checkedAt: isSet(object.checkedAt)
1934
+ ? fromJsonTimestamp(object.checkedAt)
1935
+ : isSet(object.checked_at)
1936
+ ? fromJsonTimestamp(object.checked_at)
1937
+ : undefined,
1938
+ };
1939
+ },
1940
+ toJSON(message) {
1941
+ const obj = {};
1942
+ if (message.success !== false) {
1943
+ obj.success = message.success;
1944
+ }
1945
+ if (message.message !== "") {
1946
+ obj.message = message.message;
1947
+ }
1948
+ if (message.checkedAt !== undefined) {
1949
+ obj.checkedAt = message.checkedAt.toISOString();
1950
+ }
1951
+ return obj;
1952
+ },
1953
+ create(base) {
1954
+ return exports.ValidateIntegrationEndpointResponse.fromPartial(base !== null && base !== void 0 ? base : {});
1955
+ },
1956
+ fromPartial(object) {
1957
+ var _a, _b, _c;
1958
+ const message = createBaseValidateIntegrationEndpointResponse();
1959
+ message.success = (_a = object.success) !== null && _a !== void 0 ? _a : false;
1960
+ message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
1961
+ message.checkedAt = (_c = object.checkedAt) !== null && _c !== void 0 ? _c : undefined;
1962
+ return message;
1963
+ },
1964
+ };
1965
+ exports.IntegrationServiceServiceName = "weaveapi.integration.v1.IntegrationService";
1966
+ class IntegrationServiceClientImpl {
1967
+ rpc;
1968
+ service;
1969
+ constructor(rpc, opts) {
1970
+ this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.IntegrationServiceServiceName;
1971
+ this.rpc = rpc;
1972
+ this.CreateIntegrationEndpoint = this.CreateIntegrationEndpoint.bind(this);
1973
+ this.GetIntegrationEndpoint = this.GetIntegrationEndpoint.bind(this);
1974
+ this.ListIntegrationEndpoints = this.ListIntegrationEndpoints.bind(this);
1975
+ this.UpdateIntegrationEndpoint = this.UpdateIntegrationEndpoint.bind(this);
1976
+ this.ArchiveIntegrationEndpoint = this.ArchiveIntegrationEndpoint.bind(this);
1977
+ this.DeleteIntegrationEndpoint = this.DeleteIntegrationEndpoint.bind(this);
1978
+ this.AttachIntegrationEndpointToWorkflow = this.AttachIntegrationEndpointToWorkflow.bind(this);
1979
+ this.DetachIntegrationEndpointFromWorkflow = this.DetachIntegrationEndpointFromWorkflow.bind(this);
1980
+ this.ListWorkflowIntegrationEndpointBindings = this.ListWorkflowIntegrationEndpointBindings.bind(this);
1981
+ this.ValidateIntegrationEndpoint = this.ValidateIntegrationEndpoint.bind(this);
1982
+ }
1983
+ CreateIntegrationEndpoint(request) {
1984
+ const data = exports.CreateIntegrationEndpointRequest.encode(request).finish();
1985
+ const promise = this.rpc.request(this.service, "CreateIntegrationEndpoint", data);
1986
+ return promise.then((data) => exports.CreateIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
1987
+ }
1988
+ GetIntegrationEndpoint(request) {
1989
+ const data = exports.GetIntegrationEndpointRequest.encode(request).finish();
1990
+ const promise = this.rpc.request(this.service, "GetIntegrationEndpoint", data);
1991
+ return promise.then((data) => exports.GetIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
1992
+ }
1993
+ ListIntegrationEndpoints(request) {
1994
+ const data = exports.ListIntegrationEndpointsRequest.encode(request).finish();
1995
+ const promise = this.rpc.request(this.service, "ListIntegrationEndpoints", data);
1996
+ return promise.then((data) => exports.ListIntegrationEndpointsResponse.decode(new wire_1.BinaryReader(data)));
1997
+ }
1998
+ UpdateIntegrationEndpoint(request) {
1999
+ const data = exports.UpdateIntegrationEndpointRequest.encode(request).finish();
2000
+ const promise = this.rpc.request(this.service, "UpdateIntegrationEndpoint", data);
2001
+ return promise.then((data) => exports.UpdateIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
2002
+ }
2003
+ ArchiveIntegrationEndpoint(request) {
2004
+ const data = exports.ArchiveIntegrationEndpointRequest.encode(request).finish();
2005
+ const promise = this.rpc.request(this.service, "ArchiveIntegrationEndpoint", data);
2006
+ return promise.then((data) => exports.ArchiveIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
2007
+ }
2008
+ DeleteIntegrationEndpoint(request) {
2009
+ const data = exports.DeleteIntegrationEndpointRequest.encode(request).finish();
2010
+ const promise = this.rpc.request(this.service, "DeleteIntegrationEndpoint", data);
2011
+ return promise.then((data) => exports.DeleteIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
2012
+ }
2013
+ AttachIntegrationEndpointToWorkflow(request) {
2014
+ const data = exports.AttachIntegrationEndpointToWorkflowRequest.encode(request).finish();
2015
+ const promise = this.rpc.request(this.service, "AttachIntegrationEndpointToWorkflow", data);
2016
+ return promise.then((data) => exports.AttachIntegrationEndpointToWorkflowResponse.decode(new wire_1.BinaryReader(data)));
2017
+ }
2018
+ DetachIntegrationEndpointFromWorkflow(request) {
2019
+ const data = exports.DetachIntegrationEndpointFromWorkflowRequest.encode(request).finish();
2020
+ const promise = this.rpc.request(this.service, "DetachIntegrationEndpointFromWorkflow", data);
2021
+ return promise.then((data) => exports.DetachIntegrationEndpointFromWorkflowResponse.decode(new wire_1.BinaryReader(data)));
2022
+ }
2023
+ ListWorkflowIntegrationEndpointBindings(request) {
2024
+ const data = exports.ListWorkflowIntegrationEndpointBindingsRequest.encode(request).finish();
2025
+ const promise = this.rpc.request(this.service, "ListWorkflowIntegrationEndpointBindings", data);
2026
+ return promise.then((data) => exports.ListWorkflowIntegrationEndpointBindingsResponse.decode(new wire_1.BinaryReader(data)));
2027
+ }
2028
+ ValidateIntegrationEndpoint(request) {
2029
+ const data = exports.ValidateIntegrationEndpointRequest.encode(request).finish();
2030
+ const promise = this.rpc.request(this.service, "ValidateIntegrationEndpoint", data);
2031
+ return promise.then((data) => exports.ValidateIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
2032
+ }
2033
+ }
2034
+ exports.IntegrationServiceClientImpl = IntegrationServiceClientImpl;
2035
+ exports.IntegrationServiceDefinition = {
2036
+ name: "IntegrationService",
2037
+ fullName: "weaveapi.integration.v1.IntegrationService",
2038
+ methods: {
2039
+ createIntegrationEndpoint: {
2040
+ name: "CreateIntegrationEndpoint",
2041
+ requestType: exports.CreateIntegrationEndpointRequest,
2042
+ requestStream: false,
2043
+ responseType: exports.CreateIntegrationEndpointResponse,
2044
+ responseStream: false,
2045
+ options: {
2046
+ _unknownFields: {
2047
+ 578365826: [
2048
+ new Uint8Array([
2049
+ 43,
2050
+ 58,
2051
+ 1,
2052
+ 42,
2053
+ 34,
2054
+ 38,
2055
+ 47,
2056
+ 118,
2057
+ 49,
2058
+ 47,
2059
+ 112,
2060
+ 114,
2061
+ 111,
2062
+ 106,
2063
+ 101,
2064
+ 99,
2065
+ 116,
2066
+ 115,
2067
+ 47,
2068
+ 123,
2069
+ 112,
2070
+ 114,
2071
+ 111,
2072
+ 106,
2073
+ 101,
2074
+ 99,
2075
+ 116,
2076
+ 95,
2077
+ 105,
2078
+ 100,
2079
+ 125,
2080
+ 47,
2081
+ 105,
2082
+ 110,
2083
+ 116,
2084
+ 101,
2085
+ 103,
2086
+ 114,
2087
+ 97,
2088
+ 116,
2089
+ 105,
2090
+ 111,
2091
+ 110,
2092
+ 115,
2093
+ ]),
2094
+ ],
2095
+ },
2096
+ },
2097
+ },
2098
+ getIntegrationEndpoint: {
2099
+ name: "GetIntegrationEndpoint",
2100
+ requestType: exports.GetIntegrationEndpointRequest,
2101
+ requestStream: false,
2102
+ responseType: exports.GetIntegrationEndpointResponse,
2103
+ responseStream: false,
2104
+ options: {
2105
+ _unknownFields: {
2106
+ 578365826: [
2107
+ new Uint8Array([
2108
+ 66,
2109
+ 18,
2110
+ 64,
2111
+ 47,
2112
+ 118,
2113
+ 49,
2114
+ 47,
2115
+ 112,
2116
+ 114,
2117
+ 111,
2118
+ 106,
2119
+ 101,
2120
+ 99,
2121
+ 116,
2122
+ 115,
2123
+ 47,
2124
+ 123,
2125
+ 112,
2126
+ 114,
2127
+ 111,
2128
+ 106,
2129
+ 101,
2130
+ 99,
2131
+ 116,
2132
+ 95,
2133
+ 105,
2134
+ 100,
2135
+ 125,
2136
+ 47,
2137
+ 105,
2138
+ 110,
2139
+ 116,
2140
+ 101,
2141
+ 103,
2142
+ 114,
2143
+ 97,
2144
+ 116,
2145
+ 105,
2146
+ 111,
2147
+ 110,
2148
+ 115,
2149
+ 47,
2150
+ 123,
2151
+ 105,
2152
+ 110,
2153
+ 116,
2154
+ 101,
2155
+ 103,
2156
+ 114,
2157
+ 97,
2158
+ 116,
2159
+ 105,
2160
+ 111,
2161
+ 110,
2162
+ 95,
2163
+ 101,
2164
+ 110,
2165
+ 100,
2166
+ 112,
2167
+ 111,
2168
+ 105,
2169
+ 110,
2170
+ 116,
2171
+ 95,
2172
+ 105,
2173
+ 100,
2174
+ 125,
2175
+ ]),
2176
+ ],
2177
+ },
2178
+ },
2179
+ },
2180
+ listIntegrationEndpoints: {
2181
+ name: "ListIntegrationEndpoints",
2182
+ requestType: exports.ListIntegrationEndpointsRequest,
2183
+ requestStream: false,
2184
+ responseType: exports.ListIntegrationEndpointsResponse,
2185
+ responseStream: false,
2186
+ options: {
2187
+ _unknownFields: {
2188
+ 578365826: [
2189
+ new Uint8Array([
2190
+ 106,
2191
+ 90,
2192
+ 64,
2193
+ 18,
2194
+ 62,
2195
+ 47,
2196
+ 118,
2197
+ 49,
2198
+ 47,
2199
+ 112,
2200
+ 114,
2201
+ 111,
2202
+ 106,
2203
+ 101,
2204
+ 99,
2205
+ 116,
2206
+ 115,
2207
+ 47,
2208
+ 123,
2209
+ 112,
2210
+ 114,
2211
+ 111,
2212
+ 106,
2213
+ 101,
2214
+ 99,
2215
+ 116,
2216
+ 95,
2217
+ 105,
2218
+ 100,
2219
+ 125,
2220
+ 47,
2221
+ 119,
2222
+ 111,
2223
+ 114,
2224
+ 107,
2225
+ 102,
2226
+ 108,
2227
+ 111,
2228
+ 119,
2229
+ 115,
2230
+ 47,
2231
+ 123,
2232
+ 119,
2233
+ 111,
2234
+ 114,
2235
+ 107,
2236
+ 102,
2237
+ 108,
2238
+ 111,
2239
+ 119,
2240
+ 95,
2241
+ 105,
2242
+ 100,
2243
+ 125,
2244
+ 47,
2245
+ 105,
2246
+ 110,
2247
+ 116,
2248
+ 101,
2249
+ 103,
2250
+ 114,
2251
+ 97,
2252
+ 116,
2253
+ 105,
2254
+ 111,
2255
+ 110,
2256
+ 115,
2257
+ 18,
2258
+ 38,
2259
+ 47,
2260
+ 118,
2261
+ 49,
2262
+ 47,
2263
+ 112,
2264
+ 114,
2265
+ 111,
2266
+ 106,
2267
+ 101,
2268
+ 99,
2269
+ 116,
2270
+ 115,
2271
+ 47,
2272
+ 123,
2273
+ 112,
2274
+ 114,
2275
+ 111,
2276
+ 106,
2277
+ 101,
2278
+ 99,
2279
+ 116,
2280
+ 95,
2281
+ 105,
2282
+ 100,
2283
+ 125,
2284
+ 47,
2285
+ 105,
2286
+ 110,
2287
+ 116,
2288
+ 101,
2289
+ 103,
2290
+ 114,
2291
+ 97,
2292
+ 116,
2293
+ 105,
2294
+ 111,
2295
+ 110,
2296
+ 115,
2297
+ ]),
2298
+ ],
2299
+ },
2300
+ },
2301
+ },
2302
+ updateIntegrationEndpoint: {
2303
+ name: "UpdateIntegrationEndpoint",
2304
+ requestType: exports.UpdateIntegrationEndpointRequest,
2305
+ requestStream: false,
2306
+ responseType: exports.UpdateIntegrationEndpointResponse,
2307
+ responseStream: false,
2308
+ options: {
2309
+ _unknownFields: {
2310
+ 578365826: [
2311
+ new Uint8Array([
2312
+ 69,
2313
+ 58,
2314
+ 1,
2315
+ 42,
2316
+ 50,
2317
+ 64,
2318
+ 47,
2319
+ 118,
2320
+ 49,
2321
+ 47,
2322
+ 112,
2323
+ 114,
2324
+ 111,
2325
+ 106,
2326
+ 101,
2327
+ 99,
2328
+ 116,
2329
+ 115,
2330
+ 47,
2331
+ 123,
2332
+ 112,
2333
+ 114,
2334
+ 111,
2335
+ 106,
2336
+ 101,
2337
+ 99,
2338
+ 116,
2339
+ 95,
2340
+ 105,
2341
+ 100,
2342
+ 125,
2343
+ 47,
2344
+ 105,
2345
+ 110,
2346
+ 116,
2347
+ 101,
2348
+ 103,
2349
+ 114,
2350
+ 97,
2351
+ 116,
2352
+ 105,
2353
+ 111,
2354
+ 110,
2355
+ 115,
2356
+ 47,
2357
+ 123,
2358
+ 105,
2359
+ 110,
2360
+ 116,
2361
+ 101,
2362
+ 103,
2363
+ 114,
2364
+ 97,
2365
+ 116,
2366
+ 105,
2367
+ 111,
2368
+ 110,
2369
+ 95,
2370
+ 101,
2371
+ 110,
2372
+ 100,
2373
+ 112,
2374
+ 111,
2375
+ 105,
2376
+ 110,
2377
+ 116,
2378
+ 95,
2379
+ 105,
2380
+ 100,
2381
+ 125,
2382
+ ]),
2383
+ ],
2384
+ },
2385
+ },
2386
+ },
2387
+ archiveIntegrationEndpoint: {
2388
+ name: "ArchiveIntegrationEndpoint",
2389
+ requestType: exports.ArchiveIntegrationEndpointRequest,
2390
+ requestStream: false,
2391
+ responseType: exports.ArchiveIntegrationEndpointResponse,
2392
+ responseStream: false,
2393
+ options: {
2394
+ _unknownFields: {
2395
+ 578365826: [
2396
+ new Uint8Array([
2397
+ 77,
2398
+ 58,
2399
+ 1,
2400
+ 42,
2401
+ 34,
2402
+ 72,
2403
+ 47,
2404
+ 118,
2405
+ 49,
2406
+ 47,
2407
+ 112,
2408
+ 114,
2409
+ 111,
2410
+ 106,
2411
+ 101,
2412
+ 99,
2413
+ 116,
2414
+ 115,
2415
+ 47,
2416
+ 123,
2417
+ 112,
2418
+ 114,
2419
+ 111,
2420
+ 106,
2421
+ 101,
2422
+ 99,
2423
+ 116,
2424
+ 95,
2425
+ 105,
2426
+ 100,
2427
+ 125,
2428
+ 47,
2429
+ 105,
2430
+ 110,
2431
+ 116,
2432
+ 101,
2433
+ 103,
2434
+ 114,
2435
+ 97,
2436
+ 116,
2437
+ 105,
2438
+ 111,
2439
+ 110,
2440
+ 115,
2441
+ 47,
2442
+ 123,
2443
+ 105,
2444
+ 110,
2445
+ 116,
2446
+ 101,
2447
+ 103,
2448
+ 114,
2449
+ 97,
2450
+ 116,
2451
+ 105,
2452
+ 111,
2453
+ 110,
2454
+ 95,
2455
+ 101,
2456
+ 110,
2457
+ 100,
2458
+ 112,
2459
+ 111,
2460
+ 105,
2461
+ 110,
2462
+ 116,
2463
+ 95,
2464
+ 105,
2465
+ 100,
2466
+ 125,
2467
+ 58,
2468
+ 97,
2469
+ 114,
2470
+ 99,
2471
+ 104,
2472
+ 105,
2473
+ 118,
2474
+ 101,
2475
+ ]),
2476
+ ],
2477
+ },
2478
+ },
2479
+ },
2480
+ deleteIntegrationEndpoint: {
2481
+ name: "DeleteIntegrationEndpoint",
2482
+ requestType: exports.DeleteIntegrationEndpointRequest,
2483
+ requestStream: false,
2484
+ responseType: exports.DeleteIntegrationEndpointResponse,
2485
+ responseStream: false,
2486
+ options: {
2487
+ _unknownFields: {
2488
+ 578365826: [
2489
+ new Uint8Array([
2490
+ 66,
2491
+ 42,
2492
+ 64,
2493
+ 47,
2494
+ 118,
2495
+ 49,
2496
+ 47,
2497
+ 112,
2498
+ 114,
2499
+ 111,
2500
+ 106,
2501
+ 101,
2502
+ 99,
2503
+ 116,
2504
+ 115,
2505
+ 47,
2506
+ 123,
2507
+ 112,
2508
+ 114,
2509
+ 111,
2510
+ 106,
2511
+ 101,
2512
+ 99,
2513
+ 116,
2514
+ 95,
2515
+ 105,
2516
+ 100,
2517
+ 125,
2518
+ 47,
2519
+ 105,
2520
+ 110,
2521
+ 116,
2522
+ 101,
2523
+ 103,
2524
+ 114,
2525
+ 97,
2526
+ 116,
2527
+ 105,
2528
+ 111,
2529
+ 110,
2530
+ 115,
2531
+ 47,
2532
+ 123,
2533
+ 105,
2534
+ 110,
2535
+ 116,
2536
+ 101,
2537
+ 103,
2538
+ 114,
2539
+ 97,
2540
+ 116,
2541
+ 105,
2542
+ 111,
2543
+ 110,
2544
+ 95,
2545
+ 101,
2546
+ 110,
2547
+ 100,
2548
+ 112,
2549
+ 111,
2550
+ 105,
2551
+ 110,
2552
+ 116,
2553
+ 95,
2554
+ 105,
2555
+ 100,
2556
+ 125,
2557
+ ]),
2558
+ ],
2559
+ },
2560
+ },
2561
+ },
2562
+ attachIntegrationEndpointToWorkflow: {
2563
+ name: "AttachIntegrationEndpointToWorkflow",
2564
+ requestType: exports.AttachIntegrationEndpointToWorkflowRequest,
2565
+ requestStream: false,
2566
+ responseType: exports.AttachIntegrationEndpointToWorkflowResponse,
2567
+ responseStream: false,
2568
+ options: {
2569
+ _unknownFields: {
2570
+ 578365826: [
2571
+ new Uint8Array([
2572
+ 100,
2573
+ 58,
2574
+ 1,
2575
+ 42,
2576
+ 34,
2577
+ 95,
2578
+ 47,
2579
+ 118,
2580
+ 49,
2581
+ 47,
2582
+ 112,
2583
+ 114,
2584
+ 111,
2585
+ 106,
2586
+ 101,
2587
+ 99,
2588
+ 116,
2589
+ 115,
2590
+ 47,
2591
+ 123,
2592
+ 112,
2593
+ 114,
2594
+ 111,
2595
+ 106,
2596
+ 101,
2597
+ 99,
2598
+ 116,
2599
+ 95,
2600
+ 105,
2601
+ 100,
2602
+ 125,
2603
+ 47,
2604
+ 119,
2605
+ 111,
2606
+ 114,
2607
+ 107,
2608
+ 102,
2609
+ 108,
2610
+ 111,
2611
+ 119,
2612
+ 115,
2613
+ 47,
2614
+ 123,
2615
+ 119,
2616
+ 111,
2617
+ 114,
2618
+ 107,
2619
+ 102,
2620
+ 108,
2621
+ 111,
2622
+ 119,
2623
+ 95,
2624
+ 105,
2625
+ 100,
2626
+ 125,
2627
+ 47,
2628
+ 105,
2629
+ 110,
2630
+ 116,
2631
+ 101,
2632
+ 103,
2633
+ 114,
2634
+ 97,
2635
+ 116,
2636
+ 105,
2637
+ 111,
2638
+ 110,
2639
+ 115,
2640
+ 47,
2641
+ 123,
2642
+ 105,
2643
+ 110,
2644
+ 116,
2645
+ 101,
2646
+ 103,
2647
+ 114,
2648
+ 97,
2649
+ 116,
2650
+ 105,
2651
+ 111,
2652
+ 110,
2653
+ 95,
2654
+ 101,
2655
+ 110,
2656
+ 100,
2657
+ 112,
2658
+ 111,
2659
+ 105,
2660
+ 110,
2661
+ 116,
2662
+ 95,
2663
+ 105,
2664
+ 100,
2665
+ 125,
2666
+ 58,
2667
+ 97,
2668
+ 116,
2669
+ 116,
2670
+ 97,
2671
+ 99,
2672
+ 104,
2673
+ ]),
2674
+ ],
2675
+ },
2676
+ },
2677
+ },
2678
+ detachIntegrationEndpointFromWorkflow: {
2679
+ name: "DetachIntegrationEndpointFromWorkflow",
2680
+ requestType: exports.DetachIntegrationEndpointFromWorkflowRequest,
2681
+ requestStream: false,
2682
+ responseType: exports.DetachIntegrationEndpointFromWorkflowResponse,
2683
+ responseStream: false,
2684
+ options: {
2685
+ _unknownFields: {
2686
+ 578365826: [
2687
+ new Uint8Array([
2688
+ 90,
2689
+ 42,
2690
+ 88,
2691
+ 47,
2692
+ 118,
2693
+ 49,
2694
+ 47,
2695
+ 112,
2696
+ 114,
2697
+ 111,
2698
+ 106,
2699
+ 101,
2700
+ 99,
2701
+ 116,
2702
+ 115,
2703
+ 47,
2704
+ 123,
2705
+ 112,
2706
+ 114,
2707
+ 111,
2708
+ 106,
2709
+ 101,
2710
+ 99,
2711
+ 116,
2712
+ 95,
2713
+ 105,
2714
+ 100,
2715
+ 125,
2716
+ 47,
2717
+ 119,
2718
+ 111,
2719
+ 114,
2720
+ 107,
2721
+ 102,
2722
+ 108,
2723
+ 111,
2724
+ 119,
2725
+ 115,
2726
+ 47,
2727
+ 123,
2728
+ 119,
2729
+ 111,
2730
+ 114,
2731
+ 107,
2732
+ 102,
2733
+ 108,
2734
+ 111,
2735
+ 119,
2736
+ 95,
2737
+ 105,
2738
+ 100,
2739
+ 125,
2740
+ 47,
2741
+ 105,
2742
+ 110,
2743
+ 116,
2744
+ 101,
2745
+ 103,
2746
+ 114,
2747
+ 97,
2748
+ 116,
2749
+ 105,
2750
+ 111,
2751
+ 110,
2752
+ 115,
2753
+ 47,
2754
+ 123,
2755
+ 105,
2756
+ 110,
2757
+ 116,
2758
+ 101,
2759
+ 103,
2760
+ 114,
2761
+ 97,
2762
+ 116,
2763
+ 105,
2764
+ 111,
2765
+ 110,
2766
+ 95,
2767
+ 101,
2768
+ 110,
2769
+ 100,
2770
+ 112,
2771
+ 111,
2772
+ 105,
2773
+ 110,
2774
+ 116,
2775
+ 95,
2776
+ 105,
2777
+ 100,
2778
+ 125,
2779
+ ]),
2780
+ ],
2781
+ },
2782
+ },
2783
+ },
2784
+ listWorkflowIntegrationEndpointBindings: {
2785
+ name: "ListWorkflowIntegrationEndpointBindings",
2786
+ requestType: exports.ListWorkflowIntegrationEndpointBindingsRequest,
2787
+ requestStream: false,
2788
+ responseType: exports.ListWorkflowIntegrationEndpointBindingsResponse,
2789
+ responseStream: false,
2790
+ options: {
2791
+ _unknownFields: {
2792
+ 578365826: [
2793
+ new Uint8Array([
2794
+ 72,
2795
+ 18,
2796
+ 70,
2797
+ 47,
2798
+ 118,
2799
+ 49,
2800
+ 47,
2801
+ 112,
2802
+ 114,
2803
+ 111,
2804
+ 106,
2805
+ 101,
2806
+ 99,
2807
+ 116,
2808
+ 115,
2809
+ 47,
2810
+ 123,
2811
+ 112,
2812
+ 114,
2813
+ 111,
2814
+ 106,
2815
+ 101,
2816
+ 99,
2817
+ 116,
2818
+ 95,
2819
+ 105,
2820
+ 100,
2821
+ 125,
2822
+ 47,
2823
+ 119,
2824
+ 111,
2825
+ 114,
2826
+ 107,
2827
+ 102,
2828
+ 108,
2829
+ 111,
2830
+ 119,
2831
+ 115,
2832
+ 47,
2833
+ 123,
2834
+ 119,
2835
+ 111,
2836
+ 114,
2837
+ 107,
2838
+ 102,
2839
+ 108,
2840
+ 111,
2841
+ 119,
2842
+ 95,
2843
+ 105,
2844
+ 100,
2845
+ 125,
2846
+ 47,
2847
+ 105,
2848
+ 110,
2849
+ 116,
2850
+ 101,
2851
+ 103,
2852
+ 114,
2853
+ 97,
2854
+ 116,
2855
+ 105,
2856
+ 111,
2857
+ 110,
2858
+ 45,
2859
+ 98,
2860
+ 105,
2861
+ 110,
2862
+ 100,
2863
+ 105,
2864
+ 110,
2865
+ 103,
2866
+ 115,
2867
+ ]),
2868
+ ],
2869
+ },
2870
+ },
2871
+ },
2872
+ validateIntegrationEndpoint: {
2873
+ name: "ValidateIntegrationEndpoint",
2874
+ requestType: exports.ValidateIntegrationEndpointRequest,
2875
+ requestStream: false,
2876
+ responseType: exports.ValidateIntegrationEndpointResponse,
2877
+ responseStream: false,
2878
+ options: {
2879
+ _unknownFields: {
2880
+ 578365826: [
2881
+ new Uint8Array([
2882
+ 78,
2883
+ 58,
2884
+ 1,
2885
+ 42,
2886
+ 34,
2887
+ 73,
2888
+ 47,
2889
+ 118,
2890
+ 49,
2891
+ 47,
2892
+ 112,
2893
+ 114,
2894
+ 111,
2895
+ 106,
2896
+ 101,
2897
+ 99,
2898
+ 116,
2899
+ 115,
2900
+ 47,
2901
+ 123,
2902
+ 112,
2903
+ 114,
2904
+ 111,
2905
+ 106,
2906
+ 101,
2907
+ 99,
2908
+ 116,
2909
+ 95,
2910
+ 105,
2911
+ 100,
2912
+ 125,
2913
+ 47,
2914
+ 105,
2915
+ 110,
2916
+ 116,
2917
+ 101,
2918
+ 103,
2919
+ 114,
2920
+ 97,
2921
+ 116,
2922
+ 105,
2923
+ 111,
2924
+ 110,
2925
+ 115,
2926
+ 47,
2927
+ 123,
2928
+ 105,
2929
+ 110,
2930
+ 116,
2931
+ 101,
2932
+ 103,
2933
+ 114,
2934
+ 97,
2935
+ 116,
2936
+ 105,
2937
+ 111,
2938
+ 110,
2939
+ 95,
2940
+ 101,
2941
+ 110,
2942
+ 100,
2943
+ 112,
2944
+ 111,
2945
+ 105,
2946
+ 110,
2947
+ 116,
2948
+ 95,
2949
+ 105,
2950
+ 100,
2951
+ 125,
2952
+ 58,
2953
+ 118,
2954
+ 97,
2955
+ 108,
2956
+ 105,
2957
+ 100,
2958
+ 97,
2959
+ 116,
2960
+ 101,
2961
+ ]),
2962
+ ],
2963
+ },
2964
+ },
2965
+ },
2966
+ },
2967
+ };
2968
+ function toTimestamp(date) {
2969
+ const seconds = Math.trunc(date.getTime() / 1000);
2970
+ const nanos = (date.getTime() % 1000) * 1000000;
2971
+ return { seconds, nanos };
2972
+ }
2973
+ function fromTimestamp(t) {
2974
+ let millis = (t.seconds || 0) * 1000;
2975
+ millis += (t.nanos || 0) / 1000000;
2976
+ return new globalThis.Date(millis);
2977
+ }
2978
+ function fromJsonTimestamp(o) {
2979
+ if (o instanceof globalThis.Date) {
2980
+ return o;
2981
+ }
2982
+ else if (typeof o === "string") {
2983
+ return new globalThis.Date(o);
2984
+ }
2985
+ else {
2986
+ return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
2987
+ }
2988
+ }
2989
+ function isObject(value) {
2990
+ return typeof value === "object" && value !== null;
2991
+ }
2992
+ function isSet(value) {
2993
+ return value !== null && value !== undefined;
2994
+ }