clarifai-web-grpc 10.6.3 → 10.6.4
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 +51 -15
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +356 -0
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +51 -15
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +42 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +356 -0
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -1
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +11 -3
- package/proto/clarifai/api/resources_pb.js +59 -16
- 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 +50 -0
- package/proto/clarifai/api/service_pb.js +436 -0
- package/proto/clarifai/api/status/status_code_pb.d.ts +3 -0
- package/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -1
|
@@ -59,6 +59,7 @@ goog.exportSymbol('proto.clarifai.api.AppQuery', null, global);
|
|
|
59
59
|
goog.exportSymbol('proto.clarifai.api.AppResourceCounts', null, global);
|
|
60
60
|
goog.exportSymbol('proto.clarifai.api.Audio', null, global);
|
|
61
61
|
goog.exportSymbol('proto.clarifai.api.AudioInfo', null, global);
|
|
62
|
+
goog.exportSymbol('proto.clarifai.api.AuditOperationType', null, global);
|
|
62
63
|
goog.exportSymbol('proto.clarifai.api.AutoscaleConfig', null, global);
|
|
63
64
|
goog.exportSymbol('proto.clarifai.api.AzureBlobCreds', null, global);
|
|
64
65
|
goog.exportSymbol('proto.clarifai.api.BinaryMetrics', null, global);
|
|
@@ -16934,7 +16935,8 @@ proto.clarifai.api.Image.toObject = function(includeInstance, msg) {
|
|
|
16934
16935
|
base64: msg.getBase64_asB64(),
|
|
16935
16936
|
allowDuplicateUrl: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
16936
16937
|
hosted: (f = msg.getHosted()) && proto.clarifai.api.HostedURL.toObject(includeInstance, f),
|
|
16937
|
-
imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f)
|
|
16938
|
+
imageInfo: (f = msg.getImageInfo()) && proto.clarifai.api.ImageInfo.toObject(includeInstance, f),
|
|
16939
|
+
hostedImageInfoMap: (f = msg.getHostedImageInfoMap()) ? f.toObject(includeInstance, proto.clarifai.api.ImageInfo.toObject) : []
|
|
16938
16940
|
};
|
|
16939
16941
|
|
|
16940
16942
|
if (includeInstance) {
|
|
@@ -16993,6 +16995,12 @@ proto.clarifai.api.Image.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
16993
16995
|
reader.readMessage(value,proto.clarifai.api.ImageInfo.deserializeBinaryFromReader);
|
|
16994
16996
|
msg.setImageInfo(value);
|
|
16995
16997
|
break;
|
|
16998
|
+
case 7:
|
|
16999
|
+
var value = msg.getHostedImageInfoMap();
|
|
17000
|
+
reader.readMessage(value, function(message, reader) {
|
|
17001
|
+
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clarifai.api.ImageInfo.deserializeBinaryFromReader, "", new proto.clarifai.api.ImageInfo());
|
|
17002
|
+
});
|
|
17003
|
+
break;
|
|
16996
17004
|
default:
|
|
16997
17005
|
reader.skipField();
|
|
16998
17006
|
break;
|
|
@@ -17059,6 +17067,10 @@ proto.clarifai.api.Image.serializeBinaryToWriter = function(message, writer) {
|
|
|
17059
17067
|
proto.clarifai.api.ImageInfo.serializeBinaryToWriter
|
|
17060
17068
|
);
|
|
17061
17069
|
}
|
|
17070
|
+
f = message.getHostedImageInfoMap(true);
|
|
17071
|
+
if (f && f.getLength() > 0) {
|
|
17072
|
+
f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clarifai.api.ImageInfo.serializeBinaryToWriter);
|
|
17073
|
+
}
|
|
17062
17074
|
};
|
|
17063
17075
|
|
|
17064
17076
|
|
|
@@ -17214,6 +17226,29 @@ proto.clarifai.api.Image.prototype.hasImageInfo = function() {
|
|
|
17214
17226
|
};
|
|
17215
17227
|
|
|
17216
17228
|
|
|
17229
|
+
/**
|
|
17230
|
+
* map<string, ImageInfo> hosted_image_info = 7;
|
|
17231
|
+
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
|
17232
|
+
* empty, instead returning `undefined`
|
|
17233
|
+
* @return {!jspb.Map<string,!proto.clarifai.api.ImageInfo>}
|
|
17234
|
+
*/
|
|
17235
|
+
proto.clarifai.api.Image.prototype.getHostedImageInfoMap = function(opt_noLazyCreate) {
|
|
17236
|
+
return /** @type {!jspb.Map<string,!proto.clarifai.api.ImageInfo>} */ (
|
|
17237
|
+
jspb.Message.getMapField(this, 7, opt_noLazyCreate,
|
|
17238
|
+
proto.clarifai.api.ImageInfo));
|
|
17239
|
+
};
|
|
17240
|
+
|
|
17241
|
+
|
|
17242
|
+
/**
|
|
17243
|
+
* Clears values from the map. The map will be non-null.
|
|
17244
|
+
* @return {!proto.clarifai.api.Image} returns this
|
|
17245
|
+
*/
|
|
17246
|
+
proto.clarifai.api.Image.prototype.clearHostedImageInfoMap = function() {
|
|
17247
|
+
this.getHostedImageInfoMap().clear();
|
|
17248
|
+
return this;
|
|
17249
|
+
};
|
|
17250
|
+
|
|
17251
|
+
|
|
17217
17252
|
|
|
17218
17253
|
|
|
17219
17254
|
|
|
@@ -68026,7 +68061,7 @@ proto.clarifai.api.ComputeInfo.prototype.toObject = function(opt_includeInstance
|
|
|
68026
68061
|
*/
|
|
68027
68062
|
proto.clarifai.api.ComputeInfo.toObject = function(includeInstance, msg) {
|
|
68028
68063
|
var f, obj = {
|
|
68029
|
-
|
|
68064
|
+
cpuLimit: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
68030
68065
|
cpuMemory: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
68031
68066
|
numAccelerators: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
68032
68067
|
acceleratorMemory: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
@@ -68067,9 +68102,9 @@ proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader = function(msg, reade
|
|
|
68067
68102
|
}
|
|
68068
68103
|
var field = reader.getFieldNumber();
|
|
68069
68104
|
switch (field) {
|
|
68070
|
-
case
|
|
68071
|
-
var value = /** @type {
|
|
68072
|
-
msg.
|
|
68105
|
+
case 6:
|
|
68106
|
+
var value = /** @type {string} */ (reader.readString());
|
|
68107
|
+
msg.setCpuLimit(value);
|
|
68073
68108
|
break;
|
|
68074
68109
|
case 2:
|
|
68075
68110
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -68116,10 +68151,10 @@ proto.clarifai.api.ComputeInfo.prototype.serializeBinary = function() {
|
|
|
68116
68151
|
*/
|
|
68117
68152
|
proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function(message, writer) {
|
|
68118
68153
|
var f = undefined;
|
|
68119
|
-
f = message.
|
|
68120
|
-
if (f
|
|
68121
|
-
writer.
|
|
68122
|
-
|
|
68154
|
+
f = message.getCpuLimit();
|
|
68155
|
+
if (f.length > 0) {
|
|
68156
|
+
writer.writeString(
|
|
68157
|
+
6,
|
|
68123
68158
|
f
|
|
68124
68159
|
);
|
|
68125
68160
|
}
|
|
@@ -68155,20 +68190,20 @@ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function(message, write
|
|
|
68155
68190
|
|
|
68156
68191
|
|
|
68157
68192
|
/**
|
|
68158
|
-
* optional
|
|
68159
|
-
* @return {
|
|
68193
|
+
* optional string cpu_limit = 6;
|
|
68194
|
+
* @return {string}
|
|
68160
68195
|
*/
|
|
68161
|
-
proto.clarifai.api.ComputeInfo.prototype.
|
|
68162
|
-
return /** @type {
|
|
68196
|
+
proto.clarifai.api.ComputeInfo.prototype.getCpuLimit = function() {
|
|
68197
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
68163
68198
|
};
|
|
68164
68199
|
|
|
68165
68200
|
|
|
68166
68201
|
/**
|
|
68167
|
-
* @param {
|
|
68202
|
+
* @param {string} value
|
|
68168
68203
|
* @return {!proto.clarifai.api.ComputeInfo} returns this
|
|
68169
68204
|
*/
|
|
68170
|
-
proto.clarifai.api.ComputeInfo.prototype.
|
|
68171
|
-
return jspb.Message.
|
|
68205
|
+
proto.clarifai.api.ComputeInfo.prototype.setCpuLimit = function(value) {
|
|
68206
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
68172
68207
|
};
|
|
68173
68208
|
|
|
68174
68209
|
|
|
@@ -69772,4 +69807,12 @@ proto.clarifai.api.RunnerMethodType = {
|
|
|
69772
69807
|
STREAMING_STREAMING: 4
|
|
69773
69808
|
};
|
|
69774
69809
|
|
|
69810
|
+
/**
|
|
69811
|
+
* @enum {number}
|
|
69812
|
+
*/
|
|
69813
|
+
proto.clarifai.api.AuditOperationType = {
|
|
69814
|
+
AUDIT_OPERATION_TYPE_NOT_SET: 0,
|
|
69815
|
+
APPLICATION_CREATE: 100
|
|
69816
|
+
};
|
|
69817
|
+
|
|
69775
69818
|
goog.object.extend(exports, proto.clarifai.api);
|
|
@@ -1540,6 +1540,13 @@ export class V2Client {
|
|
|
1540
1540
|
response: proto_clarifai_api_service_pb.MultiTrainingTimeEstimateResponse) => void
|
|
1541
1541
|
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiTrainingTimeEstimateResponse>;
|
|
1542
1542
|
|
|
1543
|
+
listInstanceTypes(
|
|
1544
|
+
request: proto_clarifai_api_service_pb.ListInstanceTypesRequest,
|
|
1545
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
1546
|
+
callback: (err: grpcWeb.RpcError,
|
|
1547
|
+
response: proto_clarifai_api_service_pb.MultiInstanceTypeResponse) => void
|
|
1548
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiInstanceTypeResponse>;
|
|
1549
|
+
|
|
1543
1550
|
getComputeCluster(
|
|
1544
1551
|
request: proto_clarifai_api_service_pb.GetComputeClusterRequest,
|
|
1545
1552
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -2740,6 +2747,11 @@ export class V2PromiseClient {
|
|
|
2740
2747
|
metadata?: grpcWeb.Metadata
|
|
2741
2748
|
): Promise<proto_clarifai_api_service_pb.MultiTrainingTimeEstimateResponse>;
|
|
2742
2749
|
|
|
2750
|
+
listInstanceTypes(
|
|
2751
|
+
request: proto_clarifai_api_service_pb.ListInstanceTypesRequest,
|
|
2752
|
+
metadata?: grpcWeb.Metadata
|
|
2753
|
+
): Promise<proto_clarifai_api_service_pb.MultiInstanceTypeResponse>;
|
|
2754
|
+
|
|
2743
2755
|
getComputeCluster(
|
|
2744
2756
|
request: proto_clarifai_api_service_pb.GetComputeClusterRequest,
|
|
2745
2757
|
metadata?: grpcWeb.Metadata
|
|
@@ -13449,6 +13449,67 @@ proto.clarifai.api.V2PromiseClient.prototype.postModelVersionsTrainingTimeEstima
|
|
|
13449
13449
|
};
|
|
13450
13450
|
|
|
13451
13451
|
|
|
13452
|
+
/**
|
|
13453
|
+
* @const
|
|
13454
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
13455
|
+
* !proto.clarifai.api.ListInstanceTypesRequest,
|
|
13456
|
+
* !proto.clarifai.api.MultiInstanceTypeResponse>}
|
|
13457
|
+
*/
|
|
13458
|
+
const methodDescriptor_V2_ListInstanceTypes = new grpc.web.MethodDescriptor(
|
|
13459
|
+
'/clarifai.api.V2/ListInstanceTypes',
|
|
13460
|
+
grpc.web.MethodType.UNARY,
|
|
13461
|
+
proto.clarifai.api.ListInstanceTypesRequest,
|
|
13462
|
+
proto.clarifai.api.MultiInstanceTypeResponse,
|
|
13463
|
+
/**
|
|
13464
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} request
|
|
13465
|
+
* @return {!Uint8Array}
|
|
13466
|
+
*/
|
|
13467
|
+
function(request) {
|
|
13468
|
+
return request.serializeBinary();
|
|
13469
|
+
},
|
|
13470
|
+
proto.clarifai.api.MultiInstanceTypeResponse.deserializeBinary
|
|
13471
|
+
);
|
|
13472
|
+
|
|
13473
|
+
|
|
13474
|
+
/**
|
|
13475
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} request The
|
|
13476
|
+
* request proto
|
|
13477
|
+
* @param {?Object<string, string>} metadata User defined
|
|
13478
|
+
* call metadata
|
|
13479
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiInstanceTypeResponse)}
|
|
13480
|
+
* callback The callback function(error, response)
|
|
13481
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiInstanceTypeResponse>|undefined}
|
|
13482
|
+
* The XHR Node Readable Stream
|
|
13483
|
+
*/
|
|
13484
|
+
proto.clarifai.api.V2Client.prototype.listInstanceTypes =
|
|
13485
|
+
function(request, metadata, callback) {
|
|
13486
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
13487
|
+
'/clarifai.api.V2/ListInstanceTypes',
|
|
13488
|
+
request,
|
|
13489
|
+
metadata || {},
|
|
13490
|
+
methodDescriptor_V2_ListInstanceTypes,
|
|
13491
|
+
callback);
|
|
13492
|
+
};
|
|
13493
|
+
|
|
13494
|
+
|
|
13495
|
+
/**
|
|
13496
|
+
* @param {!proto.clarifai.api.ListInstanceTypesRequest} request The
|
|
13497
|
+
* request proto
|
|
13498
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
13499
|
+
* call metadata
|
|
13500
|
+
* @return {!Promise<!proto.clarifai.api.MultiInstanceTypeResponse>}
|
|
13501
|
+
* Promise that resolves to the response
|
|
13502
|
+
*/
|
|
13503
|
+
proto.clarifai.api.V2PromiseClient.prototype.listInstanceTypes =
|
|
13504
|
+
function(request, metadata) {
|
|
13505
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
13506
|
+
'/clarifai.api.V2/ListInstanceTypes',
|
|
13507
|
+
request,
|
|
13508
|
+
metadata || {},
|
|
13509
|
+
methodDescriptor_V2_ListInstanceTypes);
|
|
13510
|
+
};
|
|
13511
|
+
|
|
13512
|
+
|
|
13452
13513
|
/**
|
|
13453
13514
|
* @const
|
|
13454
13515
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -10208,6 +10208,56 @@ export namespace MultiTrainingTimeEstimateResponse {
|
|
|
10208
10208
|
}
|
|
10209
10209
|
}
|
|
10210
10210
|
|
|
10211
|
+
export class ListInstanceTypesRequest extends jspb.Message {
|
|
10212
|
+
getCloudProvider(): proto_clarifai_api_resources_pb.CloudProvider | undefined;
|
|
10213
|
+
setCloudProvider(value?: proto_clarifai_api_resources_pb.CloudProvider): ListInstanceTypesRequest;
|
|
10214
|
+
hasCloudProvider(): boolean;
|
|
10215
|
+
clearCloudProvider(): ListInstanceTypesRequest;
|
|
10216
|
+
|
|
10217
|
+
getRegion(): string;
|
|
10218
|
+
setRegion(value: string): ListInstanceTypesRequest;
|
|
10219
|
+
|
|
10220
|
+
serializeBinary(): Uint8Array;
|
|
10221
|
+
toObject(includeInstance?: boolean): ListInstanceTypesRequest.AsObject;
|
|
10222
|
+
static toObject(includeInstance: boolean, msg: ListInstanceTypesRequest): ListInstanceTypesRequest.AsObject;
|
|
10223
|
+
static serializeBinaryToWriter(message: ListInstanceTypesRequest, writer: jspb.BinaryWriter): void;
|
|
10224
|
+
static deserializeBinary(bytes: Uint8Array): ListInstanceTypesRequest;
|
|
10225
|
+
static deserializeBinaryFromReader(message: ListInstanceTypesRequest, reader: jspb.BinaryReader): ListInstanceTypesRequest;
|
|
10226
|
+
}
|
|
10227
|
+
|
|
10228
|
+
export namespace ListInstanceTypesRequest {
|
|
10229
|
+
export type AsObject = {
|
|
10230
|
+
cloudProvider?: proto_clarifai_api_resources_pb.CloudProvider.AsObject,
|
|
10231
|
+
region: string,
|
|
10232
|
+
}
|
|
10233
|
+
}
|
|
10234
|
+
|
|
10235
|
+
export class MultiInstanceTypeResponse extends jspb.Message {
|
|
10236
|
+
getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
|
|
10237
|
+
setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiInstanceTypeResponse;
|
|
10238
|
+
hasStatus(): boolean;
|
|
10239
|
+
clearStatus(): MultiInstanceTypeResponse;
|
|
10240
|
+
|
|
10241
|
+
getInstanceTypesList(): Array<proto_clarifai_api_resources_pb.InstanceType>;
|
|
10242
|
+
setInstanceTypesList(value: Array<proto_clarifai_api_resources_pb.InstanceType>): MultiInstanceTypeResponse;
|
|
10243
|
+
clearInstanceTypesList(): MultiInstanceTypeResponse;
|
|
10244
|
+
addInstanceTypes(value?: proto_clarifai_api_resources_pb.InstanceType, index?: number): proto_clarifai_api_resources_pb.InstanceType;
|
|
10245
|
+
|
|
10246
|
+
serializeBinary(): Uint8Array;
|
|
10247
|
+
toObject(includeInstance?: boolean): MultiInstanceTypeResponse.AsObject;
|
|
10248
|
+
static toObject(includeInstance: boolean, msg: MultiInstanceTypeResponse): MultiInstanceTypeResponse.AsObject;
|
|
10249
|
+
static serializeBinaryToWriter(message: MultiInstanceTypeResponse, writer: jspb.BinaryWriter): void;
|
|
10250
|
+
static deserializeBinary(bytes: Uint8Array): MultiInstanceTypeResponse;
|
|
10251
|
+
static deserializeBinaryFromReader(message: MultiInstanceTypeResponse, reader: jspb.BinaryReader): MultiInstanceTypeResponse;
|
|
10252
|
+
}
|
|
10253
|
+
|
|
10254
|
+
export namespace MultiInstanceTypeResponse {
|
|
10255
|
+
export type AsObject = {
|
|
10256
|
+
status?: proto_clarifai_api_status_status_pb.Status.AsObject,
|
|
10257
|
+
instanceTypesList: Array<proto_clarifai_api_resources_pb.InstanceType.AsObject>,
|
|
10258
|
+
}
|
|
10259
|
+
}
|
|
10260
|
+
|
|
10211
10261
|
export class GetComputeClusterRequest extends jspb.Message {
|
|
10212
10262
|
getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
|
|
10213
10263
|
setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetComputeClusterRequest;
|