Skip to content

Commit dad5047

Browse files
committed
GRPC clients version 12.2.5
1 parent de290ea commit dad5047

File tree

12 files changed

+826
-4
lines changed

12 files changed

+826
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.2.4
1+
12.2.5

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clarifai-nodejs-grpc",
3-
"version": "12.2.4",
3+
"version": "12.2.5",
44
"description": "The official Clarifai Node.js gRPC client",
55
"main": "src/index.js",
66
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",

proto/clarifai/api/resources.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import "proto/clarifai/api/status/status.proto";
44
import "proto/clarifai/api/status/status_code.proto";
55
import "proto/clarifai/api/utils/extensions.proto";
66
import "proto/clarifai/api/utils/matrix.proto";
7+
import "proto/clarifai/api/utils/time.proto";
78
import "proto/clarifai/auth/util/extension.proto";
89

910
import "google/protobuf/duration.proto";
@@ -3713,6 +3714,14 @@ message TaskConceptAutoAnnotationConfig {
37133714
ThresholdRange threshold_range = 2;
37143715
// The output annotations will be created using this status code.
37153716
clarifai.api.status.StatusCode status_code = 3;
3717+
3718+
// Task auto annotation for this concept only applies to this time of day range.
3719+
// When out of range, the task will not generate annotations for the concept.
3720+
clarifai.api.utils.TimeOfDayRange time_of_day_range = 4;
3721+
3722+
// Filter out annotations that are out of this polygon.
3723+
// When it's set, only detection annotations that intersect the polygon will pass the filter.
3724+
Polygon polygon = 5;
37163725
}
37173726

