@rapidaai/react 1.1.48 → 1.1.49
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/{chunk-K6VHOUSP.mjs → chunk-JA65S2AA.mjs} +126 -6
- package/dist/chunk-JA65S2AA.mjs.map +1 -0
- package/dist/components/device-selector.d.mts +1 -1
- package/dist/components/device-selector.d.ts +1 -1
- package/dist/components/device-selector.js +125 -5
- package/dist/components/device-selector.js.map +1 -1
- package/dist/components/device-selector.mjs +1 -1
- package/dist/{device-selector-CsIo3daE.d.mts → device-selector-o07ACCD6.d.mts} +20 -0
- package/dist/{device-selector-CsIo3daE.d.ts → device-selector-o07ACCD6.d.ts} +20 -0
- package/dist/index.d.mts +3 -81
- package/dist/index.d.ts +3 -81
- package/dist/index.js +320 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +196 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-K6VHOUSP.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -9304,7 +9304,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9304
9304
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
9305
9305
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
9306
9306
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
9307
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
9307
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
9308
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
9308
9309
|
};
|
|
9309
9310
|
if (includeInstance) {
|
|
9310
9311
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9442,6 +9443,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9442
9443
|
);
|
|
9443
9444
|
msg.setIdealtimeoutmessage(value);
|
|
9444
9445
|
break;
|
|
9446
|
+
case 32:
|
|
9447
|
+
var value = (
|
|
9448
|
+
/** @type {string} */
|
|
9449
|
+
reader.readUint64String()
|
|
9450
|
+
);
|
|
9451
|
+
msg.setIdealtimeoutbackoff(value);
|
|
9452
|
+
break;
|
|
9445
9453
|
default:
|
|
9446
9454
|
reader.skipField();
|
|
9447
9455
|
break;
|
|
@@ -9588,6 +9596,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9588
9596
|
f
|
|
9589
9597
|
);
|
|
9590
9598
|
}
|
|
9599
|
+
f = message.getIdealtimeoutbackoff();
|
|
9600
|
+
if (parseInt(f, 10) !== 0) {
|
|
9601
|
+
writer.writeUint64String(
|
|
9602
|
+
32,
|
|
9603
|
+
f
|
|
9604
|
+
);
|
|
9605
|
+
}
|
|
9591
9606
|
};
|
|
9592
9607
|
proto.assistant_api.AssistantWebpluginDeployment.prototype.getId = function() {
|
|
9593
9608
|
return (
|
|
@@ -9793,6 +9808,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9793
9808
|
proto.assistant_api.AssistantWebpluginDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
9794
9809
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
9795
9810
|
};
|
|
9811
|
+
proto.assistant_api.AssistantWebpluginDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
9812
|
+
return (
|
|
9813
|
+
/** @type {string} */
|
|
9814
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
9815
|
+
);
|
|
9816
|
+
};
|
|
9817
|
+
proto.assistant_api.AssistantWebpluginDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
9818
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
9819
|
+
};
|
|
9796
9820
|
proto.assistant_api.AssistantPhoneDeployment.repeatedFields_ = [17];
|
|
9797
9821
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9798
9822
|
proto.assistant_api.AssistantPhoneDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -9817,7 +9841,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9817
9841
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
9818
9842
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
9819
9843
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
9820
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
9844
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
9845
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
9821
9846
|
};
|
|
9822
9847
|
if (includeInstance) {
|
|
9823
9848
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9925,6 +9950,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9925
9950
|
);
|
|
9926
9951
|
msg.setIdealtimeoutmessage(value);
|
|
9927
9952
|
break;
|
|
9953
|
+
case 32:
|
|
9954
|
+
var value = (
|
|
9955
|
+
/** @type {string} */
|
|
9956
|
+
reader.readUint64String()
|
|
9957
|
+
);
|
|
9958
|
+
msg.setIdealtimeoutbackoff(value);
|
|
9959
|
+
break;
|
|
9928
9960
|
default:
|
|
9929
9961
|
reader.skipField();
|
|
9930
9962
|
break;
|
|
@@ -10044,6 +10076,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10044
10076
|
f
|
|
10045
10077
|
);
|
|
10046
10078
|
}
|
|
10079
|
+
f = message.getIdealtimeoutbackoff();
|
|
10080
|
+
if (parseInt(f, 10) !== 0) {
|
|
10081
|
+
writer.writeUint64String(
|
|
10082
|
+
32,
|
|
10083
|
+
f
|
|
10084
|
+
);
|
|
10085
|
+
}
|
|
10047
10086
|
};
|
|
10048
10087
|
proto.assistant_api.AssistantPhoneDeployment.prototype.getId = function() {
|
|
10049
10088
|
return (
|
|
@@ -10213,6 +10252,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10213
10252
|
proto.assistant_api.AssistantPhoneDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
10214
10253
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
10215
10254
|
};
|
|
10255
|
+
proto.assistant_api.AssistantPhoneDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
10256
|
+
return (
|
|
10257
|
+
/** @type {string} */
|
|
10258
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
10259
|
+
);
|
|
10260
|
+
};
|
|
10261
|
+
proto.assistant_api.AssistantPhoneDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
10262
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
10263
|
+
};
|
|
10216
10264
|
proto.assistant_api.AssistantWhatsappDeployment.repeatedFields_ = [17];
|
|
10217
10265
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10218
10266
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -10238,7 +10286,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10238
10286
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
10239
10287
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
10240
10288
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
10241
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
10289
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
10290
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
10242
10291
|
};
|
|
10243
10292
|
if (includeInstance) {
|
|
10244
10293
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10353,6 +10402,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10353
10402
|
);
|
|
10354
10403
|
msg.setIdealtimeoutmessage(value);
|
|
10355
10404
|
break;
|
|
10405
|
+
case 32:
|
|
10406
|
+
var value = (
|
|
10407
|
+
/** @type {string} */
|
|
10408
|
+
reader.readUint64String()
|
|
10409
|
+
);
|
|
10410
|
+
msg.setIdealtimeoutbackoff(value);
|
|
10411
|
+
break;
|
|
10356
10412
|
default:
|
|
10357
10413
|
reader.skipField();
|
|
10358
10414
|
break;
|
|
@@ -10479,6 +10535,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10479
10535
|
f
|
|
10480
10536
|
);
|
|
10481
10537
|
}
|
|
10538
|
+
f = message.getIdealtimeoutbackoff();
|
|
10539
|
+
if (parseInt(f, 10) !== 0) {
|
|
10540
|
+
writer.writeUint64String(
|
|
10541
|
+
32,
|
|
10542
|
+
f
|
|
10543
|
+
);
|
|
10544
|
+
}
|
|
10482
10545
|
};
|
|
10483
10546
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.getId = function() {
|
|
10484
10547
|
return (
|
|
@@ -10657,6 +10720,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10657
10720
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
10658
10721
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
10659
10722
|
};
|
|
10723
|
+
proto.assistant_api.AssistantWhatsappDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
10724
|
+
return (
|
|
10725
|
+
/** @type {string} */
|
|
10726
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
10727
|
+
);
|
|
10728
|
+
};
|
|
10729
|
+
proto.assistant_api.AssistantWhatsappDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
10730
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
10731
|
+
};
|
|
10660
10732
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10661
10733
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
10662
10734
|
return proto.assistant_api.AssistantDebuggerDeployment.toObject(opt_includeInstance, this);
|
|
@@ -10675,7 +10747,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10675
10747
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
10676
10748
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
10677
10749
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
10678
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
10750
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
10751
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
10679
10752
|
};
|
|
10680
10753
|
if (includeInstance) {
|
|
10681
10754
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10778,6 +10851,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10778
10851
|
);
|
|
10779
10852
|
msg.setIdealtimeoutmessage(value);
|
|
10780
10853
|
break;
|
|
10854
|
+
case 32:
|
|
10855
|
+
var value = (
|
|
10856
|
+
/** @type {string} */
|
|
10857
|
+
reader.readUint64String()
|
|
10858
|
+
);
|
|
10859
|
+
msg.setIdealtimeoutbackoff(value);
|
|
10860
|
+
break;
|
|
10781
10861
|
default:
|
|
10782
10862
|
reader.skipField();
|
|
10783
10863
|
break;
|
|
@@ -10889,6 +10969,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10889
10969
|
f
|
|
10890
10970
|
);
|
|
10891
10971
|
}
|
|
10972
|
+
f = message.getIdealtimeoutbackoff();
|
|
10973
|
+
if (parseInt(f, 10) !== 0) {
|
|
10974
|
+
writer.writeUint64String(
|
|
10975
|
+
32,
|
|
10976
|
+
f
|
|
10977
|
+
);
|
|
10978
|
+
}
|
|
10892
10979
|
};
|
|
10893
10980
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.getId = function() {
|
|
10894
10981
|
return (
|
|
@@ -11043,6 +11130,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11043
11130
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
11044
11131
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
11045
11132
|
};
|
|
11133
|
+
proto.assistant_api.AssistantDebuggerDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
11134
|
+
return (
|
|
11135
|
+
/** @type {string} */
|
|
11136
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
11137
|
+
);
|
|
11138
|
+
};
|
|
11139
|
+
proto.assistant_api.AssistantDebuggerDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
11140
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
11141
|
+
};
|
|
11046
11142
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11047
11143
|
proto.assistant_api.AssistantApiDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
11048
11144
|
return proto.assistant_api.AssistantApiDeployment.toObject(opt_includeInstance, this);
|
|
@@ -11060,7 +11156,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11060
11156
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
11061
11157
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
11062
11158
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
11063
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
11159
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
11160
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
11064
11161
|
};
|
|
11065
11162
|
if (includeInstance) {
|
|
11066
11163
|
obj.$jspbMessageInstance = msg;
|
|
@@ -11156,6 +11253,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11156
11253
|
);
|
|
11157
11254
|
msg.setIdealtimeoutmessage(value);
|
|
11158
11255
|
break;
|
|
11256
|
+
case 32:
|
|
11257
|
+
var value = (
|
|
11258
|
+
/** @type {string} */
|
|
11259
|
+
reader.readUint64String()
|
|
11260
|
+
);
|
|
11261
|
+
msg.setIdealtimeoutbackoff(value);
|
|
11262
|
+
break;
|
|
11159
11263
|
default:
|
|
11160
11264
|
reader.skipField();
|
|
11161
11265
|
break;
|
|
@@ -11260,6 +11364,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11260
11364
|
f
|
|
11261
11365
|
);
|
|
11262
11366
|
}
|
|
11367
|
+
f = message.getIdealtimeoutbackoff();
|
|
11368
|
+
if (parseInt(f, 10) !== 0) {
|
|
11369
|
+
writer.writeUint64String(
|
|
11370
|
+
32,
|
|
11371
|
+
f
|
|
11372
|
+
);
|
|
11373
|
+
}
|
|
11263
11374
|
};
|
|
11264
11375
|
proto.assistant_api.AssistantApiDeployment.prototype.getId = function() {
|
|
11265
11376
|
return (
|
|
@@ -11405,6 +11516,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11405
11516
|
proto.assistant_api.AssistantApiDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
11406
11517
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
11407
11518
|
};
|
|
11519
|
+
proto.assistant_api.AssistantApiDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
11520
|
+
return (
|
|
11521
|
+
/** @type {string} */
|
|
11522
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
11523
|
+
);
|
|
11524
|
+
};
|
|
11525
|
+
proto.assistant_api.AssistantApiDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
11526
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
11527
|
+
};
|
|
11408
11528
|
proto.assistant_api.CreateAssistantDeploymentRequest.oneofGroups_ = [[1, 2, 3, 4, 5]];
|
|
11409
11529
|
proto.assistant_api.CreateAssistantDeploymentRequest.DeploymentCase = {
|
|
11410
11530
|
DEPLOYMENT_NOT_SET: 0,
|
|
@@ -58138,54 +58258,226 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58138
58258
|
};
|
|
58139
58259
|
};
|
|
58140
58260
|
exports2.AzureServiceClient = AzureServiceClient2;
|
|
58141
|
-
var
|
|
58142
|
-
function
|
|
58261
|
+
var GeminiService = function() {
|
|
58262
|
+
function GeminiService2() {
|
|
58263
|
+
}
|
|
58264
|
+
GeminiService2.serviceName = "integration_api.GeminiService";
|
|
58265
|
+
return GeminiService2;
|
|
58266
|
+
}();
|
|
58267
|
+
GeminiService.Embedding = {
|
|
58268
|
+
methodName: "Embedding",
|
|
58269
|
+
service: GeminiService,
|
|
58270
|
+
requestStream: false,
|
|
58271
|
+
responseStream: false,
|
|
58272
|
+
requestType: integration_api_pb.EmbeddingRequest,
|
|
58273
|
+
responseType: integration_api_pb.EmbeddingResponse
|
|
58274
|
+
};
|
|
58275
|
+
GeminiService.Chat = {
|
|
58276
|
+
methodName: "Chat",
|
|
58277
|
+
service: GeminiService,
|
|
58278
|
+
requestStream: false,
|
|
58279
|
+
responseStream: false,
|
|
58280
|
+
requestType: integration_api_pb.ChatRequest,
|
|
58281
|
+
responseType: integration_api_pb.ChatResponse
|
|
58282
|
+
};
|
|
58283
|
+
GeminiService.StreamChat = {
|
|
58284
|
+
methodName: "StreamChat",
|
|
58285
|
+
service: GeminiService,
|
|
58286
|
+
requestStream: false,
|
|
58287
|
+
responseStream: true,
|
|
58288
|
+
requestType: integration_api_pb.ChatRequest,
|
|
58289
|
+
responseType: integration_api_pb.ChatResponse
|
|
58290
|
+
};
|
|
58291
|
+
GeminiService.VerifyCredential = {
|
|
58292
|
+
methodName: "VerifyCredential",
|
|
58293
|
+
service: GeminiService,
|
|
58294
|
+
requestStream: false,
|
|
58295
|
+
responseStream: false,
|
|
58296
|
+
requestType: integration_api_pb.VerifyCredentialRequest,
|
|
58297
|
+
responseType: integration_api_pb.VerifyCredentialResponse
|
|
58298
|
+
};
|
|
58299
|
+
exports2.GeminiService = GeminiService;
|
|
58300
|
+
function GeminiServiceClient(serviceHost, options) {
|
|
58301
|
+
this.serviceHost = serviceHost;
|
|
58302
|
+
this.options = options || {};
|
|
58303
|
+
}
|
|
58304
|
+
GeminiServiceClient.prototype.embedding = function embedding(requestMessage, metadata, callback) {
|
|
58305
|
+
if (arguments.length === 2) {
|
|
58306
|
+
callback = arguments[1];
|
|
58307
|
+
}
|
|
58308
|
+
var client = grpc3.unary(GeminiService.Embedding, {
|
|
58309
|
+
request: requestMessage,
|
|
58310
|
+
host: this.serviceHost,
|
|
58311
|
+
metadata,
|
|
58312
|
+
transport: this.options.transport,
|
|
58313
|
+
debug: this.options.debug,
|
|
58314
|
+
onEnd: function(response) {
|
|
58315
|
+
if (callback) {
|
|
58316
|
+
if (response.status !== grpc3.Code.OK) {
|
|
58317
|
+
var err = new Error(response.statusMessage);
|
|
58318
|
+
err.code = response.status;
|
|
58319
|
+
err.metadata = response.trailers;
|
|
58320
|
+
callback(err, null);
|
|
58321
|
+
} else {
|
|
58322
|
+
callback(null, response.message);
|
|
58323
|
+
}
|
|
58324
|
+
}
|
|
58325
|
+
}
|
|
58326
|
+
});
|
|
58327
|
+
return {
|
|
58328
|
+
cancel: function() {
|
|
58329
|
+
callback = null;
|
|
58330
|
+
client.close();
|
|
58331
|
+
}
|
|
58332
|
+
};
|
|
58333
|
+
};
|
|
58334
|
+
GeminiServiceClient.prototype.chat = function chat(requestMessage, metadata, callback) {
|
|
58335
|
+
if (arguments.length === 2) {
|
|
58336
|
+
callback = arguments[1];
|
|
58337
|
+
}
|
|
58338
|
+
var client = grpc3.unary(GeminiService.Chat, {
|
|
58339
|
+
request: requestMessage,
|
|
58340
|
+
host: this.serviceHost,
|
|
58341
|
+
metadata,
|
|
58342
|
+
transport: this.options.transport,
|
|
58343
|
+
debug: this.options.debug,
|
|
58344
|
+
onEnd: function(response) {
|
|
58345
|
+
if (callback) {
|
|
58346
|
+
if (response.status !== grpc3.Code.OK) {
|
|
58347
|
+
var err = new Error(response.statusMessage);
|
|
58348
|
+
err.code = response.status;
|
|
58349
|
+
err.metadata = response.trailers;
|
|
58350
|
+
callback(err, null);
|
|
58351
|
+
} else {
|
|
58352
|
+
callback(null, response.message);
|
|
58353
|
+
}
|
|
58354
|
+
}
|
|
58355
|
+
}
|
|
58356
|
+
});
|
|
58357
|
+
return {
|
|
58358
|
+
cancel: function() {
|
|
58359
|
+
callback = null;
|
|
58360
|
+
client.close();
|
|
58361
|
+
}
|
|
58362
|
+
};
|
|
58363
|
+
};
|
|
58364
|
+
GeminiServiceClient.prototype.streamChat = function streamChat(requestMessage, metadata) {
|
|
58365
|
+
var listeners = {
|
|
58366
|
+
data: [],
|
|
58367
|
+
end: [],
|
|
58368
|
+
status: []
|
|
58369
|
+
};
|
|
58370
|
+
var client = grpc3.invoke(GeminiService.StreamChat, {
|
|
58371
|
+
request: requestMessage,
|
|
58372
|
+
host: this.serviceHost,
|
|
58373
|
+
metadata,
|
|
58374
|
+
transport: this.options.transport,
|
|
58375
|
+
debug: this.options.debug,
|
|
58376
|
+
onMessage: function(responseMessage) {
|
|
58377
|
+
listeners.data.forEach(function(handler) {
|
|
58378
|
+
handler(responseMessage);
|
|
58379
|
+
});
|
|
58380
|
+
},
|
|
58381
|
+
onEnd: function(status, statusMessage, trailers) {
|
|
58382
|
+
listeners.status.forEach(function(handler) {
|
|
58383
|
+
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
58384
|
+
});
|
|
58385
|
+
listeners.end.forEach(function(handler) {
|
|
58386
|
+
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
58387
|
+
});
|
|
58388
|
+
listeners = null;
|
|
58389
|
+
}
|
|
58390
|
+
});
|
|
58391
|
+
return {
|
|
58392
|
+
on: function(type, handler) {
|
|
58393
|
+
listeners[type].push(handler);
|
|
58394
|
+
return this;
|
|
58395
|
+
},
|
|
58396
|
+
cancel: function() {
|
|
58397
|
+
listeners = null;
|
|
58398
|
+
client.close();
|
|
58399
|
+
}
|
|
58400
|
+
};
|
|
58401
|
+
};
|
|
58402
|
+
GeminiServiceClient.prototype.verifyCredential = function verifyCredential(requestMessage, metadata, callback) {
|
|
58403
|
+
if (arguments.length === 2) {
|
|
58404
|
+
callback = arguments[1];
|
|
58405
|
+
}
|
|
58406
|
+
var client = grpc3.unary(GeminiService.VerifyCredential, {
|
|
58407
|
+
request: requestMessage,
|
|
58408
|
+
host: this.serviceHost,
|
|
58409
|
+
metadata,
|
|
58410
|
+
transport: this.options.transport,
|
|
58411
|
+
debug: this.options.debug,
|
|
58412
|
+
onEnd: function(response) {
|
|
58413
|
+
if (callback) {
|
|
58414
|
+
if (response.status !== grpc3.Code.OK) {
|
|
58415
|
+
var err = new Error(response.statusMessage);
|
|
58416
|
+
err.code = response.status;
|
|
58417
|
+
err.metadata = response.trailers;
|
|
58418
|
+
callback(err, null);
|
|
58419
|
+
} else {
|
|
58420
|
+
callback(null, response.message);
|
|
58421
|
+
}
|
|
58422
|
+
}
|
|
58423
|
+
}
|
|
58424
|
+
});
|
|
58425
|
+
return {
|
|
58426
|
+
cancel: function() {
|
|
58427
|
+
callback = null;
|
|
58428
|
+
client.close();
|
|
58429
|
+
}
|
|
58430
|
+
};
|
|
58431
|
+
};
|
|
58432
|
+
exports2.GeminiServiceClient = GeminiServiceClient;
|
|
58433
|
+
var VertexAiService = function() {
|
|
58434
|
+
function VertexAiService2() {
|
|
58143
58435
|
}
|
|
58144
|
-
|
|
58145
|
-
return
|
|
58436
|
+
VertexAiService2.serviceName = "integration_api.VertexAiService";
|
|
58437
|
+
return VertexAiService2;
|
|
58146
58438
|
}();
|
|
58147
|
-
|
|
58439
|
+
VertexAiService.Embedding = {
|
|
58148
58440
|
methodName: "Embedding",
|
|
58149
|
-
service:
|
|
58441
|
+
service: VertexAiService,
|
|
58150
58442
|
requestStream: false,
|
|
58151
58443
|
responseStream: false,
|
|
58152
58444
|
requestType: integration_api_pb.EmbeddingRequest,
|
|
58153
58445
|
responseType: integration_api_pb.EmbeddingResponse
|
|
58154
58446
|
};
|
|
58155
|
-
|
|
58447
|
+
VertexAiService.Chat = {
|
|
58156
58448
|
methodName: "Chat",
|
|
58157
|
-
service:
|
|
58449
|
+
service: VertexAiService,
|
|
58158
58450
|
requestStream: false,
|
|
58159
58451
|
responseStream: false,
|
|
58160
58452
|
requestType: integration_api_pb.ChatRequest,
|
|
58161
58453
|
responseType: integration_api_pb.ChatResponse
|
|
58162
58454
|
};
|
|
58163
|
-
|
|
58455
|
+
VertexAiService.StreamChat = {
|
|
58164
58456
|
methodName: "StreamChat",
|
|
58165
|
-
service:
|
|
58457
|
+
service: VertexAiService,
|
|
58166
58458
|
requestStream: false,
|
|
58167
58459
|
responseStream: true,
|
|
58168
58460
|
requestType: integration_api_pb.ChatRequest,
|
|
58169
58461
|
responseType: integration_api_pb.ChatResponse
|
|
58170
58462
|
};
|
|
58171
|
-
|
|
58463
|
+
VertexAiService.VerifyCredential = {
|
|
58172
58464
|
methodName: "VerifyCredential",
|
|
58173
|
-
service:
|
|
58465
|
+
service: VertexAiService,
|
|
58174
58466
|
requestStream: false,
|
|
58175
58467
|
responseStream: false,
|
|
58176
58468
|
requestType: integration_api_pb.VerifyCredentialRequest,
|
|
58177
58469
|
responseType: integration_api_pb.VerifyCredentialResponse
|
|
58178
58470
|
};
|
|
58179
|
-
exports2.
|
|
58180
|
-
function
|
|
58471
|
+
exports2.VertexAiService = VertexAiService;
|
|
58472
|
+
function VertexAiServiceClient(serviceHost, options) {
|
|
58181
58473
|
this.serviceHost = serviceHost;
|
|
58182
58474
|
this.options = options || {};
|
|
58183
58475
|
}
|
|
58184
|
-
|
|
58476
|
+
VertexAiServiceClient.prototype.embedding = function embedding(requestMessage, metadata, callback) {
|
|
58185
58477
|
if (arguments.length === 2) {
|
|
58186
58478
|
callback = arguments[1];
|
|
58187
58479
|
}
|
|
58188
|
-
var client = grpc3.unary(
|
|
58480
|
+
var client = grpc3.unary(VertexAiService.Embedding, {
|
|
58189
58481
|
request: requestMessage,
|
|
58190
58482
|
host: this.serviceHost,
|
|
58191
58483
|
metadata,
|
|
@@ -58211,11 +58503,11 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58211
58503
|
}
|
|
58212
58504
|
};
|
|
58213
58505
|
};
|
|
58214
|
-
|
|
58506
|
+
VertexAiServiceClient.prototype.chat = function chat(requestMessage, metadata, callback) {
|
|
58215
58507
|
if (arguments.length === 2) {
|
|
58216
58508
|
callback = arguments[1];
|
|
58217
58509
|
}
|
|
58218
|
-
var client = grpc3.unary(
|
|
58510
|
+
var client = grpc3.unary(VertexAiService.Chat, {
|
|
58219
58511
|
request: requestMessage,
|
|
58220
58512
|
host: this.serviceHost,
|
|
58221
58513
|
metadata,
|
|
@@ -58241,13 +58533,13 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58241
58533
|
}
|
|
58242
58534
|
};
|
|
58243
58535
|
};
|
|
58244
|
-
|
|
58536
|
+
VertexAiServiceClient.prototype.streamChat = function streamChat(requestMessage, metadata) {
|
|
58245
58537
|
var listeners = {
|
|
58246
58538
|
data: [],
|
|
58247
58539
|
end: [],
|
|
58248
58540
|
status: []
|
|
58249
58541
|
};
|
|
58250
|
-
var client = grpc3.invoke(
|
|
58542
|
+
var client = grpc3.invoke(VertexAiService.StreamChat, {
|
|
58251
58543
|
request: requestMessage,
|
|
58252
58544
|
host: this.serviceHost,
|
|
58253
58545
|
metadata,
|
|
@@ -58279,11 +58571,11 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58279
58571
|
}
|
|
58280
58572
|
};
|
|
58281
58573
|
};
|
|
58282
|
-
|
|
58574
|
+
VertexAiServiceClient.prototype.verifyCredential = function verifyCredential(requestMessage, metadata, callback) {
|
|
58283
58575
|
if (arguments.length === 2) {
|
|
58284
58576
|
callback = arguments[1];
|
|
58285
58577
|
}
|
|
58286
|
-
var client = grpc3.unary(
|
|
58578
|
+
var client = grpc3.unary(VertexAiService.VerifyCredential, {
|
|
58287
58579
|
request: requestMessage,
|
|
58288
58580
|
host: this.serviceHost,
|
|
58289
58581
|
metadata,
|
|
@@ -58309,7 +58601,7 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58309
58601
|
}
|
|
58310
58602
|
};
|
|
58311
58603
|
};
|
|
58312
|
-
exports2.
|
|
58604
|
+
exports2.VertexAiServiceClient = VertexAiServiceClient;
|
|
58313
58605
|
var ReplicateService2 = function() {
|
|
58314
58606
|
function ReplicateService3() {
|
|
58315
58607
|
}
|
|
@@ -59680,8 +59972,6 @@ __export(index_exports, {
|
|
|
59680
59972
|
GetWebhookLog: () => GetWebhookLog,
|
|
59681
59973
|
Github: () => Github,
|
|
59682
59974
|
Google: () => Google,
|
|
59683
|
-
GoogleService: () => import_integration_api_pb_service.GoogleService,
|
|
59684
|
-
GoogleServiceClient: () => import_integration_api_pb_service.GoogleServiceClient,
|
|
59685
59975
|
HEADER_API_KEY: () => HEADER_API_KEY,
|
|
59686
59976
|
HEADER_AUTH_ID: () => HEADER_AUTH_ID,
|
|
59687
59977
|
HEADER_COLOR_DEPTH: () => HEADER_COLOR_DEPTH,
|
|
@@ -64880,8 +65170,6 @@ function GetNotificationSetting(clientCfg, request, auth) {
|
|
|
64880
65170
|
GetWebhookLog,
|
|
64881
65171
|
Github,
|
|
64882
65172
|
Google,
|
|
64883
|
-
GoogleService,
|
|
64884
|
-
GoogleServiceClient,
|
|
64885
65173
|
HEADER_API_KEY,
|
|
64886
65174
|
HEADER_AUTH_ID,
|
|
64887
65175
|
HEADER_COLOR_DEPTH,
|