weave-typescript 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/google/api/annotations.pb.js +1 -1
  2. package/dist/google/api/http.pb.js +1 -1
  3. package/dist/google/protobuf/descriptor.pb.d.ts +8 -1
  4. package/dist/google/protobuf/descriptor.pb.js +8 -1
  5. package/dist/google/protobuf/struct.pb.js +1 -1
  6. package/dist/google/protobuf/timestamp.pb.d.ts +7 -6
  7. package/dist/google/protobuf/timestamp.pb.js +1 -1
  8. package/dist/index.d.ts +9 -16
  9. package/dist/index.js +13 -21
  10. package/dist/weaveapi/{storage/v1/auth.pb.d.ts → atc/v1/event.pb.d.ts} +12 -6
  11. package/dist/weaveapi/atc/v1/event.pb.js +263 -0
  12. package/dist/weaveapi/{auth/v1/session.pb.d.ts → atc/v1/message.pb.d.ts} +22 -21
  13. package/dist/weaveapi/atc/v1/message.pb.js +287 -0
  14. package/dist/weaveapi/atc/v1/process.pb.d.ts +91 -0
  15. package/dist/weaveapi/atc/v1/process.pb.js +658 -0
  16. package/dist/weaveapi/atc/v1/run.pb.d.ts +71 -0
  17. package/dist/weaveapi/atc/v1/run.pb.js +525 -0
  18. package/dist/weaveapi/atc/v1/service.pb.d.ts +339 -0
  19. package/dist/weaveapi/atc/v1/service.pb.js +1922 -0
  20. package/dist/weaveapi/project/v1/project.pb.d.ts +67 -5
  21. package/dist/weaveapi/project/v1/project.pb.js +765 -66
  22. package/dist/weaveapi/project/v1/service.pb.d.ts +117 -76
  23. package/dist/weaveapi/project/v1/service.pb.js +1088 -401
  24. package/dist/weaveapi/task/v1/service.pb.d.ts +171 -0
  25. package/dist/weaveapi/task/v1/service.pb.js +1416 -0
  26. package/dist/weaveapi/task/v1/task.pb.d.ts +84 -0
  27. package/dist/weaveapi/task/v1/task.pb.js +782 -0
  28. package/dist/weavesql/atcdb/event_sql.d.ts +101 -0
  29. package/dist/weavesql/atcdb/event_sql.js +191 -0
  30. package/dist/weavesql/atcdb/mailbox_sql.d.ts +43 -0
  31. package/dist/weavesql/atcdb/mailbox_sql.js +85 -0
  32. package/dist/weavesql/weavedb/project_sql.d.ts +121 -46
  33. package/dist/weavesql/weavedb/project_sql.js +304 -112
  34. package/dist/weavesql/weavedb/task_sql.d.ts +163 -0
  35. package/dist/weavesql/weavedb/task_sql.js +328 -0
  36. package/package.json +1 -1
  37. package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
  38. package/dist/weaveapi/auth/v1/service.pb.js +0 -4977
  39. package/dist/weaveapi/auth/v1/session.pb.js +0 -308
  40. package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
  41. package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
  42. package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
  43. package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
  44. package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
  45. package/dist/weaveapi/data/v1/data.pb.js +0 -411
  46. package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
  47. package/dist/weaveapi/data/v1/service.pb.js +0 -2777
  48. package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
  49. package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
  50. package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
  51. package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
  52. package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
  53. package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
  54. package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
  55. package/dist/weaveapi/input/v1/input.pb.js +0 -632
  56. package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
  57. package/dist/weaveapi/input/v1/service.pb.js +0 -3610
  58. package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
  59. package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
  60. package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
  61. package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
  62. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
  63. package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
  64. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
  65. package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
  66. package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
  67. package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
  68. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
  69. package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
  70. package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
  71. package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
  72. package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
  73. package/dist/weaveapi/llmx/v1/service.pb.js +0 -5266
  74. package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
  75. package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
  76. package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
  77. package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
  78. package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
  79. package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
  80. package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
  81. package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
  82. package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
  83. package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
  84. package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
  85. package/dist/weaveapi/report/v1/report.pb.js +0 -678
  86. package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
  87. package/dist/weaveapi/report/v1/service.pb.js +0 -1923
  88. package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
  89. package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
  90. package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
  91. package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
  92. package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
  93. package/dist/weaveapi/run/v1/run.pb.js +0 -1155
  94. package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
  95. package/dist/weaveapi/run/v1/service.pb.js +0 -2426
  96. package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
  97. package/dist/weaveapi/script/v1/script.pb.js +0 -1025
  98. package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
  99. package/dist/weaveapi/script/v1/service.pb.js +0 -4871
  100. package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
  101. package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
  102. package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
  103. package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
  104. package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
  105. package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
  106. package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
  107. package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
  108. package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
  109. package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
  110. package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
  111. package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
  112. package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
  113. package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
  114. package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
  115. package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
  116. package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
  117. package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
  118. package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
  119. package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
  120. package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
  121. package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
  122. package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
  123. package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
  124. package/dist/weaveapi/synthesize/v1/service.pb.js +0 -917
  125. package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
  126. package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
  127. package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
  128. package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
  129. package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
  130. package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
  131. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
  132. package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
  133. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
  134. package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
  135. package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
  136. package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
