Skip to content

Commit 227045c

Browse files
committed
GRPC clients version 12.0.6
1 parent 59abf01 commit 227045c

File tree

6 files changed

+75
-308
lines changed

6 files changed

+75
-308
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.0.5
1+
12.0.6

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.0.5",
3+
"version": "12.0.6",
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/service.proto

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7775,9 +7775,14 @@ message ListTasksRequest {
77757775
// Request to patch a list of tasks.
77767776
message PatchTasksRequest {
77777777
clarifai.api.UserAppIDSet user_app_id = 1;
7778+
77787779
repeated Task tasks = 2;
7779-
// The action to perform on the patched objects
7780-
// For now, only 'overwrite' action is supported
7780+
7781+
// The action to perform on the patched tasks
7782+
// Supported operations:
7783+
// * 'overwrite' - overwrite the task with the fields provided in the request
7784+
// * 'merge' - update only the fields provided in the request, leave other fields unchanged
7785+
// For now, the 'merge' operation only supports updating task status.
77817786
string action = 3;
77827787
}
77837788

@@ -7873,7 +7878,7 @@ message PatchLabelOrdersRequest {
78737878
repeated LabelOrder label_orders = 2;
78747879

78757880
// The action to perform on the patched objects
7876-
// For now actions 'merge', 'overwrite', and 'remove' are supported
7881+
// For now, only 'overwrite' option is supported
78777882
string action = 3;
78787883
}
78797884

@@ -8729,20 +8734,14 @@ message RunnerItem {
87298734
}
87308735

87318736
message AutoAnnotationRequest {
8732-
// Perform prediction request and call PostAnnotations endpoint using post_annotations_info and prediction results.
8737+
// Perform prediction request and call PostAnnotations endpoint using prediction results.
87338738
PostModelOutputsRequest post_model_outputs_request = 1;
87348739

8735-
PostAnnotationsInfo post_annotations_info = 2;
8736-
8737-
message PostAnnotationsInfo {
8738-
UserAppIDSet user_app_id = 1;
8739-
8740-
// Authorization value to be used when calling PostAnnotations endpoint.
8741-
string authorization_value = 2;
8740+
// Task used to create annotations .
8741+
Task task = 2;
87428742

8743-
// Task ID linked to the annotations being created.
8744-
string task_id = 3;
8745-
}
8743+
// Authorization value to be used when calling PostAnnotations endpoint.
8744+
string authorization_value = 3;
87468745
}
87478746

87488747
// This contains the response of the user's request once processing is done.

proto/clarifai/api/service_pb.d.ts

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11039,10 +11039,12 @@ export class AutoAnnotationRequest extends jspb.Message {
1103911039
getPostModelOutputsRequest(): PostModelOutputsRequest | undefined;
1104011040
setPostModelOutputsRequest(value?: PostModelOutputsRequest): AutoAnnotationRequest;
1104111041

11042-
hasPostAnnotationsInfo(): boolean;
11043-
clearPostAnnotationsInfo(): void;
11044-
getPostAnnotationsInfo(): AutoAnnotationRequest.PostAnnotationsInfo | undefined;
11045-
setPostAnnotationsInfo(value?: AutoAnnotationRequest.PostAnnotationsInfo): AutoAnnotationRequest;
11042+
hasTask(): boolean;
11043+
clearTask(): void;
11044+
getTask(): proto_clarifai_api_resources_pb.Task | undefined;
11045+
setTask(value?: proto_clarifai_api_resources_pb.Task): AutoAnnotationRequest;
11046+
getAuthorizationValue(): string;
11047+
setAuthorizationValue(value: string): AutoAnnotationRequest;
1104611048

1104711049
serializeBinary(): Uint8Array;
1104811050
toObject(includeInstance?: boolean): AutoAnnotationRequest.AsObject;
@@ -11057,39 +11059,9 @@ export class AutoAnnotationRequest extends jspb.Message {
1105711059
export namespace AutoAnnotationRequest {
1105811060
export type AsObject = {
1105911061
postModelOutputsRequest?: PostModelOutputsRequest.AsObject,
11060-
postAnnotationsInfo?: AutoAnnotationRequest.PostAnnotationsInfo.AsObject,
11061-
}
11062-
11063-
11064-
export class PostAnnotationsInfo extends jspb.Message {
11065-
11066-
hasUserAppId(): boolean;
11067-
clearUserAppId(): void;
11068-
getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
11069-
setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostAnnotationsInfo;
11070-
getAuthorizationValue(): string;
11071-
setAuthorizationValue(value: string): PostAnnotationsInfo;
11072-
getTaskId(): string;
11073-
setTaskId(value: string): PostAnnotationsInfo;
11074-
11075-
serializeBinary(): Uint8Array;
11076-
toObject(includeInstance?: boolean): PostAnnotationsInfo.AsObject;
11077-
static toObject(includeInstance: boolean, msg: PostAnnotationsInfo): PostAnnotationsInfo.AsObject;
11078-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
11079-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
11080-
static serializeBinaryToWriter(message: PostAnnotationsInfo, writer: jspb.BinaryWriter): void;
11081-
static deserializeBinary(bytes: Uint8Array): PostAnnotationsInfo;
11082-
static deserializeBinaryFromReader(message: PostAnnotationsInfo, reader: jspb.BinaryReader): PostAnnotationsInfo;
11083-
}
11084-
11085-
export namespace PostAnnotationsInfo {
11086-
export type AsObject = {
11087-
userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
11088-
authorizationValue: string,
11089-
taskId: string,
11090-
}
11062+
task?: proto_clarifai_api_resources_pb.Task.AsObject,
11063+
authorizationValue: string,
1109111064
}
11092-
1109311065
}
1109411066

1109511067
export class RunnerItemOutput extends jspb.Message {

0 commit comments

Comments
 (0)