clarifai-web-grpc 10.6.3 → 10.6.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "10.6.3",
3
+ "version": "10.6.5",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1612,6 +1612,9 @@ export class Image extends jspb.Message {
1612
1612
  hasImageInfo(): boolean;
1613
1613
  clearImageInfo(): Image;
1614
1614
 
1615
+ getHostedImageInfoMap(): jspb.Map<string, ImageInfo>;
1616
+ clearHostedImageInfoMap(): Image;
1617
+
1615
1618
  serializeBinary(): Uint8Array;
1616
1619
  toObject(includeInstance?: boolean): Image.AsObject;
1617
1620
  static toObject(includeInstance: boolean, msg: Image): Image.AsObject;
@@ -1627,6 +1630,7 @@ export namespace Image {
1627
1630
  allowDuplicateUrl: boolean,
1628
1631
  hosted?: HostedURL.AsObject,
1629
1632
  imageInfo?: ImageInfo.AsObject,
1633
+ hostedImageInfoMap: Array<[string, ImageInfo.AsObject]>,
1630
1634
  }
1631
1635
  }
1632
1636
 
@@ -5821,6 +5825,7 @@ export namespace TaskWorker {
5821
5825
  WORKER_STRATEGY_NOT_SET = 0,
5822
5826
  PARTITIONED = 2,
5823
5827
  FULL = 3,
5828
+ DYNAMIC = 4,
5824
5829
  }
5825
5830
 
