Skip to content

Commit

Permalink
GRPC clients version 10.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Sep 2, 2024
1 parent 365a93c commit 30b33aa
Show file tree
Hide file tree
Showing 15 changed files with 2,611 additions and 35 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.7.2
10.8.0
205 changes: 204 additions & 1 deletion google/api/client_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ goog.exportSymbol('proto.google.api.NodeSettings', null, global);
goog.exportSymbol('proto.google.api.PhpSettings', null, global);
goog.exportSymbol('proto.google.api.Publishing', null, global);
goog.exportSymbol('proto.google.api.PythonSettings', null, global);
goog.exportSymbol('proto.google.api.PythonSettings.ExperimentalFeatures', null, global);
goog.exportSymbol('proto.google.api.RubySettings', null, global);
goog.exportSymbol('proto.google.api.apiVersion', null, global);
goog.exportSymbol('proto.google.api.defaultHost', null, global);
Expand Down Expand Up @@ -193,6 +194,27 @@ if (goog.DEBUG && !COMPILED) {
*/
proto.google.api.PythonSettings.displayName = 'proto.google.api.PythonSettings';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.google.api.PythonSettings.ExperimentalFeatures = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.google.api.PythonSettings.ExperimentalFeatures, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.google.api.PythonSettings.ExperimentalFeatures.displayName = 'proto.google.api.PythonSettings.ExperimentalFeatures';
}
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
Expand Down Expand Up @@ -2156,7 +2178,8 @@ proto.google.api.PythonSettings.prototype.toObject = function(opt_includeInstanc
*/
proto.google.api.PythonSettings.toObject = function(includeInstance, msg) {
var f, obj = {
common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f)
common: (f = msg.getCommon()) && proto.google.api.CommonLanguageSettings.toObject(includeInstance, f),
experimentalFeatures: (f = msg.getExperimentalFeatures()) && proto.google.api.PythonSettings.ExperimentalFeatures.toObject(includeInstance, f)
};

if (includeInstance) {
Expand Down Expand Up @@ -2198,6 +2221,11 @@ proto.google.api.PythonSettings.deserializeBinaryFromReader = function(msg, read
reader.readMessage(value,proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader);
msg.setCommon(value);
break;
case 2:
var value = new proto.google.api.PythonSettings.ExperimentalFeatures;
reader.readMessage(value,proto.google.api.PythonSettings.ExperimentalFeatures.deserializeBinaryFromReader);
msg.setExperimentalFeatures(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -2235,6 +2263,144 @@ proto.google.api.PythonSettings.serializeBinaryToWriter = function(message, writ
proto.google.api.CommonLanguageSettings.serializeBinaryToWriter
);
}
f = message.getExperimentalFeatures();
if (f != null) {
writer.writeMessage(
2,
f,
proto.google.api.PythonSettings.ExperimentalFeatures.serializeBinaryToWriter
);
}
};





if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.google.api.PythonSettings.ExperimentalFeatures.prototype.toObject = function(opt_includeInstance) {
return proto.google.api.PythonSettings.ExperimentalFeatures.toObject(opt_includeInstance, this);
};


/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.google.api.PythonSettings.ExperimentalFeatures} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.api.PythonSettings.ExperimentalFeatures.toObject = function(includeInstance, msg) {
var f, obj = {
restAsyncIoEnabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
};

if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}


/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.google.api.PythonSettings.ExperimentalFeatures}
*/
proto.google.api.PythonSettings.ExperimentalFeatures.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.google.api.PythonSettings.ExperimentalFeatures;
return proto.google.api.PythonSettings.ExperimentalFeatures.deserializeBinaryFromReader(msg, reader);
};


/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.google.api.PythonSettings.ExperimentalFeatures} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.google.api.PythonSettings.ExperimentalFeatures}
*/
proto.google.api.PythonSettings.ExperimentalFeatures.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {boolean} */ (reader.readBool());
msg.setRestAsyncIoEnabled(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};


/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.google.api.PythonSettings.ExperimentalFeatures.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.google.api.PythonSettings.ExperimentalFeatures.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};


/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.google.api.PythonSettings.ExperimentalFeatures} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.google.api.PythonSettings.ExperimentalFeatures.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getRestAsyncIoEnabled();
if (f) {
writer.writeBool(
1,
f
);
}
};


/**
* optional bool rest_async_io_enabled = 1;
* @return {boolean}
*/
proto.google.api.PythonSettings.ExperimentalFeatures.prototype.getRestAsyncIoEnabled = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
};


/**
* @param {boolean} value
* @return {!proto.google.api.PythonSettings.ExperimentalFeatures} returns this
*/
proto.google.api.PythonSettings.ExperimentalFeatures.prototype.setRestAsyncIoEnabled = function(value) {
return jspb.Message.setProto3BooleanField(this, 1, value);
};


Expand Down Expand Up @@ -2275,6 +2441,43 @@ proto.google.api.PythonSettings.prototype.hasCommon = function() {
};


/**
* optional ExperimentalFeatures experimental_features = 2;
* @return {?proto.google.api.PythonSettings.ExperimentalFeatures}
*/
proto.google.api.PythonSettings.prototype.getExperimentalFeatures = function() {
return /** @type{?proto.google.api.PythonSettings.ExperimentalFeatures} */ (
jspb.Message.getWrapperField(this, proto.google.api.PythonSettings.ExperimentalFeatures, 2));
};


