@superblocksteam/types 1.89.0 → 1.91.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/src/api/v1/api_pb.d.ts +46 -39
- package/dist/src/api/v1/api_pb.d.ts.map +1 -1
- package/dist/src/api/v1/api_pb.js +121 -119
- package/dist/src/api/v1/api_pb.js.map +1 -1
- package/dist/src/plugins/common/v1/auth_pb.d.ts +16 -0
- package/dist/src/plugins/common/v1/auth_pb.d.ts.map +1 -1
- package/dist/src/plugins/common/v1/auth_pb.js +20 -0
- package/dist/src/plugins/common/v1/auth_pb.js.map +1 -1
- package/dist/src/plugins/index.d.ts +1 -0
- package/dist/src/plugins/index.d.ts.map +1 -1
- package/dist/src/plugins/index.js +2 -1
- package/dist/src/plugins/index.js.map +1 -1
- package/dist/src/plugins/lakebase/v1/plugin_pb.d.ts +139 -0
- package/dist/src/plugins/lakebase/v1/plugin_pb.d.ts.map +1 -0
- package/dist/src/plugins/lakebase/v1/plugin_pb.js +208 -0
- package/dist/src/plugins/lakebase/v1/plugin_pb.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/api/v1/api_pb.ts +47 -39
- package/src/plugins/common/v1/auth_pb.ts +24 -0
- package/src/plugins/index.ts +2 -1
- package/src/plugins/lakebase/v1/plugin_pb.ts +241 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file plugins/lakebase/v1/plugin.proto (package plugins.lakebase.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message plugins.lakebase.v1.SuperblocksMetadata
|
|
11
|
+
*/
|
|
12
|
+
export class SuperblocksMetadata extends Message<SuperblocksMetadata> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string pluginVersion = 1;
|
|
15
|
+
*/
|
|
16
|
+
pluginVersion = "";
|
|
17
|
+
|
|
18
|
+
constructor(data?: PartialMessage<SuperblocksMetadata>) {
|
|
19
|
+
super();
|
|
20
|
+
proto3.util.initPartial(data, this);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
24
|
+
static readonly typeName = "plugins.lakebase.v1.SuperblocksMetadata";
|
|
25
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
26
|
+
{ no: 1, name: "pluginVersion", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
27
|
+
]);
|
|
28
|
+
|
|
29
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SuperblocksMetadata {
|
|
30
|
+
return new SuperblocksMetadata().fromBinary(bytes, options);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SuperblocksMetadata {
|
|
34
|
+
return new SuperblocksMetadata().fromJson(jsonValue, options);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SuperblocksMetadata {
|
|
38
|
+
return new SuperblocksMetadata().fromJsonString(jsonString, options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static equals(a: SuperblocksMetadata | PlainMessage<SuperblocksMetadata> | undefined, b: SuperblocksMetadata | PlainMessage<SuperblocksMetadata> | undefined): boolean {
|
|
42
|
+
return proto3.util.equals(SuperblocksMetadata, a, b);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @generated from message plugins.lakebase.v1.Plugin
|
|
48
|
+
*/
|
|
49
|
+
export class Plugin extends Message<Plugin> {
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: string name = 1;
|
|
52
|
+
*/
|
|
53
|
+
name = "";
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: plugins.lakebase.v1.Plugin.LakebaseConnection connection = 2;
|
|
57
|
+
*/
|
|
58
|
+
connection?: Plugin_LakebaseConnection;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @generated from field: string body = 3;
|
|
62
|
+
*/
|
|
63
|
+
body = "";
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: bool usePreparedSql = 4;
|
|
67
|
+
*/
|
|
68
|
+
usePreparedSql = false;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: optional string parameters = 5;
|
|
72
|
+
*/
|
|
73
|
+
parameters?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: plugins.lakebase.v1.SuperblocksMetadata superblocksMetadata = 6;
|
|
77
|
+
*/
|
|
78
|
+
superblocksMetadata?: SuperblocksMetadata;
|
|
79
|
+
|
|
80
|
+
constructor(data?: PartialMessage<Plugin>) {
|
|
81
|
+
super();
|
|
82
|
+
proto3.util.initPartial(data, this);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
86
|
+
static readonly typeName = "plugins.lakebase.v1.Plugin";
|
|
87
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
88
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
89
|
+
{ no: 2, name: "connection", kind: "message", T: Plugin_LakebaseConnection },
|
|
90
|
+
{ no: 3, name: "body", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
91
|
+
{ no: 4, name: "usePreparedSql", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
92
|
+
{ no: 5, name: "parameters", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
93
|
+
{ no: 6, name: "superblocksMetadata", kind: "message", T: SuperblocksMetadata },
|
|
94
|
+
]);
|
|
95
|
+
|
|
96
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Plugin {
|
|
97
|
+
return new Plugin().fromBinary(bytes, options);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Plugin {
|
|
101
|
+
return new Plugin().fromJson(jsonValue, options);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Plugin {
|
|
105
|
+
return new Plugin().fromJsonString(jsonString, options);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static equals(a: Plugin | PlainMessage<Plugin> | undefined, b: Plugin | PlainMessage<Plugin> | undefined): boolean {
|
|
109
|
+
return proto3.util.equals(Plugin, a, b);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @generated from enum plugins.lakebase.v1.Plugin.ConnectionType
|
|
115
|
+
*/
|
|
116
|
+
export enum Plugin_ConnectionType {
|
|
117
|
+
/**
|
|
118
|
+
* @generated from enum value: CONNECTION_TYPE_UNSPECIFIED = 0;
|
|
119
|
+
*/
|
|
120
|
+
UNSPECIFIED = 0,
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Username and password authentication
|
|
124
|
+
*
|
|
125
|
+
* @generated from enum value: CONNECTION_TYPE_USERNAME_PASSWORD = 1;
|
|
126
|
+
*/
|
|
127
|
+
USERNAME_PASSWORD = 1,
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* OAuth Machine-to-Machine (client credentials flow)
|
|
131
|
+
*
|
|
132
|
+
* @generated from enum value: CONNECTION_TYPE_OAUTH_M2M = 2;
|
|
133
|
+
*/
|
|
134
|
+
OAUTH_M2M = 2,
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* OAuth Token Federation (on-behalf-of flow)
|
|
138
|
+
*
|
|
139
|
+
* @generated from enum value: CONNECTION_TYPE_OAUTH_FEDERATION = 3;
|
|
140
|
+
*/
|
|
141
|
+
OAUTH_FEDERATION = 3,
|
|
142
|
+
}
|
|
143
|
+
// Retrieve enum metadata with: proto3.getEnumType(Plugin_ConnectionType)
|
|
144
|
+
proto3.util.setEnumType(Plugin_ConnectionType, "plugins.lakebase.v1.Plugin.ConnectionType", [
|
|
145
|
+
{ no: 0, name: "CONNECTION_TYPE_UNSPECIFIED" },
|
|
146
|
+
{ no: 1, name: "CONNECTION_TYPE_USERNAME_PASSWORD" },
|
|
147
|
+
{ no: 2, name: "CONNECTION_TYPE_OAUTH_M2M" },
|
|
148
|
+
{ no: 3, name: "CONNECTION_TYPE_OAUTH_FEDERATION" },
|
|
149
|
+
]);
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @generated from message plugins.lakebase.v1.Plugin.LakebaseConnection
|
|
153
|
+
*/
|
|
154
|
+
export class Plugin_LakebaseConnection extends Message<Plugin_LakebaseConnection> {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: string host = 1;
|
|
157
|
+
*/
|
|
158
|
+
host = "";
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: int32 port = 2;
|
|
162
|
+
*/
|
|
163
|
+
port = 0;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: string database_name = 3;
|
|
167
|
+
*/
|
|
168
|
+
databaseName = "";
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @generated from field: plugins.lakebase.v1.Plugin.ConnectionType connection_type = 4;
|
|
172
|
+
*/
|
|
173
|
+
connectionType = Plugin_ConnectionType.UNSPECIFIED;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Username/Password auth
|
|
177
|
+
*
|
|
178
|
+
* @generated from field: optional string username = 5;
|
|
179
|
+
*/
|
|
180
|
+
username?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @generated from field: optional string password = 6;
|
|
184
|
+
*/
|
|
185
|
+
password?: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* OAuth Machine-to-Machine auth
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: optional string oauth_client_id = 7;
|
|
191
|
+
*/
|
|
192
|
+
oauthClientId?: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: optional string oauth_client_secret = 8;
|
|
196
|
+
*/
|
|
197
|
+
oauthClientSecret?: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Databricks workspace URL for OAuth (e.g., https://dbc-xxx.cloud.databricks.com)
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: optional string oauth_workspace_url = 9;
|
|
203
|
+
*/
|
|
204
|
+
oauthWorkspaceUrl?: string;
|
|
205
|
+
|
|
206
|
+
constructor(data?: PartialMessage<Plugin_LakebaseConnection>) {
|
|
207
|
+
super();
|
|
208
|
+
proto3.util.initPartial(data, this);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
212
|
+
static readonly typeName = "plugins.lakebase.v1.Plugin.LakebaseConnection";
|
|
213
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
214
|
+
{ no: 1, name: "host", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
215
|
+
{ no: 2, name: "port", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
216
|
+
{ no: 3, name: "database_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
217
|
+
{ no: 4, name: "connection_type", kind: "enum", T: proto3.getEnumType(Plugin_ConnectionType) },
|
|
218
|
+
{ no: 5, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
219
|
+
{ no: 6, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
220
|
+
{ no: 7, name: "oauth_client_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
221
|
+
{ no: 8, name: "oauth_client_secret", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
222
|
+
{ no: 9, name: "oauth_workspace_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
223
|
+
]);
|
|
224
|
+
|
|
225
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Plugin_LakebaseConnection {
|
|
226
|
+
return new Plugin_LakebaseConnection().fromBinary(bytes, options);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Plugin_LakebaseConnection {
|
|
230
|
+
return new Plugin_LakebaseConnection().fromJson(jsonValue, options);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Plugin_LakebaseConnection {
|
|
234
|
+
return new Plugin_LakebaseConnection().fromJsonString(jsonString, options);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
static equals(a: Plugin_LakebaseConnection | PlainMessage<Plugin_LakebaseConnection> | undefined, b: Plugin_LakebaseConnection | PlainMessage<Plugin_LakebaseConnection> | undefined): boolean {
|
|
238
|
+
return proto3.util.equals(Plugin_LakebaseConnection, a, b);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|