clarifai-web-grpc 4.1.0 → 4.2.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/VERSION +1 -1
  3. package/dist/cjs/proto/clarifai/api/resources_pb.js +5352 -2060
  4. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +336 -0
  5. package/dist/cjs/proto/clarifai/api/service_pb.js +2612 -166
  6. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +14 -0
  7. package/dist/cjs/proto/clarifai/api/status/status_pb.js +237 -1
  8. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -1
  9. package/dist/esm/proto/clarifai/api/resources_pb.js +5352 -2060
  10. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +336 -0
  11. package/dist/esm/proto/clarifai/api/service_pb.js +2612 -166
  12. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +14 -0
  13. package/dist/esm/proto/clarifai/api/status/status_pb.js +237 -1
  14. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -1
  15. package/package.json +1 -1
  16. package/package.json-E +52 -0
  17. package/proto/clarifai/api/resources_pb.d.ts +525 -31
  18. package/proto/clarifai/api/resources_pb.js +4300 -220
  19. package/proto/clarifai/api/service_grpc_web_pb.d.ts +96 -0
  20. package/proto/clarifai/api/service_grpc_web_pb.js +488 -0
  21. package/proto/clarifai/api/service_pb.d.ts +354 -0
  22. package/proto/clarifai/api/service_pb.js +3569 -531
  23. package/proto/clarifai/api/status/status_code_pb.d.ts +14 -0
  24. package/proto/clarifai/api/status/status_code_pb.js +14 -0
  25. package/proto/clarifai/api/status/status_pb.d.ts +36 -0
  26. package/proto/clarifai/api/status/status_pb.js +294 -1
  27. package/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  28. package/proto/clarifai/auth/scope/scope_pb.js +2 -1