37183727
message TaskConcept {
@@ -4915,6 +4924,13 @@ message AutoscaleConfig {
49154924
bool disable_packing = 7;
49164925
// The idle time before scaling down to zero
49174926
uint32 scale_to_zero_delay_seconds = 8;
4927+
4928+
// The soft minimum number of replicas for the runner.
4929+
// Unlike min_replicas (which is a hard floor the autoscaler never violates),
4930+
// soft_min_replicas is a target the autoscaler tries to maintain but can violate
4931+
// (e.g., scaling to zero during idle periods).
4932+
// A value of 0 means not set / disabled.
4933+
uint32 soft_min_replicas = 9;
49184934
}
49194935

49204936

proto/clarifai/api/resources_pb.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as proto_clarifai_api_status_status_pb from "../../../proto/clarifai/ap
99
import * as proto_clarifai_api_status_status_code_pb from "../../../proto/clarifai/api/status/status_code_pb";
1010
import * as proto_clarifai_api_utils_extensions_pb from "../../../proto/clarifai/api/utils/extensions_pb";
1111
import * as proto_clarifai_api_utils_matrix_pb from "../../../proto/clarifai/api/utils/matrix_pb";
12+
import * as proto_clarifai_api_utils_time_pb from "../../../proto/clarifai/api/utils/time_pb";
1213
import * as proto_clarifai_auth_util_extension_pb from "../../../proto/clarifai/auth/util/extension_pb";
1314
import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
1415
import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
@@ -6532,6 +6533,16 @@ export class TaskConceptAutoAnnotationConfig extends jspb.Message {
65326533
getStatusCode(): proto_clarifai_api_status_status_code_pb.StatusCode;
65336534
setStatusCode(value: proto_clarifai_api_status_status_code_pb.StatusCode): TaskConceptAutoAnnotationConfig;
65346535

6536+
hasTimeOfDayRange(): boolean;
6537+
clearTimeOfDayRange(): void;
6538+
getTimeOfDayRange(): proto_clarifai_api_utils_time_pb.TimeOfDayRange | undefined;
6539+
setTimeOfDayRange(value?: proto_clarifai_api_utils_time_pb.TimeOfDayRange): TaskConceptAutoAnnotationConfig;
6540+
6541+
hasPolygon(): boolean;
6542+
clearPolygon(): void;
6543+
getPolygon(): Polygon | undefined;
6544+
setPolygon(value?: Polygon): TaskConceptAutoAnnotationConfig;
6545+
65356546
serializeBinary(): Uint8Array;
65366547
toObject(includeInstance?: boolean): TaskConceptAutoAnnotationConfig.AsObject;
65376548
static toObject(includeInstance: boolean, msg: TaskConceptAutoAnnotationConfig): TaskConceptAutoAnnotationConfig.AsObject;
@@ -6547,6 +6558,8 @@ export namespace TaskConceptAutoAnnotationConfig {
65476558
annotationDataTypes: number,
65486559
thresholdRange?: ThresholdRange.AsObject,
65496560
statusCode: proto_clarifai_api_status_status_code_pb.StatusCode,
6561+
timeOfDayRange?: proto_clarifai_api_utils_time_pb.TimeOfDayRange.AsObject,
6562+
polygon?: Polygon.AsObject,
65506563
}
65516564
}
65526565

@@ -8666,6 +8679,8 @@ export class AutoscaleConfig extends jspb.Message {
86668679
setDisablePacking(value: boolean): AutoscaleConfig;
86678680
getScaleToZeroDelaySeconds(): number;
86688681
setScaleToZeroDelaySeconds(value: number): AutoscaleConfig;
8682+
getSoftMinReplicas(): number;
8683+
setSoftMinReplicas(value: number): AutoscaleConfig;
86698684

86708685
serializeBinary(): Uint8Array;
86718686
toObject(includeInstance?: boolean): AutoscaleConfig.AsObject;
@@ -8686,6 +8701,7 @@ export namespace AutoscaleConfig {
86868701
scaleUpDelaySeconds: number,
86878702
disablePacking: boolean,
86888703
scaleToZeroDelaySeconds: number,
8704+
softMinReplicas: number,
86898705
}
86908706
}
86918707

proto/clarifai/api/resources_pb.js

Lines changed: 136 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ var proto_clarifai_api_utils_extensions_pb = require('../../../proto/clarifai/ap
2929
goog.object.extend(proto, proto_clarifai_api_utils_extensions_pb);
3030
var proto_clarifai_api_utils_matrix_pb = require('../../../proto/clarifai/api/utils/matrix_pb.js');
3131
goog.object.extend(proto, proto_clarifai_api_utils_matrix_pb);
32+
var proto_clarifai_api_utils_time_pb = require('../../../proto/clarifai/api/utils/time_pb.js');
33+
goog.object.extend(proto, proto_clarifai_api_utils_time_pb);
3234
var proto_clarifai_auth_util_extension_pb = require('../../../proto/clarifai/auth/util/extension_pb.js');
3335
goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
3436
var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
@@ -56778,7 +56780,9 @@ proto.clarifai.api.TaskConceptAutoAnnotationConfig.toObject = function(includeIn
5677856780
var f, obj = {
5677956781
annotationDataTypes: jspb.Message.getFieldWithDefault(msg, 1, 0),
5678056782
thresholdRange: (f = msg.getThresholdRange()) && proto.clarifai.api.ThresholdRange.toObject(includeInstance, f),
56781-
statusCode: jspb.Message.getFieldWithDefault(msg, 3, 0)
56783+
statusCode: jspb.Message.getFieldWithDefault(msg, 3, 0),
56784+
timeOfDayRange: (f = msg.getTimeOfDayRange()) && proto_clarifai_api_utils_time_pb.TimeOfDayRange.toObject(includeInstance, f),
56785+
polygon: (f = msg.getPolygon()) && proto.clarifai.api.Polygon.toObject(includeInstance, f)
5678256786
};
5678356787

5678456788
if (includeInstance) {
@@ -56828,6 +56832,16 @@ proto.clarifai.api.TaskConceptAutoAnnotationConfig.deserializeBinaryFromReader =
5682856832
var value = /** @type {!proto.clarifai.api.status.StatusCode} */ (reader.readEnum());
5682956833
msg.setStatusCode(value);
5683056834
break;
56835+
case 4:
56836+
var value = new proto_clarifai_api_utils_time_pb.TimeOfDayRange;
56837+
reader.readMessage(value,proto_clarifai_api_utils_time_pb.TimeOfDayRange.deserializeBinaryFromReader);
56838+
msg.setTimeOfDayRange(value);
56839+
break;
56840+
case 5:
56841+
var value = new proto.clarifai.api.Polygon;
56842+
reader.readMessage(value,proto.clarifai.api.Polygon.deserializeBinaryFromReader);
56843+
msg.setPolygon(value);
56844+
break;
5683156845
default:
5683256846
reader.skipField();
5683356847
break;
@@ -56879,6 +56893,22 @@ proto.clarifai.api.TaskConceptAutoAnnotationConfig.serializeBinaryToWriter = fun
5687956893
f
5688056894
);
5688156895
}
56896+
f = message.getTimeOfDayRange();
56897+
if (f != null) {
56898+
writer.writeMessage(
56899+
4,
56900+
f,
56901+
proto_clarifai_api_utils_time_pb.TimeOfDayRange.serializeBinaryToWriter
56902+
);
56903+
}
56904+
f = message.getPolygon();
56905+
if (f != null) {
56906+
writer.writeMessage(
56907+
5,
56908+
f,
56909+
proto.clarifai.api.Polygon.serializeBinaryToWriter
56910+
);
56911+
}
5688256912
};
5688356913

5688456914

@@ -56955,6 +56985,80 @@ proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.setStatusCode = fun
5695556985
};
5695656986

