weave-typescript 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/index.d.ts +9 -16
  2. package/dist/index.js +13 -21
  3. package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
  4. package/dist/weaveapi/project/v1/project.pb.js +764 -65
  5. package/dist/weaveapi/project/v1/service.pb.d.ts +110 -69
  6. package/dist/weaveapi/project/v1/service.pb.js +1056 -392
  7. package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
  8. package/dist/weaveapi/task/v1/service.pb.js +1416 -0
  9. package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
  10. package/dist/weaveapi/task/v1/task.pb.js +782 -0
  11. package/dist/weavesql/atcdb/event_sql.d.ts +10 -0
  12. package/dist/weavesql/atcdb/event_sql.js +11 -1
  13. package/dist/weavesql/atcdb/mailbox_sql.d.ts +2 -2
  14. package/dist/weavesql/atcdb/mailbox_sql.js +1 -1
  15. package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
  16. package/dist/weavesql/weavedb/project_sql.js +304 -112
  17. package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
  18. package/dist/weavesql/weavedb/task_sql.js +328 -0
  19. package/package.json +1 -1
  20. package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
  21. package/dist/weaveapi/auth/v1/service.pb.js +0 -5058
  22. package/dist/weaveapi/auth/v1/session.pb.d.ts +0 -43
  23. package/dist/weaveapi/auth/v1/session.pb.js +0 -308
  24. package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
  25. package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
  26. package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
  27. package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
  28. package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
  29. package/dist/weaveapi/data/v1/data.pb.js +0 -411
  30. package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
  31. package/dist/weaveapi/data/v1/service.pb.js +0 -2777
  32. package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
  33. package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
  34. package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
  35. package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
  36. package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
  37. package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
  38. package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
  39. package/dist/weaveapi/input/v1/input.pb.js +0 -632
  40. package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
  41. package/dist/weaveapi/input/v1/service.pb.js +0 -3610
  42. package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
  43. package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
  44. package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
  45. package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
  46. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
  47. package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
  48. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
  49. package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
  50. package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
  51. package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
  52. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
  53. package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
  54. package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
  55. package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
  56. package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
  57. package/dist/weaveapi/llmx/v1/service.pb.js +0 -5311
  58. package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
  59. package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
  60. package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
  61. package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
  62. package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
  63. package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
  64. package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
  65. package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
  66. package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
  67. package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
  68. package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
  69. package/dist/weaveapi/report/v1/report.pb.js +0 -678
  70. package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
  71. package/dist/weaveapi/report/v1/service.pb.js +0 -1923
  72. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
  73. package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
  74. package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
  75. package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
  76. package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
  77. package/dist/weaveapi/run/v1/run.pb.js +0 -1155
  78. package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
  79. package/dist/weaveapi/run/v1/service.pb.js +0 -2426
  80. package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
  81. package/dist/weaveapi/script/v1/script.pb.js +0 -1025
  82. package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
  83. package/dist/weaveapi/script/v1/service.pb.js +0 -4871
  84. package/dist/weaveapi/storage/v1/auth.pb.d.ts +0 -27
  85. package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
  86. package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
  87. package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
  88. package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
  89. package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
  90. package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
  91. package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
  92. package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
  93. package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
  94. package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
  95. package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
  96. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
  97. package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
  98. package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
  99. package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
  100. package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
  101. package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
  102. package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
  103. package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
  104. package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
  105. package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
  106. package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
  107. package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
  108. package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
  109. package/dist/weaveapi/synthesize/v1/service.pb.js +0 -937
  110. package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
  111. package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
  112. package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
  113. package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
  114. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
  115. package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
  116. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
  117. package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
  118. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
  119. package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
  120. package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
  121. package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
