weave-typescript 0.1.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 (39) hide show
  1. package/dist/google/api/annotations.pb.d.ts +1 -0
  2. package/dist/google/api/annotations.pb.js +10 -0
  3. package/dist/google/api/http.pb.d.ts +371 -0
  4. package/dist/google/api/http.pb.js +360 -0
  5. package/dist/google/protobuf/descriptor.pb.d.ts +1285 -0
  6. package/dist/google/protobuf/descriptor.pb.js +5217 -0
  7. package/dist/google/protobuf/struct.pb.d.ts +107 -0
  8. package/dist/google/protobuf/struct.pb.js +461 -0
  9. package/dist/index.d.ts +14 -0
  10. package/dist/index.js +54 -0
  11. package/dist/weave/datamanagement/generate/v1/configuration.pb.d.ts +123 -0
  12. package/dist/weave/datamanagement/generate/v1/configuration.pb.js +799 -0
  13. package/dist/weave/datamanagement/generate/v1/generate.pb.d.ts +30 -0
  14. package/dist/weave/datamanagement/generate/v1/generate.pb.js +119 -0
  15. package/dist/weave/datamanagement/generate/v1/service.pb.d.ts +126 -0
  16. package/dist/weave/datamanagement/generate/v1/service.pb.js +578 -0
  17. package/dist/weave/datamanagement/storage/v1/auth.pb.d.ts +27 -0
  18. package/dist/weave/datamanagement/storage/v1/auth.pb.js +98 -0
  19. package/dist/weave/datamanagement/storage/v1/nosql_database.pb.d.ts +91 -0
  20. package/dist/weave/datamanagement/storage/v1/nosql_database.pb.js +1030 -0
  21. package/dist/weave/datamanagement/storage/v1/object_store.pb.d.ts +49 -0
  22. package/dist/weave/datamanagement/storage/v1/object_store.pb.js +405 -0
  23. package/dist/weave/datamanagement/storage/v1/service.pb.d.ts +257 -0
  24. package/dist/weave/datamanagement/storage/v1/service.pb.js +1188 -0
  25. package/dist/weave/datamanagement/storage/v1/sql_database.pb.d.ts +98 -0
  26. package/dist/weave/datamanagement/storage/v1/sql_database.pb.js +1142 -0
  27. package/dist/weave/datamanagement/storage/v1/storage.pb.d.ts +33 -0
  28. package/dist/weave/datamanagement/storage/v1/storage.pb.js +159 -0
  29. package/dist/weave/datamanagement/synthesize/v1/dataset.pb.d.ts +68 -0
  30. package/dist/weave/datamanagement/synthesize/v1/dataset.pb.js +439 -0
  31. package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.d.ts +45 -0
  32. package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.js +166 -0
  33. package/dist/weave/datamanagement/synthesize/v1/relationship.pb.d.ts +58 -0
  34. package/dist/weave/datamanagement/synthesize/v1/relationship.pb.js +241 -0
  35. package/dist/weave/datamanagement/synthesize/v1/service.pb.d.ts +133 -0
  36. package/dist/weave/datamanagement/synthesize/v1/service.pb.js +705 -0
  37. package/dist/weave/datamanagement/synthesize/v1/training.pb.d.ts +58 -0
  38. package/dist/weave/datamanagement/synthesize/v1/training.pb.js +353 -0
  39. package/package.json +27 -0