5695756987

56988+
/**
56989+
* optional utils.TimeOfDayRange time_of_day_range = 4;
56990+
* @return {?proto.clarifai.api.utils.TimeOfDayRange}
56991+
*/
56992+
proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.getTimeOfDayRange = function() {
56993+
return /** @type{?proto.clarifai.api.utils.TimeOfDayRange} */ (
56994+
jspb.Message.getWrapperField(this, proto_clarifai_api_utils_time_pb.TimeOfDayRange, 4));
56995+
};
56996+
56997+
56998+
/**
56999+
* @param {?proto.clarifai.api.utils.TimeOfDayRange|undefined} value
57000+
* @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} returns this
57001+
*/
57002+
proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.setTimeOfDayRange = function(value) {
57003+
return jspb.Message.setWrapperField(this, 4, value);
57004+
};
57005+
57006+
57007+
/**
57008+
* Clears the message field making it undefined.
57009+
* @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} returns this
57010+
*/
57011+
proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.clearTimeOfDayRange = function() {
57012+
return this.setTimeOfDayRange(undefined);
57013+
};
57014+
57015+
57016+
/**
57017+
* Returns whether this field is set.
57018+
* @return {boolean}
57019+
*/
57020+
proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.hasTimeOfDayRange = function() {
57021+
return jspb.Message.getField(this, 4) != null;
57022+
};
57023+
57024+
57025+
/**
57026+
* optional Polygon polygon = 5;
57027+
* @return {?proto.clarifai.api.Polygon}
57028+
*/
57029+
proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.getPolygon = function() {
57030+
return /** @type{?proto.clarifai.api.Polygon} */ (
57031+
jspb.Message.getWrapperField(this, proto.clarifai.api.Polygon, 5));
57032+
};
57033+
57034+
57035+
/**
57036+
* @param {?proto.clarifai.api.Polygon|undefined} value
57037+
* @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} returns this
57038+
*/
57039+
proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.setPolygon = function(value) {
57040+
return jspb.Message.setWrapperField(this, 5, value);
57041+
};
57042+
57043+
57044+
/**
57045+
* Clears the message field making it undefined.
57046+
* @return {!proto.clarifai.api.TaskConceptAutoAnnotationConfig} returns this
57047+
*/
57048+
proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.clearPolygon = function() {
57049+
return this.setPolygon(undefined);
57050+
};
57051+
57052+
57053+
/**
57054+
* Returns whether this field is set.
57055+
* @return {boolean}
57056+
*/
57057+
proto.clarifai.api.TaskConceptAutoAnnotationConfig.prototype.hasPolygon = function() {
57058+
return jspb.Message.getField(this, 5) != null;
57059+
};
57060+
57061+
5695857062

5695957063

5696057064

@@ -72645,7 +72749,8 @@ proto.clarifai.api.AutoscaleConfig.toObject = function(includeInstance, msg) {
7264572749
scaleDownDelaySeconds: jspb.Message.getFieldWithDefault(msg, 4, 0),
7264672750
scaleUpDelaySeconds: jspb.Message.getFieldWithDefault(msg, 5, 0),
7264772751
disablePacking: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
72648-
scaleToZeroDelaySeconds: jspb.Message.getFieldWithDefault(msg, 8, 0)
72752+
scaleToZeroDelaySeconds: jspb.Message.getFieldWithDefault(msg, 8, 0),
72753+
softMinReplicas: jspb.Message.getFieldWithDefault(msg, 9, 0)
7264972754
};
7265072755

7265172756
if (includeInstance) {
@@ -72710,6 +72815,10 @@ proto.clarifai.api.AutoscaleConfig.deserializeBinaryFromReader = function(msg, r
7271072815
var value = /** @type {number} */ (reader.readUint32());
7271172816
msg.setScaleToZeroDelaySeconds(value);
7271272817
break;
72818+
case 9:
72819+
var value = /** @type {number} */ (reader.readUint32());
72820+
msg.setSoftMinReplicas(value);
72821+
break;
7271372822
default:
7271472823
reader.skipField();
7271572824
break;
@@ -72788,6 +72897,13 @@ proto.clarifai.api.AutoscaleConfig.serializeBinaryToWriter = function(message, w
7278872897
f
7278972898
);
7279072899
}
72900+
f = message.getSoftMinReplicas();
72901+
if (f !== 0) {
72902+
writer.writeUint32(
72903+
9,
72904+
f
72905+
);
72906+
}
7279172907
};
7279272908

