clarifai-web-grpc 4.1.0 → 5.0.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 (30) hide show
  1. package/.github/workflows/codeql-analysis.yml +72 -0
  2. package/CHANGELOG.md +9 -3
  3. package/VERSION +1 -1
  4. package/dist/cjs/proto/clarifai/api/resources_pb.js +8401 -1039
  5. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +1428 -0
  6. package/dist/cjs/proto/clarifai/api/service_pb.js +26106 -16201
  7. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +33 -0
  8. package/dist/cjs/proto/clarifai/api/status/status_pb.js +237 -1
  9. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +11 -1
  10. package/dist/esm/proto/clarifai/api/resources_pb.js +8401 -1039
  11. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +1428 -0
  12. package/dist/esm/proto/clarifai/api/service_pb.js +26106 -16201
  13. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +33 -0
  14. package/dist/esm/proto/clarifai/api/status/status_pb.js +237 -1
  15. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +11 -1
  16. package/package.json +1 -1
  17. package/package.json-E +52 -0
  18. package/proto/clarifai/api/resources_pb.d.ts +1160 -39
  19. package/proto/clarifai/api/resources_pb.js +9717 -529
  20. package/proto/clarifai/api/service_grpc_web_pb.d.ts +408 -0
  21. package/proto/clarifai/api/service_grpc_web_pb.js +2098 -24
  22. package/proto/clarifai/api/service_pb.d.ts +1418 -0
  23. package/proto/clarifai/api/service_pb.js +30537 -18314
  24. package/proto/clarifai/api/status/status_code_pb.d.ts +33 -0
  25. package/proto/clarifai/api/status/status_code_pb.js +33 -0
  26. package/proto/clarifai/api/status/status_pb.d.ts +36 -0
  27. package/proto/clarifai/api/status/status_pb.js +294 -1
  28. package/proto/clarifai/auth/scope/scope_pb.d.ts +10 -0
  29. package/proto/clarifai/auth/scope/scope_pb.js +11 -1
  30. package/LICENCE +0 -13
