clarifai-web-grpc 10.11.2 → 11.0.1

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.
@@ -42336,7 +42336,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
42336
42336
  proto.clarifai.api.MultiLogEntryResponse.toObject = function (includeInstance, msg) {
42337
42337
  var f, obj = {
42338
42338
  status: (f = msg.getStatus()) && proto_clarifai_api_status_status_pb.Status.toObject(includeInstance, f),
42339
- logEntriesList: jspb.Message.toObjectList(msg.getLogEntriesList(), proto_clarifai_api_resources_pb.LogEntry.toObject, includeInstance)
42339
+ logEntriesList: jspb.Message.toObjectList(msg.getLogEntriesList(), proto_clarifai_api_resources_pb.LogEntry.toObject, includeInstance),
42340
+ page: jspb.Message.getFieldWithDefault(msg, 4, 0),
42341
+ perPage: jspb.Message.getFieldWithDefault(msg, 5, 0)
42340
42342
  };
42341
42343
  if (includeInstance) {
42342
42344
  obj.$jspbMessageInstance = msg;
@@ -42378,6 +42380,14 @@ proto.clarifai.api.MultiLogEntryResponse.deserializeBinaryFromReader = function
42378
42380
  reader.readMessage(value, proto_clarifai_api_resources_pb.LogEntry.deserializeBinaryFromReader);
42379
42381
  msg.addLogEntries(value);
42380
42382
  break;
42383
+ case 4:
42384
+ var value = /** @type {number} */ (reader.readUint32());
42385
+ msg.setPage(value);
42386
+ break;
42387
+ case 5:
42388
+ var value = /** @type {number} */ (reader.readUint32());
42389
+ msg.setPerPage(value);
42390
+ break;
42381
42391
  default:
42382
42392
  reader.skipField();
42383
42393
  break;
@@ -42411,6 +42421,14 @@ proto.clarifai.api.MultiLogEntryResponse.serializeBinaryToWriter = function (mes
42411
42421
  if (f.length > 0) {
42412
42422
  writer.writeRepeatedMessage(2, f, proto_clarifai_api_resources_pb.LogEntry.serializeBinaryToWriter);
42413
42423
  }
42424
+ f = message.getPage();
42425
+ if (f !== 0) {
42426
+ writer.writeUint32(4, f);
42427
+ }
42428
+ f = message.getPerPage();
42429
+ if (f !== 0) {
42430
+ writer.writeUint32(5, f);
42431
+ }
42414
42432
  };
42415
42433
  /**
42416
42434
  * optional status.Status status = 1;
@@ -42469,6 +42487,34 @@ proto.clarifai.api.MultiLogEntryResponse.prototype.addLogEntries = function (opt
42469
42487
  proto.clarifai.api.MultiLogEntryResponse.prototype.clearLogEntriesList = function () {
42470
42488
  return this.setLogEntriesList([]);
42471
42489
  };
42490
+ /**
42491
+ * optional uint32 page = 4;
42492
+ * @return {number}
42493
+ */
42494
+ proto.clarifai.api.MultiLogEntryResponse.prototype.getPage = function () {
42495
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
42496
+ };
42497
+ /**
42498
+ * @param {number} value
42499
+ * @return {!proto.clarifai.api.MultiLogEntryResponse} returns this
42500
+ */
42501
+ proto.clarifai.api.MultiLogEntryResponse.prototype.setPage = function (value) {
42502
+ return jspb.Message.setProto3IntField(this, 4, value);
42503
+ };
42504
+ /**
42505
+ * optional uint32 per_page = 5;
42506
+ * @return {number}
42507
+ */
42508
+ proto.clarifai.api.MultiLogEntryResponse.prototype.getPerPage = function () {
42509
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
42510
+ };
42511
+ /**
42512
+ * @param {number} value
42513
+ * @return {!proto.clarifai.api.MultiLogEntryResponse} returns this
42514
+ */
42515
+ proto.clarifai.api.MultiLogEntryResponse.prototype.setPerPage = function (value) {
42516
+ return jspb.Message.setProto3IntField(this, 5, value);
42517
+ };
42472
42518
  if (jspb.Message.GENERATE_TO_OBJECT) {
42473
42519
  /**
42474
42520
  * Creates an object representation of this proto.
@@ -92,6 +92,8 @@ proto.clarifai.api.status.StatusCode = {
92
92
  MODEL_DEPLOYING: 21351,
93
93
  MODEL_QUEUED_FOR_DEPLOYMENT: 21352,
94
94
  MODEL_NOT_DEPLOYED: 21353,
95
+ MODEL_BUSY_PLEASE_RETRY: 21354,
96
+ MODEL_LOADING: 21355,
95
97
  MODEL_REFERENCE_INVALID_ARGUMENT: 21400,
96
98
  MODEL_EXAMPLE_INPUT_INVALID_ARGUMENT: 21420,
97
99
  MODEL_EXPORTED: 21500,
@@ -185,6 +187,10 @@ proto.clarifai.api.status.StatusCode = {
185
187
  INSTANCE_TYPE_DOES_NOT_EXIST: 26000,
186
188
  INSTANCE_TYPE_INVALID_ARGUMENT: 26001,
187
189
  INSTANCE_TYPE_INVALID_REQUEST: 26002,
190
+ INPUT_SUCCESS: 30000,
191
+ INPUT_PENDING: 30001,
192
+ INPUT_FAILED: 30002,
193
+ INPUT_IN_PROGRESS: 30003,
188
194
  INPUT_DOWNLOAD_SUCCESS: 30000,
189
195
  INPUT_DOWNLOAD_PENDING: 30001,
190
196
  INPUT_DOWNLOAD_FAILED: 30002,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "10.11.2",
3
+ "version": "11.0.1",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1703,6 +1703,11 @@ export class Image extends jspb.Message {
1703
1703
  getHostedImageInfoMap(): jspb.Map<string, ImageInfo>;
1704
1704
  clearHostedImageInfoMap(): Image;
1705
1705
 
1706
+ getDecodedBytes(): Uint8Array | string;
1707
+ getDecodedBytes_asU8(): Uint8Array;
1708
+ getDecodedBytes_asB64(): string;
1709
+ setDecodedBytes(value: Uint8Array | string): Image;
1710
+
1706
1711
  serializeBinary(): Uint8Array;
1707
1712
  toObject(includeInstance?: boolean): Image.AsObject;
1708
1713
  static toObject(includeInstance: boolean, msg: Image): Image.AsObject;
@@ -1719,6 +1724,7 @@ export namespace Image {
1719
1724
  hosted?: HostedURL.AsObject,
1720
1725
  imageInfo?: ImageInfo.AsObject,
1721
1726
  hostedImageInfoMap: Array<[string, ImageInfo.AsObject]>,
1727
+ decodedBytes: Uint8Array | string,
1722
1728
  }
1723
1729
  }
1724
1730
 
@@ -1735,6 +1741,9 @@ export class ImageInfo extends jspb.Message {
1735
1741
  getColorMode(): string;
1736
1742
  setColorMode(value: string): ImageInfo;
1737
1743
 
1744
+ getMode(): string;
1745
+ setMode(value: string): ImageInfo;
1746
+
1738
1747
  serializeBinary(): Uint8Array;
1739
1748
  toObject(includeInstance?: boolean): ImageInfo.AsObject;
1740
1749
  static toObject(includeInstance: boolean, msg: ImageInfo): ImageInfo.AsObject;
@@ -1749,6 +1758,7 @@ export namespace ImageInfo {
1749
1758
  height: number,
1750
1759
  format: string,
1751
1760
  colorMode: string,
1761
+ mode: string,
1752
1762
  }
1753
1763
  }
1754
1764
 
@@ -6403,6 +6413,11 @@ export class TaskReviewMetrics extends jspb.Message {
6403
6413
  getInputsCountEstimated(): number;
6404
6414
  setInputsCountEstimated(value: number): TaskReviewMetrics;
6405
6415
 
6416
+ getInputsCountEstimatedPerReviewerList(): Array<number>;
6417
+ setInputsCountEstimatedPerReviewerList(value: Array<number>): TaskReviewMetrics;
6418
+ clearInputsCountEstimatedPerReviewerList(): TaskReviewMetrics;
6419
+ addInputsCountEstimatedPerReviewer(value: number, index?: number): TaskReviewMetrics;
6420
+
6406
6421
  getInputsPercentEstimated(): number;
6407
6422
  setInputsPercentEstimated(value: number): TaskReviewMetrics;
6408
6423
 
@@ -6417,6 +6432,7 @@ export class TaskReviewMetrics extends jspb.Message {
6417
6432
  export namespace TaskReviewMetrics {
6418
6433
  export type AsObject = {
6419
6434
  inputsCountEstimated: number,
6435
+ inputsCountEstimatedPerReviewerList: Array<number>,
6420
6436
  inputsPercentEstimated: number,
6421
6437
  }
6422
6438
  }
@@ -7251,6 +7267,11 @@ export class BulkOperation extends jspb.Message {
7251
7267
  hasDataset(): boolean;
7252
7268
  clearDataset(): BulkOperation;
7253
7269
 
7270
+ getAnnotationSearch(): Search | undefined;
7271
+ setAnnotationSearch(value?: Search): BulkOperation;
7272
+ hasAnnotationSearch(): boolean;
7273
+ clearAnnotationSearch(): BulkOperation;
7274
+
7254
7275
  getOperation(): Operation | undefined;
7255
7276
  setOperation(value?: Operation): BulkOperation;
7256
7277
  hasOperation(): boolean;
@@ -7284,6 +7305,8 @@ export class BulkOperation extends jspb.Message {
7284
7305
 
7285
7306
  getInputSourceCase(): BulkOperation.InputSourceCase;
7286
7307
 
7308
+ getAnnotationSourceCase(): BulkOperation.AnnotationSourceCase;
7309
+
7287
7310
  serializeBinary(): Uint8Array;
7288
7311
  toObject(includeInstance?: boolean): BulkOperation.AsObject;
7289
7312
  static toObject(includeInstance: boolean, msg: BulkOperation): BulkOperation.AsObject;
@@ -7298,6 +7321,7 @@ export namespace BulkOperation {
7298
7321
  inputIds?: InputIDs.AsObject,
7299
7322
  search?: Search.AsObject,
7300
7323
  dataset?: Dataset.AsObject,
7324
+ annotationSearch?: Search.AsObject,
7301
7325
  operation?: Operation.AsObject,
7302
7326
  appId: string,
7303
7327
  status?: proto_clarifai_api_status_status_pb.Status.AsObject,
@@ -7313,6 +7337,11 @@ export namespace BulkOperation {
7313
7337
  SEARCH = 10,
7314
7338
  DATASET = 11,
7315
7339
  }
7340
+
7341
+ export enum AnnotationSourceCase {
7342
+ ANNOTATION_SOURCE_NOT_SET = 0,
7343
+ ANNOTATION_SEARCH = 12,
7344
+ }
7316
7345
  }
7317
7346
 
7318
7347
  export class InputIDs extends jspb.Message {
@@ -7403,8 +7432,15 @@ export class Operation extends jspb.Message {
7403
7432
  hasSplitIntoDatasets(): boolean;
7404
7433
  clearSplitIntoDatasets(): Operation;
7405
7434
 
7435
+ getDeleteAnnotations(): DeleteAnnotations | undefined;
7436
+ setDeleteAnnotations(value?: DeleteAnnotations): Operation;
7437
+ hasDeleteAnnotations(): boolean;
7438
+ clearDeleteAnnotations(): Operation;
7439
+
7406
7440
  getOperationCase(): Operation.OperationCase;
7407
7441
 
7442
+ getAnnotationOperationCase(): Operation.AnnotationOperationCase;
7443
+
7408
7444
  serializeBinary(): Uint8Array;
7409
7445
  toObject(includeInstance?: boolean): Operation.AsObject;
7410
7446
  static toObject(includeInstance: boolean, msg: Operation): Operation.AsObject;
@@ -7424,6 +7460,7 @@ export namespace Operation {
7424
7460
  deleteFromDataset?: DeleteFromDataset.AsObject,
7425
7461
  addToDataset?: AddToDataset.AsObject,
7426
7462
  splitIntoDatasets?: SplitIntoDatasets.AsObject,
7463
+ deleteAnnotations?: DeleteAnnotations.AsObject,
7427
7464
  }
7428
7465
 
7429
7466
  export enum OperationCase {
@@ -7438,6 +7475,11 @@ export namespace Operation {
7438
7475
  ADD_TO_DATASET = 8,
7439
7476
  SPLIT_INTO_DATASETS = 9,
7440
7477
  }
7478
+
7479
+ export enum AnnotationOperationCase {
7480
+ ANNOTATION_OPERATION_NOT_SET = 0,
7481
+ DELETE_ANNOTATIONS = 10,
7482
+ }
7441
7483
  }
7442
7484
 
7443
7485
  export class AddConcepts extends jspb.Message {
@@ -7656,6 +7698,20 @@ export namespace DatasetSplit {
7656
7698
  }
7657
7699
  }
7658
7700
 
7701
+ export class DeleteAnnotations extends jspb.Message {
7702
+ serializeBinary(): Uint8Array;
7703
+ toObject(includeInstance?: boolean): DeleteAnnotations.AsObject;
7704
+ static toObject(includeInstance: boolean, msg: DeleteAnnotations): DeleteAnnotations.AsObject;
7705
+ static serializeBinaryToWriter(message: DeleteAnnotations, writer: jspb.BinaryWriter): void;
7706
+ static deserializeBinary(bytes: Uint8Array): DeleteAnnotations;
7707
+ static deserializeBinaryFromReader(message: DeleteAnnotations, reader: jspb.BinaryReader): DeleteAnnotations;
7708
+ }
7709
+
7710
+ export namespace DeleteAnnotations {
7711
+ export type AsObject = {
7712
+ }
7713
+ }
7714
+
7659
7715
  export class InputsAddJob extends jspb.Message {
7660
7716
  getId(): string;
7661
7717
  setId(value: string): InputsAddJob;
@@ -8702,6 +8758,16 @@ export class AuditLogTarget extends jspb.Message {
8702
8758
  hasWorkflowVersion(): boolean;
8703
8759
  clearWorkflowVersion(): AuditLogTarget;
8704
8760
 
8761
+ getModel(): Model | undefined;
8762
+ setModel(value?: Model): AuditLogTarget;
8763
+ hasModel(): boolean;
8764
+ clearModel(): AuditLogTarget;
8765
+
8766
+ getModelVersion(): ModelVersion | undefined;
8767
+ setModelVersion(value?: ModelVersion): AuditLogTarget;
8768
+ hasModelVersion(): boolean;
8769
+ clearModelVersion(): AuditLogTarget;
8770
+
8705
8771
  getTargetCase(): AuditLogTarget.TargetCase;
8706
8772
 
8707
8773
  serializeBinary(): Uint8Array;
@@ -8722,6 +8788,8 @@ export namespace AuditLogTarget {
8722
8788
  moduleVersion?: ModuleVersion.AsObject,
8723
8789
  workflow?: Workflow.AsObject,
8724
8790
  workflowVersion?: WorkflowVersion.AsObject,
8791
+ model?: Model.AsObject,
8792
+ modelVersion?: ModelVersion.AsObject,
8725
8793
  }
8726
8794
 
8727
8795
  export enum TargetCase {
@@ -8734,6 +8802,8 @@ export namespace AuditLogTarget {
8734
8802
  MODULE_VERSION = 6,
8735
8803
  WORKFLOW = 7,
8736
8804
  WORKFLOW_VERSION = 8,
8805
+ MODEL = 9,
8806
+ MODEL_VERSION = 10,
8737
8807
  }
8738
8808
  }
8739
8809
 
@@ -9162,13 +9232,23 @@ export enum EventType {
9162
9232
  MODULE_VERSION_CREATE = 203,
9163
9233
  MODULE_VERSION_UPDATE = 204,
9164
9234
  MODULE_VERSION_DELETE = 205,
9235
+ MODEL_CREATE = 300,
9236
+ MODEL_UPDATE = 301,
9237
+ MODEL_DELETE = 302,
9238
+ MODEL_VERSION_CREATE = 303,
9239
+ MODEL_VERSION_UPDATE = 304,
9240
+ MODEL_VERSION_DELETE = 305,
9165
9241
  WORKFLOW_CREATE = 400,
9166
9242
  WORKFLOW_UPDATE = 401,
9167
9243
  WORKFLOW_DELETE = 402,
9168
9244
  WORKFLOW_VERSION_CREATE = 403,
9169
9245
  WORKFLOW_VERSION_UPDATE = 404,
9170
9246
  WORKFLOW_VERSION_DELETE = 405,
9247
+ APPLICATION_CREATE = 600,
9248
+ APPLICATION_UPDATE = 601,
9249
+ APPLICATION_DELETE = 602,
9171
9250
  COLLABORATOR_ADD = 700,
9172
9251
  COLLABORATOR_UPDATE = 701,
9173
9252
  COLLABORATOR_REMOVE = 702,
9253
+ USER_UPDATE = 800,
9174
9254
  }