7279372909

@@ -72917,6 +73033,24 @@ proto.clarifai.api.AutoscaleConfig.prototype.setScaleToZeroDelaySeconds = functi
7291773033
};
7291873034

7291973035

73036+
/**
73037+
* optional uint32 soft_min_replicas = 9;
73038+
* @return {number}
73039+
*/
73040+
proto.clarifai.api.AutoscaleConfig.prototype.getSoftMinReplicas = function() {
73041+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
73042+
};
73043+
73044+
73045+
/**
73046+
* @param {number} value
73047+
* @return {!proto.clarifai.api.AutoscaleConfig} returns this
73048+
*/
73049+
proto.clarifai.api.AutoscaleConfig.prototype.setSoftMinReplicas = function(value) {
73050+
return jspb.Message.setProto3IntField(this, 9, value);
73051+
};
73052+
73053+
7292073054

7292173055

7292273056

proto/clarifai/api/status/status_code.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,8 @@ enum StatusCode {
612612
//Twilio related issues: 71xxx
613613
TWILIO_MAX_VERIFICATION_BEGIN_EXCEEDED = 71003;
614614
TWILIO_MAX_VERIFICATION_CHECK_EXCEEDED = 71004;
615+
// The provided phone number was rejected or blocked by Twilio.
616+
TWILIO_PHONE_NUMBER_BLOCKED = 71005;
615617

616618
// Internal issues: 98xxx
617619
INTERNAL_SERVER_ISSUE = 98004;

proto/clarifai/api/status/status_code_pb.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ export enum StatusCode {
414414
LOG_ENTRIES_INVALID_REQUEST = 70000,
415415
TWILIO_MAX_VERIFICATION_BEGIN_EXCEEDED = 71003,
416416
TWILIO_MAX_VERIFICATION_CHECK_EXCEEDED = 71004,
417+
TWILIO_PHONE_NUMBER_BLOCKED = 71005,
417418
INTERNAL_SERVER_ISSUE = 98004,
418419
INTERNAL_FETCHING_ISSUE = 98005,
419420
INTERNAL_DATABASE_ISSUE = 98006,

proto/clarifai/api/status/status_code_pb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ proto.clarifai.api.status.StatusCode = {
433433
LOG_ENTRIES_INVALID_REQUEST: 70000,
434434
TWILIO_MAX_VERIFICATION_BEGIN_EXCEEDED: 71003,
435435
TWILIO_MAX_VERIFICATION_CHECK_EXCEEDED: 71004,
436+
TWILIO_PHONE_NUMBER_BLOCKED: 71005,
436437
INTERNAL_SERVER_ISSUE: 98004,
437438
INTERNAL_FETCHING_ISSUE: 98005,
438439
INTERNAL_DATABASE_ISSUE: 98006,
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
syntax = "proto3";
2+
3+
package clarifai.api.utils;
4+
5+
option go_package = "github.com/Clarifai/clarifai-go-grpc/proto/clarifai/api/utils";
6+
option java_package = "com.clarifai.grpc.api.utils";
7+
8+
9+
message TimeOfDay {
10+
// Hours of day in 24 hour format. Must be from 0 to 23.
11+
int32 hours = 1;
12+
// Minutes of hour of day. Must be from 0 to 59.
13+
int32 minutes = 2;
14+
// Seconds of minutes of the time. Must be from 0 to 59.
15+
int32 seconds = 3;
16+
// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
17+
int32 nanos = 4;
18+
}
19+
20+
// TimeOfDayRange represents a period of time withing a day.
21+
// e.g. [9am, 5pm) -> start = 9:00:00, end = 17:00:00, is_start_inclusive = true, is_end_inclusive = false
22+
message TimeOfDayRange {
23+
// Start time of day represented as a duration.
24+
TimeOfDay start = 1;
25+
// End time of day represented as a duration.
26+
// May be less than start duration if the time of day range goes over midnight.
27+
TimeOfDay end = 2;
28+
bool is_start_inclusive = 3;
29+
bool is_end_inclusive = 4;
30+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// GENERATED CODE -- NO SERVICES IN PROTO

0 commit comments

Comments
 (0)