@@ -0,0 +1,49 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { AwsCredentials } from "./auth.pb";
3
+ export declare const protobufPackage = "weave.datamanagement.storage.v1";
4
+ export interface ObjectStore {
5
+ awsS3?: AwsS3 | undefined;
6
+ azureBlobStorage?: AzureBlobStorage | undefined;
7
+ googleCloudStorage?: GoogleCloudStorage | undefined;
8
+ }
9
+ export interface AwsS3 {
10
+ bucket: string;
11
+ region: string;
12
+ credentials?: AwsCredentials | undefined;
13
+ useInstanceProfile?: boolean | undefined;
14
+ }
15
+ export interface AzureBlobStorage {
16
+ container: string;
17
+ accountName: string;
18
+ sasToken?: string | undefined;
19
+ accountKey?: string | undefined;
20
+ useManagedIdentity?: boolean | undefined;
21
+ }
22
+ export interface GoogleCloudStorage {
23
+ bucket: string;
24
+ serviceAccountJson?: string | undefined;
25
+ useApplicationDefault?: boolean | undefined;
26
+ }
27
+ export declare const ObjectStore: MessageFns<ObjectStore>;
28
+ export declare const AwsS3: MessageFns<AwsS3>;
29
+ export declare const AzureBlobStorage: MessageFns<AzureBlobStorage>;
30
+ export declare const GoogleCloudStorage: MessageFns<GoogleCloudStorage>;
31
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
32
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
33
+ [K in keyof T]?: DeepPartial<T[K]>;
34
+ } : Partial<T>;
35
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
36
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
37
+ [K in keyof P]: Exact<P[K], I[K]>;
38
+ } & {
39
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
40
+ };
41
+ export interface MessageFns<T> {
42
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
43
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
44
+ fromJSON(object: any): T;
45
+ toJSON(message: T): unknown;
46
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
47
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
48
+ }
49
+ export {};
@@ -0,0 +1,405 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.6.1
5
+ // protoc unknown
6
+ // source: weave/datamanagement/storage/v1/object_store.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.GoogleCloudStorage = exports.AzureBlobStorage = exports.AwsS3 = exports.ObjectStore = 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 = "weave.datamanagement.storage.v1";
13
+ function createBaseObjectStore() {
14
+ return { awsS3: undefined, azureBlobStorage: undefined, googleCloudStorage: undefined };
15
+ }
16
+ exports.ObjectStore = {
17
+ encode(message, writer = new wire_1.BinaryWriter()) {
18
+ if (message.awsS3 !== undefined) {
19
+ exports.AwsS3.encode(message.awsS3, writer.uint32(10).fork()).join();
20
+ }
21
+ if (message.azureBlobStorage !== undefined) {
22
+ exports.AzureBlobStorage.encode(message.azureBlobStorage, writer.uint32(18).fork()).join();
23
+ }
24
+ if (message.googleCloudStorage !== undefined) {
25
+ exports.GoogleCloudStorage.encode(message.googleCloudStorage, writer.uint32(26).fork()).join();
26
+ }
27
+ return writer;
28
+ },
29
+ decode(input, length) {
30
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
31
+ let end = length === undefined ? reader.len : reader.pos + length;
32
+ const message = createBaseObjectStore();
33
+ while (reader.pos < end) {
34
+ const tag = reader.uint32();
35
+ switch (tag >>> 3) {
36
+ case 1: {
37
+ if (tag !== 10) {
38
+ break;
39
+ }
40
+ message.awsS3 = exports.AwsS3.decode(reader, reader.uint32());
41
+ continue;
42
+ }
43
+ case 2: {
44
+ if (tag !== 18) {
45
+ break;
46
+ }
47
+ message.azureBlobStorage = exports.AzureBlobStorage.decode(reader, reader.uint32());
48
+ continue;
49
+ }
50
+ case 3: {
51
+ if (tag !== 26) {
52
+ break;
53
+ }
54
+ message.googleCloudStorage = exports.GoogleCloudStorage.decode(reader, reader.uint32());
55
+ continue;
56
+ }
57
+ }
58
+ if ((tag & 7) === 4 || tag === 0) {
59
+ break;
60
+ }
61
+ reader.skip(tag & 7);
62
+ }
63
+ return message;
64
+ },
65
+ fromJSON(object) {
66
+ return {
67
+ awsS3: isSet(object.awsS3) ? exports.AwsS3.fromJSON(object.awsS3) : undefined,
68
+ azureBlobStorage: isSet(object.azureBlobStorage) ? exports.AzureBlobStorage.fromJSON(object.azureBlobStorage) : undefined,
69
+ googleCloudStorage: isSet(object.googleCloudStorage)
70
+ ? exports.GoogleCloudStorage.fromJSON(object.googleCloudStorage)
71
+ : undefined,
72
+ };
73
+ },
74
+ toJSON(message) {
75
+ const obj = {};
76
+ if (message.awsS3 !== undefined) {
77
+ obj.awsS3 = exports.AwsS3.toJSON(message.awsS3);
78
+ }
79
+ if (message.azureBlobStorage !== undefined) {
80
+ obj.azureBlobStorage = exports.AzureBlobStorage.toJSON(message.azureBlobStorage);
81
+ }
82
+ if (message.googleCloudStorage !== undefined) {
83
+ obj.googleCloudStorage = exports.GoogleCloudStorage.toJSON(message.googleCloudStorage);
84
+ }
85
+ return obj;
86
+ },
87
+ create(base) {
88
+ return exports.ObjectStore.fromPartial(base !== null && base !== void 0 ? base : {});
89
+ },
90
+ fromPartial(object) {
91
+ const message = createBaseObjectStore();
92
+ message.awsS3 = (object.awsS3 !== undefined && object.awsS3 !== null) ? exports.AwsS3.fromPartial(object.awsS3) : undefined;
93
+ message.azureBlobStorage = (object.azureBlobStorage !== undefined && object.azureBlobStorage !== null)
94
+ ? exports.AzureBlobStorage.fromPartial(object.azureBlobStorage)
95
+ : undefined;
96
+ message.googleCloudStorage = (object.googleCloudStorage !== undefined && object.googleCloudStorage !== null)
97
+ ? exports.GoogleCloudStorage.fromPartial(object.googleCloudStorage)
98
+ : undefined;
99
+ return message;
100
+ },
101
+ };
102
+ function createBaseAwsS3() {
103
+ return { bucket: "", region: "", credentials: undefined, useInstanceProfile: undefined };
104
+ }
105
+ exports.AwsS3 = {
106
+ encode(message, writer = new wire_1.BinaryWriter()) {
107
+ if (message.bucket !== "") {
108
+ writer.uint32(10).string(message.bucket);
109
+ }
110
+ if (message.region !== "") {
111
+ writer.uint32(18).string(message.region);
112
+ }
113
+ if (message.credentials !== undefined) {
114
+ auth_pb_1.AwsCredentials.encode(message.credentials, writer.uint32(82).fork()).join();
115
+ }
116
+ if (message.useInstanceProfile !== undefined) {
117
+ writer.uint32(88).bool(message.useInstanceProfile);
118
+ }
119
+ return writer;
120
+ },
121
+ decode(input, length) {
122
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
123
+ let end = length === undefined ? reader.len : reader.pos + length;
124
+ const message = createBaseAwsS3();
125
+ while (reader.pos < end) {
126
+ const tag = reader.uint32();
127
+ switch (tag >>> 3) {
128
+ case 1: {
129
+ if (tag !== 10) {
130
+ break;
131
+ }
132
+ message.bucket = reader.string();
133
+ continue;
134
+ }
135
+ case 2: {
136
+ if (tag !== 18) {
137
+ break;
138
+ }
139
+ message.region = reader.string();
140
+ continue;
141
+ }
142
+ case 10: {
143
+ if (tag !== 82) {
144
+ break;
145
+ }
146
+ message.credentials = auth_pb_1.AwsCredentials.decode(reader, reader.uint32());
147
+ continue;
148
+ }
149
+ case 11: {
150
+ if (tag !== 88) {
151
+ break;
152
+ }
153
+ message.useInstanceProfile = reader.bool();
154
+ continue;
155
+ }
156
+ }
157
+ if ((tag & 7) === 4 || tag === 0) {
158
+ break;
159
+ }
160
+ reader.skip(tag & 7);
161
+ }
162
+ return message;
163
+ },
164
+ fromJSON(object) {
165
+ return {
166
+ bucket: isSet(object.bucket) ? globalThis.String(object.bucket) : "",
167
+ region: isSet(object.region) ? globalThis.String(object.region) : "",
168
+ credentials: isSet(object.credentials) ? auth_pb_1.AwsCredentials.fromJSON(object.credentials) : undefined,
169
+ useInstanceProfile: isSet(object.useInstanceProfile) ? globalThis.Boolean(object.useInstanceProfile) : undefined,
170
+ };
171
+ },
172
+ toJSON(message) {
173
+ const obj = {};
174
+ if (message.bucket !== "") {
175
+ obj.bucket = message.bucket;
176
+ }
177
+ if (message.region !== "") {
178
+ obj.region = message.region;
179
+ }
180
+ if (message.credentials !== undefined) {
181
+ obj.credentials = auth_pb_1.AwsCredentials.toJSON(message.credentials);
182
+ }
183
+ if (message.useInstanceProfile !== undefined) {
184
+ obj.useInstanceProfile = message.useInstanceProfile;
185
+ }
186
+ return obj;
187
+ },
188
+ create(base) {
189
+ return exports.AwsS3.fromPartial(base !== null && base !== void 0 ? base : {});
190
+ },
191
+ fromPartial(object) {
192
+ var _a, _b, _c;
193
+ const message = createBaseAwsS3();
194
+ message.bucket = (_a = object.bucket) !== null && _a !== void 0 ? _a : "";
195
+ message.region = (_b = object.region) !== null && _b !== void 0 ? _b : "";
196
+ message.credentials = (object.credentials !== undefined && object.credentials !== null)
197
+ ? auth_pb_1.AwsCredentials.fromPartial(object.credentials)
198
+ : undefined;
199
+ message.useInstanceProfile = (_c = object.useInstanceProfile) !== null && _c !== void 0 ? _c : undefined;
200
+ return message;
201
+ },
202
+ };
203
+ function createBaseAzureBlobStorage() {
204
+ return { container: "", accountName: "", sasToken: undefined, accountKey: undefined, useManagedIdentity: undefined };
205
+ }
206
+ exports.AzureBlobStorage = {
207
+ encode(message, writer = new wire_1.BinaryWriter()) {
208
+ if (message.container !== "") {
209
+ writer.uint32(10).string(message.container);
210
+ }
211
+ if (message.accountName !== "") {
212
+ writer.uint32(18).string(message.accountName);
213
+ }
214
+ if (message.sasToken !== undefined) {
215
+ writer.uint32(82).string(message.sasToken);
216
+ }
217
+ if (message.accountKey !== undefined) {
218
+ writer.uint32(90).string(message.accountKey);
219
+ }
220
+ if (message.useManagedIdentity !== undefined) {
221
+ writer.uint32(96).bool(message.useManagedIdentity);
222
+ }
223
+ return writer;
224
+ },
225
+ decode(input, length) {
226
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
227
+ let end = length === undefined ? reader.len : reader.pos + length;
228
+ const message = createBaseAzureBlobStorage();
229
+ while (reader.pos < end) {
230
+ const tag = reader.uint32();
231
+ switch (tag >>> 3) {
232
+ case 1: {
233
+ if (tag !== 10) {
234
+ break;
235
+ }
236
+ message.container = reader.string();
237
+ continue;
238
+ }
239
+ case 2: {
240
+ if (tag !== 18) {
241
+ break;
242
+ }
243
+ message.accountName = reader.string();
244
+ continue;
245
+ }
246
+ case 10: {
247
+ if (tag !== 82) {
248
+ break;
249
+ }
250
+ message.sasToken = reader.string();
251
+ continue;
252
+ }
253
+ case 11: {
254
+ if (tag !== 90) {
255
+ break;
256
+ }
257
+ message.accountKey = reader.string();
258
+ continue;
259
+ }
260
+ case 12: {
261
+ if (tag !== 96) {
262
+ break;
263
+ }
264
+ message.useManagedIdentity = reader.bool();
265
+ continue;
266
+ }
267
+ }
268
+ if ((tag & 7) === 4 || tag === 0) {
269
+ break;
270
+ }
271
+ reader.skip(tag & 7);
272
+ }
273
+ return message;
274
+ },
275
+ fromJSON(object) {
276
+ return {
277
+ container: isSet(object.container) ? globalThis.String(object.container) : "",
278
+ accountName: isSet(object.accountName) ? globalThis.String(object.accountName) : "",
279
+ sasToken: isSet(object.sasToken) ? globalThis.String(object.sasToken) : undefined,
280
+ accountKey: isSet(object.accountKey) ? globalThis.String(object.accountKey) : undefined,
281
+ useManagedIdentity: isSet(object.useManagedIdentity) ? globalThis.Boolean(object.useManagedIdentity) : undefined,
282
+ };
283
+ },
284
+ toJSON(message) {
285
+ const obj = {};
286
+ if (message.container !== "") {
287
+ obj.container = message.container;
288
+ }
289
+ if (message.accountName !== "") {
290
+ obj.accountName = message.accountName;
291
+ }
292
+ if (message.sasToken !== undefined) {
293
+ obj.sasToken = message.sasToken;
294
+ }
295
+ if (message.accountKey !== undefined) {
296
+ obj.accountKey = message.accountKey;
297
+ }
298
+ if (message.useManagedIdentity !== undefined) {
299
+ obj.useManagedIdentity = message.useManagedIdentity;
300
+ }
301
+ return obj;
302
+ },
303
+ create(base) {
304
+ return exports.AzureBlobStorage.fromPartial(base !== null && base !== void 0 ? base : {});
305
+ },
306
+ fromPartial(object) {
307
+ var _a, _b, _c, _d, _e;
308
+ const message = createBaseAzureBlobStorage();
309
+ message.container = (_a = object.container) !== null && _a !== void 0 ? _a : "";
310
+ message.accountName = (_b = object.accountName) !== null && _b !== void 0 ? _b : "";
311
+ message.sasToken = (_c = object.sasToken) !== null && _c !== void 0 ? _c : undefined;
312
+ message.accountKey = (_d = object.accountKey) !== null && _d !== void 0 ? _d : undefined;
313
+ message.useManagedIdentity = (_e = object.useManagedIdentity) !== null && _e !== void 0 ? _e : undefined;
314
+ return message;
315
+ },
316
+ };
317
+ function createBaseGoogleCloudStorage() {
318
+ return { bucket: "", serviceAccountJson: undefined, useApplicationDefault: undefined };
319
+ }
320
+ exports.GoogleCloudStorage = {
321
+ encode(message, writer = new wire_1.BinaryWriter()) {
322
+ if (message.bucket !== "") {
323
+ writer.uint32(10).string(message.bucket);
324
+ }
325
+ if (message.serviceAccountJson !== undefined) {
326
+ writer.uint32(82).string(message.serviceAccountJson);
327
+ }
328
+ if (message.useApplicationDefault !== undefined) {
329
+ writer.uint32(88).bool(message.useApplicationDefault);
330
+ }
331
+ return writer;
332
+ },
333
+ decode(input, length) {
334
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
335
+ let end = length === undefined ? reader.len : reader.pos + length;
336
+ const message = createBaseGoogleCloudStorage();
337
+ while (reader.pos < end) {
338
+ const tag = reader.uint32();
339
+ switch (tag >>> 3) {
340
+ case 1: {
341
+ if (tag !== 10) {
342
+ break;
343
+ }
344
+ message.bucket = reader.string();
345
+ continue;
346
+ }
347
+ case 10: {
348
+ if (tag !== 82) {
349
+ break;
350
+ }
351
+ message.serviceAccountJson = reader.string();
352
+ continue;
353
+ }
354
+ case 11: {
355
+ if (tag !== 88) {
356
+ break;
357
+ }
358
+ message.useApplicationDefault = reader.bool();
359
+ continue;
360
+ }
361
+ }
362
+ if ((tag & 7) === 4 || tag === 0) {
363
+ break;
364
+ }
365
+ reader.skip(tag & 7);
366
+ }
367
+ return message;
368
+ },
369
+ fromJSON(object) {
370
+ return {
371
+ bucket: isSet(object.bucket) ? globalThis.String(object.bucket) : "",
372
+ serviceAccountJson: isSet(object.serviceAccountJson) ? globalThis.String(object.serviceAccountJson) : undefined,
373
+ useApplicationDefault: isSet(object.useApplicationDefault)
374
+ ? globalThis.Boolean(object.useApplicationDefault)
375
+ : undefined,
376
+ };
377
+ },
378
+ toJSON(message) {
379
+ const obj = {};
380
+ if (message.bucket !== "") {
381
+ obj.bucket = message.bucket;
382
+ }
383
+ if (message.serviceAccountJson !== undefined) {
384
+ obj.serviceAccountJson = message.serviceAccountJson;
385
+ }
386
+ if (message.useApplicationDefault !== undefined) {
387
+ obj.useApplicationDefault = message.useApplicationDefault;
388
+ }
389
+ return obj;
390
+ },
391
+ create(base) {
392
+ return exports.GoogleCloudStorage.fromPartial(base !== null && base !== void 0 ? base : {});
393
+ },
394
+ fromPartial(object) {
395
+ var _a, _b, _c;
396
+ const message = createBaseGoogleCloudStorage();
397
+ message.bucket = (_a = object.bucket) !== null && _a !== void 0 ? _a : "";
398
+ message.serviceAccountJson = (_b = object.serviceAccountJson) !== null && _b !== void 0 ? _b : undefined;
399
+ message.useApplicationDefault = (_c = object.useApplicationDefault) !== null && _c !== void 0 ? _c : undefined;
400
+ return message;
401
+ },
402
+ };
403
+ function isSet(value) {
404
+ return value !== null && value !== undefined;
405
+ }