clarifai-web-grpc 10.5.3 → 10.6.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/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +39 -47
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +547 -7
- package/dist/esm/proto/clarifai/api/resources_pb.js +39 -47
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +547 -7
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +6 -8
- package/proto/clarifai/api/resources_pb.js +52 -61
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +12 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +61 -0
- package/proto/clarifai/api/service_pb.d.ts +81 -0
- package/proto/clarifai/api/service_pb.js +684 -7
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
10.
|
|
1
|
+
10.6.0
|
|
@@ -52657,7 +52657,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
52657
52657
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
52658
52658
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
52659
52659
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
52660
|
-
userId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
52661
52660
|
labelsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
|
52662
52661
|
worker: (f = msg.getWorker()) && proto.clarifai.api.Worker.toObject(includeInstance, f),
|
|
52663
52662
|
nodepool: (f = msg.getNodepool()) && proto.clarifai.api.Nodepool.toObject(includeInstance, f),
|
|
@@ -52717,10 +52716,6 @@ proto.clarifai.api.Runner.deserializeBinaryFromReader = function (msg, reader) {
|
|
|
52717
52716
|
reader.readMessage(value, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
52718
52717
|
msg.setMetadata(value);
|
|
52719
52718
|
break;
|
|
52720
|
-
case 6:
|
|
52721
|
-
var value = /** @type {string} */ (reader.readString());
|
|
52722
|
-
msg.setUserId(value);
|
|
52723
|
-
break;
|
|
52724
52719
|
case 7:
|
|
52725
52720
|
var value = /** @type {string} */ (reader.readString());
|
|
52726
52721
|
msg.addLabels(value);
|
|
@@ -52789,10 +52784,6 @@ proto.clarifai.api.Runner.serializeBinaryToWriter = function (message, writer) {
|
|
|
52789
52784
|
if (f != null) {
|
|
52790
52785
|
writer.writeMessage(5, f, google_protobuf_struct_pb.Struct.serializeBinaryToWriter);
|
|
52791
52786
|
}
|
|
52792
|
-
f = message.getUserId();
|
|
52793
|
-
if (f.length > 0) {
|
|
52794
|
-
writer.writeString(6, f);
|
|
52795
|
-
}
|
|
52796
52787
|
f = message.getLabelsList();
|
|
52797
52788
|
if (f.length > 0) {
|
|
52798
52789
|
writer.writeRepeatedString(7, f);
|
|
@@ -52926,20 +52917,6 @@ proto.clarifai.api.Runner.prototype.clearMetadata = function () {
|
|
|
52926
52917
|
proto.clarifai.api.Runner.prototype.hasMetadata = function () {
|
|
52927
52918
|
return jspb.Message.getField(this, 5) != null;
|
|
52928
52919
|
};
|
|
52929
|
-
/**
|
|
52930
|
-
* optional string user_id = 6;
|
|
52931
|
-
* @return {string}
|
|
52932
|
-
*/
|
|
52933
|
-
proto.clarifai.api.Runner.prototype.getUserId = function () {
|
|
52934
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
52935
|
-
};
|
|
52936
|
-
/**
|
|
52937
|
-
* @param {string} value
|
|
52938
|
-
* @return {!proto.clarifai.api.Runner} returns this
|
|
52939
|
-
*/
|
|
52940
|
-
proto.clarifai.api.Runner.prototype.setUserId = function (value) {
|
|
52941
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
52942
|
-
};
|
|
52943
52920
|
/**
|
|
52944
52921
|
* repeated string labels = 7;
|
|
52945
52922
|
* @return {!Array<string>}
|
|
@@ -53104,7 +53081,6 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
53104
53081
|
description: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
53105
53082
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
53106
53083
|
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
53107
|
-
userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
53108
53084
|
computeCluster: (f = msg.getComputeCluster()) && proto.clarifai.api.ComputeCluster.toObject(includeInstance, f),
|
|
53109
53085
|
nodeCapacityType: (f = msg.getNodeCapacityType()) && proto.clarifai.api.NodeCapacityType.toObject(includeInstance, f),
|
|
53110
53086
|
instanceTypesList: jspb.Message.toObjectList(msg.getInstanceTypesList(), proto.clarifai.api.InstanceType.toObject, includeInstance),
|
|
@@ -53161,10 +53137,6 @@ proto.clarifai.api.Nodepool.deserializeBinaryFromReader = function (msg, reader)
|
|
|
53161
53137
|
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
53162
53138
|
msg.setModifiedAt(value);
|
|
53163
53139
|
break;
|
|
53164
|
-
case 5:
|
|
53165
|
-
var value = /** @type {string} */ (reader.readString());
|
|
53166
|
-
msg.setUserId(value);
|
|
53167
|
-
break;
|
|
53168
53140
|
case 6:
|
|
53169
53141
|
var value = new proto.clarifai.api.ComputeCluster;
|
|
53170
53142
|
reader.readMessage(value, proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader);
|
|
@@ -53239,10 +53211,6 @@ proto.clarifai.api.Nodepool.serializeBinaryToWriter = function (message, writer)
|
|
|
53239
53211
|
if (f != null) {
|
|
53240
53212
|
writer.writeMessage(4, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
53241
53213
|
}
|
|
53242
|
-
f = message.getUserId();
|
|
53243
|
-
if (f.length > 0) {
|
|
53244
|
-
writer.writeString(5, f);
|
|
53245
|
-
}
|
|
53246
53214
|
f = message.getComputeCluster();
|
|
53247
53215
|
if (f != null) {
|
|
53248
53216
|
writer.writeMessage(6, f, proto.clarifai.api.ComputeCluster.serializeBinaryToWriter);
|
|
@@ -53356,20 +53324,6 @@ proto.clarifai.api.Nodepool.prototype.clearModifiedAt = function () {
|
|
|
53356
53324
|
proto.clarifai.api.Nodepool.prototype.hasModifiedAt = function () {
|
|
53357
53325
|
return jspb.Message.getField(this, 4) != null;
|
|
53358
53326
|
};
|
|
53359
|
-
/**
|
|
53360
|
-
* optional string user_id = 5;
|
|
53361
|
-
* @return {string}
|
|
53362
|
-
*/
|
|
53363
|
-
proto.clarifai.api.Nodepool.prototype.getUserId = function () {
|
|
53364
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
53365
|
-
};
|
|
53366
|
-
/**
|
|
53367
|
-
* @param {string} value
|
|
53368
|
-
* @return {!proto.clarifai.api.Nodepool} returns this
|
|
53369
|
-
*/
|
|
53370
|
-
proto.clarifai.api.Nodepool.prototype.setUserId = function (value) {
|
|
53371
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
53372
|
-
};
|
|
53373
53327
|
/**
|
|
53374
53328
|
* optional ComputeCluster compute_cluster = 6;
|
|
53375
53329
|
* @return {?proto.clarifai.api.ComputeCluster}
|
|
@@ -54008,7 +53962,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
54008
53962
|
region: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
54009
53963
|
userId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
54010
53964
|
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
54011
|
-
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
53965
|
+
modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
53966
|
+
visibility: (f = msg.getVisibility()) && proto.clarifai.api.Visibility.toObject(includeInstance, f)
|
|
54012
53967
|
};
|
|
54013
53968
|
if (includeInstance) {
|
|
54014
53969
|
obj.$jspbMessageInstance = msg;
|
|
@@ -54071,6 +54026,11 @@ proto.clarifai.api.ComputeCluster.deserializeBinaryFromReader = function (msg, r
|
|
|
54071
54026
|
reader.readMessage(value, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
54072
54027
|
msg.setModifiedAt(value);
|
|
54073
54028
|
break;
|
|
54029
|
+
case 8:
|
|
54030
|
+
var value = new proto.clarifai.api.Visibility;
|
|
54031
|
+
reader.readMessage(value, proto.clarifai.api.Visibility.deserializeBinaryFromReader);
|
|
54032
|
+
msg.setVisibility(value);
|
|
54033
|
+
break;
|
|
54074
54034
|
default:
|
|
54075
54035
|
reader.skipField();
|
|
54076
54036
|
break;
|
|
@@ -54124,6 +54084,10 @@ proto.clarifai.api.ComputeCluster.serializeBinaryToWriter = function (message, w
|
|
|
54124
54084
|
if (f != null) {
|
|
54125
54085
|
writer.writeMessage(7, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
|
|
54126
54086
|
}
|
|
54087
|
+
f = message.getVisibility();
|
|
54088
|
+
if (f != null) {
|
|
54089
|
+
writer.writeMessage(8, f, proto.clarifai.api.Visibility.serializeBinaryToWriter);
|
|
54090
|
+
}
|
|
54127
54091
|
};
|
|
54128
54092
|
/**
|
|
54129
54093
|
* optional string id = 1;
|
|
@@ -54265,6 +54229,34 @@ proto.clarifai.api.ComputeCluster.prototype.clearModifiedAt = function () {
|
|
|
54265
54229
|
proto.clarifai.api.ComputeCluster.prototype.hasModifiedAt = function () {
|
|
54266
54230
|
return jspb.Message.getField(this, 7) != null;
|
|
54267
54231
|
};
|
|
54232
|
+
/**
|
|
54233
|
+
* optional Visibility visibility = 8;
|
|
54234
|
+
* @return {?proto.clarifai.api.Visibility}
|
|
54235
|
+
*/
|
|
54236
|
+
proto.clarifai.api.ComputeCluster.prototype.getVisibility = function () {
|
|
54237
|
+
return /** @type{?proto.clarifai.api.Visibility} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.Visibility, 8));
|
|
54238
|
+
};
|
|
54239
|
+
/**
|
|
54240
|
+
* @param {?proto.clarifai.api.Visibility|undefined} value
|
|
54241
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54242
|
+
*/
|
|
54243
|
+
proto.clarifai.api.ComputeCluster.prototype.setVisibility = function (value) {
|
|
54244
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
54245
|
+
};
|
|
54246
|
+
/**
|
|
54247
|
+
* Clears the message field making it undefined.
|
|
54248
|
+
* @return {!proto.clarifai.api.ComputeCluster} returns this
|
|
54249
|
+
*/
|
|
54250
|
+
proto.clarifai.api.ComputeCluster.prototype.clearVisibility = function () {
|
|
54251
|
+
return this.setVisibility(undefined);
|
|
54252
|
+
};
|
|
54253
|
+
/**
|
|
54254
|
+
* Returns whether this field is set.
|
|
54255
|
+
* @return {boolean}
|
|
54256
|
+
*/
|
|
54257
|
+
proto.clarifai.api.ComputeCluster.prototype.hasVisibility = function () {
|
|
54258
|
+
return jspb.Message.getField(this, 8) != null;
|
|
54259
|
+
};
|
|
54268
54260
|
/**
|
|
54269
54261
|
* List of repeated fields within this message type.
|
|
54270
54262
|
* @private {!Array<number>}
|
|
@@ -5274,6 +5274,48 @@ proto.clarifai.api.V2PromiseClient.prototype.patchApps =
|
|
|
5274
5274
|
return this.client_.unaryCall(this.hostname_ +
|
|
5275
5275
|
'/clarifai.api.V2/PatchApps', request, metadata || {}, methodDescriptor_V2_PatchApps);
|
|
5276
5276
|
};
|
|
5277
|
+
/**
|
|
5278
|
+
* @const
|
|
5279
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
5280
|
+
* !proto.clarifai.api.PatchAppsDetailsRequest,
|
|
5281
|
+
* !proto.clarifai.api.MultiAppResponse>}
|
|
5282
|
+
*/
|
|
5283
|
+
const methodDescriptor_V2_PatchAppsDetails = new grpc.web.MethodDescriptor('/clarifai.api.V2/PatchAppsDetails', grpc.web.MethodType.UNARY, proto.clarifai.api.PatchAppsDetailsRequest, proto.clarifai.api.MultiAppResponse,
|
|
5284
|
+
/**
|
|
5285
|
+
* @param {!proto.clarifai.api.PatchAppsDetailsRequest} request
|
|
5286
|
+
* @return {!Uint8Array}
|
|
5287
|
+
*/
|
|
5288
|
+
function (request) {
|
|
5289
|
+
return request.serializeBinary();
|
|
5290
|
+
}, proto.clarifai.api.MultiAppResponse.deserializeBinary);
|
|
5291
|
+
/**
|
|
5292
|
+
* @param {!proto.clarifai.api.PatchAppsDetailsRequest} request The
|
|
5293
|
+
* request proto
|
|
5294
|
+
* @param {?Object<string, string>} metadata User defined
|
|
5295
|
+
* call metadata
|
|
5296
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiAppResponse)}
|
|
5297
|
+
* callback The callback function(error, response)
|
|
5298
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiAppResponse>|undefined}
|
|
5299
|
+
* The XHR Node Readable Stream
|
|
5300
|
+
*/
|
|
5301
|
+
proto.clarifai.api.V2Client.prototype.patchAppsDetails =
|
|
5302
|
+
function (request, metadata, callback) {
|
|
5303
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
5304
|
+
'/clarifai.api.V2/PatchAppsDetails', request, metadata || {}, methodDescriptor_V2_PatchAppsDetails, callback);
|
|
5305
|
+
};
|
|
5306
|
+
/**
|
|
5307
|
+
* @param {!proto.clarifai.api.PatchAppsDetailsRequest} request The
|
|
5308
|
+
* request proto
|
|
5309
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
5310
|
+
* call metadata
|
|
5311
|
+
* @return {!Promise<!proto.clarifai.api.MultiAppResponse>}
|
|
5312
|
+
* Promise that resolves to the response
|
|
5313
|
+
*/
|
|
5314
|
+
proto.clarifai.api.V2PromiseClient.prototype.patchAppsDetails =
|
|
5315
|
+
function (request, metadata) {
|
|
5316
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
5317
|
+
'/clarifai.api.V2/PatchAppsDetails', request, metadata || {}, methodDescriptor_V2_PatchAppsDetails);
|
|
5318
|
+
};
|
|
5277
5319
|
/**
|
|
5278
5320
|
* @const
|
|
5279
5321
|
* @type {!grpc.web.MethodDescriptor<
|