Skip to content

Commit

Permalink
GRPC clients version 9.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Sep 19, 2023
1 parent a3495ad commit 4991b63
Show file tree
Hide file tree
Showing 11 changed files with 1,492 additions and 155 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.8.1
9.8.2
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": "9.8.1",
"version": "9.8.2",
"description": "The official Clarifai Node.js gRPC client",
"main": "src/index.js",
"repository": "https://github.com/Clarifai/clarifai-javascript-grpc",
Expand Down
26 changes: 26 additions & 0 deletions proto/clarifai/api/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,23 @@ message Annotation {
string workflow_version_id = 20;
}

// Worker is the author of an annotation.
message Worker {
oneof worker {
// User is the human that created the annotation.
//
// By default no real names of users are returned in responses. These can
// be requested with the 'names' additional field.
User user = 1;

// Model is the model that created the annotation.
Model model = 2;

// Workflow is the workflow that created the annotation.
Workflow workflow = 3;
}
}

// Application with tasks and datasets
message App {
reserved 10, 11, 12;
Expand Down Expand Up @@ -3861,6 +3878,9 @@ message InputsExtractionJob {

// How to handle input ID conflicts.
InputIDConflictResolution input_id_conflict_resolution = 7;

// Fields set in the template are added to all generated inputs
Input input_template = 8;
}

message InputsExtractionJobProgress {
Expand Down Expand Up @@ -3888,6 +3908,9 @@ message InputsDataSource {

// How to handle input ID conflicts.
InputIDConflictResolution input_id_conflict_resolution = 3;

// Fields set in the template will also be added to all generated inputs
Input input_template = 4;
}

message DataSourceURL {
Expand Down Expand Up @@ -3939,6 +3962,9 @@ message InputsUpload {

// How to handle input ID conflicts.
InputIDConflictResolution input_id_conflict_resolution = 4;

// Fields set in the template will also be added to all generated inputs
Input input_template = 5;
}
enum InputIDConflictResolution {
INPUT_ID_CONFLICT_RESOLUTION_NOT_SET = 0; // Defaults to SKIP
Expand Down
63 changes: 63 additions & 0 deletions proto/clarifai/api/resources_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,51 @@ export namespace Annotation {
}
}

export class Worker extends jspb.Message {

hasUser(): boolean;
clearUser(): void;
getUser(): User | undefined;
setUser(value?: User): Worker;

hasModel(): boolean;
clearModel(): void;
getModel(): Model | undefined;
setModel(value?: Model): Worker;

hasWorkflow(): boolean;
clearWorkflow(): void;
getWorkflow(): Workflow | undefined;
setWorkflow(value?: Workflow): Worker;

getWorkerCase(): Worker.WorkerCase;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Worker.AsObject;
static toObject(includeInstance: boolean, msg: Worker): Worker.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: Worker, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): Worker;
static deserializeBinaryFromReader(message: Worker, reader: jspb.BinaryReader): Worker;
}

export namespace Worker {
export type AsObject = {
user?: User.AsObject,
model?: Model.AsObject,
workflow?: Workflow.AsObject,
}

export enum WorkerCase {
WORKER_NOT_SET = 0,
USER = 1,
MODEL = 2,
WORKFLOW = 3,
}

}

export class App extends jspb.Message {
getId(): string;
setId(value: string): App;
Expand Down Expand Up @@ -7233,6 +7278,11 @@ export class InputsExtractionJob extends jspb.Message {
getInputIdConflictResolution(): InputIDConflictResolution;
setInputIdConflictResolution(value: InputIDConflictResolution): InputsExtractionJob;

hasInputTemplate(): boolean;
clearInputTemplate(): void;
getInputTemplate(): Input | undefined;
setInputTemplate(value?: Input): InputsExtractionJob;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): InputsExtractionJob.AsObject;
static toObject(includeInstance: boolean, msg: InputsExtractionJob): InputsExtractionJob.AsObject;
Expand All @@ -7252,6 +7302,7 @@ export namespace InputsExtractionJob {
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
inputIdConflictResolution: InputIDConflictResolution,
inputTemplate?: Input.AsObject,
}
}

Expand Down Expand Up @@ -7307,6 +7358,11 @@ export class InputsDataSource extends jspb.Message {
getInputIdConflictResolution(): InputIDConflictResolution;
setInputIdConflictResolution(value: InputIDConflictResolution): InputsDataSource;

hasInputTemplate(): boolean;
clearInputTemplate(): void;
getInputTemplate(): Input | undefined;
setInputTemplate(value?: Input): InputsDataSource;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): InputsDataSource.AsObject;
static toObject(includeInstance: boolean, msg: InputsDataSource): InputsDataSource.AsObject;
Expand All @@ -7322,6 +7378,7 @@ export namespace InputsDataSource {
inputsAddJobId: string,
url?: DataSourceURL.AsObject,
inputIdConflictResolution: InputIDConflictResolution,
inputTemplate?: Input.AsObject,
}
}

Expand Down Expand Up @@ -7463,6 +7520,11 @@ export class InputsUpload extends jspb.Message {
getInputIdConflictResolution(): InputIDConflictResolution;
setInputIdConflictResolution(value: InputIDConflictResolution): InputsUpload;

hasInputTemplate(): boolean;
clearInputTemplate(): void;
getInputTemplate(): Input | undefined;
setInputTemplate(value?: Input): InputsUpload;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): InputsUpload.AsObject;
static toObject(includeInstance: boolean, msg: InputsUpload): InputsUpload.AsObject;
Expand All @@ -7479,6 +7541,7 @@ export namespace InputsUpload {
appPat: string,
upload?: Upload.AsObject,
inputIdConflictResolution: InputIDConflictResolution,
inputTemplate?: Input.AsObject,
}
}

Expand Down
Loading

0 comments on commit 4991b63

Please sign in to comment.