@@ -1,1056 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v2.11.2
5
- // protoc unknown
6
- // source: weaveapi/storage/v1/nosql_database.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.OpenSearch = exports.Elasticsearch = exports.Valkey = exports.Redis = exports.CosmosDB = exports.DynamoDB = exports.MongoDB = exports.Cassandra = exports.NoSqlDatabase = exports.protobufPackage = void 0;
9
- /* eslint-disable */
10
- const wire_1 = require("@bufbuild/protobuf/wire");
11
- const auth_pb_1 = require("./auth.pb");
12
- exports.protobufPackage = "weaveapi.storage.v1";
13
- function createBaseNoSqlDatabase() {
14
- return {
15
- cassandra: undefined,
16
- mongodb: undefined,
17
- dynamodb: undefined,
18
- cosmosdb: undefined,
19
- redis: undefined,
20
- valkey: undefined,
21
- elasticsearch: undefined,
22
- openSearch: undefined,
23
- };
24
- }
25
- exports.NoSqlDatabase = {
26
- encode(message, writer = new wire_1.BinaryWriter()) {
27
- if (message.cassandra !== undefined) {
28
- exports.Cassandra.encode(message.cassandra, writer.uint32(10).fork()).join();
29
- }
30
- if (message.mongodb !== undefined) {
31
- exports.MongoDB.encode(message.mongodb, writer.uint32(18).fork()).join();
32
- }
33
- if (message.dynamodb !== undefined) {
34
- exports.DynamoDB.encode(message.dynamodb, writer.uint32(26).fork()).join();
35
- }
36
- if (message.cosmosdb !== undefined) {
37
- exports.CosmosDB.encode(message.cosmosdb, writer.uint32(34).fork()).join();
38
- }
39
- if (message.redis !== undefined) {
40
- exports.Redis.encode(message.redis, writer.uint32(42).fork()).join();
41
- }
42
- if (message.valkey !== undefined) {
43
- exports.Valkey.encode(message.valkey, writer.uint32(50).fork()).join();
44
- }
45
- if (message.elasticsearch !== undefined) {
46
- exports.Elasticsearch.encode(message.elasticsearch, writer.uint32(58).fork()).join();
47
- }
48
- if (message.openSearch !== undefined) {
49
- exports.OpenSearch.encode(message.openSearch, writer.uint32(66).fork()).join();
50
- }
51
- return writer;
52
- },
53
- decode(input, length) {
54
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
55
- const end = length === undefined ? reader.len : reader.pos + length;
56
- const message = createBaseNoSqlDatabase();
57
- while (reader.pos < end) {
58
- const tag = reader.uint32();
59
- switch (tag >>> 3) {
60
- case 1: {
61
- if (tag !== 10) {
62
- break;
63
- }
64
- message.cassandra = exports.Cassandra.decode(reader, reader.uint32());
65
- continue;
66
- }
67
- case 2: {
68
- if (tag !== 18) {
69
- break;
70
- }
71
- message.mongodb = exports.MongoDB.decode(reader, reader.uint32());
72
- continue;
73
- }
74
- case 3: {
75
- if (tag !== 26) {
76
- break;
77
- }
78
- message.dynamodb = exports.DynamoDB.decode(reader, reader.uint32());
79
- continue;
80
- }
81
- case 4: {
82
- if (tag !== 34) {
83
- break;
84
- }
85
- message.cosmosdb = exports.CosmosDB.decode(reader, reader.uint32());
86
- continue;
87
- }
88
- case 5: {
89
- if (tag !== 42) {
90
- break;
91
- }
92
- message.redis = exports.Redis.decode(reader, reader.uint32());
93
- continue;
94
- }
95
- case 6: {
96
- if (tag !== 50) {
97
- break;
98
- }
99
- message.valkey = exports.Valkey.decode(reader, reader.uint32());
100
- continue;
101
- }
102
- case 7: {
103
- if (tag !== 58) {
104
- break;
105
- }
106
- message.elasticsearch = exports.Elasticsearch.decode(reader, reader.uint32());
107
- continue;
108
- }
109
- case 8: {
110
- if (tag !== 66) {
111
- break;
112
- }
113
- message.openSearch = exports.OpenSearch.decode(reader, reader.uint32());
114
- continue;
115
- }
116
- }
117
- if ((tag & 7) === 4 || tag === 0) {
118
- break;
119
- }
120
- reader.skip(tag & 7);
121
- }
122
- return message;
123
- },
124
- fromJSON(object) {
125
- return {
126
- cassandra: isSet(object.cassandra) ? exports.Cassandra.fromJSON(object.cassandra) : undefined,
127
- mongodb: isSet(object.mongodb) ? exports.MongoDB.fromJSON(object.mongodb) : undefined,
128
- dynamodb: isSet(object.dynamodb) ? exports.DynamoDB.fromJSON(object.dynamodb) : undefined,
129
- cosmosdb: isSet(object.cosmosdb) ? exports.CosmosDB.fromJSON(object.cosmosdb) : undefined,
130
- redis: isSet(object.redis) ? exports.Redis.fromJSON(object.redis) : undefined,
131
- valkey: isSet(object.valkey) ? exports.Valkey.fromJSON(object.valkey) : undefined,
132
- elasticsearch: isSet(object.elasticsearch) ? exports.Elasticsearch.fromJSON(object.elasticsearch) : undefined,
133
- openSearch: isSet(object.openSearch)
134
- ? exports.OpenSearch.fromJSON(object.openSearch)
135
- : isSet(object.open_search)
136
- ? exports.OpenSearch.fromJSON(object.open_search)
137
- : undefined,
138
- };
139
- },
140
- toJSON(message) {
141
- const obj = {};
142
- if (message.cassandra !== undefined) {
143
- obj.cassandra = exports.Cassandra.toJSON(message.cassandra);
144
- }
145
- if (message.mongodb !== undefined) {
146
- obj.mongodb = exports.MongoDB.toJSON(message.mongodb);
147
- }
148
- if (message.dynamodb !== undefined) {
149
- obj.dynamodb = exports.DynamoDB.toJSON(message.dynamodb);
150
- }
151
- if (message.cosmosdb !== undefined) {
152
- obj.cosmosdb = exports.CosmosDB.toJSON(message.cosmosdb);
153
- }
154
- if (message.redis !== undefined) {
155
- obj.redis = exports.Redis.toJSON(message.redis);
156
- }
157
- if (message.valkey !== undefined) {
158
- obj.valkey = exports.Valkey.toJSON(message.valkey);
159
- }
160
- if (message.elasticsearch !== undefined) {
161
- obj.elasticsearch = exports.Elasticsearch.toJSON(message.elasticsearch);
162
- }
163
- if (message.openSearch !== undefined) {
164
- obj.openSearch = exports.OpenSearch.toJSON(message.openSearch);
165
- }
166
- return obj;
167
- },
168
- create(base) {
169
- return exports.NoSqlDatabase.fromPartial(base !== null && base !== void 0 ? base : {});
170
- },
171
- fromPartial(object) {
172
- const message = createBaseNoSqlDatabase();
173
- message.cassandra = (object.cassandra !== undefined && object.cassandra !== null)
174
- ? exports.Cassandra.fromPartial(object.cassandra)
175
- : undefined;
176
- message.mongodb = (object.mongodb !== undefined && object.mongodb !== null)
177
- ? exports.MongoDB.fromPartial(object.mongodb)
178
- : undefined;
179
- message.dynamodb = (object.dynamodb !== undefined && object.dynamodb !== null)
180
- ? exports.DynamoDB.fromPartial(object.dynamodb)
181
- : undefined;
182
- message.cosmosdb = (object.cosmosdb !== undefined && object.cosmosdb !== null)
183
- ? exports.CosmosDB.fromPartial(object.cosmosdb)
184
- : undefined;
185
- message.redis = (object.redis !== undefined && object.redis !== null) ? exports.Redis.fromPartial(object.redis) : undefined;
186
- message.valkey = (object.valkey !== undefined && object.valkey !== null)
187
- ? exports.Valkey.fromPartial(object.valkey)
188
- : undefined;
189
- message.elasticsearch = (object.elasticsearch !== undefined && object.elasticsearch !== null)
190
- ? exports.Elasticsearch.fromPartial(object.elasticsearch)
191
- : undefined;
192
- message.openSearch = (object.openSearch !== undefined && object.openSearch !== null)
193
- ? exports.OpenSearch.fromPartial(object.openSearch)
194
- : undefined;
195
- return message;
196
- },
197
- };
198
- function createBaseCassandra() {
199
- return {
200
- contactPoints: "",
201
- port: 0,
202
- keyspace: "",
203
- username: "",
204
- password: "",
205
- sslEnabled: false,
206
- localDatacenter: "",
207
- };
208
- }
209
- exports.Cassandra = {
210
- encode(message, writer = new wire_1.BinaryWriter()) {
211
- if (message.contactPoints !== "") {
212
- writer.uint32(10).string(message.contactPoints);
213
- }
214
- if (message.port !== 0) {
215
- writer.uint32(16).int32(message.port);
216
- }
217
- if (message.keyspace !== "") {
218
- writer.uint32(26).string(message.keyspace);
219
- }
220
- if (message.username !== "") {
221
- writer.uint32(34).string(message.username);
222
- }
223
- if (message.password !== "") {
224
- writer.uint32(42).string(message.password);
225
- }
226
- if (message.sslEnabled !== false) {
227
- writer.uint32(48).bool(message.sslEnabled);
228
- }
229
- if (message.localDatacenter !== "") {
230
- writer.uint32(58).string(message.localDatacenter);
231
- }
232
- return writer;
233
- },
234
- decode(input, length) {
235
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
236
- const end = length === undefined ? reader.len : reader.pos + length;
237
- const message = createBaseCassandra();
238
- while (reader.pos < end) {
239
- const tag = reader.uint32();
240
- switch (tag >>> 3) {
241
- case 1: {
242
- if (tag !== 10) {
243
- break;
244
- }
245
- message.contactPoints = reader.string();
246
- continue;
247
- }
248
- case 2: {
249
- if (tag !== 16) {
250
- break;
251
- }
252
- message.port = reader.int32();
253
- continue;
254
- }
255
- case 3: {
256
- if (tag !== 26) {
257
- break;
258
- }
259
- message.keyspace = reader.string();
260
- continue;
261
- }
262
- case 4: {
263
- if (tag !== 34) {
264
- break;
265
- }
266
- message.username = reader.string();
267
- continue;
268
- }
269
- case 5: {
270
- if (tag !== 42) {
271
- break;
272
- }
273
- message.password = reader.string();
274
- continue;
275
- }
276
- case 6: {
277
- if (tag !== 48) {
278
- break;
279
- }
280
- message.sslEnabled = reader.bool();
281
- continue;
282
- }
283
- case 7: {
284
- if (tag !== 58) {
285
- break;
286
- }
287
- message.localDatacenter = reader.string();
288
- continue;
289
- }
290
- }
291
- if ((tag & 7) === 4 || tag === 0) {
292
- break;
293
- }
294
- reader.skip(tag & 7);
295
- }
296
- return message;
297
- },
298
- fromJSON(object) {
299
- return {
300
- contactPoints: isSet(object.contactPoints)
301
- ? globalThis.String(object.contactPoints)
302
- : isSet(object.contact_points)
303
- ? globalThis.String(object.contact_points)
304
- : "",
305
- port: isSet(object.port) ? globalThis.Number(object.port) : 0,
306
- keyspace: isSet(object.keyspace) ? globalThis.String(object.keyspace) : "",
307
- username: isSet(object.username) ? globalThis.String(object.username) : "",
308
- password: isSet(object.password) ? globalThis.String(object.password) : "",
309
- sslEnabled: isSet(object.sslEnabled)
310
- ? globalThis.Boolean(object.sslEnabled)
311
- : isSet(object.ssl_enabled)
312
- ? globalThis.Boolean(object.ssl_enabled)
313
- : false,
314
- localDatacenter: isSet(object.localDatacenter)
315
- ? globalThis.String(object.localDatacenter)
316
- : isSet(object.local_datacenter)
317
- ? globalThis.String(object.local_datacenter)
318
- : "",
319
- };
320
- },
321
- toJSON(message) {
322
- const obj = {};
323
- if (message.contactPoints !== "") {
324
- obj.contactPoints = message.contactPoints;
325
- }
326
- if (message.port !== 0) {
327
- obj.port = Math.round(message.port);
328
- }
329
- if (message.keyspace !== "") {
330
- obj.keyspace = message.keyspace;
331
- }
332
- if (message.username !== "") {
333
- obj.username = message.username;
334
- }
335
- if (message.password !== "") {
336
- obj.password = message.password;
337
- }
338
- if (message.sslEnabled !== false) {
339
- obj.sslEnabled = message.sslEnabled;
340
- }
341
- if (message.localDatacenter !== "") {
342
- obj.localDatacenter = message.localDatacenter;
343
- }
344
- return obj;
345
- },
346
- create(base) {
347
- return exports.Cassandra.fromPartial(base !== null && base !== void 0 ? base : {});
348
- },
349
- fromPartial(object) {
350
- var _a, _b, _c, _d, _e, _f, _g;
351
- const message = createBaseCassandra();
352
- message.contactPoints = (_a = object.contactPoints) !== null && _a !== void 0 ? _a : "";
353
- message.port = (_b = object.port) !== null && _b !== void 0 ? _b : 0;
354
- message.keyspace = (_c = object.keyspace) !== null && _c !== void 0 ? _c : "";
355
- message.username = (_d = object.username) !== null && _d !== void 0 ? _d : "";
356
- message.password = (_e = object.password) !== null && _e !== void 0 ? _e : "";
357
- message.sslEnabled = (_f = object.sslEnabled) !== null && _f !== void 0 ? _f : false;
358
- message.localDatacenter = (_g = object.localDatacenter) !== null && _g !== void 0 ? _g : "";
359
- return message;
360
- },
361
- };
362
- function createBaseMongoDB() {
363
- return { connectionString: "", database: "", collection: "" };
364
- }
365
- exports.MongoDB = {
366
- encode(message, writer = new wire_1.BinaryWriter()) {
367
- if (message.connectionString !== "") {
368
- writer.uint32(10).string(message.connectionString);
369
- }
370
- if (message.database !== "") {
371
- writer.uint32(18).string(message.database);
372
- }
373
- if (message.collection !== "") {
374
- writer.uint32(26).string(message.collection);
375
- }
376
- return writer;
377
- },
378
- decode(input, length) {
379
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
380
- const end = length === undefined ? reader.len : reader.pos + length;
381
- const message = createBaseMongoDB();
382
- while (reader.pos < end) {
383
- const tag = reader.uint32();
384
- switch (tag >>> 3) {
385
- case 1: {
386
- if (tag !== 10) {
387
- break;
388
- }
389
- message.connectionString = reader.string();
390
- continue;
391
- }
392
- case 2: {
393
- if (tag !== 18) {
394
- break;
395
- }
396
- message.database = reader.string();
397
- continue;
398
- }
399
- case 3: {
400
- if (tag !== 26) {
401
- break;
402
- }
403
- message.collection = reader.string();
404
- continue;
405
- }
406
- }
407
- if ((tag & 7) === 4 || tag === 0) {
408
- break;
409
- }
410
- reader.skip(tag & 7);
411
- }
412
- return message;
413
- },
414
- fromJSON(object) {
415
- return {
416
- connectionString: isSet(object.connectionString)
417
- ? globalThis.String(object.connectionString)
418
- : isSet(object.connection_string)
419
- ? globalThis.String(object.connection_string)
420
- : "",
421
- database: isSet(object.database) ? globalThis.String(object.database) : "",
422
- collection: isSet(object.collection) ? globalThis.String(object.collection) : "",
423
- };
424
- },
425
- toJSON(message) {
426
- const obj = {};
427
- if (message.connectionString !== "") {
428
- obj.connectionString = message.connectionString;
429
- }
430
- if (message.database !== "") {
431
- obj.database = message.database;
432
- }
433
- if (message.collection !== "") {
434
- obj.collection = message.collection;
435
- }
436
- return obj;
437
- },
438
- create(base) {
439
- return exports.MongoDB.fromPartial(base !== null && base !== void 0 ? base : {});
440
- },
441
- fromPartial(object) {
442
- var _a, _b, _c;
443
- const message = createBaseMongoDB();
444
- message.connectionString = (_a = object.connectionString) !== null && _a !== void 0 ? _a : "";
445
- message.database = (_b = object.database) !== null && _b !== void 0 ? _b : "";
446
- message.collection = (_c = object.collection) !== null && _c !== void 0 ? _c : "";
447
- return message;
448
- },
449
- };
450
- function createBaseDynamoDB() {
451
- return { region: "", table: "", credentials: undefined, useInstanceProfile: undefined };
452
- }
453
- exports.DynamoDB = {
454
- encode(message, writer = new wire_1.BinaryWriter()) {
455
- if (message.region !== "") {
456
- writer.uint32(10).string(message.region);
457
- }
458
- if (message.table !== "") {
459
- writer.uint32(18).string(message.table);
460
- }
461
- if (message.credentials !== undefined) {
462
- auth_pb_1.AwsCredentials.encode(message.credentials, writer.uint32(82).fork()).join();
463
- }
464
- if (message.useInstanceProfile !== undefined) {
465
- writer.uint32(88).bool(message.useInstanceProfile);
466
- }
467
- return writer;
468
- },
469
- decode(input, length) {
470
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
471
- const end = length === undefined ? reader.len : reader.pos + length;
472
- const message = createBaseDynamoDB();
473
- while (reader.pos < end) {
474
- const tag = reader.uint32();
475
- switch (tag >>> 3) {
476
- case 1: {
477
- if (tag !== 10) {
478
- break;
479
- }
480
- message.region = reader.string();
481
- continue;
482
- }
483
- case 2: {
484
- if (tag !== 18) {
485
- break;
486
- }
487
- message.table = reader.string();
488
- continue;
489
- }
490
- case 10: {
491
- if (tag !== 82) {
492
- break;
493
- }
494
- message.credentials = auth_pb_1.AwsCredentials.decode(reader, reader.uint32());
495
- continue;
496
- }
497
- case 11: {
498
- if (tag !== 88) {
499
- break;
500
- }
501
- message.useInstanceProfile = reader.bool();
502
- continue;
503
- }
504
- }
505
- if ((tag & 7) === 4 || tag === 0) {
506
- break;
507
- }
508
- reader.skip(tag & 7);
509
- }
510
- return message;
511
- },
512
- fromJSON(object) {
513
- return {
514
- region: isSet(object.region) ? globalThis.String(object.region) : "",
515
- table: isSet(object.table) ? globalThis.String(object.table) : "",
516
- credentials: isSet(object.credentials) ? auth_pb_1.AwsCredentials.fromJSON(object.credentials) : undefined,
517
- useInstanceProfile: isSet(object.useInstanceProfile)
518
- ? globalThis.Boolean(object.useInstanceProfile)
519
- : isSet(object.use_instance_profile)
520
- ? globalThis.Boolean(object.use_instance_profile)
521
- : undefined,
522
- };
523
- },
524
- toJSON(message) {
525
- const obj = {};
526
- if (message.region !== "") {
527
- obj.region = message.region;
528
- }
529
- if (message.table !== "") {
530
- obj.table = message.table;
531
- }
532
- if (message.credentials !== undefined) {
533
- obj.credentials = auth_pb_1.AwsCredentials.toJSON(message.credentials);
534
- }
535
- if (message.useInstanceProfile !== undefined) {
536
- obj.useInstanceProfile = message.useInstanceProfile;
537
- }
538
- return obj;
539
- },
540
- create(base) {
541
- return exports.DynamoDB.fromPartial(base !== null && base !== void 0 ? base : {});
542
- },
543
- fromPartial(object) {
544
- var _a, _b, _c;
545
- const message = createBaseDynamoDB();
546
- message.region = (_a = object.region) !== null && _a !== void 0 ? _a : "";
547
- message.table = (_b = object.table) !== null && _b !== void 0 ? _b : "";
548
- message.credentials = (object.credentials !== undefined && object.credentials !== null)
549
- ? auth_pb_1.AwsCredentials.fromPartial(object.credentials)
550
- : undefined;
551
- message.useInstanceProfile = (_c = object.useInstanceProfile) !== null && _c !== void 0 ? _c : undefined;
552
- return message;
553
- },
554
- };
555
- function createBaseCosmosDB() {
556
- return { endpoint: "", key: "", database: "", container: "" };
557
- }
558
- exports.CosmosDB = {
559
- encode(message, writer = new wire_1.BinaryWriter()) {
560
- if (message.endpoint !== "") {
561
- writer.uint32(10).string(message.endpoint);
562
- }
563
- if (message.key !== "") {
564
- writer.uint32(18).string(message.key);
565
- }
566
- if (message.database !== "") {
567
- writer.uint32(26).string(message.database);
568
- }
569
- if (message.container !== "") {
570
- writer.uint32(34).string(message.container);
571
- }
572
- return writer;
573
- },
574
- decode(input, length) {
575
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
576
- const end = length === undefined ? reader.len : reader.pos + length;
577
- const message = createBaseCosmosDB();
578
- while (reader.pos < end) {
579
- const tag = reader.uint32();
580
- switch (tag >>> 3) {
581
- case 1: {
582
- if (tag !== 10) {
583
- break;
584
- }
585
- message.endpoint = reader.string();
586
- continue;
587
- }
588
- case 2: {
589
- if (tag !== 18) {
590
- break;
591
- }
592
- message.key = reader.string();
593
- continue;
594
- }
595
- case 3: {
596
- if (tag !== 26) {
597
- break;
598
- }
599
- message.database = reader.string();
600
- continue;
601
- }
602
- case 4: {
603
- if (tag !== 34) {
604
- break;
605
- }
606
- message.container = reader.string();
607
- continue;
608
- }
609
- }
610
- if ((tag & 7) === 4 || tag === 0) {
611
- break;
612
- }
613
- reader.skip(tag & 7);
614
- }
615
- return message;
616
- },
617
- fromJSON(object) {
618
- return {
619
- endpoint: isSet(object.endpoint) ? globalThis.String(object.endpoint) : "",
620
- key: isSet(object.key) ? globalThis.String(object.key) : "",
621
- database: isSet(object.database) ? globalThis.String(object.database) : "",
622
- container: isSet(object.container) ? globalThis.String(object.container) : "",
623
- };
624
- },
625
- toJSON(message) {
626
- const obj = {};
627
- if (message.endpoint !== "") {
628
- obj.endpoint = message.endpoint;
629
- }
630
- if (message.key !== "") {
631
- obj.key = message.key;
632
- }
633
- if (message.database !== "") {
634
- obj.database = message.database;
635
- }
636
- if (message.container !== "") {
637
- obj.container = message.container;
638
- }
639
- return obj;
640
- },
641
- create(base) {
642
- return exports.CosmosDB.fromPartial(base !== null && base !== void 0 ? base : {});
643
- },
644
- fromPartial(object) {
645
- var _a, _b, _c, _d;
646
- const message = createBaseCosmosDB();
647
- message.endpoint = (_a = object.endpoint) !== null && _a !== void 0 ? _a : "";
648
- message.key = (_b = object.key) !== null && _b !== void 0 ? _b : "";
649
- message.database = (_c = object.database) !== null && _c !== void 0 ? _c : "";
650
- message.container = (_d = object.container) !== null && _d !== void 0 ? _d : "";
651
- return message;
652
- },
653
- };
654
- function createBaseRedis() {
655
- return { hosts: [], port: 0, username: "", password: "" };
656
- }
657
- exports.Redis = {
658
- encode(message, writer = new wire_1.BinaryWriter()) {
659
- for (const v of message.hosts) {
660
- writer.uint32(10).string(v);
661
- }
662
- if (message.port !== 0) {
663
- writer.uint32(16).int32(message.port);
664
- }
665
- if (message.username !== "") {
666
- writer.uint32(26).string(message.username);
667
- }
668
- if (message.password !== "") {
669
- writer.uint32(34).string(message.password);
670
- }
671
- return writer;
672
- },
673
- decode(input, length) {
674
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
675
- const end = length === undefined ? reader.len : reader.pos + length;
676
- const message = createBaseRedis();
677
- while (reader.pos < end) {
678
- const tag = reader.uint32();
679
- switch (tag >>> 3) {
680
- case 1: {
681
- if (tag !== 10) {
682
- break;
683
- }
684
- message.hosts.push(reader.string());
685
- continue;
686
- }
687
- case 2: {
688
- if (tag !== 16) {
689
- break;
690
- }
691
- message.port = reader.int32();
692
- continue;
693
- }
694
- case 3: {
695
- if (tag !== 26) {
696
- break;
697
- }
698
- message.username = reader.string();
699
- continue;
700
- }
701
- case 4: {
702
- if (tag !== 34) {
703
- break;
704
- }
705
- message.password = reader.string();
706
- continue;
707
- }
708
- }
709
- if ((tag & 7) === 4 || tag === 0) {
710
- break;
711
- }
712
- reader.skip(tag & 7);
713
- }
714
- return message;
715
- },
716
- fromJSON(object) {
717
- return {
718
- hosts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hosts) ? object.hosts.map((e) => globalThis.String(e)) : [],
719
- port: isSet(object.port) ? globalThis.Number(object.port) : 0,
720
- username: isSet(object.username) ? globalThis.String(object.username) : "",
721
- password: isSet(object.password) ? globalThis.String(object.password) : "",
722
- };
723
- },
724
- toJSON(message) {
725
- var _a;
726
- const obj = {};
727
- if ((_a = message.hosts) === null || _a === void 0 ? void 0 : _a.length) {
728
- obj.hosts = message.hosts;
729
- }
730
- if (message.port !== 0) {
731
- obj.port = Math.round(message.port);
732
- }
733
- if (message.username !== "") {
734
- obj.username = message.username;
735
- }
736
- if (message.password !== "") {
737
- obj.password = message.password;
738
- }
739
- return obj;
740
- },
741
- create(base) {
742
- return exports.Redis.fromPartial(base !== null && base !== void 0 ? base : {});
743
- },
744
- fromPartial(object) {
745
- var _a;
746
- var _b, _c, _d;
747
- const message = createBaseRedis();
748
- message.hosts = ((_a = object.hosts) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
749
- message.port = (_b = object.port) !== null && _b !== void 0 ? _b : 0;
750
- message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
751
- message.password = (_d = object.password) !== null && _d !== void 0 ? _d : "";
752
- return message;
753
- },
754
- };
755
- function createBaseValkey() {
756
- return { hosts: [], port: 0, username: "", password: "" };
757
- }
758
- exports.Valkey = {
759
- encode(message, writer = new wire_1.BinaryWriter()) {
760
- for (const v of message.hosts) {
761
- writer.uint32(10).string(v);
762
- }
763
- if (message.port !== 0) {
764
- writer.uint32(16).int32(message.port);
765
- }
766
- if (message.username !== "") {
767
- writer.uint32(26).string(message.username);
768
- }
769
- if (message.password !== "") {
770
- writer.uint32(34).string(message.password);
771
- }
772
- return writer;
773
- },
774
- decode(input, length) {
775
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
776
- const end = length === undefined ? reader.len : reader.pos + length;
777
- const message = createBaseValkey();
778
- while (reader.pos < end) {
779
- const tag = reader.uint32();
780
- switch (tag >>> 3) {
781
- case 1: {
782
- if (tag !== 10) {
783
- break;
784
- }
785
- message.hosts.push(reader.string());
786
- continue;
787
- }
788
- case 2: {
789
- if (tag !== 16) {
790
- break;
791
- }
792
- message.port = reader.int32();
793
- continue;
794
- }
795
- case 3: {
796
- if (tag !== 26) {
797
- break;
798
- }
799
- message.username = reader.string();
800
- continue;
801
- }
802
- case 4: {
803
- if (tag !== 34) {
804
- break;
805
- }
806
- message.password = reader.string();
807
- continue;
808
- }
809
- }
810
- if ((tag & 7) === 4 || tag === 0) {
811
- break;
812
- }
813
- reader.skip(tag & 7);
814
- }
815
- return message;
816
- },
817
- fromJSON(object) {
818
- return {
819
- hosts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.hosts) ? object.hosts.map((e) => globalThis.String(e)) : [],
820
- port: isSet(object.port) ? globalThis.Number(object.port) : 0,
821
- username: isSet(object.username) ? globalThis.String(object.username) : "",
822
- password: isSet(object.password) ? globalThis.String(object.password) : "",
823
- };
824
- },
825
- toJSON(message) {
826
- var _a;
827
- const obj = {};
828
- if ((_a = message.hosts) === null || _a === void 0 ? void 0 : _a.length) {
829
- obj.hosts = message.hosts;
830
- }
831
- if (message.port !== 0) {
832
- obj.port = Math.round(message.port);
833
- }
834
- if (message.username !== "") {
835
- obj.username = message.username;
836
- }
837
- if (message.password !== "") {
838
- obj.password = message.password;
839
- }
840
- return obj;
841
- },
842
- create(base) {
843
- return exports.Valkey.fromPartial(base !== null && base !== void 0 ? base : {});
844
- },
845
- fromPartial(object) {
846
- var _a;
847
- var _b, _c, _d;
848
- const message = createBaseValkey();
849
- message.hosts = ((_a = object.hosts) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
850
- message.port = (_b = object.port) !== null && _b !== void 0 ? _b : 0;
851
- message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
852
- message.password = (_d = object.password) !== null && _d !== void 0 ? _d : "";
853
- return message;
854
- },
855
- };
856
- function createBaseElasticsearch() {
857
- return { hosts: "", index: "", username: "", password: "" };
858
- }
859
- exports.Elasticsearch = {
860
- encode(message, writer = new wire_1.BinaryWriter()) {
861
- if (message.hosts !== "") {
862
- writer.uint32(10).string(message.hosts);
863
- }
864
- if (message.index !== "") {
865
- writer.uint32(18).string(message.index);
866
- }
867
- if (message.username !== "") {
868
- writer.uint32(26).string(message.username);
869
- }
870
- if (message.password !== "") {
871
- writer.uint32(34).string(message.password);
872
- }
873
- return writer;
874
- },
875
- decode(input, length) {
876
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
877
- const end = length === undefined ? reader.len : reader.pos + length;
878
- const message = createBaseElasticsearch();
879
- while (reader.pos < end) {
880
- const tag = reader.uint32();
881
- switch (tag >>> 3) {
882
- case 1: {
883
- if (tag !== 10) {
884
- break;
885
- }
886
- message.hosts = reader.string();
887
- continue;
888
- }
889
- case 2: {
890
- if (tag !== 18) {
891
- break;
892
- }
893
- message.index = reader.string();
894
- continue;
895
- }
896
- case 3: {
897
- if (tag !== 26) {
898
- break;
899
- }
900
- message.username = reader.string();
901
- continue;
902
- }
903
- case 4: {
904
- if (tag !== 34) {
905
- break;
906
- }
907
- message.password = reader.string();
908
- continue;
909
- }
910
- }
911
- if ((tag & 7) === 4 || tag === 0) {
912
- break;
913
- }
914
- reader.skip(tag & 7);
915
- }
916
- return message;
917
- },
918
- fromJSON(object) {
919
- return {
920
- hosts: isSet(object.hosts) ? globalThis.String(object.hosts) : "",
921
- index: isSet(object.index) ? globalThis.String(object.index) : "",
922
- username: isSet(object.username) ? globalThis.String(object.username) : "",
923
- password: isSet(object.password) ? globalThis.String(object.password) : "",
924
- };
925
- },
926
- toJSON(message) {
927
- const obj = {};
928
- if (message.hosts !== "") {
929
- obj.hosts = message.hosts;
930
- }
931
- if (message.index !== "") {
932
- obj.index = message.index;
933
- }
934
- if (message.username !== "") {
935
- obj.username = message.username;
936
- }
937
- if (message.password !== "") {
938
- obj.password = message.password;
939
- }
940
- return obj;
941
- },
942
- create(base) {
943
- return exports.Elasticsearch.fromPartial(base !== null && base !== void 0 ? base : {});
944
- },
945
- fromPartial(object) {
946
- var _a, _b, _c, _d;
947
- const message = createBaseElasticsearch();
948
- message.hosts = (_a = object.hosts) !== null && _a !== void 0 ? _a : "";
949
- message.index = (_b = object.index) !== null && _b !== void 0 ? _b : "";
950
- message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
951
- message.password = (_d = object.password) !== null && _d !== void 0 ? _d : "";
952
- return message;
953
- },
954
- };
955
- function createBaseOpenSearch() {
956
- return { hosts: "", index: "", username: "", password: "" };
957
- }
958
- exports.OpenSearch = {
959
- encode(message, writer = new wire_1.BinaryWriter()) {
960
- if (message.hosts !== "") {
961
- writer.uint32(10).string(message.hosts);
962
- }
963
- if (message.index !== "") {
964
- writer.uint32(18).string(message.index);
965
- }
966
- if (message.username !== "") {
967
- writer.uint32(26).string(message.username);
968
- }
969
- if (message.password !== "") {
970
- writer.uint32(34).string(message.password);
971
- }
972
- return writer;
973
- },
974
- decode(input, length) {
975
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
976
- const end = length === undefined ? reader.len : reader.pos + length;
977
- const message = createBaseOpenSearch();
978
- while (reader.pos < end) {
979
- const tag = reader.uint32();
980
- switch (tag >>> 3) {
981
- case 1: {
982
- if (tag !== 10) {
983
- break;
984
- }
985
- message.hosts = reader.string();
986
- continue;
987
- }
988
- case 2: {
989
- if (tag !== 18) {
990
- break;
991
- }
992
- message.index = reader.string();
993
- continue;
994
- }
995
- case 3: {
996
- if (tag !== 26) {
997
- break;
998
- }
999
- message.username = reader.string();
1000
- continue;
1001
- }
1002
- case 4: {
1003
- if (tag !== 34) {
1004
- break;
1005
- }
1006
- message.password = reader.string();
1007
- continue;
1008
- }
1009
- }
1010
- if ((tag & 7) === 4 || tag === 0) {
1011
- break;
1012
- }
1013
- reader.skip(tag & 7);
1014
- }
1015
- return message;
1016
- },
1017
- fromJSON(object) {
1018
- return {
1019
- hosts: isSet(object.hosts) ? globalThis.String(object.hosts) : "",
1020
- index: isSet(object.index) ? globalThis.String(object.index) : "",
1021
- username: isSet(object.username) ? globalThis.String(object.username) : "",
1022
- password: isSet(object.password) ? globalThis.String(object.password) : "",
1023
- };
1024
- },
1025
- toJSON(message) {
1026
- const obj = {};
1027
- if (message.hosts !== "") {
1028
- obj.hosts = message.hosts;
1029
- }
1030
- if (message.index !== "") {
1031
- obj.index = message.index;
1032
- }
1033
- if (message.username !== "") {
1034
- obj.username = message.username;
1035
- }
1036
- if (message.password !== "") {
1037
- obj.password = message.password;
1038
- }
1039
- return obj;
1040
- },
1041
- create(base) {
1042
- return exports.OpenSearch.fromPartial(base !== null && base !== void 0 ? base : {});
1043
- },
1044
- fromPartial(object) {
1045
- var _a, _b, _c, _d;
1046
- const message = createBaseOpenSearch();
1047
- message.hosts = (_a = object.hosts) !== null && _a !== void 0 ? _a : "";
1048
- message.index = (_b = object.index) !== null && _b !== void 0 ? _b : "";
1049
- message.username = (_c = object.username) !== null && _c !== void 0 ? _c : "";
1050
- message.password = (_d = object.password) !== null && _d !== void 0 ? _d : "";
1051
- return message;
1052
- },
1053
- };
1054
- function isSet(value) {
1055
- return value !== null && value !== undefined;
1056
- }