/**
* @param {?proto.google.api.PythonSettings.ExperimentalFeatures|undefined} value
* @return {!proto.google.api.PythonSettings} returns this
*/
proto.google.api.PythonSettings.prototype.setExperimentalFeatures = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};


/**
* Clears the message field making it undefined.
* @return {!proto.google.api.PythonSettings} returns this
*/
proto.google.api.PythonSettings.prototype.clearExperimentalFeatures = function() {
return this.setExperimentalFeatures(undefined);
};


/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.google.api.PythonSettings.prototype.hasExperimentalFeatures = function() {
return jspb.Message.getField(this, 2) != null;
};





Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clarifai-nodejs-grpc",
"version": "10.7.2",
"version": "10.8.0",
"description": "The official Clarifai Node.js gRPC client",
"main": "src/index.js",
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",
Expand Down
77 changes: 75 additions & 2 deletions proto/clarifai/api/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,13 @@ enum LicenseScope {
SEARCH = 3;
}

enum LicenseType {
UNKNOWN_LICENSE_TYPE = 0;
FIRST_PARTY = 1;
OPEN_SOURCE = 2;
CLOSED_SOURCE = 3;
}


// This is the Model object which represents a created model in the platform.
// Each model has a particular type denoted by the model_type_id.
Expand Down Expand Up @@ -1402,6 +1409,17 @@ message Model {
BookmarkOrigin bookmark_origin = 33;
// Representative image for this model
Image image = 34;
// License Type
LicenseType license_type = 35;
// Source of Model
enum Source {
UNKNOWN_SOURCE = 0;
HOSTED = 1;
WRAPPED = 2;
}
Source source = 36;
// Creator of Model
string creator = 37;
}

// A link to a html/markdown/text file that stores reference material tied to a model.
Expand Down Expand Up @@ -3056,6 +3074,21 @@ message Task {
// Worker details.
TaskWorker worker = 6;

// Who is doing annotations - human Worker or auto-annotation via Model/Workflow.
// If set, worker must have be set accordingly to either human worker or model/workflow worker
WorkerType worker_type = 22;

enum WorkerType {
// for backward compatibility when task is not setting any type and only sets workers
WORKER_TYPE_NOT_SET = 0;

// only human workers
WORKER_HUMAN = 1;

// auto-annotation tasks. Task must set worker as model or workflow
WORKER_AUTO = 2;
}

// List of concept ids used in the work of this task.
// DEPRECATED: Use task.concepts instead.
repeated string concept_ids = 7 [deprecated = true];
Expand Down Expand Up @@ -3085,8 +3118,10 @@ message Task {

// Concepts classification tasks annotate concepts for the overall image, frame of video or section of text.
CONCEPTS_CLASSIFICATION = 1;

// Bounding box detection tasks annotate rectangular bounding box regions around each concept in an image, frame of video or section of text.
BOUNDING_BOX_DETECTION = 2;

// Polygon detection tasks annotate free-form regions around concepts in an image, frame of video or section of text.
POLYGON_DETECTION = 3;
}
Expand Down Expand Up @@ -4662,10 +4697,48 @@ message ProcessingInfo {
// item's processing should be cancelled, etc.
clarifai.api.status.Status status = 2;
}
enum AuditOperationType {
AUDIT_OPERATION_TYPE_NOT_SET = 0;
enum EventType {
EVENT_TYPE_NOT_SET = 0;

// APPLICATION event types : 100 - 199
APPLICATION_CREATE = 100;
}



// AuditLogTarget is a resource on which an operation recorded in an
// audit log was performed.
message AuditLogTarget {
oneof target {
User member = 1; // An organization member, only used in org audit logs.
}
}

// AuditLogEntry is a single operation recorded in an audit log.
message AuditLogEntry {
google.protobuf.Timestamp timestamp = 1; // Time of the operation.
User user = 2; // User that performed the operation.
EventType operation = 3; // Type of operation that was performed.
string description = 4; // A human-readable description of the operation.
// Targets of the operation. For example,
// - when creating a new model, the targets would be the application and the model,
// - when adding a team member, the targets would be the team and the member.
repeated AuditLogTarget targets = 5;
// Additional human-readable details of the operation. For example,
// when patching a resource, these would list what was changed.
repeated string details = 6;
bool success = 7; // Was the operation successful?
string req_id = 8; // Request that triggered the operation.
string source_ip = 9; // IP address where the request originated from.
}

// AuditLogQuery is a query for audit log entries.
message AuditLogQuery {
google.protobuf.Timestamp timestamp_from = 1; // Query operations within this time range.
google.protobuf.Timestamp timestamp_to = 2;
repeated string user_ids = 3; // Query operations by these users.
repeated EventType operations = 4; // Query these types of operations.
repeated AuditLogTarget targets = 5; // Query operations with these targets.
google.protobuf.BoolValue success = 6; // Query operations by success.
repeated string source_ips = 7; // Query operations by source IP address.
}
Loading

0 comments on commit 30b33aa

Please sign in to comment.