5826
5831
  export enum StrategyInfoCase {
@@ -8242,8 +8247,8 @@ export namespace ComputeCluster {
8242
8247
  }
8243
8248
 
8244
8249
  export class ComputeInfo extends jspb.Message {
8245
- getNumCpus(): number;
8246
- setNumCpus(value: number): ComputeInfo;
8250
+ getCpuLimit(): string;
8251
+ setCpuLimit(value: string): ComputeInfo;
8247
8252
 
8248
8253
  getCpuMemory(): string;
8249
8254
  setCpuMemory(value: string): ComputeInfo;
@@ -8269,7 +8274,7 @@ export class ComputeInfo extends jspb.Message {
8269
8274
 
8270
8275
  export namespace ComputeInfo {
8271
8276
  export type AsObject = {
8272
- numCpus: number,
8277
+ cpuLimit: string,
8273
8278
  cpuMemory: string,
8274
8279
  numAccelerators: number,
8275
8280
  acceleratorMemory: string,
@@ -8577,3 +8582,7 @@ export enum RunnerMethodType {
8577
8582
  STREAMING_UNARY = 3,
8578
8583
  STREAMING_STREAMING = 4,
8579
8584
  }
8585
+ export enum AuditOperationType {
8586
+ AUDIT_OPERATION_TYPE_NOT_SET = 0,
8587
+ APPLICATION_CREATE = 100,
8588
+ }
@@ -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
 
@@ -49690,7 +49725,8 @@ proto.clarifai.api.TaskWorker.serializeBinaryToWriter = function(message, writer
49690
49725
  proto.clarifai.api.TaskWorker.TaskWorkerStrategy = {
49691
49726
  WORKER_STRATEGY_NOT_SET: 0,
49692
49727
  PARTITIONED: 2,
49693
- FULL: 3
49728
+ FULL: 3,
49729
+ DYNAMIC: 4
49694
49730
  };
49695
49731
 
49696
49732
  /**
@@ -68026,7 +68062,7 @@ proto.clarifai.api.ComputeInfo.prototype.toObject = function(opt_includeInstance
68026
68062
  */
68027
68063
  proto.clarifai.api.ComputeInfo.toObject = function(includeInstance, msg) {
68028
68064
  var f, obj = {
68029
- numCpus: jspb.Message.getFieldWithDefault(msg, 1, 0),
68065
+ cpuLimit: jspb.Message.getFieldWithDefault(msg, 6, ""),
68030
68066
  cpuMemory: jspb.Message.getFieldWithDefault(msg, 2, ""),
68031
68067
  numAccelerators: jspb.Message.getFieldWithDefault(msg, 3, 0),
68032
68068
  acceleratorMemory: jspb.Message.getFieldWithDefault(msg, 4, ""),
@@ -68067,9 +68103,9 @@ proto.clarifai.api.ComputeInfo.deserializeBinaryFromReader = function(msg, reade
68067
68103
  }
68068
68104
  var field = reader.getFieldNumber();
68069
68105
  switch (field) {
68070
- case 1:
68071
- var value = /** @type {number} */ (reader.readUint32());
68072
- msg.setNumCpus(value);
68106
+ case 6:
68107
+ var value = /** @type {string} */ (reader.readString());
68108
+ msg.setCpuLimit(value);
68073
68109
  break;
68074
68110
  case 2:
68075
68111
  var value = /** @type {string} */ (reader.readString());
@@ -68116,10 +68152,10 @@ proto.clarifai.api.ComputeInfo.prototype.serializeBinary = function() {
68116
68152
  */
68117
68153
  proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function(message, writer) {
68118
68154
  var f = undefined;
68119
- f = message.getNumCpus();
68120
- if (f !== 0) {
68121
- writer.writeUint32(
68122
- 1,
68155
+ f = message.getCpuLimit();
68156
+ if (f.length > 0) {
68157
+ writer.writeString(
68158
+ 6,
68123
68159
  f
68124
68160
  );
68125
68161
  }
@@ -68155,20 +68191,20 @@ proto.clarifai.api.ComputeInfo.serializeBinaryToWriter = function(message, write
68155
68191
 
68156
68192
 
68157
68193
  /**
68158
- * optional uint32 num_cpus = 1;
68159
- * @return {number}
68194
+ * optional string cpu_limit = 6;
68195
+ * @return {string}
68160
68196
  */
68161
- proto.clarifai.api.ComputeInfo.prototype.getNumCpus = function() {
68162
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
68197
+ proto.clarifai.api.ComputeInfo.prototype.getCpuLimit = function() {
68198
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
68163
68199
  };
68164
68200
 
68165
68201
 
68166
68202
  /**
68167
- * @param {number} value
68203
+ * @param {string} value
68168
68204
  * @return {!proto.clarifai.api.ComputeInfo} returns this
68169
68205
  */
68170
- proto.clarifai.api.ComputeInfo.prototype.setNumCpus = function(value) {
68171
- return jspb.Message.setProto3IntField(this, 1, value);
68206
+ proto.clarifai.api.ComputeInfo.prototype.setCpuLimit = function(value) {
68207
+ return jspb.Message.setProto3StringField(this, 6, value);
68172
68208
  };
68173
68209
 
68174
68210
 
@@ -69772,4 +69808,12 @@ proto.clarifai.api.RunnerMethodType = {
69772
69808
  STREAMING_STREAMING: 4
69773
69809
  };
69774
69810
 
69811
+ /**
69812
+ * @enum {number}
69813
+ */
69814
+ proto.clarifai.api.AuditOperationType = {
69815
+ AUDIT_OPERATION_TYPE_NOT_SET: 0,
69816
+ APPLICATION_CREATE: 100
69817
+ };
69818
+
69775
69819
  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<
@@ -3461,6 +3461,11 @@ export class ListModelsRequest extends jspb.Message {
3461
3461
  getFilterByUserId(): boolean;
3462
3462
  setFilterByUserId(value: boolean): ListModelsRequest;
3463
3463
 
3464
+ getModelVersionIdsList(): Array<string>;
3465
+ setModelVersionIdsList(value: Array<string>): ListModelsRequest;
3466
+ clearModelVersionIdsList(): ListModelsRequest;
3467
+ addModelVersionIds(value: string, index?: number): ListModelsRequest;
3468
+
3464
3469
  getSortByCase(): ListModelsRequest.SortByCase;
3465
3470
 
3466
3471
  serializeBinary(): Uint8Array;
@@ -3499,6 +3504,7 @@ export namespace ListModelsRequest {
3499
3504
  query: string,
3500
3505
  name: string,
3501
3506
  filterByUserId: boolean,
3507
+ modelVersionIdsList: Array<string>,
3502
3508
  }
3503
3509
 
3504
3510
  export enum SortByCase {
@@ -10208,6 +10214,56 @@ export namespace MultiTrainingTimeEstimateResponse {
10208
10214
  }
10209
10215
  }
10210
10216
 
10217
+ export class ListInstanceTypesRequest extends jspb.Message {
10218
+ getCloudProvider(): proto_clarifai_api_resources_pb.CloudProvider | undefined;
10219
+ setCloudProvider(value?: proto_clarifai_api_resources_pb.CloudProvider): ListInstanceTypesRequest;
10220
+ hasCloudProvider(): boolean;
10221
+ clearCloudProvider(): ListInstanceTypesRequest;
10222
+
10223
+ getRegion(): string;
10224
+ setRegion(value: string): ListInstanceTypesRequest;
10225
+
10226
+ serializeBinary(): Uint8Array;
10227
+ toObject(includeInstance?: boolean): ListInstanceTypesRequest.AsObject;
10228
+ static toObject(includeInstance: boolean, msg: ListInstanceTypesRequest): ListInstanceTypesRequest.AsObject;
10229
+ static serializeBinaryToWriter(message: ListInstanceTypesRequest, writer: jspb.BinaryWriter): void;
10230
+ static deserializeBinary(bytes: Uint8Array): ListInstanceTypesRequest;
10231
+ static deserializeBinaryFromReader(message: ListInstanceTypesRequest, reader: jspb.BinaryReader): ListInstanceTypesRequest;
10232
+ }
10233
+
10234
+ export namespace ListInstanceTypesRequest {
10235
+ export type AsObject = {
10236
+ cloudProvider?: proto_clarifai_api_resources_pb.CloudProvider.AsObject,
10237
+ region: string,
10238
+ }
10239
+ }
10240
+
10241
+ export class MultiInstanceTypeResponse extends jspb.Message {
10242
+ getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
10243
+ setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiInstanceTypeResponse;
10244
+ hasStatus(): boolean;
10245
+ clearStatus(): MultiInstanceTypeResponse;
10246
+
10247
+ getInstanceTypesList(): Array<proto_clarifai_api_resources_pb.InstanceType>;
10248
+ setInstanceTypesList(value: Array<proto_clarifai_api_resources_pb.InstanceType>): MultiInstanceTypeResponse;
10249
+ clearInstanceTypesList(): MultiInstanceTypeResponse;
10250
+ addInstanceTypes(value?: proto_clarifai_api_resources_pb.InstanceType, index?: number): proto_clarifai_api_resources_pb.InstanceType;
10251
+
10252
+ serializeBinary(): Uint8Array;
10253
+ toObject(includeInstance?: boolean): MultiInstanceTypeResponse.AsObject;
10254
+ static toObject(includeInstance: boolean, msg: MultiInstanceTypeResponse): MultiInstanceTypeResponse.AsObject;
10255
+ static serializeBinaryToWriter(message: MultiInstanceTypeResponse, writer: jspb.BinaryWriter): void;
10256
+ static deserializeBinary(bytes: Uint8Array): MultiInstanceTypeResponse;
10257
+ static deserializeBinaryFromReader(message: MultiInstanceTypeResponse, reader: jspb.BinaryReader): MultiInstanceTypeResponse;
10258
+ }
10259
+
10260
+ export namespace MultiInstanceTypeResponse {
10261
+ export type AsObject = {
10262
+ status?: proto_clarifai_api_status_status_pb.Status.AsObject,
10263
+ instanceTypesList: Array<proto_clarifai_api_resources_pb.InstanceType.AsObject>,
10264
+ }
10265
+ }
10266
+
10211
10267
  export class GetComputeClusterRequest extends jspb.Message {
10212
10268
  getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
10213
10269
  setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetComputeClusterRequest;