weave-typescript 0.13.0 → 0.15.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.
- package/dist/index.d.ts +9 -16
- package/dist/index.js +13 -21
- package/dist/weaveapi/project/v1/project.pb.d.ts +69 -5
- package/dist/weaveapi/project/v1/project.pb.js +787 -62
- package/dist/weaveapi/project/v1/service.pb.d.ts +110 -69
- package/dist/weaveapi/project/v1/service.pb.js +1056 -392
- package/dist/weaveapi/task/v1/service.pb.d.ts +172 -0
- package/dist/weaveapi/task/v1/service.pb.js +1436 -0
- package/dist/weaveapi/task/v1/task.pb.d.ts +85 -0
- package/dist/weaveapi/task/v1/task.pb.js +802 -0
- package/dist/weavesql/atcdb/event_sql.d.ts +10 -0
- package/dist/weavesql/atcdb/event_sql.js +11 -1
- package/dist/weavesql/atcdb/mailbox_sql.d.ts +2 -2
- package/dist/weavesql/atcdb/mailbox_sql.js +1 -1
- package/dist/weavesql/weavedb/project_sql.d.ts +164 -41
- package/dist/weavesql/weavedb/project_sql.js +398 -103
- package/dist/weavesql/weavedb/task_sql.d.ts +210 -0
- package/dist/weavesql/weavedb/task_sql.js +430 -0
- package/package.json +2 -2
- package/dist/weaveapi/auth/v1/service.pb.d.ts +0 -709
- package/dist/weaveapi/auth/v1/service.pb.js +0 -5058
- package/dist/weaveapi/auth/v1/session.pb.d.ts +0 -43
- package/dist/weaveapi/auth/v1/session.pb.js +0 -308
- package/dist/weaveapi/auth/v1/usage.pb.d.ts +0 -76
- package/dist/weaveapi/auth/v1/usage.pb.js +0 -849
- package/dist/weaveapi/auth/v1/user.pb.d.ts +0 -141
- package/dist/weaveapi/auth/v1/user.pb.js +0 -1625
- package/dist/weaveapi/data/v1/data.pb.d.ts +0 -54
- package/dist/weaveapi/data/v1/data.pb.js +0 -411
- package/dist/weaveapi/data/v1/service.pb.d.ts +0 -296
- package/dist/weaveapi/data/v1/service.pb.js +0 -2777
- package/dist/weaveapi/generate/v1/configuration.pb.d.ts +0 -122
- package/dist/weaveapi/generate/v1/configuration.pb.js +0 -877
- package/dist/weaveapi/generate/v1/generate.pb.d.ts +0 -48
- package/dist/weaveapi/generate/v1/generate.pb.js +0 -367
- package/dist/weaveapi/generate/v1/service.pb.d.ts +0 -173
- package/dist/weaveapi/generate/v1/service.pb.js +0 -1207
- package/dist/weaveapi/input/v1/input.pb.d.ts +0 -77
- package/dist/weaveapi/input/v1/input.pb.js +0 -632
- package/dist/weaveapi/input/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/input/v1/service.pb.js +0 -3610
- package/dist/weaveapi/integration/v1/integration.pb.d.ts +0 -67
- package/dist/weaveapi/integration/v1/integration.pb.js +0 -486
- package/dist/weaveapi/integration/v1/service.pb.d.ts +0 -318
- package/dist/weaveapi/integration/v1/service.pb.js +0 -2992
- package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +0 -665
- package/dist/weaveapi/llmx/v1/architecture.pb.js +0 -3028
- package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +0 -709
- package/dist/weaveapi/llmx/v1/capabilities.pb.js +0 -3458
- package/dist/weaveapi/llmx/v1/model.pb.d.ts +0 -375
- package/dist/weaveapi/llmx/v1/model.pb.js +0 -1472
- package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +0 -340
- package/dist/weaveapi/llmx/v1/pricing.pb.js +0 -974
- package/dist/weaveapi/llmx/v1/provider.pb.d.ts +0 -72
- package/dist/weaveapi/llmx/v1/provider.pb.js +0 -218
- package/dist/weaveapi/llmx/v1/service.pb.d.ts +0 -683
- package/dist/weaveapi/llmx/v1/service.pb.js +0 -5311
- package/dist/weaveapi/mcpregistry/v1/server.pb.d.ts +0 -54
- package/dist/weaveapi/mcpregistry/v1/server.pb.js +0 -436
- package/dist/weaveapi/mcpregistry/v1/service.pb.d.ts +0 -171
- package/dist/weaveapi/mcpregistry/v1/service.pb.js +0 -963
- package/dist/weaveapi/payment/v1/invoice.pb.d.ts +0 -92
- package/dist/weaveapi/payment/v1/invoice.pb.js +0 -998
- package/dist/weaveapi/payment/v1/service.pb.d.ts +0 -662
- package/dist/weaveapi/payment/v1/service.pb.js +0 -5395
- package/dist/weaveapi/payment/v1/subscription.pb.d.ts +0 -165
- package/dist/weaveapi/payment/v1/subscription.pb.js +0 -1930
- package/dist/weaveapi/report/v1/report.pb.d.ts +0 -81
- package/dist/weaveapi/report/v1/report.pb.js +0 -678
- package/dist/weaveapi/report/v1/service.pb.d.ts +0 -194
- package/dist/weaveapi/report/v1/service.pb.js +0 -1923
- package/dist/weaveapi/requirement/v1/requirement.pb.d.ts +0 -70
- package/dist/weaveapi/requirement/v1/requirement.pb.js +0 -570
- package/dist/weaveapi/requirement/v1/service.pb.d.ts +0 -390
- package/dist/weaveapi/requirement/v1/service.pb.js +0 -3636
- package/dist/weaveapi/run/v1/run.pb.d.ts +0 -117
- package/dist/weaveapi/run/v1/run.pb.js +0 -1155
- package/dist/weaveapi/run/v1/service.pb.d.ts +0 -229
- package/dist/weaveapi/run/v1/service.pb.js +0 -2426
- package/dist/weaveapi/script/v1/script.pb.d.ts +0 -102
- package/dist/weaveapi/script/v1/script.pb.js +0 -1025
- package/dist/weaveapi/script/v1/service.pb.d.ts +0 -502
- package/dist/weaveapi/script/v1/service.pb.js +0 -4871
- package/dist/weaveapi/storage/v1/auth.pb.d.ts +0 -27
- package/dist/weaveapi/storage/v1/auth.pb.js +0 -110
- package/dist/weaveapi/storage/v1/nosql_database.pb.d.ts +0 -91
- package/dist/weaveapi/storage/v1/nosql_database.pb.js +0 -1056
- package/dist/weaveapi/storage/v1/object_store.pb.d.ts +0 -49
- package/dist/weaveapi/storage/v1/object_store.pb.js +0 -441
- package/dist/weaveapi/storage/v1/service.pb.d.ts +0 -245
- package/dist/weaveapi/storage/v1/service.pb.js +0 -1339
- package/dist/weaveapi/storage/v1/sql_database.pb.d.ts +0 -98
- package/dist/weaveapi/storage/v1/sql_database.pb.js +0 -1184
- package/dist/weaveapi/storage/v1/storage.pb.d.ts +0 -35
- package/dist/weaveapi/storage/v1/storage.pb.js +0 -198
- package/dist/weaveapi/storage/v1/vcs.pb.d.ts +0 -75
- package/dist/weaveapi/storage/v1/vcs.pb.js +0 -864
- package/dist/weaveapi/suite/v1/service.pb.d.ts +0 -539
- package/dist/weaveapi/suite/v1/service.pb.js +0 -5279
- package/dist/weaveapi/suite/v1/suite.pb.d.ts +0 -92
- package/dist/weaveapi/suite/v1/suite.pb.js +0 -876
- package/dist/weaveapi/synthesize/v1/dataset.pb.d.ts +0 -68
- package/dist/weaveapi/synthesize/v1/dataset.pb.js +0 -460
- package/dist/weaveapi/synthesize/v1/inline_data.pb.d.ts +0 -45
- package/dist/weaveapi/synthesize/v1/inline_data.pb.js +0 -166
- package/dist/weaveapi/synthesize/v1/relationship.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/relationship.pb.js +0 -253
- package/dist/weaveapi/synthesize/v1/service.pb.d.ts +0 -144
- package/dist/weaveapi/synthesize/v1/service.pb.js +0 -937
- package/dist/weaveapi/synthesize/v1/training.pb.d.ts +0 -58
- package/dist/weaveapi/synthesize/v1/training.pb.js +0 -386
- package/dist/weaveapi/testcase/v1/service.pb.d.ts +0 -498
- package/dist/weaveapi/testcase/v1/service.pb.js +0 -4728
- package/dist/weaveapi/testcase/v1/testcase.pb.d.ts +0 -91
- package/dist/weaveapi/testcase/v1/testcase.pb.js +0 -794
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -2120
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +0 -77
- package/dist/weaveapi/workflow/v1/workflow.pb.js +0 -555
- package/dist/weaveapi/workflowdata/v1/service.pb.d.ts +0 -295
- package/dist/weaveapi/workflowdata/v1/service.pb.js +0 -2612
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "weaveapi.generate.v1";
|
|
3
|
-
export interface StartDatasetGenerationEvent {
|
|
4
|
-
syntheticDatasetId: string;
|
|
5
|
-
synthesizerId: string;
|
|
6
|
-
outputStorageConnectionId: string;
|
|
7
|
-
config: {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
} | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface StartSeedDatasetGenerationEvent {
|
|
12
|
-
datasetIdsByTable: {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
};
|
|
15
|
-
organizationId: string;
|
|
16
|
-
outputStorageConnectionId: string;
|
|
17
|
-
config: {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
} | undefined;
|
|
20
|
-
name: string;
|
|
21
|
-
description: string;
|
|
22
|
-
}
|
|
23
|
-
export interface StartSeedDatasetGenerationEvent_DatasetIdsByTableEntry {
|
|
24
|
-
key: string;
|
|
25
|
-
value: string;
|
|
26
|
-
}
|
|
27
|
-
export declare const StartDatasetGenerationEvent: MessageFns<StartDatasetGenerationEvent>;
|
|
28
|
-
export declare const StartSeedDatasetGenerationEvent: MessageFns<StartSeedDatasetGenerationEvent>;
|
|
29
|
-
export declare const StartSeedDatasetGenerationEvent_DatasetIdsByTableEntry: MessageFns<StartSeedDatasetGenerationEvent_DatasetIdsByTableEntry>;
|
|
30
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
31
|
-
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 {} ? {
|
|
32
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
33
|
-
} : Partial<T>;
|
|
34
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
35
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
36
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
37
|
-
} & {
|
|
38
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
39
|
-
};
|
|
40
|
-
export interface MessageFns<T> {
|
|
41
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
42
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
43
|
-
fromJSON(object: any): T;
|
|
44
|
-
toJSON(message: T): unknown;
|
|
45
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
46
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
47
|
-
}
|
|
48
|
-
export {};
|
|
@@ -1,367 +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/generate/v1/generate.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.StartSeedDatasetGenerationEvent_DatasetIdsByTableEntry = exports.StartSeedDatasetGenerationEvent = exports.StartDatasetGenerationEvent = 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
|
-
exports.protobufPackage = "weaveapi.generate.v1";
|
|
13
|
-
function createBaseStartDatasetGenerationEvent() {
|
|
14
|
-
return { syntheticDatasetId: "", synthesizerId: "", outputStorageConnectionId: "", config: undefined };
|
|
15
|
-
}
|
|
16
|
-
exports.StartDatasetGenerationEvent = {
|
|
17
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
18
|
-
if (message.syntheticDatasetId !== "") {
|
|
19
|
-
writer.uint32(10).string(message.syntheticDatasetId);
|
|
20
|
-
}
|
|
21
|
-
if (message.synthesizerId !== "") {
|
|
22
|
-
writer.uint32(18).string(message.synthesizerId);
|
|
23
|
-
}
|
|
24
|
-
if (message.outputStorageConnectionId !== "") {
|
|
25
|
-
writer.uint32(26).string(message.outputStorageConnectionId);
|
|
26
|
-
}
|
|
27
|
-
if (message.config !== undefined) {
|
|
28
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.config), writer.uint32(34).fork()).join();
|
|
29
|
-
}
|
|
30
|
-
return writer;
|
|
31
|
-
},
|
|
32
|
-
decode(input, length) {
|
|
33
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
34
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
-
const message = createBaseStartDatasetGenerationEvent();
|
|
36
|
-
while (reader.pos < end) {
|
|
37
|
-
const tag = reader.uint32();
|
|
38
|
-
switch (tag >>> 3) {
|
|
39
|
-
case 1: {
|
|
40
|
-
if (tag !== 10) {
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
message.syntheticDatasetId = reader.string();
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
case 2: {
|
|
47
|
-
if (tag !== 18) {
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
message.synthesizerId = reader.string();
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
case 3: {
|
|
54
|
-
if (tag !== 26) {
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
message.outputStorageConnectionId = reader.string();
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
case 4: {
|
|
61
|
-
if (tag !== 34) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
message.config = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
reader.skip(tag & 7);
|
|
72
|
-
}
|
|
73
|
-
return message;
|
|
74
|
-
},
|
|
75
|
-
fromJSON(object) {
|
|
76
|
-
return {
|
|
77
|
-
syntheticDatasetId: isSet(object.syntheticDatasetId)
|
|
78
|
-
? globalThis.String(object.syntheticDatasetId)
|
|
79
|
-
: isSet(object.synthetic_dataset_id)
|
|
80
|
-
? globalThis.String(object.synthetic_dataset_id)
|
|
81
|
-
: "",
|
|
82
|
-
synthesizerId: isSet(object.synthesizerId)
|
|
83
|
-
? globalThis.String(object.synthesizerId)
|
|
84
|
-
: isSet(object.synthesizer_id)
|
|
85
|
-
? globalThis.String(object.synthesizer_id)
|
|
86
|
-
: "",
|
|
87
|
-
outputStorageConnectionId: isSet(object.outputStorageConnectionId)
|
|
88
|
-
? globalThis.String(object.outputStorageConnectionId)
|
|
89
|
-
: isSet(object.output_storage_connection_id)
|
|
90
|
-
? globalThis.String(object.output_storage_connection_id)
|
|
91
|
-
: "",
|
|
92
|
-
config: isObject(object.config) ? object.config : undefined,
|
|
93
|
-
};
|
|
94
|
-
},
|
|
95
|
-
toJSON(message) {
|
|
96
|
-
const obj = {};
|
|
97
|
-
if (message.syntheticDatasetId !== "") {
|
|
98
|
-
obj.syntheticDatasetId = message.syntheticDatasetId;
|
|
99
|
-
}
|
|
100
|
-
if (message.synthesizerId !== "") {
|
|
101
|
-
obj.synthesizerId = message.synthesizerId;
|
|
102
|
-
}
|
|
103
|
-
if (message.outputStorageConnectionId !== "") {
|
|
104
|
-
obj.outputStorageConnectionId = message.outputStorageConnectionId;
|
|
105
|
-
}
|
|
106
|
-
if (message.config !== undefined) {
|
|
107
|
-
obj.config = message.config;
|
|
108
|
-
}
|
|
109
|
-
return obj;
|
|
110
|
-
},
|
|
111
|
-
create(base) {
|
|
112
|
-
return exports.StartDatasetGenerationEvent.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
113
|
-
},
|
|
114
|
-
fromPartial(object) {
|
|
115
|
-
var _a, _b, _c, _d;
|
|
116
|
-
const message = createBaseStartDatasetGenerationEvent();
|
|
117
|
-
message.syntheticDatasetId = (_a = object.syntheticDatasetId) !== null && _a !== void 0 ? _a : "";
|
|
118
|
-
message.synthesizerId = (_b = object.synthesizerId) !== null && _b !== void 0 ? _b : "";
|
|
119
|
-
message.outputStorageConnectionId = (_c = object.outputStorageConnectionId) !== null && _c !== void 0 ? _c : "";
|
|
120
|
-
message.config = (_d = object.config) !== null && _d !== void 0 ? _d : undefined;
|
|
121
|
-
return message;
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
function createBaseStartSeedDatasetGenerationEvent() {
|
|
125
|
-
return {
|
|
126
|
-
datasetIdsByTable: {},
|
|
127
|
-
organizationId: "",
|
|
128
|
-
outputStorageConnectionId: "",
|
|
129
|
-
config: undefined,
|
|
130
|
-
name: "",
|
|
131
|
-
description: "",
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
exports.StartSeedDatasetGenerationEvent = {
|
|
135
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
136
|
-
globalThis.Object.entries(message.datasetIdsByTable).forEach(([key, value]) => {
|
|
137
|
-
exports.StartSeedDatasetGenerationEvent_DatasetIdsByTableEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
|
|
138
|
-
});
|
|
139
|
-
if (message.organizationId !== "") {
|
|
140
|
-
writer.uint32(18).string(message.organizationId);
|
|
141
|
-
}
|
|
142
|
-
if (message.outputStorageConnectionId !== "") {
|
|
143
|
-
writer.uint32(26).string(message.outputStorageConnectionId);
|
|
144
|
-
}
|
|
145
|
-
if (message.config !== undefined) {
|
|
146
|
-
struct_pb_1.Struct.encode(struct_pb_1.Struct.wrap(message.config), writer.uint32(34).fork()).join();
|
|
147
|
-
}
|
|
148
|
-
if (message.name !== "") {
|
|
149
|
-
writer.uint32(42).string(message.name);
|
|
150
|
-
}
|
|
151
|
-
if (message.description !== "") {
|
|
152
|
-
writer.uint32(50).string(message.description);
|
|
153
|
-
}
|
|
154
|
-
return writer;
|
|
155
|
-
},
|
|
156
|
-
decode(input, length) {
|
|
157
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
158
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
159
|
-
const message = createBaseStartSeedDatasetGenerationEvent();
|
|
160
|
-
while (reader.pos < end) {
|
|
161
|
-
const tag = reader.uint32();
|
|
162
|
-
switch (tag >>> 3) {
|
|
163
|
-
case 1: {
|
|
164
|
-
if (tag !== 10) {
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
const entry1 = exports.StartSeedDatasetGenerationEvent_DatasetIdsByTableEntry.decode(reader, reader.uint32());
|
|
168
|
-
if (entry1.value !== undefined) {
|
|
169
|
-
message.datasetIdsByTable[entry1.key] = entry1.value;
|
|
170
|
-
}
|
|
171
|
-
continue;
|
|
172
|
-
}
|
|
173
|
-
case 2: {
|
|
174
|
-
if (tag !== 18) {
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
message.organizationId = reader.string();
|
|
178
|
-
continue;
|
|
179
|
-
}
|
|
180
|
-
case 3: {
|
|
181
|
-
if (tag !== 26) {
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
message.outputStorageConnectionId = reader.string();
|
|
185
|
-
continue;
|
|
186
|
-
}
|
|
187
|
-
case 4: {
|
|
188
|
-
if (tag !== 34) {
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
message.config = struct_pb_1.Struct.unwrap(struct_pb_1.Struct.decode(reader, reader.uint32()));
|
|
192
|
-
continue;
|
|
193
|
-
}
|
|
194
|
-
case 5: {
|
|
195
|
-
if (tag !== 42) {
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
message.name = reader.string();
|
|
199
|
-
continue;
|
|
200
|
-
}
|
|
201
|
-
case 6: {
|
|
202
|
-
if (tag !== 50) {
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
message.description = reader.string();
|
|
206
|
-
continue;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
210
|
-
break;
|
|
211
|
-
}
|
|
212
|
-
reader.skip(tag & 7);
|
|
213
|
-
}
|
|
214
|
-
return message;
|
|
215
|
-
},
|
|
216
|
-
fromJSON(object) {
|
|
217
|
-
return {
|
|
218
|
-
datasetIdsByTable: isObject(object.datasetIdsByTable)
|
|
219
|
-
? globalThis.Object.entries(object.datasetIdsByTable).reduce((acc, [key, value]) => {
|
|
220
|
-
acc[key] = globalThis.String(value);
|
|
221
|
-
return acc;
|
|
222
|
-
}, {})
|
|
223
|
-
: isObject(object.dataset_ids_by_table)
|
|
224
|
-
? globalThis.Object.entries(object.dataset_ids_by_table).reduce((acc, [key, value]) => {
|
|
225
|
-
acc[key] = globalThis.String(value);
|
|
226
|
-
return acc;
|
|
227
|
-
}, {})
|
|
228
|
-
: {},
|
|
229
|
-
organizationId: isSet(object.organizationId)
|
|
230
|
-
? globalThis.String(object.organizationId)
|
|
231
|
-
: isSet(object.organization_id)
|
|
232
|
-
? globalThis.String(object.organization_id)
|
|
233
|
-
: "",
|
|
234
|
-
outputStorageConnectionId: isSet(object.outputStorageConnectionId)
|
|
235
|
-
? globalThis.String(object.outputStorageConnectionId)
|
|
236
|
-
: isSet(object.output_storage_connection_id)
|
|
237
|
-
? globalThis.String(object.output_storage_connection_id)
|
|
238
|
-
: "",
|
|
239
|
-
config: isObject(object.config) ? object.config : undefined,
|
|
240
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
241
|
-
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
242
|
-
};
|
|
243
|
-
},
|
|
244
|
-
toJSON(message) {
|
|
245
|
-
const obj = {};
|
|
246
|
-
if (message.datasetIdsByTable) {
|
|
247
|
-
const entries = globalThis.Object.entries(message.datasetIdsByTable);
|
|
248
|
-
if (entries.length > 0) {
|
|
249
|
-
obj.datasetIdsByTable = {};
|
|
250
|
-
entries.forEach(([k, v]) => {
|
|
251
|
-
obj.datasetIdsByTable[k] = v;
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
if (message.organizationId !== "") {
|
|
256
|
-
obj.organizationId = message.organizationId;
|
|
257
|
-
}
|
|
258
|
-
if (message.outputStorageConnectionId !== "") {
|
|
259
|
-
obj.outputStorageConnectionId = message.outputStorageConnectionId;
|
|
260
|
-
}
|
|
261
|
-
if (message.config !== undefined) {
|
|
262
|
-
obj.config = message.config;
|
|
263
|
-
}
|
|
264
|
-
if (message.name !== "") {
|
|
265
|
-
obj.name = message.name;
|
|
266
|
-
}
|
|
267
|
-
if (message.description !== "") {
|
|
268
|
-
obj.description = message.description;
|
|
269
|
-
}
|
|
270
|
-
return obj;
|
|
271
|
-
},
|
|
272
|
-
create(base) {
|
|
273
|
-
return exports.StartSeedDatasetGenerationEvent.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
274
|
-
},
|
|
275
|
-
fromPartial(object) {
|
|
276
|
-
var _a, _b, _c, _d, _e, _f;
|
|
277
|
-
const message = createBaseStartSeedDatasetGenerationEvent();
|
|
278
|
-
message.datasetIdsByTable = globalThis.Object.entries((_a = object.datasetIdsByTable) !== null && _a !== void 0 ? _a : {})
|
|
279
|
-
.reduce((acc, [key, value]) => {
|
|
280
|
-
if (value !== undefined) {
|
|
281
|
-
acc[key] = globalThis.String(value);
|
|
282
|
-
}
|
|
283
|
-
return acc;
|
|
284
|
-
}, {});
|
|
285
|
-
message.organizationId = (_b = object.organizationId) !== null && _b !== void 0 ? _b : "";
|
|
286
|
-
message.outputStorageConnectionId = (_c = object.outputStorageConnectionId) !== null && _c !== void 0 ? _c : "";
|
|
287
|
-
message.config = (_d = object.config) !== null && _d !== void 0 ? _d : undefined;
|
|
288
|
-
message.name = (_e = object.name) !== null && _e !== void 0 ? _e : "";
|
|
289
|
-
message.description = (_f = object.description) !== null && _f !== void 0 ? _f : "";
|
|
290
|
-
return message;
|
|
291
|
-
},
|
|
292
|
-
};
|
|
293
|
-
function createBaseStartSeedDatasetGenerationEvent_DatasetIdsByTableEntry() {
|
|
294
|
-
return { key: "", value: "" };
|
|
295
|
-
}
|
|
296
|
-
exports.StartSeedDatasetGenerationEvent_DatasetIdsByTableEntry = {
|
|
297
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
298
|
-
if (message.key !== "") {
|
|
299
|
-
writer.uint32(10).string(message.key);
|
|
300
|
-
}
|
|
301
|
-
if (message.value !== "") {
|
|
302
|
-
writer.uint32(18).string(message.value);
|
|
303
|
-
}
|
|
304
|
-
return writer;
|
|
305
|
-
},
|
|
306
|
-
decode(input, length) {
|
|
307
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
308
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
309
|
-
const message = createBaseStartSeedDatasetGenerationEvent_DatasetIdsByTableEntry();
|
|
310
|
-
while (reader.pos < end) {
|
|
311
|
-
const tag = reader.uint32();
|
|
312
|
-
switch (tag >>> 3) {
|
|
313
|
-
case 1: {
|
|
314
|
-
if (tag !== 10) {
|
|
315
|
-
break;
|
|
316
|
-
}
|
|
317
|
-
message.key = reader.string();
|
|
318
|
-
continue;
|
|
319
|
-
}
|
|
320
|
-
case 2: {
|
|
321
|
-
if (tag !== 18) {
|
|
322
|
-
break;
|
|
323
|
-
}
|
|
324
|
-
message.value = reader.string();
|
|
325
|
-
continue;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
329
|
-
break;
|
|
330
|
-
}
|
|
331
|
-
reader.skip(tag & 7);
|
|
332
|
-
}
|
|
333
|
-
return message;
|
|
334
|
-
},
|
|
335
|
-
fromJSON(object) {
|
|
336
|
-
return {
|
|
337
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
338
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
339
|
-
};
|
|
340
|
-
},
|
|
341
|
-
toJSON(message) {
|
|
342
|
-
const obj = {};
|
|
343
|
-
if (message.key !== "") {
|
|
344
|
-
obj.key = message.key;
|
|
345
|
-
}
|
|
346
|
-
if (message.value !== "") {
|
|
347
|
-
obj.value = message.value;
|
|
348
|
-
}
|
|
349
|
-
return obj;
|
|
350
|
-
},
|
|
351
|
-
create(base) {
|
|
352
|
-
return exports.StartSeedDatasetGenerationEvent_DatasetIdsByTableEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
353
|
-
},
|
|
354
|
-
fromPartial(object) {
|
|
355
|
-
var _a, _b;
|
|
356
|
-
const message = createBaseStartSeedDatasetGenerationEvent_DatasetIdsByTableEntry();
|
|
357
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
358
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
359
|
-
return message;
|
|
360
|
-
},
|
|
361
|
-
};
|
|
362
|
-
function isObject(value) {
|
|
363
|
-
return typeof value === "object" && value !== null;
|
|
364
|
-
}
|
|
365
|
-
function isSet(value) {
|
|
366
|
-
return value !== null && value !== undefined;
|
|
367
|
-
}
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "weaveapi.generate.v1";
|
|
3
|
-
export interface CreateSyntheticDatasetRequest {
|
|
4
|
-
organizationId: string;
|
|
5
|
-
synthesizerId: string;
|
|
6
|
-
outputStorageId: string;
|
|
7
|
-
config: {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
} | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface CreateSyntheticDatasetResponse {
|
|
12
|
-
datasetId: string;
|
|
13
|
-
}
|
|
14
|
-
export interface CreateSeedDatasetRequest {
|
|
15
|
-
organizationId: string;
|
|
16
|
-
outputStorageConnectionId: string;
|
|
17
|
-
config: {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
} | undefined;
|
|
20
|
-
name: string;
|
|
21
|
-
description: string;
|
|
22
|
-
}
|
|
23
|
-
export interface CreateSeedDatasetResponse {
|
|
24
|
-
datasetIds: string[];
|
|
25
|
-
datasetIdsByTable: {
|
|
26
|
-
[key: string]: string;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export interface CreateSeedDatasetResponse_DatasetIdsByTableEntry {
|
|
30
|
-
key: string;
|
|
31
|
-
value: string;
|
|
32
|
-
}
|
|
33
|
-
export interface GetSyntheticDatasetRequest {
|
|
34
|
-
datasetId: string;
|
|
35
|
-
}
|
|
36
|
-
export interface GetSyntheticDatasetResponse {
|
|
37
|
-
datasetIds: string[];
|
|
38
|
-
}
|
|
39
|
-
export interface ListSyntheticDatasetsRequest {
|
|
40
|
-
organizationId: string;
|
|
41
|
-
pageSize: number;
|
|
42
|
-
pageToken: string;
|
|
43
|
-
}
|
|
44
|
-
export interface ListSyntheticDatasetsResponse {
|
|
45
|
-
datasetIds: string[];
|
|
46
|
-
nextPageToken: string;
|
|
47
|
-
}
|
|
48
|
-
export interface DeleteSyntheticDatasetRequest {
|
|
49
|
-
datasetId: string;
|
|
50
|
-
}
|
|
51
|
-
export interface DeleteSyntheticDatasetResponse {
|
|
52
|
-
success: boolean;
|
|
53
|
-
}
|
|
54
|
-
export declare const CreateSyntheticDatasetRequest: MessageFns<CreateSyntheticDatasetRequest>;
|
|
55
|
-
export declare const CreateSyntheticDatasetResponse: MessageFns<CreateSyntheticDatasetResponse>;
|
|
56
|
-
export declare const CreateSeedDatasetRequest: MessageFns<CreateSeedDatasetRequest>;
|
|
57
|
-
export declare const CreateSeedDatasetResponse: MessageFns<CreateSeedDatasetResponse>;
|
|
58
|
-
export declare const CreateSeedDatasetResponse_DatasetIdsByTableEntry: MessageFns<CreateSeedDatasetResponse_DatasetIdsByTableEntry>;
|
|
59
|
-
export declare const GetSyntheticDatasetRequest: MessageFns<GetSyntheticDatasetRequest>;
|
|
60
|
-
export declare const GetSyntheticDatasetResponse: MessageFns<GetSyntheticDatasetResponse>;
|
|
61
|
-
export declare const ListSyntheticDatasetsRequest: MessageFns<ListSyntheticDatasetsRequest>;
|
|
62
|
-
export declare const ListSyntheticDatasetsResponse: MessageFns<ListSyntheticDatasetsResponse>;
|
|
63
|
-
export declare const DeleteSyntheticDatasetRequest: MessageFns<DeleteSyntheticDatasetRequest>;
|
|
64
|
-
export declare const DeleteSyntheticDatasetResponse: MessageFns<DeleteSyntheticDatasetResponse>;
|
|
65
|
-
export interface Generate {
|
|
66
|
-
CreateSyntheticDataset(request: CreateSyntheticDatasetRequest): Promise<CreateSyntheticDatasetResponse>;
|
|
67
|
-
CreateSeedDataset(request: CreateSeedDatasetRequest): Promise<CreateSeedDatasetResponse>;
|
|
68
|
-
GetSyntheticDataset(request: GetSyntheticDatasetRequest): Promise<GetSyntheticDatasetResponse>;
|
|
69
|
-
ListSyntheticDatasets(request: ListSyntheticDatasetsRequest): Promise<ListSyntheticDatasetsResponse>;
|
|
70
|
-
DeleteSyntheticDataset(request: DeleteSyntheticDatasetRequest): Promise<DeleteSyntheticDatasetResponse>;
|
|
71
|
-
}
|
|
72
|
-
export declare const GenerateServiceName = "weaveapi.generate.v1.Generate";
|
|
73
|
-
export declare class GenerateClientImpl implements Generate {
|
|
74
|
-
private readonly rpc;
|
|
75
|
-
private readonly service;
|
|
76
|
-
constructor(rpc: Rpc, opts?: {
|
|
77
|
-
service?: string;
|
|
78
|
-
});
|
|
79
|
-
CreateSyntheticDataset(request: CreateSyntheticDatasetRequest): Promise<CreateSyntheticDatasetResponse>;
|
|
80
|
-
CreateSeedDataset(request: CreateSeedDatasetRequest): Promise<CreateSeedDatasetResponse>;
|
|
81
|
-
GetSyntheticDataset(request: GetSyntheticDatasetRequest): Promise<GetSyntheticDatasetResponse>;
|
|
82
|
-
ListSyntheticDatasets(request: ListSyntheticDatasetsRequest): Promise<ListSyntheticDatasetsResponse>;
|
|
83
|
-
DeleteSyntheticDataset(request: DeleteSyntheticDatasetRequest): Promise<DeleteSyntheticDatasetResponse>;
|
|
84
|
-
}
|
|
85
|
-
export type GenerateDefinition = typeof GenerateDefinition;
|
|
86
|
-
export declare const GenerateDefinition: {
|
|
87
|
-
readonly name: "Generate";
|
|
88
|
-
readonly fullName: "weaveapi.generate.v1.Generate";
|
|
89
|
-
readonly methods: {
|
|
90
|
-
readonly createSyntheticDataset: {
|
|
91
|
-
readonly name: "CreateSyntheticDataset";
|
|
92
|
-
readonly requestType: typeof CreateSyntheticDatasetRequest;
|
|
93
|
-
readonly requestStream: false;
|
|
94
|
-
readonly responseType: typeof CreateSyntheticDatasetResponse;
|
|
95
|
-
readonly responseStream: false;
|
|
96
|
-
readonly options: {
|
|
97
|
-
readonly _unknownFields: {
|
|
98
|
-
readonly 578365826: readonly [Uint8Array];
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
readonly createSeedDataset: {
|
|
103
|
-
readonly name: "CreateSeedDataset";
|
|
104
|
-
readonly requestType: typeof CreateSeedDatasetRequest;
|
|
105
|
-
readonly requestStream: false;
|
|
106
|
-
readonly responseType: typeof CreateSeedDatasetResponse;
|
|
107
|
-
readonly responseStream: false;
|
|
108
|
-
readonly options: {
|
|
109
|
-
readonly _unknownFields: {
|
|
110
|
-
readonly 578365826: readonly [Uint8Array];
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
readonly getSyntheticDataset: {
|
|
115
|
-
readonly name: "GetSyntheticDataset";
|
|
116
|
-
readonly requestType: typeof GetSyntheticDatasetRequest;
|
|
117
|
-
readonly requestStream: false;
|
|
118
|
-
readonly responseType: typeof GetSyntheticDatasetResponse;
|
|
119
|
-
readonly responseStream: false;
|
|
120
|
-
readonly options: {
|
|
121
|
-
readonly _unknownFields: {
|
|
122
|
-
readonly 578365826: readonly [Uint8Array];
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
readonly listSyntheticDatasets: {
|
|
127
|
-
readonly name: "ListSyntheticDatasets";
|
|
128
|
-
readonly requestType: typeof ListSyntheticDatasetsRequest;
|
|
129
|
-
readonly requestStream: false;
|
|
130
|
-
readonly responseType: typeof ListSyntheticDatasetsResponse;
|
|
131
|
-
readonly responseStream: false;
|
|
132
|
-
readonly options: {
|
|
133
|
-
readonly _unknownFields: {
|
|
134
|
-
readonly 578365826: readonly [Uint8Array];
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
readonly deleteSyntheticDataset: {
|
|
139
|
-
readonly name: "DeleteSyntheticDataset";
|
|
140
|
-
readonly requestType: typeof DeleteSyntheticDatasetRequest;
|
|
141
|
-
readonly requestStream: false;
|
|
142
|
-
readonly responseType: typeof DeleteSyntheticDatasetResponse;
|
|
143
|
-
readonly responseStream: false;
|
|
144
|
-
readonly options: {
|
|
145
|
-
readonly _unknownFields: {
|
|
146
|
-
readonly 578365826: readonly [Uint8Array];
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
interface Rpc {
|
|
153
|
-
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
154
|
-
}
|
|
155
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
156
|
-
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 {} ? {
|
|
157
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
158
|
-
} : Partial<T>;
|
|
159
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
160
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
161
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
162
|
-
} & {
|
|
163
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
164
|
-
};
|
|
165
|
-
export interface MessageFns<T> {
|
|
166
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
167
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
168
|
-
fromJSON(object: any): T;
|
|
169
|
-
toJSON(message: T): unknown;
|
|
170
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
171
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
172
|
-
}
|
|
173
|
-
export {};
|