@@ -9,6 +9,7 @@ export enum StatusCode {
9
9
  FAILURE = 10020,
10
10
  TRY_AGAIN = 10030,
11
11
  NOT_IMPLEMENTED = 10040,
12
+ MOVED = 10050,
12
13
  CONN_ACCOUNT_ISSUES = 11000,
13
14
  CONN_TOKEN_INVALID = 11001,
14
15
  CONN_CREDENTIALS_INVALID = 11002,
@@ -31,6 +32,7 @@ export enum StatusCode {
31
32
  MODEL_QUEUED_FOR_TRAINING = 21103,
32
33
  MODEL_UPLOADING = 21104,
33
34
  MODEL_UPLOADING_FAILED = 21105,
35
+ MODEL_TRAINING_FAILED = 21106,
34
36
  MODEL_TRAINING_NO_DATA = 21110,
35
37
  MODEL_TRAINING_NO_POSITIVES = 21111,
36
38
  MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS = 21112,
@@ -59,6 +61,7 @@ export enum StatusCode {
59
61
  MODEL_EVALUATION_MSG_REDELIVER = 21314,
60
62
  MODEL_EVALUATION_NEED_LABELS = 21315,
61
63
  MODEL_EVALUATION_NEED_INPUTS = 21316,
64
+ MODEL_EVALUATION_FAILED = 21317,
62
65
  MODEL_DEPLOYMENT_FAILED = 21350,
63
66
  MODEL_DEPLOYING = 21351,
64
67
  MODEL_QUEUED_FOR_DEPLOYMENT = 21352,
@@ -110,6 +113,11 @@ export enum StatusCode {
110
113
  DATA_DUMP_IN_PROGRESS = 25153,
111
114
  DATA_DUMP_NO_DATA = 25154,
112
115
  DATA_DUMP_UNEXPECTED_ERROR = 25155,
116
+ DATA_DUMP_EXPORT_SUCCESS = 25170,
117
+ DATA_DUMP_EXPORT_PENDING = 25171,
118
+ DATA_DUMP_EXPORT_FAILED = 25172,
119
+ DATA_DUMP_EXPORT_IN_PROGRESS = 25173,
120
+ DATA_DUMP_EXPORT_UNEXPECTED_ERROR = 25174,
113
121
  APP_DUPLICATION_SUCCESS = 25200,
114
122
  APP_DUPLICATION_FAILED = 25201,
115
123
  APP_DUPLICATION_PENDING = 25202,
@@ -119,6 +127,20 @@ export enum StatusCode {
119
127
  MODULE_PERMISSION_DENIED = 25301,
120
128
  MODULE_INVALID_ARGUMENT = 25302,
121
129
  MODULE_INVALID_REQUEST = 25303,
130
+ BULK_OPERATION_SUCCESS = 25400,
131
+ BULK_OPERATION_FAILED = 25401,
132
+ BULK_OPERATION_PENDING = 25402,
133
+ BULK_OPERATION_IN_PROGRESS = 25403,
134
+ BULK_OPERATION_INVALID_REQUEST = 25404,
135
+ BULK_OPERATION_CANCELLED = 25405,
136
+ BULK_OPERATION_UNEXPECTED_ERROR = 25406,
137
+ BULK_OPERATION_DELETED = 25407,
138
+ INPUTS_EXTRACTION_JOB_SUCCESS = 25500,
139
+ INPUTS_EXTRACTION_JOB_FAILED = 25501,
140
+ INPUTS_EXTRACTION_JOB_PENDING = 25502,
141
+ INPUTS_EXTRACTION_JOB_IN_PROGRESS = 25503,
142
+ INPUTS_EXTRACTION_JOB_CANCELLED = 25505,
143
+ INPUTS_EXTRACTION_JOB_UNEXPECTED_ERROR = 25506,
122
144
  INPUT_DOWNLOAD_SUCCESS = 30000,
123
145
  INPUT_DOWNLOAD_PENDING = 30001,
124
146
  INPUT_DOWNLOAD_FAILED = 30002,
@@ -275,11 +297,22 @@ export enum StatusCode {
275
297
  DATASET_VERSION_READY = 64015,
276
298
  DATASET_VERSION_FAILURE = 64020,
277
299
  DATASET_VERSION_UNEXPECTED_ERROR = 64025,
300
+ DATASET_VERSION_CONFLICT = 64030,
301
+ DATASET_INPUT_SUCCESS = 64100,
302
+ DATASET_INPUT_DUPLICATE = 64101,
278
303
  JOB_QUEUED = 64000,
279
304
  JOB_RUNNING = 64001,
280
305
  JOB_COMPLETED = 64002,
281
306
  JOB_FAILED = 64003,
282
307
  AUTH_MISSING_IDP_ASSOC = 65000,
308
+ LIST_OBJECTS_FAILED = 66000,
309
+ ARCHIVE_EXTRACT_FAILED = 67000,
310
+ UPLOAD_IN_PROGRESS = 68000,
311
+ UPLOAD_DONE = 68001,
312
+ UPLOAD_FAILED = 68002,
313
+ UPLOAD_UNEXPECTED_ERROR = 68003,
314
+ UPLOAD_EXPIRED = 68004,
315
+ BILLING_INVALID_INFO = 69000,
283
316
  INTERNAL_SERVER_ISSUE = 98004,
284
317
  INTERNAL_FETCHING_ISSUE = 98005,
285
318
  INTERNAL_DATABASE_ISSUE = 98006,
@@ -32,6 +32,7 @@ proto.clarifai.api.status.StatusCode = {
32
32
  FAILURE: 10020,
33
33
  TRY_AGAIN: 10030,
34
34
  NOT_IMPLEMENTED: 10040,
35
+ MOVED: 10050,
35
36
  CONN_ACCOUNT_ISSUES: 11000,
36
37
  CONN_TOKEN_INVALID: 11001,
37
38
  CONN_CREDENTIALS_INVALID: 11002,
@@ -54,6 +55,7 @@ proto.clarifai.api.status.StatusCode = {
54
55
  MODEL_QUEUED_FOR_TRAINING: 21103,
55
56
  MODEL_UPLOADING: 21104,
56
57
  MODEL_UPLOADING_FAILED: 21105,
58
+ MODEL_TRAINING_FAILED: 21106,
57
59
  MODEL_TRAINING_NO_DATA: 21110,
58
60
  MODEL_TRAINING_NO_POSITIVES: 21111,
59
61
  MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: 21112,
@@ -82,6 +84,7 @@ proto.clarifai.api.status.StatusCode = {
82
84
  MODEL_EVALUATION_MSG_REDELIVER: 21314,
83
85
  MODEL_EVALUATION_NEED_LABELS: 21315,
84
86
  MODEL_EVALUATION_NEED_INPUTS: 21316,
87
+ MODEL_EVALUATION_FAILED: 21317,
85
88
  MODEL_DEPLOYMENT_FAILED: 21350,
86
89
  MODEL_DEPLOYING: 21351,
87
90
  MODEL_QUEUED_FOR_DEPLOYMENT: 21352,
@@ -133,6 +136,11 @@ proto.clarifai.api.status.StatusCode = {
133
136
  DATA_DUMP_IN_PROGRESS: 25153,
134
137
  DATA_DUMP_NO_DATA: 25154,
135
138
  DATA_DUMP_UNEXPECTED_ERROR: 25155,
139
+ DATA_DUMP_EXPORT_SUCCESS: 25170,
140
+ DATA_DUMP_EXPORT_PENDING: 25171,
141
+ DATA_DUMP_EXPORT_FAILED: 25172,
142
+ DATA_DUMP_EXPORT_IN_PROGRESS: 25173,
143
+ DATA_DUMP_EXPORT_UNEXPECTED_ERROR: 25174,
136
144
  APP_DUPLICATION_SUCCESS: 25200,
137
145
  APP_DUPLICATION_FAILED: 25201,
138
146
  APP_DUPLICATION_PENDING: 25202,
@@ -142,6 +150,20 @@ proto.clarifai.api.status.StatusCode = {
142
150
  MODULE_PERMISSION_DENIED: 25301,
143
151
  MODULE_INVALID_ARGUMENT: 25302,
144
152
  MODULE_INVALID_REQUEST: 25303,
153
+ BULK_OPERATION_SUCCESS: 25400,
154
+ BULK_OPERATION_FAILED: 25401,
155
+ BULK_OPERATION_PENDING: 25402,
156
+ BULK_OPERATION_IN_PROGRESS: 25403,
157
+ BULK_OPERATION_INVALID_REQUEST: 25404,
158
+ BULK_OPERATION_CANCELLED: 25405,
159
+ BULK_OPERATION_UNEXPECTED_ERROR: 25406,
160
+ BULK_OPERATION_DELETED: 25407,
161
+ INPUTS_EXTRACTION_JOB_SUCCESS: 25500,
162
+ INPUTS_EXTRACTION_JOB_FAILED: 25501,
163
+ INPUTS_EXTRACTION_JOB_PENDING: 25502,
164
+ INPUTS_EXTRACTION_JOB_IN_PROGRESS: 25503,
165
+ INPUTS_EXTRACTION_JOB_CANCELLED: 25505,
166
+ INPUTS_EXTRACTION_JOB_UNEXPECTED_ERROR: 25506,
145
167
  INPUT_DOWNLOAD_SUCCESS: 30000,
146
168
  INPUT_DOWNLOAD_PENDING: 30001,
147
169
  INPUT_DOWNLOAD_FAILED: 30002,
@@ -298,11 +320,22 @@ proto.clarifai.api.status.StatusCode = {
298
320
  DATASET_VERSION_READY: 64015,
299
321
  DATASET_VERSION_FAILURE: 64020,
300
322
  DATASET_VERSION_UNEXPECTED_ERROR: 64025,
323
+ DATASET_VERSION_CONFLICT: 64030,
324
+ DATASET_INPUT_SUCCESS: 64100,
325
+ DATASET_INPUT_DUPLICATE: 64101,
301
326
  JOB_QUEUED: 64000,
302
327
  JOB_RUNNING: 64001,
303
328
  JOB_COMPLETED: 64002,
304
329
  JOB_FAILED: 64003,
305
330
  AUTH_MISSING_IDP_ASSOC: 65000,
331
+ LIST_OBJECTS_FAILED: 66000,
332
+ ARCHIVE_EXTRACT_FAILED: 67000,
333
+ UPLOAD_IN_PROGRESS: 68000,
334
+ UPLOAD_DONE: 68001,
335
+ UPLOAD_FAILED: 68002,
336
+ UPLOAD_UNEXPECTED_ERROR: 68003,
337
+ UPLOAD_EXPIRED: 68004,
338
+ BILLING_INVALID_INFO: 69000,
306
339
  INTERNAL_SERVER_ISSUE: 98004,
307
340
  INTERNAL_FETCHING_ISSUE: 98005,
308
341
  INTERNAL_DATABASE_ISSUE: 98006,
@@ -31,6 +31,11 @@ export class Status extends jspb.Message {
31
31
  getInternalDetails(): string;
32
32
  setInternalDetails(value: string): Status;
33
33
 
34
+ getRedirectInfo(): RedirectInfo | undefined;
35
+ setRedirectInfo(value?: RedirectInfo): Status;
36
+ hasRedirectInfo(): boolean;
37
+ clearRedirectInfo(): Status;
38
+
34
39
  serializeBinary(): Uint8Array;
35
40
  toObject(includeInstance?: boolean): Status.AsObject;
36
41
  static toObject(includeInstance: boolean, msg: Status): Status.AsObject;
@@ -49,6 +54,37 @@ export namespace Status {
49
54
  timeRemaining: number,
50
55
  reqId: string,
51
56
  internalDetails: string,
57
+ redirectInfo?: RedirectInfo.AsObject,
58
+ }
59
+ }
60
+
61
+ export class RedirectInfo extends jspb.Message {
62
+ getUrl(): string;
63
+ setUrl(value: string): RedirectInfo;
64
+
65
+ getResourceType(): string;
66
+ setResourceType(value: string): RedirectInfo;
67
+
68
+ getOldResourceId(): string;
69
+ setOldResourceId(value: string): RedirectInfo;
70
+
71
+ getNewResourceId(): string;
72
+ setNewResourceId(value: string): RedirectInfo;
73
+
74
+ serializeBinary(): Uint8Array;
75
+ toObject(includeInstance?: boolean): RedirectInfo.AsObject;
76
+ static toObject(includeInstance: boolean, msg: RedirectInfo): RedirectInfo.AsObject;
77
+ static serializeBinaryToWriter(message: RedirectInfo, writer: jspb.BinaryWriter): void;
78
+ static deserializeBinary(bytes: Uint8Array): RedirectInfo;
79
+ static deserializeBinaryFromReader(message: RedirectInfo, reader: jspb.BinaryReader): RedirectInfo;
80
+ }
81
+
82
+ export namespace RedirectInfo {
83
+ export type AsObject = {
84
+ url: string,
85
+ resourceType: string,
86
+ oldResourceId: string,
87
+ newResourceId: string,
52
88
  }
53
89
  }
54
90
 
@@ -26,6 +26,7 @@ goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
26
26
  var proto_clarifai_api_status_status_code_pb = require('../../../../proto/clarifai/api/status/status_code_pb.js');
27
27
  goog.object.extend(proto, proto_clarifai_api_status_status_code_pb);
28
28
  goog.exportSymbol('proto.clarifai.api.status.BaseResponse', null, global);
29
+ goog.exportSymbol('proto.clarifai.api.status.RedirectInfo', null, global);
29
30
  goog.exportSymbol('proto.clarifai.api.status.Status', null, global);
30
31
  /**
31
32
  * Generated by JsPbCodeGenerator.
@@ -48,6 +49,27 @@ if (goog.DEBUG && !COMPILED) {
48
49
  */
49
50
  proto.clarifai.api.status.Status.displayName = 'proto.clarifai.api.status.Status';
50
51
  }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.clarifai.api.status.RedirectInfo = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.clarifai.api.status.RedirectInfo, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.clarifai.api.status.RedirectInfo.displayName = 'proto.clarifai.api.status.RedirectInfo';
72
+ }
51
73
  /**
52
74
  * Generated by JsPbCodeGenerator.
53
75
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -115,7 +137,8 @@ proto.clarifai.api.status.Status.toObject = function(includeInstance, msg) {
115
137
  percentCompleted: jspb.Message.getFieldWithDefault(msg, 5, 0),
116
138
  timeRemaining: jspb.Message.getFieldWithDefault(msg, 6, 0),
117
139
  reqId: jspb.Message.getFieldWithDefault(msg, 7, ""),
118
- internalDetails: jspb.Message.getFieldWithDefault(msg, 8, "")
140
+ internalDetails: jspb.Message.getFieldWithDefault(msg, 8, ""),
141
+ redirectInfo: (f = msg.getRedirectInfo()) && proto.clarifai.api.status.RedirectInfo.toObject(includeInstance, f)
119
142
  };
120
143
 
121
144
  if (includeInstance) {
@@ -184,6 +207,11 @@ proto.clarifai.api.status.Status.deserializeBinaryFromReader = function(msg, rea
184
207
  var value = /** @type {string} */ (reader.readString());
185
208
  msg.setInternalDetails(value);
186
209
  break;
210
+ case 9:
211
+ var value = new proto.clarifai.api.status.RedirectInfo;
212
+ reader.readMessage(value,proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader);
213
+ msg.setRedirectInfo(value);
214
+ break;
187
215
  default:
188
216
  reader.skipField();
189
217
  break;
@@ -269,6 +297,14 @@ proto.clarifai.api.status.Status.serializeBinaryToWriter = function(message, wri
269
297
  f
270
298
  );
271
299
  }
300
+ f = message.getRedirectInfo();
301
+ if (f != null) {
302
+ writer.writeMessage(
303
+ 9,
304
+ f,
305
+ proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter
306
+ );
307
+ }
272
308
  };
273
309
 
274
310
 
@@ -435,6 +471,263 @@ proto.clarifai.api.status.Status.prototype.setInternalDetails = function(value)
435
471
  };
436
472
 
437
473
 
474
+ /**
475
+ * optional RedirectInfo redirect_info = 9;
476
+ * @return {?proto.clarifai.api.status.RedirectInfo}
477
+ */
478
+ proto.clarifai.api.status.Status.prototype.getRedirectInfo = function() {
479
+ return /** @type{?proto.clarifai.api.status.RedirectInfo} */ (
480
+ jspb.Message.getWrapperField(this, proto.clarifai.api.status.RedirectInfo, 9));
481
+ };
482
+
483
+
484
+ /**
485
+ * @param {?proto.clarifai.api.status.RedirectInfo|undefined} value
486
+ * @return {!proto.clarifai.api.status.Status} returns this
487
+ */
488
+ proto.clarifai.api.status.Status.prototype.setRedirectInfo = function(value) {
489
+ return jspb.Message.setWrapperField(this, 9, value);
490
+ };
491
+
492
+
493
+ /**
494
+ * Clears the message field making it undefined.
495
+ * @return {!proto.clarifai.api.status.Status} returns this
496
+ */
497
+ proto.clarifai.api.status.Status.prototype.clearRedirectInfo = function() {
498
+ return this.setRedirectInfo(undefined);
499
+ };
500
+
501
+
502
+ /**
503
+ * Returns whether this field is set.
504
+ * @return {boolean}
505
+ */
506
+ proto.clarifai.api.status.Status.prototype.hasRedirectInfo = function() {
507
+ return jspb.Message.getField(this, 9) != null;
508
+ };
509
+
510
+
511
+
512
+
513
+
514
+ if (jspb.Message.GENERATE_TO_OBJECT) {
515
+ /**
516
+ * Creates an object representation of this proto.
517
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
518
+ * Optional fields that are not set will be set to undefined.
519
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
520
+ * For the list of reserved names please see:
521
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
522
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
523
+ * JSPB instance for transitional soy proto support:
524
+ * http://goto/soy-param-migration
525
+ * @return {!Object}
526
+ */
527
+ proto.clarifai.api.status.RedirectInfo.prototype.toObject = function(opt_includeInstance) {
528
+ return proto.clarifai.api.status.RedirectInfo.toObject(opt_includeInstance, this);
529
+ };
530
+
531
+
532
+ /**
533
+ * Static version of the {@see toObject} method.
534
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
535
+ * the JSPB instance for transitional soy proto support:
536
+ * http://goto/soy-param-migration
537
+ * @param {!proto.clarifai.api.status.RedirectInfo} msg The msg instance to transform.
538
+ * @return {!Object}
539
+ * @suppress {unusedLocalVariables} f is only used for nested messages
540
+ */
541
+ proto.clarifai.api.status.RedirectInfo.toObject = function(includeInstance, msg) {
542
+ var f, obj = {
543
+ url: jspb.Message.getFieldWithDefault(msg, 1, ""),
544
+ resourceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
545
+ oldResourceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
546
+ newResourceId: jspb.Message.getFieldWithDefault(msg, 4, "")
547
+ };
548
+
549
+ if (includeInstance) {
550
+ obj.$jspbMessageInstance = msg;
551
+ }
552
+ return obj;
553
+ };
554
+ }
555
+
556
+
557
+ /**
558
+ * Deserializes binary data (in protobuf wire format).
559
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
560
+ * @return {!proto.clarifai.api.status.RedirectInfo}
561
+ */
562
+ proto.clarifai.api.status.RedirectInfo.deserializeBinary = function(bytes) {
563
+ var reader = new jspb.BinaryReader(bytes);
564
+ var msg = new proto.clarifai.api.status.RedirectInfo;
565
+ return proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader(msg, reader);
566
+ };
567
+
568
+
569
+ /**
570
+ * Deserializes binary data (in protobuf wire format) from the
571
+ * given reader into the given message object.
572
+ * @param {!proto.clarifai.api.status.RedirectInfo} msg The message object to deserialize into.
573
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
574
+ * @return {!proto.clarifai.api.status.RedirectInfo}
575
+ */
576
+ proto.clarifai.api.status.RedirectInfo.deserializeBinaryFromReader = function(msg, reader) {
577
+ while (reader.nextField()) {
578
+ if (reader.isEndGroup()) {
579
+ break;
580
+ }
581
+ var field = reader.getFieldNumber();
582
+ switch (field) {
583
+ case 1:
584
+ var value = /** @type {string} */ (reader.readString());
585
+ msg.setUrl(value);
586
+ break;
587
+ case 2:
588
+ var value = /** @type {string} */ (reader.readString());
589
+ msg.setResourceType(value);
590
+ break;
591
+ case 3:
592
+ var value = /** @type {string} */ (reader.readString());
593
+ msg.setOldResourceId(value);
594
+ break;
595
+ case 4:
596
+ var value = /** @type {string} */ (reader.readString());
597
+ msg.setNewResourceId(value);
598
+ break;
599
+ default:
600
+ reader.skipField();
601
+ break;
602
+ }
603
+ }
604
+ return msg;
605
+ };
606
+
607
+
608
+ /**
609
+ * Serializes the message to binary data (in protobuf wire format).
610
+ * @return {!Uint8Array}
611
+ */
612
+ proto.clarifai.api.status.RedirectInfo.prototype.serializeBinary = function() {
613
+ var writer = new jspb.BinaryWriter();
614
+ proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter(this, writer);
615
+ return writer.getResultBuffer();
616
+ };
617
+
618
+
619
+ /**
620
+ * Serializes the given message to binary data (in protobuf wire
621
+ * format), writing to the given BinaryWriter.
622
+ * @param {!proto.clarifai.api.status.RedirectInfo} message
623
+ * @param {!jspb.BinaryWriter} writer
624
+ * @suppress {unusedLocalVariables} f is only used for nested messages
625
+ */
626
+ proto.clarifai.api.status.RedirectInfo.serializeBinaryToWriter = function(message, writer) {
627
+ var f = undefined;
628
+ f = message.getUrl();
629
+ if (f.length > 0) {
630
+ writer.writeString(
631
+ 1,
632
+ f
633
+ );
634
+ }
635
+ f = message.getResourceType();
636
+ if (f.length > 0) {
637
+ writer.writeString(
638
+ 2,
639
+ f
640
+ );
641
+ }
642
+ f = message.getOldResourceId();
643
+ if (f.length > 0) {
644
+ writer.writeString(
645
+ 3,
646
+ f
647
+ );
648
+ }
649
+ f = message.getNewResourceId();
650
+ if (f.length > 0) {
651
+ writer.writeString(
652
+ 4,
653
+ f
654
+ );
655
+ }
656
+ };
657
+
658
+
659
+ /**
660
+ * optional string url = 1;
661
+ * @return {string}
662
+ */
663
+ proto.clarifai.api.status.RedirectInfo.prototype.getUrl = function() {
664
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
665
+ };
666
+
667
+
668
+ /**
669
+ * @param {string} value
670
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
671
+ */
672
+ proto.clarifai.api.status.RedirectInfo.prototype.setUrl = function(value) {
673
+ return jspb.Message.setProto3StringField(this, 1, value);
674
+ };
675
+
676
+
677
+ /**
678
+ * optional string resource_type = 2;
679
+ * @return {string}
680
+ */
681
+ proto.clarifai.api.status.RedirectInfo.prototype.getResourceType = function() {
682
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
683
+ };
684
+
685
+
686
+ /**
687
+ * @param {string} value
688
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
689
+ */
690
+ proto.clarifai.api.status.RedirectInfo.prototype.setResourceType = function(value) {
691
+ return jspb.Message.setProto3StringField(this, 2, value);
692
+ };
693
+
694
+
695
+ /**
696
+ * optional string old_resource_id = 3;
697
+ * @return {string}
698
+ */
699
+ proto.clarifai.api.status.RedirectInfo.prototype.getOldResourceId = function() {
700
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
701
+ };
702
+
703
+
704
+ /**
705
+ * @param {string} value
706
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
707
+ */
708
+ proto.clarifai.api.status.RedirectInfo.prototype.setOldResourceId = function(value) {
709
+ return jspb.Message.setProto3StringField(this, 3, value);
710
+ };
711
+
712
+
713
+ /**
714
+ * optional string new_resource_id = 4;
715
+ * @return {string}
716
+ */
717
+ proto.clarifai.api.status.RedirectInfo.prototype.getNewResourceId = function() {
718
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
719
+ };
720
+
721
+
722
+ /**
723
+ * @param {string} value
724
+ * @return {!proto.clarifai.api.status.RedirectInfo} returns this
725
+ */
726
+ proto.clarifai.api.status.RedirectInfo.prototype.setNewResourceId = function(value) {
727
+ return jspb.Message.setProto3StringField(this, 4, value);
728
+ };
729
+
730
+
438
731
 
439
732
 
440
733
 
@@ -92,6 +92,12 @@ export enum S {
92
92
  DATASETS_GET = 105,
93
93
  DATASETS_ADD = 106,
94
94
  DATASETS_DELETE = 107,
95
+ MODULES_ADD = 108,
96
+ MODULES_GET = 109,
97
+ MODULES_DELETE = 110,
98
+ INSTALLEDMODULEVERSIONS_ADD = 111,
99
+ INSTALLEDMODULEVERSIONS_GET = 112,
100
+ INSTALLEDMODULEVERSIONS_DELETE = 113,
95
101
  SEARCH = 3,
96
102
  SAVEDSEARCH_GET = 114,
97
103
  SAVEDSEARCH_ADD = 115,
@@ -103,4 +109,8 @@ export enum S {
103
109
  BULKOPERATION_ADD = 121,
104
110
  BULKOPERATION_GET = 122,
105
111
  BULKOPERATION_DELETE = 123,
112
+ HISTORICALUSAGE_GET = 124,
113
+ UPLOADS_GET = 128,
114
+ UPLOADS_ADD = 129,
115
+ UPLOADS_DELETE = 130,
106
116
  }
@@ -321,6 +321,12 @@ proto.clarifai.auth.scope.S = {
321
321
  DATASETS_GET: 105,
322
322
  DATASETS_ADD: 106,
323
323
  DATASETS_DELETE: 107,
324
+ MODULES_ADD: 108,
325
+ MODULES_GET: 109,
326
+ MODULES_DELETE: 110,
327
+ INSTALLEDMODULEVERSIONS_ADD: 111,
328
+ INSTALLEDMODULEVERSIONS_GET: 112,
329
+ INSTALLEDMODULEVERSIONS_DELETE: 113,
324
330
  SEARCH: 3,
325
331
  SAVEDSEARCH_GET: 114,
326
332
  SAVEDSEARCH_ADD: 115,
@@ -331,7 +337,11 @@ proto.clarifai.auth.scope.S = {
331
337
  WORKFLOWPUBLICATIONS_DELETE: 120,
332
338
  BULKOPERATION_ADD: 121,
333
339
  BULKOPERATION_GET: 122,
334
- BULKOPERATION_DELETE: 123
340
+ BULKOPERATION_DELETE: 123,
341
+ HISTORICALUSAGE_GET: 124,
342
+ UPLOADS_GET: 128,
343
+ UPLOADS_ADD: 129,
344
+ UPLOADS_DELETE: 130
335
345
  };
336
346
 
337
347
 
package/LICENCE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2021 Clarifai, Inc.
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.