@@ -39,6 +39,7 @@ proto.clarifai.api.status.StatusCode = {
39
39
  FAILURE: 10020,
40
40
  TRY_AGAIN: 10030,
41
41
  NOT_IMPLEMENTED: 10040,
42
+ MOVED: 10050,
42
43
  CONN_ACCOUNT_ISSUES: 11000,
43
44
  CONN_TOKEN_INVALID: 11001,
44
45
  CONN_CREDENTIALS_INVALID: 11002,
@@ -61,6 +62,7 @@ proto.clarifai.api.status.StatusCode = {
61
62
  MODEL_QUEUED_FOR_TRAINING: 21103,
62
63
  MODEL_UPLOADING: 21104,
63
64
  MODEL_UPLOADING_FAILED: 21105,
65
+ MODEL_TRAINING_FAILED: 21106,
64
66
  MODEL_TRAINING_NO_DATA: 21110,
65
67
  MODEL_TRAINING_NO_POSITIVES: 21111,
66
68
  MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: 21112,
@@ -89,6 +91,7 @@ proto.clarifai.api.status.StatusCode = {
89
91
  MODEL_EVALUATION_MSG_REDELIVER: 21314,
90
92
  MODEL_EVALUATION_NEED_LABELS: 21315,
91
93
  MODEL_EVALUATION_NEED_INPUTS: 21316,
94
+ MODEL_EVALUATION_FAILED: 21317,
92
95
  MODEL_DEPLOYMENT_FAILED: 21350,
93
96
  MODEL_DEPLOYING: 21351,
94
97
  MODEL_QUEUED_FOR_DEPLOYMENT: 21352,
@@ -149,6 +152,14 @@ proto.clarifai.api.status.StatusCode = {
149
152
  MODULE_PERMISSION_DENIED: 25301,
150
153
  MODULE_INVALID_ARGUMENT: 25302,
151
154
  MODULE_INVALID_REQUEST: 25303,
155
+ BULK_OPERATION_SUCCESS: 25400,
156
+ BULK_OPERATION_FAILED: 25401,
157
+ BULK_OPERATION_PENDING: 25402,
158
+ BULK_OPERATION_IN_PROGRESS: 25403,
159
+ BULK_OPERATION_INVALID_REQUEST: 25404,
160
+ BULK_OPERATION_CANCELLED: 25405,
161
+ BULK_OPERATION_UNEXPECTED_ERROR: 25406,
162
+ BULK_OPERATION_DELETED: 25407,
152
163
  INPUT_DOWNLOAD_SUCCESS: 30000,
153
164
  INPUT_DOWNLOAD_PENDING: 30001,
154
165
  INPUT_DOWNLOAD_FAILED: 30002,
@@ -305,6 +316,9 @@ proto.clarifai.api.status.StatusCode = {
305
316
  DATASET_VERSION_READY: 64015,
306
317
  DATASET_VERSION_FAILURE: 64020,
307
318
  DATASET_VERSION_UNEXPECTED_ERROR: 64025,
319
+ DATASET_VERSION_CONFLICT: 64030,
320
+ DATASET_INPUT_SUCCESS: 64100,
321
+ DATASET_INPUT_DUPLICATE: 64101,
308
322
  JOB_QUEUED: 64000,
309
323
  JOB_RUNNING: 64001,
310
324
  JOB_COMPLETED: 64002,
@@ -33,6 +33,7 @@ goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
33
33
  var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
34
34
  goog.object.extend(proto, proto_clarifai_api_status_status_code_pb);
35
35
  goog.exportSymbol('proto.clarifai.api.status.BaseResponse', null, global);
36
+ goog.exportSymbol('proto.clarifai.api.status.RedirectInfo', null, global);
36
37
  goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
37
38
  /**
38
39
  * Generated by JsPbCodeGenerator.
@@ -55,6 +56,27 @@ if (goog.DEBUG && !COMPILED) {
55
56
  */
56
57
  proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
57
58
  }
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.clarifai.api.status.RedirectInfo = function (opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
+ };
72
+ goog.inherits(proto.clarifai.api.status.RedirectInfo, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.clarifai.api.status.RedirectInfo.displayName = 'proto.clarifai.api.status.RedirectInfo';
79
+ }
58
80
  /**
59
81
  * Generated by JsPbCodeGenerator.
60
82
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -116,7 +138,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
116
138
  percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0),
117
139
  timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
118
140
  reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
119
- internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "")
141
+ internalDetails: jspb.Message.getFieldWithDefault(msg, 8, ""),
142
+ redirectInfo: (f = msg.getRedirectInfo()) && proto.clarifai.api.status.RedirectInfo.toObject(includeInstance, f)
120
143
  };
121
144
  if (includeInstance) {
122
145
  obj.$jspbMessageInstance = msg;
@@ -180,6 +203,11 @@ proto.clarifai.api.status.Status.deserializeBinaryFromReader = function (msg, re
180
203
  var value = /** @type {string} */ (reader.readString());
181
204
  msg.setInternalDetails(value);
182
205
  break;
206
+ case 9:
207
+ var value = new proto.clarifai.api.status.RedirectInfo;
208
+ reader.readMessage(value, proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader);
209
+ msg.setRedirectInfo(value);
210
+ break;
183
211
  default:
184
212
  reader.skipField();
185
213
  break;
@@ -237,6 +265,10 @@ proto.clarifai.api.status.Status.serializeBinaryToWriter = function (message, wr
237
265
  if (f.length > 0) {
238
266
  writer.writeString(8, f);
239
267
  }
268
+ f = message.getRedirectInfo();
269
+ if (f != null) {
270
+ writer.writeMessage(9, f, proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter);
271
+ }
240
272
  };
241
273
  /**
242
274
  * optional StatusCode code = 1;
@@ -365,6 +397,210 @@ proto.clarifai.api.status.Status.prototype.getInternalDetails = function () {
365
397
  proto.clarifai.api.status.Status.prototype.setInternalDetails = function (value) {
366
398
  return jspb.Message.setProto3StringField(this, 8, value);
367
399
  };
400
+ /**
401
+ * optional RedirectInfo redirect_info = 9;
402
+ * @return {?proto.clarifai.api.status.RedirectInfo}
403
+ */
404
+ proto.clarifai.api.status.Status.prototype.getRedirectInfo = function () {
405
+ return /** @type{?proto.clarifai.api.status.RedirectInfo} */ (jspb.Message.getWrapperField(this, proto.clarifai.api.status.RedirectInfo, 9));
406
+ };
407
+ /**
408
+ * @param {?proto.clarifai.api.status.RedirectInfo|undefined} value
409
+ * @return {!proto.clarifai.api.status.Status} returns this
410
+ */
411
+ proto.clarifai.api.status.Status.prototype.setRedirectInfo = function (value) {
412
+ return jspb.Message.setWrapperField(this, 9, value);
413
+ };
414
+ /**
415
+ * Clears the message field making it undefined.
416
+ * @return {!proto.clarifai.api.status.Status} returns this
417
+ */
418
+ proto.clarifai.api.status.Status.prototype.clearRedirectInfo = function () {
419
+ return this.setRedirectInfo(undefined);
420
+ };
421
+ /**
422
+ * Returns whether this field is set.
423
+ * @return {boolean}
424
+ */
425
+ proto.clarifai.api.status.Status.prototype.hasRedirectInfo = function () {
426
+ return jspb.Message.getField(this, 9) != null;
427
+ };
428
+ if (jspb.Message.GENERATE_TO_OBJECT) {
429
+ /**
430
+ * Creates an object representation of this proto.
431
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
432
+ * Optional fields that are not set will be set to undefined.
433
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
434
+ * For the list of reserved names please see:
435
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
436
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
437
+ * JSPB instance for transitional soy proto support:
438
+ * http://goto/soy-param-migration
439
+ * @return {!Object}
440
+ */
441
+ proto.clarifai.api.status.RedirectInfo.prototype.toObject = function (opt_includeInstance) {
442
+ return proto.clarifai.api.status.RedirectInfo.toObject(opt_includeInstance, this);
443
+ };
444
+ /**
445
+ * Static version of the {@see toObject} method.
446
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
447
+ * the JSPB instance for transitional soy proto support:
448
+ * http://goto/soy-param-migration
449
+ * @param {!proto.clarifai.api.status.RedirectInfo} msg The msg instance to transform.
450
+ * @return {!Object}
451
+ * @suppress {unusedLocalVariables} f is only used for nested messages
452
+ */
453
+ proto.clarifai.api.status.RedirectInfo.toObject = function (includeInstance, msg) {
454
+ var f, obj = {
455
+ url: jspb.Message.getFieldWithDefault(msg, 1, ""),
456
+ resourceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
457
+ oldResourceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
458
+ newResourceId: jspb.Message.getFieldWithDefault(msg, 4, "")
459
+ };
460
+ if (includeInstance) {
461
+ obj.$jspbMessageInstance = msg;
462
+ }
463
+ return obj;
464
+ };
465
+ }
466
+ /**
467
+ * Deserializes binary data (in protobuf wire format).
468
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
469
+ * @return {!proto.clarifai.api.status.RedirectInfo}
470
+ */
471
+ proto.clarifai.api.status.RedirectInfo.deserializeBinary = function (bytes) {
472
+ var reader = new jspb.BinaryReader(bytes);
473
+ var msg = new proto.clarifai.api.status.RedirectInfo;
474
+ return proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader(msg, reader);
475
+ };
476
+ /**
477
+ * Deserializes binary data (in protobuf wire format) from the
478
+ * given reader into the given message object.
479
+ * @param {!proto.clarifai.api.status.RedirectInfo} msg The message object to deserialize into.
480
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
481
+ * @return {!proto.clarifai.api.status.RedirectInfo}
482
+ */
483
+ proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader = function (msg, reader) {
484
+ while (reader.nextField()) {
485
+ if (reader.isEndGroup()) {
486
+ break;
487
+ }
488
+ var field = reader.getFieldNumber();
489
+ switch (field) {
490
+ case 1:
491
+ var value = /** @type {string} */ (reader.readString());
492
+ msg.setUrl(value);
493
+ break;
494
+ case 2:
495
+ var value = /** @type {string} */ (reader.readString());
496
+ msg.setResourceType(value);
497
+ break;
498
+ case 3:
499
+ var value = /** @type {string} */ (reader.readString());
500
+ msg.setOldResourceId(value);
501
+ break;
502
+ case 4:
503
+ var value = /** @type {string} */ (reader.readString());
504
+ msg.setNewResourceId(value);
505
+ break;
506
+ default:
507
+ reader.skipField();
508
+ break;
509
+ }
510
+ }
511
+ return msg;
512
+ };
513
+ /**
514
+ * Serializes the message to binary data (in protobuf wire format).
515
+ * @return {!Uint8Array}
516
+ */
517
+ proto.clarifai.api.status.RedirectInfo.prototype.serializeBinary = function () {
518
+ var writer = new jspb.BinaryWriter();
519
+ proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter(this, writer);
520
+ return writer.getResultBuffer();
521
+ };
522
+ /**
523
+ * Serializes the given message to binary data (in protobuf wire
524
+ * format), writing to the given BinaryWriter.
525
+ * @param {!proto.clarifai.api.status.RedirectInfo} message
526
+ * @param {!jspb.BinaryWriter} writer
527
+ * @suppress {unusedLocalVariables} f is only used for nested messages
528
+ */
529
+ proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter = function (message, writer) {
530
+ var f = undefined;
531
+ f = message.getUrl();
532
+ if (f.length > 0) {
533
+ writer.writeString(1, f);
534
+ }
535
+ f = message.getResourceType();
536
+ if (f.length > 0) {
537
+ writer.writeString(2, f);
538
+ }
539
+ f = message.getOldResourceId();
540
+ if (f.length > 0) {
541
+ writer.writeString(3, f);
542
+ }
543
+ f = message.getNewResourceId();
544
+ if (f.length > 0) {
545
+ writer.writeString(4, f);
546
+ }
547
+ };
548
+ /**
549
+ * optional string url = 1;
550
+ * @return {string}
551
+ */
552
+ proto.clarifai.api.status.RedirectInfo.prototype.getUrl = function () {
553
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
554
+ };
555
+ /**
556
+ * @param {string} value
557
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
558
+ */
559
+ proto.clarifai.api.status.RedirectInfo.prototype.setUrl = function (value) {
560
+ return jspb.Message.setProto3StringField(this, 1, value);
561
+ };
562
+ /**
563
+ * optional string resource_type = 2;
564
+ * @return {string}
565
+ */
566
+ proto.clarifai.api.status.RedirectInfo.prototype.getResourceType = function () {
567
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
568
+ };
569
+ /**
570
+ * @param {string} value
571
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
572
+ */
573
+ proto.clarifai.api.status.RedirectInfo.prototype.setResourceType = function (value) {
574
+ return jspb.Message.setProto3StringField(this, 2, value);
575
+ };
576
+ /**
577
+ * optional string old_resource_id = 3;
578
+ * @return {string}
579
+ */
580
+ proto.clarifai.api.status.RedirectInfo.prototype.getOldResourceId = function () {
581
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
582
+ };
583
+ /**
584
+ * @param {string} value
585
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
586
+ */
587
+ proto.clarifai.api.status.RedirectInfo.prototype.setOldResourceId = function (value) {
588
+ return jspb.Message.setProto3StringField(this, 3, value);
589
+ };
590
+ /**
591
+ * optional string new_resource_id = 4;
592
+ * @return {string}
593
+ */
594
+ proto.clarifai.api.status.RedirectInfo.prototype.getNewResourceId = function () {
595
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
596
+ };
597
+ /**
598
+ * @param {string} value
599
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
600
+ */
601
+ proto.clarifai.api.status.RedirectInfo.prototype.setNewResourceId = function (value) {
602
+ return jspb.Message.setProto3StringField(this, 4, value);
603
+ };
368
604
  if (jspb.Message.GENERATE_TO_OBJECT) {
369
605
  /**
370
606
  * Creates an object representation of this proto.
@@ -299,7 +299,8 @@ proto.clarifai.auth.scope.S = {
299
299
  WORKFLOWPUBLICATIONS_DELETE: 120,
300
300
  BULKOPERATION_ADD: 121,
301
301
  BULKOPERATION_GET: 122,
302
- BULKOPERATION_DELETE: 123
302
+ BULKOPERATION_DELETE: 123,
303
+ HISTORICALUSAGE_GET: 124
303
304
  };
304
305
  /**
305
306
  * A tuple of {field number, class constructor} for the extension