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.
- package/dist/google/api/annotations.pb.d.ts +1 -0
- package/dist/google/api/annotations.pb.js +10 -0
- package/dist/google/api/http.pb.d.ts +371 -0
- package/dist/google/api/http.pb.js +360 -0
- package/dist/google/protobuf/descriptor.pb.d.ts +1285 -0
- package/dist/google/protobuf/descriptor.pb.js +5217 -0
- package/dist/google/protobuf/struct.pb.d.ts +107 -0
- package/dist/google/protobuf/struct.pb.js +461 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +54 -0
- package/dist/weave/datamanagement/generate/v1/configuration.pb.d.ts +123 -0
- package/dist/weave/datamanagement/generate/v1/configuration.pb.js +799 -0
- package/dist/weave/datamanagement/generate/v1/generate.pb.d.ts +30 -0
- package/dist/weave/datamanagement/generate/v1/generate.pb.js +119 -0
- package/dist/weave/datamanagement/generate/v1/service.pb.d.ts +126 -0
- package/dist/weave/datamanagement/generate/v1/service.pb.js +578 -0
- package/dist/weave/datamanagement/storage/v1/auth.pb.d.ts +27 -0
- package/dist/weave/datamanagement/storage/v1/auth.pb.js +98 -0
- package/dist/weave/datamanagement/storage/v1/nosql_database.pb.d.ts +91 -0
- package/dist/weave/datamanagement/storage/v1/nosql_database.pb.js +1030 -0
- package/dist/weave/datamanagement/storage/v1/object_store.pb.d.ts +49 -0
- package/dist/weave/datamanagement/storage/v1/object_store.pb.js +405 -0
- package/dist/weave/datamanagement/storage/v1/service.pb.d.ts +257 -0
- package/dist/weave/datamanagement/storage/v1/service.pb.js +1188 -0
- package/dist/weave/datamanagement/storage/v1/sql_database.pb.d.ts +98 -0
- package/dist/weave/datamanagement/storage/v1/sql_database.pb.js +1142 -0
- package/dist/weave/datamanagement/storage/v1/storage.pb.d.ts +33 -0
- package/dist/weave/datamanagement/storage/v1/storage.pb.js +159 -0
- package/dist/weave/datamanagement/synthesize/v1/dataset.pb.d.ts +68 -0
- package/dist/weave/datamanagement/synthesize/v1/dataset.pb.js +439 -0
- package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.d.ts +45 -0
- package/dist/weave/datamanagement/synthesize/v1/inline_data.pb.js +166 -0
- package/dist/weave/datamanagement/synthesize/v1/relationship.pb.d.ts +58 -0
- package/dist/weave/datamanagement/synthesize/v1/relationship.pb.js +241 -0
- package/dist/weave/datamanagement/synthesize/v1/service.pb.d.ts +133 -0
- package/dist/weave/datamanagement/synthesize/v1/service.pb.js +705 -0
- package/dist/weave/datamanagement/synthesize/v1/training.pb.d.ts +58 -0
- package/dist/weave/datamanagement/synthesize/v1/training.pb.js +353 -0
- package/package.json +27 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
+
import { StorageConnection } from "./storage.pb";
|
|
4
|
+
export declare const protobufPackage = "weave.datamanagement.storage.v1";
|
|
5
|
+
/** StorageConfig represents a named storage configuration with metadata */
|
|
6
|
+
export interface StorageDetails {
|
|
7
|
+
/** Unique identifier for the storage configuration */
|
|
8
|
+
id: string;
|
|
9
|
+
/** User-friendly name for the storage configuration */
|
|
10
|
+
name: string;
|
|
11
|
+
/** Optional description */
|
|
12
|
+
description: string;
|
|
13
|
+
/** The actual storage configuration */
|
|
14
|
+
storageConnection: StorageConnection | undefined;
|
|
15
|
+
}
|
|
16
|
+
/** CreateStorageRequest is used to create a new storage configuration */
|
|
17
|
+
export interface CreateStorageRequest {
|
|
18
|
+
/** User-friendly name for the storage configuration */
|
|
19
|
+
name: string;
|
|
20
|
+
/** Optional description */
|
|
21
|
+
description: string;
|
|
22
|
+
/** The storage configuration to create */
|
|
23
|
+
storageConnection: StorageConnection | undefined;
|
|
24
|
+
}
|
|
25
|
+
/** CreateStorageResponse contains the created storage configuration */
|
|
26
|
+
export interface CreateStorageResponse {
|
|
27
|
+
/** The created storage configuration */
|
|
28
|
+
storageDetails: StorageDetails | undefined;
|
|
29
|
+
}
|
|
30
|
+
/** GetStorageRequest is used to retrieve a storage configuration by ID */
|
|
31
|
+
export interface GetStorageRequest {
|
|
32
|
+
/** ID of the storage configuration to retrieve */
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
/** GetStorageResponse contains the requested storage configuration */
|
|
36
|
+
export interface GetStorageResponse {
|
|
37
|
+
/** The requested storage configuration */
|
|
38
|
+
storageDetails: StorageDetails | undefined;
|
|
39
|
+
}
|
|
40
|
+
/** ListStoragesRequest is used to list storage configurations with optional filtering */
|
|
41
|
+
export interface ListStoragesRequest {
|
|
42
|
+
/** Maximum number of results to return */
|
|
43
|
+
pageSize: number;
|
|
44
|
+
/** Token for pagination */
|
|
45
|
+
pageToken: string;
|
|
46
|
+
/** Optional filter by storage type */
|
|
47
|
+
storageTypeFilter: StorageTypeFilter | undefined;
|
|
48
|
+
}
|
|
49
|
+
/** StorageTypeFilter allows filtering storage configurations by type */
|
|
50
|
+
export interface StorageTypeFilter {
|
|
51
|
+
/** If true, include object stores */
|
|
52
|
+
includeObjectStores: boolean;
|
|
53
|
+
/** If true, include SQL databases */
|
|
54
|
+
includeSqlDatabases: boolean;
|
|
55
|
+
/** If true, include NoSQL databases */
|
|
56
|
+
includeNosqlDatabases: boolean;
|
|
57
|
+
}
|
|
58
|
+
/** ListStoragesResponse contains the list of storage configurations */
|
|
59
|
+
export interface ListStoragesResponse {
|
|
60
|
+
/** List of storage configurations */
|
|
61
|
+
storageDetails: StorageDetails[];
|
|
62
|
+
/** Token for pagination */
|
|
63
|
+
nextPageToken: string;
|
|
64
|
+
/** Total count of storage configurations matching the request */
|
|
65
|
+
totalCount: number;
|
|
66
|
+
}
|
|
67
|
+
/** UpdateStorageRequest is used to update an existing storage configuration */
|
|
68
|
+
export interface UpdateStorageRequest {
|
|
69
|
+
/** ID of the storage configuration to update */
|
|
70
|
+
id: string;
|
|
71
|
+
/** New name (optional) */
|
|
72
|
+
name: string;
|
|
73
|
+
/** New description (optional) */
|
|
74
|
+
description: string;
|
|
75
|
+
/** New storage configuration (optional) */
|
|
76
|
+
storageConnection: StorageConnection | undefined;
|
|
77
|
+
}
|
|
78
|
+
/** UpdateStorageResponse contains the updated storage configuration */
|
|
79
|
+
export interface UpdateStorageResponse {
|
|
80
|
+
/** The updated storage configuration */
|
|
81
|
+
storageConfig: StorageDetails | undefined;
|
|
82
|
+
}
|
|
83
|
+
/** DeleteStorageRequest is used to delete a storage configuration */
|
|
84
|
+
export interface DeleteStorageRequest {
|
|
85
|
+
/** ID of the storage configuration to delete */
|
|
86
|
+
id: string;
|
|
87
|
+
}
|
|
88
|
+
export interface DeleteStorageResponse {
|
|
89
|
+
}
|
|
90
|
+
/** TestStorageConnectionRequest is used to test a storage connection */
|
|
91
|
+
export interface TestStorageConnectionRequest {
|
|
92
|
+
/** ID of an existing storage configuration */
|
|
93
|
+
id?: string | undefined;
|
|
94
|
+
/** A new storage configuration to test */
|
|
95
|
+
storageConnection?: StorageConnection | undefined;
|
|
96
|
+
}
|
|
97
|
+
/** TestStorageConnectionResponse contains the result of a connection test */
|
|
98
|
+
export interface TestStorageConnectionResponse {
|
|
99
|
+
/** Whether the connection was successful */
|
|
100
|
+
success: boolean;
|
|
101
|
+
/** Error message if the connection failed */
|
|
102
|
+
errorMessage: string;
|
|
103
|
+
/** Additional details about the connection test */
|
|
104
|
+
connectionDetails: ConnectionDetails | undefined;
|
|
105
|
+
}
|
|
106
|
+
/** ConnectionDetails provides additional information about a storage connection */
|
|
107
|
+
export interface ConnectionDetails {
|
|
108
|
+
/** Connection latency in milliseconds */
|
|
109
|
+
latencyMs: number;
|
|
110
|
+
/** For SQL/NoSQL databases: available tables/collections */
|
|
111
|
+
availableResources: string[];
|
|
112
|
+
/** For object stores: available buckets/containers */
|
|
113
|
+
availableContainers: string[];
|
|
114
|
+
}
|
|
115
|
+
export declare const StorageDetails: MessageFns<StorageDetails>;
|
|
116
|
+
export declare const CreateStorageRequest: MessageFns<CreateStorageRequest>;
|
|
117
|
+
export declare const CreateStorageResponse: MessageFns<CreateStorageResponse>;
|
|
118
|
+
export declare const GetStorageRequest: MessageFns<GetStorageRequest>;
|
|
119
|
+
export declare const GetStorageResponse: MessageFns<GetStorageResponse>;
|
|
120
|
+
export declare const ListStoragesRequest: MessageFns<ListStoragesRequest>;
|
|
121
|
+
export declare const StorageTypeFilter: MessageFns<StorageTypeFilter>;
|
|
122
|
+
export declare const ListStoragesResponse: MessageFns<ListStoragesResponse>;
|
|
123
|
+
export declare const UpdateStorageRequest: MessageFns<UpdateStorageRequest>;
|
|
124
|
+
export declare const UpdateStorageResponse: MessageFns<UpdateStorageResponse>;
|
|
125
|
+
export declare const DeleteStorageRequest: MessageFns<DeleteStorageRequest>;
|
|
126
|
+
export declare const DeleteStorageResponse: MessageFns<DeleteStorageResponse>;
|
|
127
|
+
export declare const TestStorageConnectionRequest: MessageFns<TestStorageConnectionRequest>;
|
|
128
|
+
export declare const TestStorageConnectionResponse: MessageFns<TestStorageConnectionResponse>;
|
|
129
|
+
export declare const ConnectionDetails: MessageFns<ConnectionDetails>;
|
|
130
|
+
/** Storage provides CRUD operations for managing storage configurations */
|
|
131
|
+
export type StorageService = typeof StorageService;
|
|
132
|
+
export declare const StorageService: {
|
|
133
|
+
/** CreateStorage creates a new storage configuration */
|
|
134
|
+
readonly createStorage: {
|
|
135
|
+
readonly path: "/weave.datamanagement.storage.v1.Storage/CreateStorage";
|
|
136
|
+
readonly requestStream: false;
|
|
137
|
+
readonly responseStream: false;
|
|
138
|
+
readonly requestSerialize: (value: CreateStorageRequest) => Buffer<ArrayBuffer>;
|
|
139
|
+
readonly requestDeserialize: (value: Buffer) => CreateStorageRequest;
|
|
140
|
+
readonly responseSerialize: (value: CreateStorageResponse) => Buffer<ArrayBuffer>;
|
|
141
|
+
readonly responseDeserialize: (value: Buffer) => CreateStorageResponse;
|
|
142
|
+
};
|
|
143
|
+
/** GetStorage retrieves a storage configuration by ID */
|
|
144
|
+
readonly getStorage: {
|
|
145
|
+
readonly path: "/weave.datamanagement.storage.v1.Storage/GetStorage";
|
|
146
|
+
readonly requestStream: false;
|
|
147
|
+
readonly responseStream: false;
|
|
148
|
+
readonly requestSerialize: (value: GetStorageRequest) => Buffer<ArrayBuffer>;
|
|
149
|
+
readonly requestDeserialize: (value: Buffer) => GetStorageRequest;
|
|
150
|
+
readonly responseSerialize: (value: GetStorageResponse) => Buffer<ArrayBuffer>;
|
|
151
|
+
readonly responseDeserialize: (value: Buffer) => GetStorageResponse;
|
|
152
|
+
};
|
|
153
|
+
/** ListStorages retrieves all storage configurations with optional filtering */
|
|
154
|
+
readonly listStorages: {
|
|
155
|
+
readonly path: "/weave.datamanagement.storage.v1.Storage/ListStorages";
|
|
156
|
+
readonly requestStream: false;
|
|
157
|
+
readonly responseStream: false;
|
|
158
|
+
readonly requestSerialize: (value: ListStoragesRequest) => Buffer<ArrayBuffer>;
|
|
159
|
+
readonly requestDeserialize: (value: Buffer) => ListStoragesRequest;
|
|
160
|
+
readonly responseSerialize: (value: ListStoragesResponse) => Buffer<ArrayBuffer>;
|
|
161
|
+
readonly responseDeserialize: (value: Buffer) => ListStoragesResponse;
|
|
162
|
+
};
|
|
163
|
+
/** UpdateStorage updates an existing storage configuration */
|
|
164
|
+
readonly updateStorage: {
|
|
165
|
+
readonly path: "/weave.datamanagement.storage.v1.Storage/UpdateStorage";
|
|
166
|
+
readonly requestStream: false;
|
|
167
|
+
readonly responseStream: false;
|
|
168
|
+
readonly requestSerialize: (value: UpdateStorageRequest) => Buffer<ArrayBuffer>;
|
|
169
|
+
readonly requestDeserialize: (value: Buffer) => UpdateStorageRequest;
|
|
170
|
+
readonly responseSerialize: (value: UpdateStorageResponse) => Buffer<ArrayBuffer>;
|
|
171
|
+
readonly responseDeserialize: (value: Buffer) => UpdateStorageResponse;
|
|
172
|
+
};
|
|
173
|
+
/** DeleteStorage deletes a storage configuration by ID */
|
|
174
|
+
readonly deleteStorage: {
|
|
175
|
+
readonly path: "/weave.datamanagement.storage.v1.Storage/DeleteStorage";
|
|
176
|
+
readonly requestStream: false;
|
|
177
|
+
readonly responseStream: false;
|
|
178
|
+
readonly requestSerialize: (value: DeleteStorageRequest) => Buffer<ArrayBuffer>;
|
|
179
|
+
readonly requestDeserialize: (value: Buffer) => DeleteStorageRequest;
|
|
180
|
+
readonly responseSerialize: (value: DeleteStorageResponse) => Buffer<ArrayBuffer>;
|
|
181
|
+
readonly responseDeserialize: (value: Buffer) => DeleteStorageResponse;
|
|
182
|
+
};
|
|
183
|
+
/** TestStorageConnection tests the connection to a storage */
|
|
184
|
+
readonly testStorageConnection: {
|
|
185
|
+
readonly path: "/weave.datamanagement.storage.v1.Storage/TestStorageConnection";
|
|
186
|
+
readonly requestStream: false;
|
|
187
|
+
readonly responseStream: false;
|
|
188
|
+
readonly requestSerialize: (value: TestStorageConnectionRequest) => Buffer<ArrayBuffer>;
|
|
189
|
+
readonly requestDeserialize: (value: Buffer) => TestStorageConnectionRequest;
|
|
190
|
+
readonly responseSerialize: (value: TestStorageConnectionResponse) => Buffer<ArrayBuffer>;
|
|
191
|
+
readonly responseDeserialize: (value: Buffer) => TestStorageConnectionResponse;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export interface StorageServer extends UntypedServiceImplementation {
|
|
195
|
+
/** CreateStorage creates a new storage configuration */
|
|
196
|
+
createStorage: handleUnaryCall<CreateStorageRequest, CreateStorageResponse>;
|
|
197
|
+
/** GetStorage retrieves a storage configuration by ID */
|
|
198
|
+
getStorage: handleUnaryCall<GetStorageRequest, GetStorageResponse>;
|
|
199
|
+
/** ListStorages retrieves all storage configurations with optional filtering */
|
|
200
|
+
listStorages: handleUnaryCall<ListStoragesRequest, ListStoragesResponse>;
|
|
201
|
+
/** UpdateStorage updates an existing storage configuration */
|
|
202
|
+
updateStorage: handleUnaryCall<UpdateStorageRequest, UpdateStorageResponse>;
|
|
203
|
+
/** DeleteStorage deletes a storage configuration by ID */
|
|
204
|
+
deleteStorage: handleUnaryCall<DeleteStorageRequest, DeleteStorageResponse>;
|
|
205
|
+
/** TestStorageConnection tests the connection to a storage */
|
|
206
|
+
testStorageConnection: handleUnaryCall<TestStorageConnectionRequest, TestStorageConnectionResponse>;
|
|
207
|
+
}
|
|
208
|
+
export interface StorageClient extends Client {
|
|
209
|
+
/** CreateStorage creates a new storage configuration */
|
|
210
|
+
createStorage(request: CreateStorageRequest, callback: (error: ServiceError | null, response: CreateStorageResponse) => void): ClientUnaryCall;
|
|
211
|
+
createStorage(request: CreateStorageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateStorageResponse) => void): ClientUnaryCall;
|
|
212
|
+
createStorage(request: CreateStorageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateStorageResponse) => void): ClientUnaryCall;
|
|
213
|
+
/** GetStorage retrieves a storage configuration by ID */
|
|
214
|
+
getStorage(request: GetStorageRequest, callback: (error: ServiceError | null, response: GetStorageResponse) => void): ClientUnaryCall;
|
|
215
|
+
getStorage(request: GetStorageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetStorageResponse) => void): ClientUnaryCall;
|
|
216
|
+
getStorage(request: GetStorageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetStorageResponse) => void): ClientUnaryCall;
|
|
217
|
+
/** ListStorages retrieves all storage configurations with optional filtering */
|
|
218
|
+
listStorages(request: ListStoragesRequest, callback: (error: ServiceError | null, response: ListStoragesResponse) => void): ClientUnaryCall;
|
|
219
|
+
listStorages(request: ListStoragesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListStoragesResponse) => void): ClientUnaryCall;
|
|
220
|
+
listStorages(request: ListStoragesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListStoragesResponse) => void): ClientUnaryCall;
|
|
221
|
+
/** UpdateStorage updates an existing storage configuration */
|
|
222
|
+
updateStorage(request: UpdateStorageRequest, callback: (error: ServiceError | null, response: UpdateStorageResponse) => void): ClientUnaryCall;
|
|
223
|
+
updateStorage(request: UpdateStorageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: UpdateStorageResponse) => void): ClientUnaryCall;
|
|
224
|
+
updateStorage(request: UpdateStorageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: UpdateStorageResponse) => void): ClientUnaryCall;
|
|
225
|
+
/** DeleteStorage deletes a storage configuration by ID */
|
|
226
|
+
deleteStorage(request: DeleteStorageRequest, callback: (error: ServiceError | null, response: DeleteStorageResponse) => void): ClientUnaryCall;
|
|
227
|
+
deleteStorage(request: DeleteStorageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: DeleteStorageResponse) => void): ClientUnaryCall;
|
|
228
|
+
deleteStorage(request: DeleteStorageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: DeleteStorageResponse) => void): ClientUnaryCall;
|
|
229
|
+
/** TestStorageConnection tests the connection to a storage */
|
|
230
|
+
testStorageConnection(request: TestStorageConnectionRequest, callback: (error: ServiceError | null, response: TestStorageConnectionResponse) => void): ClientUnaryCall;
|
|
231
|
+
testStorageConnection(request: TestStorageConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: TestStorageConnectionResponse) => void): ClientUnaryCall;
|
|
232
|
+
testStorageConnection(request: TestStorageConnectionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: TestStorageConnectionResponse) => void): ClientUnaryCall;
|
|
233
|
+
}
|
|
234
|
+
export declare const StorageClient: {
|
|
235
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): StorageClient;
|
|
236
|
+
service: typeof StorageService;
|
|
237
|
+
serviceName: string;
|
|
238
|
+
};
|
|
239
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
240
|
+
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 {} ? {
|
|
241
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
242
|
+
} : Partial<T>;
|
|
243
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
244
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
245
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
246
|
+
} & {
|
|
247
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
248
|
+
};
|
|
249
|
+
export interface MessageFns<T> {
|
|
250
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
251
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
252
|
+
fromJSON(object: any): T;
|
|
253
|
+
toJSON(message: T): unknown;
|
|
254
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
255
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
256
|
+
}
|
|
257
|
+
export {};
|