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.
- package/.github/workflows/codeql-analysis.yml +72 -0
- package/CHANGELOG.md +9 -3
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +8401 -1039
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +1428 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +26106 -16201
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +33 -0
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +237 -1
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +11 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +8401 -1039
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +1428 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +26106 -16201
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +33 -0
- package/dist/esm/proto/clarifai/api/status/status_pb.js +237 -1
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +11 -1
- package/package.json +1 -1
- package/package.json-E +52 -0
- package/proto/clarifai/api/resources_pb.d.ts +1160 -39
- package/proto/clarifai/api/resources_pb.js +9717 -529
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +408 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +2098 -24
- package/proto/clarifai/api/service_pb.d.ts +1418 -0
- package/proto/clarifai/api/service_pb.js +30537 -18314
- package/proto/clarifai/api/status/status_code_pb.d.ts +33 -0
- package/proto/clarifai/api/status/status_code_pb.js +33 -0
- package/proto/clarifai/api/status/status_pb.d.ts +36 -0
- package/proto/clarifai/api/status/status_pb.js +294 -1
- package/proto/clarifai/auth/scope/scope_pb.d.ts +10 -0
- package/proto/clarifai/auth/scope/scope_pb.js +11 -1
- package/LICENCE +0 -13
|
@@ -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,
|
|
@@ -140,6 +143,11 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
140
143
|
DATA_DUMP_IN_PROGRESS: 25153,
|
|
141
144
|
DATA_DUMP_NO_DATA: 25154,
|
|
142
145
|
DATA_DUMP_UNEXPECTED_ERROR: 25155,
|
|
146
|
+
DATA_DUMP_EXPORT_SUCCESS: 25170,
|
|
147
|
+
DATA_DUMP_EXPORT_PENDING: 25171,
|
|
148
|
+
DATA_DUMP_EXPORT_FAILED: 25172,
|
|
149
|
+
DATA_DUMP_EXPORT_IN_PROGRESS: 25173,
|
|
150
|
+
DATA_DUMP_EXPORT_UNEXPECTED_ERROR: 25174,
|
|
143
151
|
APP_DUPLICATION_SUCCESS: 25200,
|
|
144
152
|
APP_DUPLICATION_FAILED: 25201,
|
|
145
153
|
APP_DUPLICATION_PENDING: 25202,
|
|
@@ -149,6 +157,20 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
149
157
|
MODULE_PERMISSION_DENIED: 25301,
|
|
150
158
|
MODULE_INVALID_ARGUMENT: 25302,
|
|
151
159
|
MODULE_INVALID_REQUEST: 25303,
|
|
160
|
+
BULK_OPERATION_SUCCESS: 25400,
|
|
161
|
+
BULK_OPERATION_FAILED: 25401,
|
|
162
|
+
BULK_OPERATION_PENDING: 25402,
|
|
163
|
+
BULK_OPERATION_IN_PROGRESS: 25403,
|
|
164
|
+
BULK_OPERATION_INVALID_REQUEST: 25404,
|
|
165
|
+
BULK_OPERATION_CANCELLED: 25405,
|
|
166
|
+
BULK_OPERATION_UNEXPECTED_ERROR: 25406,
|
|
167
|
+
BULK_OPERATION_DELETED: 25407,
|
|
168
|
+
INPUTS_EXTRACTION_JOB_SUCCESS: 25500,
|
|
169
|
+
INPUTS_EXTRACTION_JOB_FAILED: 25501,
|
|
170
|
+
INPUTS_EXTRACTION_JOB_PENDING: 25502,
|
|
171
|
+
INPUTS_EXTRACTION_JOB_IN_PROGRESS: 25503,
|
|
172
|
+
INPUTS_EXTRACTION_JOB_CANCELLED: 25505,
|
|
173
|
+
INPUTS_EXTRACTION_JOB_UNEXPECTED_ERROR: 25506,
|
|
152
174
|
INPUT_DOWNLOAD_SUCCESS: 30000,
|
|
153
175
|
INPUT_DOWNLOAD_PENDING: 30001,
|
|
154
176
|
INPUT_DOWNLOAD_FAILED: 30002,
|
|
@@ -305,11 +327,22 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
305
327
|
DATASET_VERSION_READY: 64015,
|
|
306
328
|
DATASET_VERSION_FAILURE: 64020,
|
|
307
329
|
DATASET_VERSION_UNEXPECTED_ERROR: 64025,
|
|
330
|
+
DATASET_VERSION_CONFLICT: 64030,
|
|
331
|
+
DATASET_INPUT_SUCCESS: 64100,
|
|
332
|
+
DATASET_INPUT_DUPLICATE: 64101,
|
|
308
333
|
JOB_QUEUED: 64000,
|
|
309
334
|
JOB_RUNNING: 64001,
|
|
310
335
|
JOB_COMPLETED: 64002,
|
|
311
336
|
JOB_FAILED: 64003,
|
|
312
337
|
AUTH_MISSING_IDP_ASSOC: 65000,
|
|
338
|
+
LIST_OBJECTS_FAILED: 66000,
|
|
339
|
+
ARCHIVE_EXTRACT_FAILED: 67000,
|
|
340
|
+
UPLOAD_IN_PROGRESS: 68000,
|
|
341
|
+
UPLOAD_DONE: 68001,
|
|
342
|
+
UPLOAD_FAILED: 68002,
|
|
343
|
+
UPLOAD_UNEXPECTED_ERROR: 68003,
|
|
344
|
+
UPLOAD_EXPIRED: 68004,
|
|
345
|
+
BILLING_INVALID_INFO: 69000,
|
|
313
346
|
INTERNAL_SERVER_ISSUE: 98004,
|
|
314
347
|
INTERNAL_FETCHING_ISSUE: 98005,
|
|
315
348
|
INTERNAL_DATABASE_ISSUE: 98006,
|
|
@@ -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.
|
|
@@ -289,6 +289,12 @@ proto.clarifai.auth.scope.S = {
|
|
|
289
289
|
DATASETS_GET: 105,
|
|
290
290
|
DATASETS_ADD: 106,
|
|
291
291
|
DATASETS_DELETE: 107,
|
|
292
|
+
MODULES_ADD: 108,
|
|
293
|
+
MODULES_GET: 109,
|
|
294
|
+
MODULES_DELETE: 110,
|
|
295
|
+
INSTALLEDMODULEVERSIONS_ADD: 111,
|
|
296
|
+
INSTALLEDMODULEVERSIONS_GET: 112,
|
|
297
|
+
INSTALLEDMODULEVERSIONS_DELETE: 113,
|
|
292
298
|
SEARCH: 3,
|
|
293
299
|
SAVEDSEARCH_GET: 114,
|
|
294
300
|
SAVEDSEARCH_ADD: 115,
|
|
@@ -299,7 +305,11 @@ proto.clarifai.auth.scope.S = {
|
|
|
299
305
|
WORKFLOWPUBLICATIONS_DELETE: 120,
|
|
300
306
|
BULKOPERATION_ADD: 121,
|
|
301
307
|
BULKOPERATION_GET: 122,
|
|
302
|
-
BULKOPERATION_DELETE: 123
|
|
308
|
+
BULKOPERATION_DELETE: 123,
|
|
309
|
+
HISTORICALUSAGE_GET: 124,
|
|
310
|
+
UPLOADS_GET: 128,
|
|
311
|
+
UPLOADS_ADD: 129,
|
|
312
|
+
UPLOADS_DELETE: 130
|
|
303
313
|
};
|
|
304
314
|
/**
|
|
305
315
|
* A tuple of {field number, class constructor} for the extension
|
package/package.json
CHANGED
package/package.json-E
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "clarifai-web-grpc",
|
|
3
|
+
"version": "8.10.0",
|
|
4
|
+
"description": "The official Clarifai gRPC-web client",
|
|
5
|
+
"main": "dist/cjs/index.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
|
+
"repository": "https://github.com/Clarifai/clarifai-web-grpc",
|
|
9
|
+
"author": "Clarifai Inc.",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"lint": "standard index.ts resources.ts service.ts",
|
|
14
|
+
"clean": "rm -rf dist clarifai-web-grpc-*.tgz",
|
|
15
|
+
"build:cjs": "tsc -b tsconfig.cjs.json",
|
|
16
|
+
"build:esm": "tsc -b",
|
|
17
|
+
"build": "yarn build:esm && yarn build:cjs",
|
|
18
|
+
"prepack": "yarn clean && yarn build",
|
|
19
|
+
"release": "semantic-release",
|
|
20
|
+
"prepare": "husky install"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"google-protobuf": "3.19.4",
|
|
24
|
+
"grpc-web": "1.3.1"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@commitlint/cli": "^16.0.1",
|
|
28
|
+
"@commitlint/config-conventional": "^16.0.0",
|
|
29
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
30
|
+
"@types/google-protobuf": "~3.7.0",
|
|
31
|
+
"@types/node": "~10.17.0",
|
|
32
|
+
"husky": "^7.0.4",
|
|
33
|
+
"semantic-release": "^18.0.1",
|
|
34
|
+
"standard": "^16.0.4",
|
|
35
|
+
"ts-node": "^10.4.0",
|
|
36
|
+
"typescript": "^4.5.4"
|
|
37
|
+
},
|
|
38
|
+
"release": {
|
|
39
|
+
"plugins": [
|
|
40
|
+
"@semantic-release/commit-analyzer",
|
|
41
|
+
"@semantic-release/release-notes-generator",
|
|
42
|
+
"@semantic-release/changelog",
|
|
43
|
+
"@semantic-release/npm",
|
|
44
|
+
"@semantic-release/github"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"commitlint": {
|
|
48
|
+
"extends": [
|
|
49
|
+
"@commitlint/config-conventional"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|