@@ -1,2992 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v2.11.6
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
- constructor(rpc, opts) {
1968
- this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.IntegrationServiceServiceName;
1969
- this.rpc = rpc;
1970
- this.CreateIntegrationEndpoint = this.CreateIntegrationEndpoint.bind(this);
1971
- this.GetIntegrationEndpoint = this.GetIntegrationEndpoint.bind(this);
1972
- this.ListIntegrationEndpoints = this.ListIntegrationEndpoints.bind(this);
1973
- this.UpdateIntegrationEndpoint = this.UpdateIntegrationEndpoint.bind(this);
1974
- this.ArchiveIntegrationEndpoint = this.ArchiveIntegrationEndpoint.bind(this);
1975
- this.DeleteIntegrationEndpoint = this.DeleteIntegrationEndpoint.bind(this);
1976
- this.AttachIntegrationEndpointToWorkflow = this.AttachIntegrationEndpointToWorkflow.bind(this);
1977
- this.DetachIntegrationEndpointFromWorkflow = this.DetachIntegrationEndpointFromWorkflow.bind(this);
1978
- this.ListWorkflowIntegrationEndpointBindings = this.ListWorkflowIntegrationEndpointBindings.bind(this);
1979
- this.ValidateIntegrationEndpoint = this.ValidateIntegrationEndpoint.bind(this);
1980
- }
1981
- CreateIntegrationEndpoint(request) {
1982
- const data = exports.CreateIntegrationEndpointRequest.encode(request).finish();
1983
- const promise = this.rpc.request(this.service, "CreateIntegrationEndpoint", data);
1984
- return promise.then((data) => exports.CreateIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
1985
- }
1986
- GetIntegrationEndpoint(request) {
1987
- const data = exports.GetIntegrationEndpointRequest.encode(request).finish();
1988
- const promise = this.rpc.request(this.service, "GetIntegrationEndpoint", data);
1989
- return promise.then((data) => exports.GetIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
1990
- }
1991
- ListIntegrationEndpoints(request) {
1992
- const data = exports.ListIntegrationEndpointsRequest.encode(request).finish();
1993
- const promise = this.rpc.request(this.service, "ListIntegrationEndpoints", data);
1994
- return promise.then((data) => exports.ListIntegrationEndpointsResponse.decode(new wire_1.BinaryReader(data)));
1995
- }
1996
- UpdateIntegrationEndpoint(request) {
1997
- const data = exports.UpdateIntegrationEndpointRequest.encode(request).finish();
1998
- const promise = this.rpc.request(this.service, "UpdateIntegrationEndpoint", data);
1999
- return promise.then((data) => exports.UpdateIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
2000
- }
2001
- ArchiveIntegrationEndpoint(request) {
2002
- const data = exports.ArchiveIntegrationEndpointRequest.encode(request).finish();
2003
- const promise = this.rpc.request(this.service, "ArchiveIntegrationEndpoint", data);
2004
- return promise.then((data) => exports.ArchiveIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
2005
- }
2006
- DeleteIntegrationEndpoint(request) {
2007
- const data = exports.DeleteIntegrationEndpointRequest.encode(request).finish();
2008
- const promise = this.rpc.request(this.service, "DeleteIntegrationEndpoint", data);
2009
- return promise.then((data) => exports.DeleteIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
2010
- }
2011
- AttachIntegrationEndpointToWorkflow(request) {
2012
- const data = exports.AttachIntegrationEndpointToWorkflowRequest.encode(request).finish();
2013
- const promise = this.rpc.request(this.service, "AttachIntegrationEndpointToWorkflow", data);
2014
- return promise.then((data) => exports.AttachIntegrationEndpointToWorkflowResponse.decode(new wire_1.BinaryReader(data)));
2015
- }
2016
- DetachIntegrationEndpointFromWorkflow(request) {
2017
- const data = exports.DetachIntegrationEndpointFromWorkflowRequest.encode(request).finish();
2018
- const promise = this.rpc.request(this.service, "DetachIntegrationEndpointFromWorkflow", data);
2019
- return promise.then((data) => exports.DetachIntegrationEndpointFromWorkflowResponse.decode(new wire_1.BinaryReader(data)));
2020
- }
2021
- ListWorkflowIntegrationEndpointBindings(request) {
2022
- const data = exports.ListWorkflowIntegrationEndpointBindingsRequest.encode(request).finish();
2023
- const promise = this.rpc.request(this.service, "ListWorkflowIntegrationEndpointBindings", data);
2024
- return promise.then((data) => exports.ListWorkflowIntegrationEndpointBindingsResponse.decode(new wire_1.BinaryReader(data)));
2025
- }
2026
- ValidateIntegrationEndpoint(request) {
2027
- const data = exports.ValidateIntegrationEndpointRequest.encode(request).finish();
2028
- const promise = this.rpc.request(this.service, "ValidateIntegrationEndpoint", data);
2029
- return promise.then((data) => exports.ValidateIntegrationEndpointResponse.decode(new wire_1.BinaryReader(data)));
2030
- }
2031
- }
2032
- exports.IntegrationServiceClientImpl = IntegrationServiceClientImpl;
2033
- exports.IntegrationServiceDefinition = {
2034
- name: "IntegrationService",
2035
- fullName: "weaveapi.integration.v1.IntegrationService",
2036
- methods: {
2037
- createIntegrationEndpoint: {
2038
- name: "CreateIntegrationEndpoint",
2039
- requestType: exports.CreateIntegrationEndpointRequest,
2040
- requestStream: false,
2041
- responseType: exports.CreateIntegrationEndpointResponse,
2042
- responseStream: false,
2043
- options: {
2044
- _unknownFields: {
2045
- 578365826: [
2046
- new Uint8Array([
2047
- 43,
2048
- 58,
2049
- 1,
2050
- 42,
2051
- 34,
2052
- 38,
2053
- 47,
2054
- 118,
2055
- 49,
2056
- 47,
2057
- 112,
2058
- 114,
2059
- 111,
2060
- 106,
2061
- 101,
2062
- 99,
2063
- 116,
2064
- 115,
2065
- 47,
2066
- 123,
2067
- 112,
2068
- 114,
2069
- 111,
2070
- 106,
2071
- 101,
2072
- 99,
2073
- 116,
2074
- 95,
2075
- 105,
2076
- 100,
2077
- 125,
2078
- 47,
2079
- 105,
2080
- 110,
2081
- 116,
2082
- 101,
2083
- 103,
2084
- 114,
2085
- 97,
2086
- 116,
2087
- 105,
2088
- 111,
2089
- 110,
2090
- 115,
2091
- ]),
2092
- ],
2093
- },
2094
- },
2095
- },
2096
- getIntegrationEndpoint: {
2097
- name: "GetIntegrationEndpoint",
2098
- requestType: exports.GetIntegrationEndpointRequest,
2099
- requestStream: false,
2100
- responseType: exports.GetIntegrationEndpointResponse,
2101
- responseStream: false,
2102
- options: {
2103
- _unknownFields: {
2104
- 578365826: [
2105
- new Uint8Array([
2106
- 66,
2107
- 18,
2108
- 64,
2109
- 47,
2110
- 118,
2111
- 49,
2112
- 47,
2113
- 112,
2114
- 114,
2115
- 111,
2116
- 106,
2117
- 101,
2118
- 99,
2119
- 116,
2120
- 115,
2121
- 47,
2122
- 123,
2123
- 112,
2124
- 114,
2125
- 111,
2126
- 106,
2127
- 101,
2128
- 99,
2129
- 116,
2130
- 95,
2131
- 105,
2132
- 100,
2133
- 125,
2134
- 47,
2135
- 105,
2136
- 110,
2137
- 116,
2138
- 101,
2139
- 103,
2140
- 114,
2141
- 97,
2142
- 116,
2143
- 105,
2144
- 111,
2145
- 110,
2146
- 115,
2147
- 47,
2148
- 123,
2149
- 105,
2150
- 110,
2151
- 116,
2152
- 101,
2153
- 103,
2154
- 114,
2155
- 97,
2156
- 116,
2157
- 105,
2158
- 111,
2159
- 110,
2160
- 95,
2161
- 101,
2162
- 110,
2163
- 100,
2164
- 112,
2165
- 111,
2166
- 105,
2167
- 110,
2168
- 116,
2169
- 95,
2170
- 105,
2171
- 100,
2172
- 125,
2173
- ]),
2174
- ],
2175
- },
2176
- },
2177
- },
2178
- listIntegrationEndpoints: {
2179
- name: "ListIntegrationEndpoints",
2180
- requestType: exports.ListIntegrationEndpointsRequest,
2181
- requestStream: false,
2182
- responseType: exports.ListIntegrationEndpointsResponse,
2183
- responseStream: false,
2184
- options: {
2185
- _unknownFields: {
2186
- 578365826: [
2187
- new Uint8Array([
2188
- 106,
2189
- 90,
2190
- 64,
2191
- 18,
2192
- 62,
2193
- 47,
2194
- 118,
2195
- 49,
2196
- 47,
2197
- 112,
2198
- 114,
2199
- 111,
2200
- 106,
2201
- 101,
2202
- 99,
2203
- 116,
2204
- 115,
2205
- 47,
2206
- 123,
2207
- 112,
2208
- 114,
2209
- 111,
2210
- 106,
2211
- 101,
2212
- 99,
2213
- 116,
2214
- 95,
2215
- 105,
2216
- 100,
2217
- 125,
2218
- 47,
2219
- 119,
2220
- 111,
2221
- 114,
2222
- 107,
2223
- 102,
2224
- 108,
2225
- 111,
2226
- 119,
2227
- 115,
2228
- 47,
2229
- 123,
2230
- 119,
2231
- 111,
2232
- 114,
2233
- 107,
2234
- 102,
2235
- 108,
2236
- 111,
2237
- 119,
2238
- 95,
2239
- 105,
2240
- 100,
2241
- 125,
2242
- 47,
2243
- 105,
2244
- 110,
2245
- 116,
2246
- 101,
2247
- 103,
2248
- 114,
2249
- 97,
2250
- 116,
2251
- 105,
2252
- 111,
2253
- 110,
2254
- 115,
2255
- 18,
2256
- 38,
2257
- 47,
2258
- 118,
2259
- 49,
2260
- 47,
2261
- 112,
2262
- 114,
2263
- 111,
2264
- 106,
2265
- 101,
2266
- 99,
2267
- 116,
2268
- 115,
2269
- 47,
2270
- 123,
2271
- 112,
2272
- 114,
2273
- 111,
2274
- 106,
2275
- 101,
2276
- 99,
2277
- 116,
2278
- 95,
2279
- 105,
2280
- 100,
2281
- 125,
2282
- 47,
2283
- 105,
2284
- 110,
2285
- 116,
2286
- 101,
2287
- 103,
2288
- 114,
2289
- 97,
2290
- 116,
2291
- 105,
2292
- 111,
2293
- 110,
2294
- 115,
2295
- ]),
2296
- ],
2297
- },
2298
- },
2299
- },
2300
- updateIntegrationEndpoint: {
2301
- name: "UpdateIntegrationEndpoint",
2302
- requestType: exports.UpdateIntegrationEndpointRequest,
2303
- requestStream: false,
2304
- responseType: exports.UpdateIntegrationEndpointResponse,
2305
- responseStream: false,
2306
- options: {
2307
- _unknownFields: {
2308
- 578365826: [
2309
- new Uint8Array([
2310
- 69,
2311
- 58,
2312
- 1,
2313
- 42,
2314
- 50,
2315
- 64,
2316
- 47,
2317
- 118,
2318
- 49,
2319
- 47,
2320
- 112,
2321
- 114,
2322
- 111,
2323
- 106,
2324
- 101,
2325
- 99,
2326
- 116,
2327
- 115,
2328
- 47,
2329
- 123,
2330
- 112,
2331
- 114,
2332
- 111,
2333
- 106,
2334
- 101,
2335
- 99,
2336
- 116,
2337
- 95,
2338
- 105,
2339
- 100,
2340
- 125,
2341
- 47,
2342
- 105,
2343
- 110,
2344
- 116,
2345
- 101,
2346
- 103,
2347
- 114,
2348
- 97,
2349
- 116,
2350
- 105,
2351
- 111,
2352
- 110,
2353
- 115,
2354
- 47,
2355
- 123,
2356
- 105,
2357
- 110,
2358
- 116,
2359
- 101,
2360
- 103,
2361
- 114,
2362
- 97,
2363
- 116,
2364
- 105,
2365
- 111,
2366
- 110,
2367
- 95,
2368
- 101,
2369
- 110,
2370
- 100,
2371
- 112,
2372
- 111,
2373
- 105,
2374
- 110,
2375
- 116,
2376
- 95,
2377
- 105,
2378
- 100,
2379
- 125,
2380
- ]),
2381
- ],
2382
- },
2383
- },
2384
- },
2385
- archiveIntegrationEndpoint: {
2386
- name: "ArchiveIntegrationEndpoint",
2387
- requestType: exports.ArchiveIntegrationEndpointRequest,
2388
- requestStream: false,
2389
- responseType: exports.ArchiveIntegrationEndpointResponse,
2390
- responseStream: false,
2391
- options: {
2392
- _unknownFields: {
2393
- 578365826: [
2394
- new Uint8Array([
2395
- 77,
2396
- 58,
2397
- 1,
2398
- 42,
2399
- 34,
2400
- 72,
2401
- 47,
2402
- 118,
2403
- 49,
2404
- 47,
2405
- 112,
2406
- 114,
2407
- 111,
2408
- 106,
2409
- 101,
2410
- 99,
2411
- 116,
2412
- 115,
2413
- 47,
2414
- 123,
2415
- 112,
2416
- 114,
2417
- 111,
2418
- 106,
2419
- 101,
2420
- 99,
2421
- 116,
2422
- 95,
2423
- 105,
2424
- 100,
2425
- 125,
2426
- 47,
2427
- 105,
2428
- 110,
2429
- 116,
2430
- 101,
2431
- 103,
2432
- 114,
2433
- 97,
2434
- 116,
2435
- 105,
2436
- 111,
2437
- 110,
2438
- 115,
2439
- 47,
2440
- 123,
2441
- 105,
2442
- 110,
2443
- 116,
2444
- 101,
2445
- 103,
2446
- 114,
2447
- 97,
2448
- 116,
2449
- 105,
2450
- 111,
2451
- 110,
2452
- 95,
2453
- 101,
2454
- 110,
2455
- 100,
2456
- 112,
2457
- 111,
2458
- 105,
2459
- 110,
2460
- 116,
2461
- 95,
2462
- 105,
2463
- 100,
2464
- 125,
2465
- 58,
2466
- 97,
2467
- 114,
2468
- 99,
2469
- 104,
2470
- 105,
2471
- 118,
2472
- 101,
2473
- ]),
2474
- ],
2475
- },
2476
- },
2477
- },
2478
- deleteIntegrationEndpoint: {
2479
- name: "DeleteIntegrationEndpoint",
2480
- requestType: exports.DeleteIntegrationEndpointRequest,
2481
- requestStream: false,
2482
- responseType: exports.DeleteIntegrationEndpointResponse,
2483
- responseStream: false,
2484
- options: {
2485
- _unknownFields: {
2486
- 578365826: [
2487
- new Uint8Array([
2488
- 66,
2489
- 42,
2490
- 64,
2491
- 47,
2492
- 118,
2493
- 49,
2494
- 47,
2495
- 112,
2496
- 114,
2497
- 111,
2498
- 106,
2499
- 101,
2500
- 99,
2501
- 116,
2502
- 115,
2503
- 47,
2504
- 123,
2505
- 112,
2506
- 114,
2507
- 111,
2508
- 106,
2509
- 101,
2510
- 99,
2511
- 116,
2512
- 95,
2513
- 105,
2514
- 100,
2515
- 125,
2516
- 47,
2517
- 105,
2518
- 110,
2519
- 116,
2520
- 101,
2521
- 103,
2522
- 114,
2523
- 97,
2524
- 116,
2525
- 105,
2526
- 111,
2527
- 110,
2528
- 115,
2529
- 47,
2530
- 123,
2531
- 105,
2532
- 110,
2533
- 116,
2534
- 101,
2535
- 103,
2536
- 114,
2537
- 97,
2538
- 116,
2539
- 105,
2540
- 111,
2541
- 110,
2542
- 95,
2543
- 101,
2544
- 110,
2545
- 100,
2546
- 112,
2547
- 111,
2548
- 105,
2549
- 110,
2550
- 116,
2551
- 95,
2552
- 105,
2553
- 100,
2554
- 125,
2555
- ]),
2556
- ],
2557
- },
2558
- },
2559
- },
2560
- attachIntegrationEndpointToWorkflow: {
2561
- name: "AttachIntegrationEndpointToWorkflow",
2562
- requestType: exports.AttachIntegrationEndpointToWorkflowRequest,
2563
- requestStream: false,
2564
- responseType: exports.AttachIntegrationEndpointToWorkflowResponse,
2565
- responseStream: false,
2566
- options: {
2567
- _unknownFields: {
2568
- 578365826: [
2569
- new Uint8Array([
2570
- 100,
2571
- 58,
2572
- 1,
2573
- 42,
2574
- 34,
2575
- 95,
2576
- 47,
2577
- 118,
2578
- 49,
2579
- 47,
2580
- 112,
2581
- 114,
2582
- 111,
2583
- 106,
2584
- 101,
2585
- 99,
2586
- 116,
2587
- 115,
2588
- 47,
2589
- 123,
2590
- 112,
2591
- 114,
2592
- 111,
2593
- 106,
2594
- 101,
2595
- 99,
2596
- 116,
2597
- 95,
2598
- 105,
2599
- 100,
2600
- 125,
2601
- 47,
2602
- 119,
2603
- 111,
2604
- 114,
2605
- 107,
2606
- 102,
2607
- 108,
2608
- 111,
2609
- 119,
2610
- 115,
2611
- 47,
2612
- 123,
2613
- 119,
2614
- 111,
2615
- 114,
2616
- 107,
2617
- 102,
2618
- 108,
2619
- 111,
2620
- 119,
2621
- 95,
2622
- 105,
2623
- 100,
2624
- 125,
2625
- 47,
2626
- 105,
2627
- 110,
2628
- 116,
2629
- 101,
2630
- 103,
2631
- 114,
2632
- 97,
2633
- 116,
2634
- 105,
2635
- 111,
2636
- 110,
2637
- 115,
2638
- 47,
2639
- 123,
2640
- 105,
2641
- 110,
2642
- 116,
2643
- 101,
2644
- 103,
2645
- 114,
2646
- 97,
2647
- 116,
2648
- 105,
2649
- 111,
2650
- 110,
2651
- 95,
2652
- 101,
2653
- 110,
2654
- 100,
2655
- 112,
2656
- 111,
2657
- 105,
2658
- 110,
2659
- 116,
2660
- 95,
2661
- 105,
2662
- 100,
2663
- 125,
2664
- 58,
2665
- 97,
2666
- 116,
2667
- 116,
2668
- 97,
2669
- 99,
2670
- 104,
2671
- ]),
2672
- ],
2673
- },
2674
- },
2675
- },
2676
- detachIntegrationEndpointFromWorkflow: {
2677
- name: "DetachIntegrationEndpointFromWorkflow",
2678
- requestType: exports.DetachIntegrationEndpointFromWorkflowRequest,
2679
- requestStream: false,
2680
- responseType: exports.DetachIntegrationEndpointFromWorkflowResponse,
2681
- responseStream: false,
2682
- options: {
2683
- _unknownFields: {
2684
- 578365826: [
2685
- new Uint8Array([
2686
- 90,
2687
- 42,
2688
- 88,
2689
- 47,
2690
- 118,
2691
- 49,
2692
- 47,
2693
- 112,
2694
- 114,
2695
- 111,
2696
- 106,
2697
- 101,
2698
- 99,
2699
- 116,
2700
- 115,
2701
- 47,
2702
- 123,
2703
- 112,
2704
- 114,
2705
- 111,
2706
- 106,
2707
- 101,
2708
- 99,
2709
- 116,
2710
- 95,
2711
- 105,
2712
- 100,
2713
- 125,
2714
- 47,
2715
- 119,
2716
- 111,
2717
- 114,
2718
- 107,
2719
- 102,
2720
- 108,
2721
- 111,
2722
- 119,
2723
- 115,
2724
- 47,
2725
- 123,
2726
- 119,
2727
- 111,
2728
- 114,
2729
- 107,
2730
- 102,
2731
- 108,
2732
- 111,
2733
- 119,
2734
- 95,
2735
- 105,
2736
- 100,
2737
- 125,
2738
- 47,
2739
- 105,
2740
- 110,
2741
- 116,
2742
- 101,
2743
- 103,
2744
- 114,
2745
- 97,
2746
- 116,
2747
- 105,
2748
- 111,
2749
- 110,
2750
- 115,
2751
- 47,
2752
- 123,
2753
- 105,
2754
- 110,
2755
- 116,
2756
- 101,
2757
- 103,
2758
- 114,
2759
- 97,
2760
- 116,
2761
- 105,
2762
- 111,
2763
- 110,
2764
- 95,
2765
- 101,
2766
- 110,
2767
- 100,
2768
- 112,
2769
- 111,
2770
- 105,
2771
- 110,
2772
- 116,
2773
- 95,
2774
- 105,
2775
- 100,
2776
- 125,
2777
- ]),
2778
- ],
2779
- },
2780
- },
2781
- },
2782
- listWorkflowIntegrationEndpointBindings: {
2783
- name: "ListWorkflowIntegrationEndpointBindings",
2784
- requestType: exports.ListWorkflowIntegrationEndpointBindingsRequest,
2785
- requestStream: false,
2786
- responseType: exports.ListWorkflowIntegrationEndpointBindingsResponse,
2787
- responseStream: false,
2788
- options: {
2789
- _unknownFields: {
2790
- 578365826: [
2791
- new Uint8Array([
2792
- 72,
2793
- 18,
2794
- 70,
2795
- 47,
2796
- 118,
2797
- 49,
2798
- 47,
2799
- 112,
2800
- 114,
2801
- 111,
2802
- 106,
2803
- 101,
2804
- 99,
2805
- 116,
2806
- 115,
2807
- 47,
2808
- 123,
2809
- 112,
2810
- 114,
2811
- 111,
2812
- 106,
2813
- 101,
2814
- 99,
2815
- 116,
2816
- 95,
2817
- 105,
2818
- 100,
2819
- 125,
2820
- 47,
2821
- 119,
2822
- 111,
2823
- 114,
2824
- 107,
2825
- 102,
2826
- 108,
2827
- 111,
2828
- 119,
2829
- 115,
2830
- 47,
2831
- 123,
2832
- 119,
2833
- 111,
2834
- 114,
2835
- 107,
2836
- 102,
2837
- 108,
2838
- 111,
2839
- 119,
2840
- 95,
2841
- 105,
2842
- 100,
2843
- 125,
2844
- 47,
2845
- 105,
2846
- 110,
2847
- 116,
2848
- 101,
2849
- 103,
2850
- 114,
2851
- 97,
2852
- 116,
2853
- 105,
2854
- 111,
2855
- 110,
2856
- 45,
2857
- 98,
2858
- 105,
2859
- 110,
2860
- 100,
2861
- 105,
2862
- 110,
2863
- 103,
2864
- 115,
2865
- ]),
2866
- ],
2867
- },
2868
- },
2869
- },
2870
- validateIntegrationEndpoint: {
2871
- name: "ValidateIntegrationEndpoint",
2872
- requestType: exports.ValidateIntegrationEndpointRequest,
2873
- requestStream: false,
2874
- responseType: exports.ValidateIntegrationEndpointResponse,
2875
- responseStream: false,
2876
- options: {
2877
- _unknownFields: {
2878
- 578365826: [
2879
- new Uint8Array([
2880
- 78,
2881
- 58,
2882
- 1,
2883
- 42,
2884
- 34,
2885
- 73,
2886
- 47,
2887
- 118,
2888
- 49,
2889
- 47,
2890
- 112,
2891
- 114,
2892
- 111,
2893
- 106,
2894
- 101,
2895
- 99,
2896
- 116,
2897
- 115,
2898
- 47,
2899
- 123,
2900
- 112,
2901
- 114,
2902
- 111,
2903
- 106,
2904
- 101,
2905
- 99,
2906
- 116,
2907
- 95,
2908
- 105,
2909
- 100,
2910
- 125,
2911
- 47,
2912
- 105,
2913
- 110,
2914
- 116,
2915
- 101,
2916
- 103,
2917
- 114,
2918
- 97,
2919
- 116,
2920
- 105,
2921
- 111,
2922
- 110,
2923
- 115,
2924
- 47,
2925
- 123,
2926
- 105,
2927
- 110,
2928
- 116,
2929
- 101,
2930
- 103,
2931
- 114,
2932
- 97,
2933
- 116,
2934
- 105,
2935
- 111,
2936
- 110,
2937
- 95,
2938
- 101,
2939
- 110,
2940
- 100,
2941
- 112,
2942
- 111,
2943
- 105,
2944
- 110,
2945
- 116,
2946
- 95,
2947
- 105,
2948
- 100,
2949
- 125,
2950
- 58,
2951
- 118,
2952
- 97,
2953
- 108,
2954
- 105,
2955
- 100,
2956
- 97,
2957
- 116,
2958
- 101,
2959
- ]),
2960
- ],
2961
- },
2962
- },
2963
- },
2964
- },
2965
- };
2966
- function toTimestamp(date) {
2967
- const seconds = Math.trunc(date.getTime() / 1000);
2968
- const nanos = (date.getTime() % 1000) * 1000000;
2969
- return { seconds, nanos };
2970
- }
2971
- function fromTimestamp(t) {
2972
- let millis = (t.seconds || 0) * 1000;
2973
- millis += (t.nanos || 0) / 1000000;
2974
- return new globalThis.Date(millis);
2975
- }
2976
- function fromJsonTimestamp(o) {
2977
- if (o instanceof globalThis.Date) {
2978
- return o;
2979
- }
2980
- else if (typeof o === "string") {
2981
- return new globalThis.Date(o);
2982
- }
2983
- else {
2984
- return fromTimestamp(timestamp_pb_1.Timestamp.fromJSON(o));
2985
- }
2986
- }
2987
- function isObject(value) {
2988
- return typeof value === "object" && value !== null;
2989
- }
2990
- function isSet(value) {
2991
- return value !== null && value !== undefined;
2992
- }