@zilliz/milvus2-sdk-node 2.6.10 → 2.6.11-beta.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/milvus/HttpClient.d.ts +10 -10
- package/dist/milvus/const/error.d.ts +1 -0
- package/dist/milvus/const/error.js +2 -1
- package/dist/milvus/const/error.js.map +1 -1
- package/dist/milvus/const/milvus.d.ts +3 -1
- package/dist/milvus/const/milvus.js +2 -0
- package/dist/milvus/const/milvus.js.map +1 -1
- package/dist/milvus/grpc/BaseClient.d.ts +7 -1
- package/dist/milvus/grpc/BaseClient.js +17 -2
- package/dist/milvus/grpc/BaseClient.js.map +1 -1
- package/dist/milvus/grpc/Data.d.ts +68 -4
- package/dist/milvus/grpc/Data.js +101 -4
- package/dist/milvus/grpc/Data.js.map +1 -1
- package/dist/milvus/grpc/GrpcClient.d.ts +19 -3
- package/dist/milvus/grpc/GrpcClient.js +168 -10
- package/dist/milvus/grpc/GrpcClient.js.map +1 -1
- package/dist/milvus/http/Alias.d.ts +1 -1
- package/dist/milvus/http/Collection.d.ts +1 -1
- package/dist/milvus/http/Database.d.ts +1 -1
- package/dist/milvus/http/Import.d.ts +1 -1
- package/dist/milvus/http/MilvusIndex.d.ts +1 -1
- package/dist/milvus/http/Partition.d.ts +1 -1
- package/dist/milvus/http/Role.d.ts +1 -1
- package/dist/milvus/http/User.d.ts +1 -1
- package/dist/milvus/http/Vector.d.ts +1 -1
- package/dist/milvus/proto-json/milvus.d.ts +56 -56
- package/dist/milvus/proto-json/milvus.js +56 -56
- package/dist/milvus/proto-json/milvus.js.map +1 -1
- package/dist/milvus/types/Client.d.ts +8 -3
- package/dist/milvus/types/Collection.d.ts +8 -0
- package/dist/milvus/types/GlobalCluster.d.ts +23 -0
- package/dist/milvus/types/GlobalCluster.js +12 -0
- package/dist/milvus/types/GlobalCluster.js.map +1 -0
- package/dist/milvus/types/Segments.d.ts +33 -1
- package/dist/milvus/types/index.d.ts +1 -0
- package/dist/milvus/types/index.js +1 -0
- package/dist/milvus/types/index.js.map +1 -1
- package/dist/milvus/utils/Function.d.ts +14 -1
- package/dist/milvus/utils/Function.js +51 -22
- package/dist/milvus/utils/Function.js.map +1 -1
- package/dist/milvus/utils/GlobalTopology.d.ts +56 -0
- package/dist/milvus/utils/GlobalTopology.js +215 -0
- package/dist/milvus/utils/GlobalTopology.js.map +1 -0
- package/dist/milvus/utils/index.d.ts +1 -0
- package/dist/milvus/utils/index.js +1 -0
- package/dist/milvus/utils/index.js.map +1 -1
- package/dist/sdk.json +1 -1
- package/package.json +10 -5
|
@@ -12,6 +12,8 @@ export declare const LOADER_OPTIONS: {
|
|
|
12
12
|
* A client for interacting with the Milvus server via gRPC.
|
|
13
13
|
*/
|
|
14
14
|
export declare class GRPCClient extends User {
|
|
15
|
+
private _MilvusService;
|
|
16
|
+
private _sdkVersion;
|
|
15
17
|
/**
|
|
16
18
|
* Creates a new instance of MilvusClient.
|
|
17
19
|
* @param configOrAddress The Milvus server's address or client configuration object.
|
|
@@ -22,11 +24,25 @@ export declare class GRPCClient extends User {
|
|
|
22
24
|
*/
|
|
23
25
|
constructor(configOrAddress: ClientConfig | string, ssl?: boolean, username?: string, password?: string, channelOptions?: ChannelOptions);
|
|
24
26
|
connect(sdkVersion: string): void;
|
|
27
|
+
/**
|
|
28
|
+
* Initializes a global cluster connection.
|
|
29
|
+
* Fetches topology, resolves primary endpoint, creates pool, starts refresher.
|
|
30
|
+
*/
|
|
31
|
+
private _initGlobalConnection;
|
|
32
|
+
/**
|
|
33
|
+
* Reconnects to a new primary cluster after failover.
|
|
34
|
+
* Creates a new pool for the new primary, then drains the old pool.
|
|
35
|
+
* @returns true if primary changed and reconnection happened, false if primary unchanged
|
|
36
|
+
*/
|
|
37
|
+
reconnectToPrimary(): Promise<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Attaches a failover handler to the channel pool for global cluster support.
|
|
40
|
+
* When promisify encounters a gRPC UNAVAILABLE error after all retries,
|
|
41
|
+
* this handler triggers topology refresh and pool rebuild.
|
|
42
|
+
*/
|
|
43
|
+
private _attachFailoverHandler;
|
|
25
44
|
/**
|
|
26
45
|
* Creates a pool of gRPC service clients.
|
|
27
|
-
*
|
|
28
|
-
* @param {ServiceClientConstructor} ServiceClientConstructor - The constructor for the gRPC service client.
|
|
29
|
-
*
|
|
30
46
|
* @returns {Pool} - A pool of gRPC service clients.
|
|
31
47
|
*/
|
|
32
48
|
private createChannelPool;
|
|
@@ -40,10 +40,12 @@ class GRPCClient extends User_1.User {
|
|
|
40
40
|
constructor(configOrAddress, ssl, username, password, channelOptions) {
|
|
41
41
|
// setup the configuration
|
|
42
42
|
super(configOrAddress, ssl, username, password, channelOptions);
|
|
43
|
+
// Store sdkVersion for reconnection
|
|
44
|
+
this._sdkVersion = '';
|
|
43
45
|
// alias
|
|
44
46
|
this.useDatabase = this.use;
|
|
45
47
|
// Get the gRPC service for Milvus
|
|
46
|
-
|
|
48
|
+
this._MilvusService = (0, __1.getGRPCService)({
|
|
47
49
|
serviceName: this.protoInternalPath.serviceName, // the name of the Milvus service
|
|
48
50
|
}, Object.assign(Object.assign({}, exports.LOADER_OPTIONS), this.config.loaderOptions));
|
|
49
51
|
// setup auth if necessary
|
|
@@ -78,23 +80,167 @@ class GRPCClient extends User_1.User {
|
|
|
78
80
|
interceptors.push(retryInterceptor);
|
|
79
81
|
// add interceptors
|
|
80
82
|
this.channelOptions.interceptors = interceptors;
|
|
81
|
-
//
|
|
82
|
-
|
|
83
|
+
// For global cluster, skip pool creation here — pool will be created
|
|
84
|
+
// in connect() after topology is fetched and primary endpoint is resolved.
|
|
85
|
+
if (!this.isGlobal) {
|
|
86
|
+
this.channelPool = this.createChannelPool();
|
|
87
|
+
}
|
|
83
88
|
}
|
|
84
89
|
// create a grpc service client(connect)
|
|
85
90
|
connect(sdkVersion) {
|
|
86
|
-
|
|
87
|
-
|
|
91
|
+
this._sdkVersion = sdkVersion;
|
|
92
|
+
if (this.isGlobal) {
|
|
93
|
+
// For global cluster: fetch topology → create pool → connect
|
|
94
|
+
this.connectPromise = this._initGlobalConnection(sdkVersion);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
// Normal connection
|
|
98
|
+
this.connectPromise = this._getServerInfo(sdkVersion);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Initializes a global cluster connection.
|
|
103
|
+
* Fetches topology, resolves primary endpoint, creates pool, starts refresher.
|
|
104
|
+
*/
|
|
105
|
+
_initGlobalConnection(sdkVersion) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const token = this.config.token || '';
|
|
108
|
+
__1.logger.debug(`\x1b[36m[Global]\x1b[0m Initializing global cluster connection to ${this.globalEndpoint}`);
|
|
109
|
+
// Fetch topology to discover primary cluster
|
|
110
|
+
const topology = yield (0, __1.fetchTopology)(this.globalEndpoint, token);
|
|
111
|
+
this.globalTopology = topology;
|
|
112
|
+
// Resolve primary endpoint and create pool
|
|
113
|
+
const primary = (0, __1.getPrimaryCluster)(topology);
|
|
114
|
+
this.config.address = primary.endpoint;
|
|
115
|
+
__1.logger.debug(`\x1b[36m[Global]\x1b[0m Resolved primary: ${primary.endpoint} (cluster=${primary.clusterId}), creating channel pool`);
|
|
116
|
+
this.channelPool = this.createChannelPool();
|
|
117
|
+
this._attachFailoverHandler();
|
|
118
|
+
// Start background topology refresher
|
|
119
|
+
this.topologyRefresher = new __1.TopologyRefresher({
|
|
120
|
+
globalEndpoint: this.globalEndpoint,
|
|
121
|
+
token,
|
|
122
|
+
topology,
|
|
123
|
+
onTopologyChange: newTopology => {
|
|
124
|
+
this.globalTopology = newTopology;
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
this.topologyRefresher.start();
|
|
128
|
+
// Now connect to the primary
|
|
129
|
+
return this._getServerInfo(sdkVersion);
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Reconnects to a new primary cluster after failover.
|
|
134
|
+
* Creates a new pool for the new primary, then drains the old pool.
|
|
135
|
+
* @returns true if primary changed and reconnection happened, false if primary unchanged
|
|
136
|
+
*/
|
|
137
|
+
reconnectToPrimary() {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
// Serialize concurrent failover attempts
|
|
140
|
+
if (this.isReconnecting) {
|
|
141
|
+
__1.logger.debug(`\x1b[36m[Global]\x1b[0m Reconnect already in progress, waiting for completion`);
|
|
142
|
+
if (this.reconnectingPromise) {
|
|
143
|
+
yield this.reconnectingPromise;
|
|
144
|
+
}
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
let primaryChanged = false;
|
|
148
|
+
this.isReconnecting = true;
|
|
149
|
+
this.reconnectingPromise = (() => __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
try {
|
|
151
|
+
const token = this.config.token || '';
|
|
152
|
+
__1.logger.debug(`\x1b[36m[Global]\x1b[0m Attempting reconnect, fetching fresh topology`);
|
|
153
|
+
// Fetch fresh topology
|
|
154
|
+
const newTopology = yield (0, __1.fetchTopology)(this.globalEndpoint, token);
|
|
155
|
+
const newPrimary = (0, __1.getPrimaryCluster)(newTopology);
|
|
156
|
+
// Check if primary actually changed
|
|
157
|
+
if (newPrimary.endpoint === this.config.address) {
|
|
158
|
+
__1.logger.debug(`\x1b[36m[Global]\x1b[0m Primary unchanged (${this.config.address}), no reconnect needed`);
|
|
159
|
+
this.globalTopology = newTopology;
|
|
160
|
+
return; // Primary hasn't changed, no reconnect needed
|
|
161
|
+
}
|
|
162
|
+
primaryChanged = true;
|
|
163
|
+
__1.logger.info(`Global cluster failover: ${this.config.address} -> ${newPrimary.endpoint}`);
|
|
164
|
+
// Create new pool BEFORE draining old pool, so if creation fails
|
|
165
|
+
// the old pool is still usable
|
|
166
|
+
__1.logger.debug(`\x1b[36m[Global]\x1b[0m Creating new channel pool for ${newPrimary.endpoint}`);
|
|
167
|
+
const oldPool = this.channelPool;
|
|
168
|
+
this.config.address = newPrimary.endpoint;
|
|
169
|
+
this.channelPool = this.createChannelPool();
|
|
170
|
+
this._attachFailoverHandler();
|
|
171
|
+
// Now drain old pool (non-critical, best-effort)
|
|
172
|
+
if (oldPool) {
|
|
173
|
+
__1.logger.debug(`\x1b[36m[Global]\x1b[0m Draining old channel pool`);
|
|
174
|
+
try {
|
|
175
|
+
yield oldPool.drain();
|
|
176
|
+
yield oldPool.clear();
|
|
177
|
+
}
|
|
178
|
+
catch (_a) {
|
|
179
|
+
// ignore cleanup errors on old pool
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
// Update state
|
|
183
|
+
this.globalTopology = newTopology;
|
|
184
|
+
// Update topology refresher
|
|
185
|
+
if (this.topologyRefresher) {
|
|
186
|
+
this.topologyRefresher.stop();
|
|
187
|
+
}
|
|
188
|
+
this.topologyRefresher = new __1.TopologyRefresher({
|
|
189
|
+
globalEndpoint: this.globalEndpoint,
|
|
190
|
+
token,
|
|
191
|
+
topology: newTopology,
|
|
192
|
+
onTopologyChange: t => {
|
|
193
|
+
this.globalTopology = t;
|
|
194
|
+
},
|
|
195
|
+
});
|
|
196
|
+
this.topologyRefresher.start();
|
|
197
|
+
// Re-establish server info
|
|
198
|
+
this.connectStatus = __1.CONNECT_STATUS.CONNECTING;
|
|
199
|
+
yield this._getServerInfo(this._sdkVersion);
|
|
200
|
+
}
|
|
201
|
+
catch (e) {
|
|
202
|
+
__1.logger.warn(`Global cluster failover failed: ${e.message}`);
|
|
203
|
+
// Clean up resources created during failed failover
|
|
204
|
+
if (this.topologyRefresher) {
|
|
205
|
+
this.topologyRefresher.stop();
|
|
206
|
+
this.topologyRefresher = null;
|
|
207
|
+
}
|
|
208
|
+
this.connectStatus = __1.CONNECT_STATUS.SHUTDOWN;
|
|
209
|
+
throw e;
|
|
210
|
+
}
|
|
211
|
+
}))();
|
|
212
|
+
try {
|
|
213
|
+
yield this.reconnectingPromise;
|
|
214
|
+
return primaryChanged;
|
|
215
|
+
}
|
|
216
|
+
finally {
|
|
217
|
+
this.isReconnecting = false;
|
|
218
|
+
this.reconnectingPromise = null;
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Attaches a failover handler to the channel pool for global cluster support.
|
|
224
|
+
* When promisify encounters a gRPC UNAVAILABLE error after all retries,
|
|
225
|
+
* this handler triggers topology refresh and pool rebuild.
|
|
226
|
+
*/
|
|
227
|
+
_attachFailoverHandler() {
|
|
228
|
+
(0, __1.setPoolFailoverHandler)(this.channelPool, () => __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
// Trigger topology refresh
|
|
230
|
+
if (this.topologyRefresher) {
|
|
231
|
+
this.topologyRefresher.triggerRefresh();
|
|
232
|
+
}
|
|
233
|
+
yield this.reconnectToPrimary();
|
|
234
|
+
return this.channelPool;
|
|
235
|
+
}));
|
|
88
236
|
}
|
|
89
237
|
/**
|
|
90
238
|
* Creates a pool of gRPC service clients.
|
|
91
|
-
*
|
|
92
|
-
* @param {ServiceClientConstructor} ServiceClientConstructor - The constructor for the gRPC service client.
|
|
93
|
-
*
|
|
94
239
|
* @returns {Pool} - A pool of gRPC service clients.
|
|
95
240
|
*/
|
|
96
|
-
createChannelPool(
|
|
241
|
+
createChannelPool() {
|
|
97
242
|
var _a;
|
|
243
|
+
const ServiceClientConstructor = this._MilvusService;
|
|
98
244
|
return (0, generic_pool_1.createPool)({
|
|
99
245
|
create: () => __awaiter(this, void 0, void 0, function* () {
|
|
100
246
|
// Create a new gRPC service client
|
|
@@ -183,6 +329,12 @@ class GRPCClient extends User_1.User {
|
|
|
183
329
|
*/
|
|
184
330
|
closeConnection() {
|
|
185
331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
// Stop topology refresher if running (global cluster)
|
|
333
|
+
if (this.topologyRefresher) {
|
|
334
|
+
__1.logger.debug(`\x1b[36m[Global]\x1b[0m Stopping topology refresher on connection close`);
|
|
335
|
+
this.topologyRefresher.stop();
|
|
336
|
+
this.topologyRefresher = null;
|
|
337
|
+
}
|
|
186
338
|
// Close all connections in the pool
|
|
187
339
|
if (this.channelPool) {
|
|
188
340
|
yield this.channelPool.drain();
|
|
@@ -223,10 +375,16 @@ class GRPCClient extends User_1.User {
|
|
|
223
375
|
runAnalyzer(data) {
|
|
224
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
225
377
|
return yield (0, __1.promisify)(this.channelPool, 'RunAnalyzer', {
|
|
226
|
-
analyzer_params:
|
|
378
|
+
analyzer_params: data.analyzer_params
|
|
379
|
+
? JSON.stringify(data.analyzer_params)
|
|
380
|
+
: '',
|
|
227
381
|
placeholder: (Array.isArray(data.text) ? data.text : [data.text]).map(d => new TextEncoder().encode(String(d))),
|
|
228
382
|
with_detail: data.with_detail,
|
|
229
383
|
with_hash: data.with_hash,
|
|
384
|
+
db_name: data.db_name,
|
|
385
|
+
collection_name: data.collection_name,
|
|
386
|
+
field_name: data.field_name,
|
|
387
|
+
analyzer_names: data.analyzer_names,
|
|
230
388
|
}, this.timeout);
|
|
231
389
|
});
|
|
232
390
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GrpcClient.js","sourceRoot":"","sources":["../../../milvus/grpc/GrpcClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAMA,kDAA0B;AAC1B,+CAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"GrpcClient.js","sourceRoot":"","sources":["../../../milvus/grpc/GrpcClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAMA,kDAA0B;AAC1B,+CAA0C;AAC1C,2BA2Ba;AACb,iCAA8B;AAE9B,yBAAyB;AACZ,QAAA,cAAc,GAAG;IAC5B,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI,EAAE,wBAAwB;CACvC,CAAC;AAEF;;GAEG;AACH,MAAa,UAAW,S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AAC,cAAc,CAAC;YAC1B,OAAO,MAAM,IAAA,aAAS,EAAC,IAAI,CAAC,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5E,CAAC;KAAA;IAED;;;;OAIG;IACG,WAAW,CAAC,IAAwB;;YACxC,OAAO,MAAM,IAAA,aAAS,EACpB,IAAI,CAAC,WAAW,EAChB,aAAa,EACb;gBACE,eAAe,EAAE,IAAI,CAAC,eAAe;oBACnC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC;oBACtC,CAAC,CAAC,EAAE;gBACN,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CACnE,CAAC,CAAC,EAAE,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CACzC;gBACD,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;gBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,eAAe,EAAE,IAAI,CAAC,eAAe;gBACrC,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,cAAc,EAAE,IAAI,CAAC,cAAc;aACpC,EACD,IAAI,CAAC,OAAO,CACb,CAAC;QACJ,CAAC;KAAA;CACF;AA9bD,gCA8bC"}
|
|
@@ -30,7 +30,7 @@ export declare function Alias<T extends Constructor<HttpBaseClient>>(Base: T): {
|
|
|
30
30
|
ContentType: string;
|
|
31
31
|
'Accept-Type-Allow-Int64': string;
|
|
32
32
|
};
|
|
33
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
33
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
34
34
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
35
35
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
36
36
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|
|
@@ -51,7 +51,7 @@ export declare function Collection<T extends Constructor<HttpBaseClient>>(Base:
|
|
|
51
51
|
ContentType: string;
|
|
52
52
|
'Accept-Type-Allow-Int64': string;
|
|
53
53
|
};
|
|
54
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
54
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
55
55
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
56
56
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
57
57
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|
|
@@ -34,7 +34,7 @@ export declare function Database<T extends Constructor<HttpBaseClient>>(Base: T)
|
|
|
34
34
|
ContentType: string;
|
|
35
35
|
'Accept-Type-Allow-Int64': string;
|
|
36
36
|
};
|
|
37
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
37
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
38
38
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
39
39
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
40
40
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|
|
@@ -26,7 +26,7 @@ export declare function Import<T extends Constructor<HttpBaseClient>>(Base: T):
|
|
|
26
26
|
ContentType: string;
|
|
27
27
|
'Accept-Type-Allow-Int64': string;
|
|
28
28
|
};
|
|
29
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
29
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
30
30
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
31
31
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
32
32
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|
|
@@ -30,7 +30,7 @@ export declare function MilvusIndex<T extends Constructor<HttpBaseClient>>(Base:
|
|
|
30
30
|
ContentType: string;
|
|
31
31
|
'Accept-Type-Allow-Int64': string;
|
|
32
32
|
};
|
|
33
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
33
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
34
34
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
35
35
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
36
36
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|
|
@@ -34,7 +34,7 @@ export declare function Partition<T extends Constructor<HttpBaseClient>>(Base: T
|
|
|
34
34
|
ContentType: string;
|
|
35
35
|
'Accept-Type-Allow-Int64': string;
|
|
36
36
|
};
|
|
37
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
37
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
38
38
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
39
39
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
40
40
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|
|
@@ -32,7 +32,7 @@ export declare function Role<T extends Constructor<HttpBaseClient>>(Base: T): {
|
|
|
32
32
|
ContentType: string;
|
|
33
33
|
'Accept-Type-Allow-Int64': string;
|
|
34
34
|
};
|
|
35
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
35
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
36
36
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
37
37
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
38
38
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|
|
@@ -34,7 +34,7 @@ export declare function User<T extends Constructor<HttpBaseClient>>(Base: T): {
|
|
|
34
34
|
ContentType: string;
|
|
35
35
|
'Accept-Type-Allow-Int64': string;
|
|
36
36
|
};
|
|
37
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
37
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
38
38
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
39
39
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
40
40
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|
|
@@ -35,7 +35,7 @@ export declare function Vector<T extends Constructor<HttpBaseClient>>(Base: T):
|
|
|
35
35
|
ContentType: string;
|
|
36
36
|
'Accept-Type-Allow-Int64': string;
|
|
37
37
|
};
|
|
38
|
-
readonly fetch: ((input: any, init?: any) => Promise<any>)
|
|
38
|
+
readonly fetch: typeof fetch | ((input: any, init?: any) => Promise<any>);
|
|
39
39
|
_handleResponse<T>(response: Response, url: string): Promise<T>;
|
|
40
40
|
POST<T_1>(url: string, data?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_1>;
|
|
41
41
|
GET<T_2>(url: string, params?: Record<string, any>, options?: FetchOptions | undefined): Promise<T_2>;
|