clarifai-web-grpc 10.2.1 → 10.3.1
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/README.md +13 -11
- package/VERSION +1 -1
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/proto/clarifai/api/resources_pb.js +2720 -113
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +38 -42
- package/dist/cjs/proto/clarifai/api/service_pb.js +1042 -445
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/dist/cjs/resources.d.ts +1 -0
- package/dist/cjs/resources.js +3 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +6 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +2720 -113
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +38 -42
- package/dist/esm/proto/clarifai/api/service_pb.js +1042 -445
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/dist/esm/resources.d.ts +1 -0
- package/dist/esm/resources.js +1 -0
- package/examples/post-app.ts +27 -0
- package/examples/post-input.ts +42 -0
- package/index.ts +7 -2
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +435 -0
- package/proto/clarifai/api/resources_pb.js +3370 -114
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +10 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +56 -61
- package/proto/clarifai/api/service_pb.d.ts +164 -72
- package/proto/clarifai/api/service_pb.js +1534 -767
- package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
- package/proto/clarifai/api/status/status_code_pb.js +6 -0
- package/proto/clarifai/auth/scope/scope_pb.d.ts +2 -0
- package/proto/clarifai/auth/scope/scope_pb.js +2 -0
- package/resources.ts +1 -0
|
@@ -289,6 +289,11 @@ export class V2Client {
|
|
|
289
289
|
response: proto_clarifai_api_service_pb.MultiOutputResponse) => void
|
|
290
290
|
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiOutputResponse>;
|
|
291
291
|
|
|
292
|
+
generateModelOutputs(
|
|
293
|
+
request: proto_clarifai_api_service_pb.PostModelOutputsRequest,
|
|
294
|
+
metadata?: grpcWeb.Metadata
|
|
295
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiOutputResponse>;
|
|
296
|
+
|
|
292
297
|
listDatasets(
|
|
293
298
|
request: proto_clarifai_api_service_pb.ListDatasetsRequest,
|
|
294
299
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -1031,13 +1036,6 @@ export class V2Client {
|
|
|
1031
1036
|
response: proto_clarifai_api_service_pb.SingleStatusCodeResponse) => void
|
|
1032
1037
|
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.SingleStatusCodeResponse>;
|
|
1033
1038
|
|
|
1034
|
-
getResourcePrice(
|
|
1035
|
-
request: proto_clarifai_api_service_pb.GetResourcePriceRequest,
|
|
1036
|
-
metadata: grpcWeb.Metadata | undefined,
|
|
1037
|
-
callback: (err: grpcWeb.RpcError,
|
|
1038
|
-
response: proto_clarifai_api_service_pb.GetResourcePriceResponse) => void
|
|
1039
|
-
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.GetResourcePriceResponse>;
|
|
1040
|
-
|
|
1041
1039
|
listCollaborators(
|
|
1042
1040
|
request: proto_clarifai_api_service_pb.ListCollaboratorsRequest,
|
|
1043
1041
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -1749,6 +1747,11 @@ export class V2PromiseClient {
|
|
|
1749
1747
|
metadata?: grpcWeb.Metadata
|
|
1750
1748
|
): Promise<proto_clarifai_api_service_pb.MultiOutputResponse>;
|
|
1751
1749
|
|
|
1750
|
+
generateModelOutputs(
|
|
1751
|
+
request: proto_clarifai_api_service_pb.PostModelOutputsRequest,
|
|
1752
|
+
metadata?: grpcWeb.Metadata
|
|
1753
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiOutputResponse>;
|
|
1754
|
+
|
|
1752
1755
|
listDatasets(
|
|
1753
1756
|
request: proto_clarifai_api_service_pb.ListDatasetsRequest,
|
|
1754
1757
|
metadata?: grpcWeb.Metadata
|
|
@@ -2279,11 +2282,6 @@ export class V2PromiseClient {
|
|
|
2279
2282
|
metadata?: grpcWeb.Metadata
|
|
2280
2283
|
): Promise<proto_clarifai_api_service_pb.SingleStatusCodeResponse>;
|
|
2281
2284
|
|
|
2282
|
-
getResourcePrice(
|
|
2283
|
-
request: proto_clarifai_api_service_pb.GetResourcePriceRequest,
|
|
2284
|
-
metadata?: grpcWeb.Metadata
|
|
2285
|
-
): Promise<proto_clarifai_api_service_pb.GetResourcePriceResponse>;
|
|
2286
|
-
|
|
2287
2285
|
listCollaborators(
|
|
2288
2286
|
request: proto_clarifai_api_service_pb.ListCollaboratorsRequest,
|
|
2289
2287
|
metadata?: grpcWeb.Metadata
|
|
@@ -2535,6 +2535,62 @@ proto.clarifai.api.V2PromiseClient.prototype.postModelOutputs =
|
|
|
2535
2535
|
};
|
|
2536
2536
|
|
|
2537
2537
|
|
|
2538
|
+
/**
|
|
2539
|
+
* @const
|
|
2540
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
2541
|
+
* !proto.clarifai.api.PostModelOutputsRequest,
|
|
2542
|
+
* !proto.clarifai.api.MultiOutputResponse>}
|
|
2543
|
+
*/
|
|
2544
|
+
const methodDescriptor_V2_GenerateModelOutputs = new grpc.web.MethodDescriptor(
|
|
2545
|
+
'/clarifai.api.V2/GenerateModelOutputs',
|
|
2546
|
+
grpc.web.MethodType.SERVER_STREAMING,
|
|
2547
|
+
proto.clarifai.api.PostModelOutputsRequest,
|
|
2548
|
+
proto.clarifai.api.MultiOutputResponse,
|
|
2549
|
+
/**
|
|
2550
|
+
* @param {!proto.clarifai.api.PostModelOutputsRequest} request
|
|
2551
|
+
* @return {!Uint8Array}
|
|
2552
|
+
*/
|
|
2553
|
+
function(request) {
|
|
2554
|
+
return request.serializeBinary();
|
|
2555
|
+
},
|
|
2556
|
+
proto.clarifai.api.MultiOutputResponse.deserializeBinary
|
|
2557
|
+
);
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
/**
|
|
2561
|
+
* @param {!proto.clarifai.api.PostModelOutputsRequest} request The request proto
|
|
2562
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
2563
|
+
* call metadata
|
|
2564
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiOutputResponse>}
|
|
2565
|
+
* The XHR Node Readable Stream
|
|
2566
|
+
*/
|
|
2567
|
+
proto.clarifai.api.V2Client.prototype.generateModelOutputs =
|
|
2568
|
+
function(request, metadata) {
|
|
2569
|
+
return this.client_.serverStreaming(this.hostname_ +
|
|
2570
|
+
'/clarifai.api.V2/GenerateModelOutputs',
|
|
2571
|
+
request,
|
|
2572
|
+
metadata || {},
|
|
2573
|
+
methodDescriptor_V2_GenerateModelOutputs);
|
|
2574
|
+
};
|
|
2575
|
+
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* @param {!proto.clarifai.api.PostModelOutputsRequest} request The request proto
|
|
2579
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
2580
|
+
* call metadata
|
|
2581
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiOutputResponse>}
|
|
2582
|
+
* The XHR Node Readable Stream
|
|
2583
|
+
*/
|
|
2584
|
+
proto.clarifai.api.V2PromiseClient.prototype.generateModelOutputs =
|
|
2585
|
+
function(request, metadata) {
|
|
2586
|
+
return this.client_.serverStreaming(this.hostname_ +
|
|
2587
|
+
'/clarifai.api.V2/GenerateModelOutputs',
|
|
2588
|
+
request,
|
|
2589
|
+
metadata || {},
|
|
2590
|
+
methodDescriptor_V2_GenerateModelOutputs);
|
|
2591
|
+
};
|
|
2592
|
+
|
|
2593
|
+
|
|
2538
2594
|
/**
|
|
2539
2595
|
* @const
|
|
2540
2596
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -9001,67 +9057,6 @@ proto.clarifai.api.V2PromiseClient.prototype.getStatusCode =
|
|
|
9001
9057
|
};
|
|
9002
9058
|
|
|
9003
9059
|
|
|
9004
|
-
/**
|
|
9005
|
-
* @const
|
|
9006
|
-
* @type {!grpc.web.MethodDescriptor<
|
|
9007
|
-
* !proto.clarifai.api.GetResourcePriceRequest,
|
|
9008
|
-
* !proto.clarifai.api.GetResourcePriceResponse>}
|
|
9009
|
-
*/
|
|
9010
|
-
const methodDescriptor_V2_GetResourcePrice = new grpc.web.MethodDescriptor(
|
|
9011
|
-
'/clarifai.api.V2/GetResourcePrice',
|
|
9012
|
-
grpc.web.MethodType.UNARY,
|
|
9013
|
-
proto.clarifai.api.GetResourcePriceRequest,
|
|
9014
|
-
proto.clarifai.api.GetResourcePriceResponse,
|
|
9015
|
-
/**
|
|
9016
|
-
* @param {!proto.clarifai.api.GetResourcePriceRequest} request
|
|
9017
|
-
* @return {!Uint8Array}
|
|
9018
|
-
*/
|
|
9019
|
-
function(request) {
|
|
9020
|
-
return request.serializeBinary();
|
|
9021
|
-
},
|
|
9022
|
-
proto.clarifai.api.GetResourcePriceResponse.deserializeBinary
|
|
9023
|
-
);
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
/**
|
|
9027
|
-
* @param {!proto.clarifai.api.GetResourcePriceRequest} request The
|
|
9028
|
-
* request proto
|
|
9029
|
-
* @param {?Object<string, string>} metadata User defined
|
|
9030
|
-
* call metadata
|
|
9031
|
-
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.GetResourcePriceResponse)}
|
|
9032
|
-
* callback The callback function(error, response)
|
|
9033
|
-
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.GetResourcePriceResponse>|undefined}
|
|
9034
|
-
* The XHR Node Readable Stream
|
|
9035
|
-
*/
|
|
9036
|
-
proto.clarifai.api.V2Client.prototype.getResourcePrice =
|
|
9037
|
-
function(request, metadata, callback) {
|
|
9038
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
9039
|
-
'/clarifai.api.V2/GetResourcePrice',
|
|
9040
|
-
request,
|
|
9041
|
-
metadata || {},
|
|
9042
|
-
methodDescriptor_V2_GetResourcePrice,
|
|
9043
|
-
callback);
|
|
9044
|
-
};
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
/**
|
|
9048
|
-
* @param {!proto.clarifai.api.GetResourcePriceRequest} request The
|
|
9049
|
-
* request proto
|
|
9050
|
-
* @param {?Object<string, string>=} metadata User defined
|
|
9051
|
-
* call metadata
|
|
9052
|
-
* @return {!Promise<!proto.clarifai.api.GetResourcePriceResponse>}
|
|
9053
|
-
* Promise that resolves to the response
|
|
9054
|
-
*/
|
|
9055
|
-
proto.clarifai.api.V2PromiseClient.prototype.getResourcePrice =
|
|
9056
|
-
function(request, metadata) {
|
|
9057
|
-
return this.client_.unaryCall(this.hostname_ +
|
|
9058
|
-
'/clarifai.api.V2/GetResourcePrice',
|
|
9059
|
-
request,
|
|
9060
|
-
metadata || {},
|
|
9061
|
-
methodDescriptor_V2_GetResourcePrice);
|
|
9062
|
-
};
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
9060
|
/**
|
|
9066
9061
|
* @const
|
|
9067
9062
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -88,6 +88,11 @@ export class ListAnnotationsRequest extends jspb.Message {
|
|
|
88
88
|
clearModelVersionIdsList(): ListAnnotationsRequest;
|
|
89
89
|
addModelVersionIds(value: string, index?: number): ListAnnotationsRequest;
|
|
90
90
|
|
|
91
|
+
getWorkflowVersionIdsList(): Array<string>;
|
|
92
|
+
setWorkflowVersionIdsList(value: Array<string>): ListAnnotationsRequest;
|
|
93
|
+
clearWorkflowVersionIdsList(): ListAnnotationsRequest;
|
|
94
|
+
addWorkflowVersionIds(value: string, index?: number): ListAnnotationsRequest;
|
|
95
|
+
|
|
91
96
|
getStatusesList(): Array<proto_clarifai_api_status_status_pb.Status>;
|
|
92
97
|
setStatusesList(value: Array<proto_clarifai_api_status_status_pb.Status>): ListAnnotationsRequest;
|
|
93
98
|
clearStatusesList(): ListAnnotationsRequest;
|
|
@@ -123,6 +128,7 @@ export namespace ListAnnotationsRequest {
|
|
|
123
128
|
inputIdsList: Array<string>,
|
|
124
129
|
userIdsList: Array<string>,
|
|
125
130
|
modelVersionIdsList: Array<string>,
|
|
131
|
+
workflowVersionIdsList: Array<string>,
|
|
126
132
|
statusesList: Array<proto_clarifai_api_status_status_pb.Status.AsObject>,
|
|
127
133
|
listAllAnnotations: boolean,
|
|
128
134
|
returnModelOutput: boolean,
|
|
@@ -1010,70 +1016,6 @@ export namespace MultiCollaborationsResponse {
|
|
|
1010
1016
|
}
|
|
1011
1017
|
}
|
|
1012
1018
|
|
|
1013
|
-
export class GetResourcePriceRequest extends jspb.Message {
|
|
1014
|
-
getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
|
|
1015
|
-
setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetResourcePriceRequest;
|
|
1016
|
-
hasUserAppId(): boolean;
|
|
1017
|
-
clearUserAppId(): GetResourcePriceRequest;
|
|
1018
|
-
|
|
1019
|
-
getModel(): proto_clarifai_api_resources_pb.Model | undefined;
|
|
1020
|
-
setModel(value?: proto_clarifai_api_resources_pb.Model): GetResourcePriceRequest;
|
|
1021
|
-
hasModel(): boolean;
|
|
1022
|
-
clearModel(): GetResourcePriceRequest;
|
|
1023
|
-
|
|
1024
|
-
getWorkflow(): proto_clarifai_api_resources_pb.Workflow | undefined;
|
|
1025
|
-
setWorkflow(value?: proto_clarifai_api_resources_pb.Workflow): GetResourcePriceRequest;
|
|
1026
|
-
hasWorkflow(): boolean;
|
|
1027
|
-
clearWorkflow(): GetResourcePriceRequest;
|
|
1028
|
-
|
|
1029
|
-
getResourceCase(): GetResourcePriceRequest.ResourceCase;
|
|
1030
|
-
|
|
1031
|
-
serializeBinary(): Uint8Array;
|
|
1032
|
-
toObject(includeInstance?: boolean): GetResourcePriceRequest.AsObject;
|
|
1033
|
-
static toObject(includeInstance: boolean, msg: GetResourcePriceRequest): GetResourcePriceRequest.AsObject;
|
|
1034
|
-
static serializeBinaryToWriter(message: GetResourcePriceRequest, writer: jspb.BinaryWriter): void;
|
|
1035
|
-
static deserializeBinary(bytes: Uint8Array): GetResourcePriceRequest;
|
|
1036
|
-
static deserializeBinaryFromReader(message: GetResourcePriceRequest, reader: jspb.BinaryReader): GetResourcePriceRequest;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
export namespace GetResourcePriceRequest {
|
|
1040
|
-
export type AsObject = {
|
|
1041
|
-
userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
|
|
1042
|
-
model?: proto_clarifai_api_resources_pb.Model.AsObject,
|
|
1043
|
-
workflow?: proto_clarifai_api_resources_pb.Workflow.AsObject,
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
export enum ResourceCase {
|
|
1047
|
-
RESOURCE_NOT_SET = 0,
|
|
1048
|
-
MODEL = 2,
|
|
1049
|
-
WORKFLOW = 3,
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
export class GetResourcePriceResponse extends jspb.Message {
|
|
1054
|
-
getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
|
|
1055
|
-
setStatus(value?: proto_clarifai_api_status_status_pb.Status): GetResourcePriceResponse;
|
|
1056
|
-
hasStatus(): boolean;
|
|
1057
|
-
clearStatus(): GetResourcePriceResponse;
|
|
1058
|
-
|
|
1059
|
-
getPrice(): number;
|
|
1060
|
-
setPrice(value: number): GetResourcePriceResponse;
|
|
1061
|
-
|
|
1062
|
-
serializeBinary(): Uint8Array;
|
|
1063
|
-
toObject(includeInstance?: boolean): GetResourcePriceResponse.AsObject;
|
|
1064
|
-
static toObject(includeInstance: boolean, msg: GetResourcePriceResponse): GetResourcePriceResponse.AsObject;
|
|
1065
|
-
static serializeBinaryToWriter(message: GetResourcePriceResponse, writer: jspb.BinaryWriter): void;
|
|
1066
|
-
static deserializeBinary(bytes: Uint8Array): GetResourcePriceResponse;
|
|
1067
|
-
static deserializeBinaryFromReader(message: GetResourcePriceResponse, reader: jspb.BinaryReader): GetResourcePriceResponse;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
export namespace GetResourcePriceResponse {
|
|
1071
|
-
export type AsObject = {
|
|
1072
|
-
status?: proto_clarifai_api_status_status_pb.Status.AsObject,
|
|
1073
|
-
price: number,
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
1019
|
export class GetStatusCodeRequest extends jspb.Message {
|
|
1078
1020
|
getStatusCodeId(): string;
|
|
1079
1021
|
setStatusCodeId(value: string): GetStatusCodeRequest;
|
|
@@ -2759,6 +2701,11 @@ export class ListDatasetVersionsRequest extends jspb.Message {
|
|
|
2759
2701
|
getPerPage(): number;
|
|
2760
2702
|
setPerPage(value: number): ListDatasetVersionsRequest;
|
|
2761
2703
|
|
|
2704
|
+
getRequestOriginsList(): Array<proto_clarifai_api_resources_pb.DatasetVersionRequestOrigin>;
|
|
2705
|
+
setRequestOriginsList(value: Array<proto_clarifai_api_resources_pb.DatasetVersionRequestOrigin>): ListDatasetVersionsRequest;
|
|
2706
|
+
clearRequestOriginsList(): ListDatasetVersionsRequest;
|
|
2707
|
+
addRequestOrigins(value: proto_clarifai_api_resources_pb.DatasetVersionRequestOrigin, index?: number): ListDatasetVersionsRequest;
|
|
2708
|
+
|
|
2762
2709
|
serializeBinary(): Uint8Array;
|
|
2763
2710
|
toObject(includeInstance?: boolean): ListDatasetVersionsRequest.AsObject;
|
|
2764
2711
|
static toObject(includeInstance: boolean, msg: ListDatasetVersionsRequest): ListDatasetVersionsRequest.AsObject;
|
|
@@ -2773,6 +2720,7 @@ export namespace ListDatasetVersionsRequest {
|
|
|
2773
2720
|
datasetId: string,
|
|
2774
2721
|
page: number,
|
|
2775
2722
|
perPage: number,
|
|
2723
|
+
requestOriginsList: Array<proto_clarifai_api_resources_pb.DatasetVersionRequestOrigin>,
|
|
2776
2724
|
}
|
|
2777
2725
|
}
|
|
2778
2726
|
|
|
@@ -3112,6 +3060,11 @@ export class PostModelOutputsRequest extends jspb.Message {
|
|
|
3112
3060
|
hasModel(): boolean;
|
|
3113
3061
|
clearModel(): PostModelOutputsRequest;
|
|
3114
3062
|
|
|
3063
|
+
getRunnerSelector(): proto_clarifai_api_resources_pb.RunnerSelector | undefined;
|
|
3064
|
+
setRunnerSelector(value?: proto_clarifai_api_resources_pb.RunnerSelector): PostModelOutputsRequest;
|
|
3065
|
+
hasRunnerSelector(): boolean;
|
|
3066
|
+
clearRunnerSelector(): PostModelOutputsRequest;
|
|
3067
|
+
|
|
3115
3068
|
serializeBinary(): Uint8Array;
|
|
3116
3069
|
toObject(includeInstance?: boolean): PostModelOutputsRequest.AsObject;
|
|
3117
3070
|
static toObject(includeInstance: boolean, msg: PostModelOutputsRequest): PostModelOutputsRequest.AsObject;
|
|
@@ -3127,6 +3080,7 @@ export namespace PostModelOutputsRequest {
|
|
|
3127
3080
|
versionId: string,
|
|
3128
3081
|
inputsList: Array<proto_clarifai_api_resources_pb.Input.AsObject>,
|
|
3129
3082
|
model?: proto_clarifai_api_resources_pb.Model.AsObject,
|
|
3083
|
+
runnerSelector?: proto_clarifai_api_resources_pb.RunnerSelector.AsObject,
|
|
3130
3084
|
}
|
|
3131
3085
|
}
|
|
3132
3086
|
|
|
@@ -7579,6 +7533,16 @@ export class GetTaskCountRequest extends jspb.Message {
|
|
|
7579
7533
|
clearUserIdsList(): GetTaskCountRequest;
|
|
7580
7534
|
addUserIds(value: string, index?: number): GetTaskCountRequest;
|
|
7581
7535
|
|
|
7536
|
+
getModelVersionIdsList(): Array<string>;
|
|
7537
|
+
setModelVersionIdsList(value: Array<string>): GetTaskCountRequest;
|
|
7538
|
+
clearModelVersionIdsList(): GetTaskCountRequest;
|
|
7539
|
+
addModelVersionIds(value: string, index?: number): GetTaskCountRequest;
|
|
7540
|
+
|
|
7541
|
+
getWorkflowVersionIdsList(): Array<string>;
|
|
7542
|
+
setWorkflowVersionIdsList(value: Array<string>): GetTaskCountRequest;
|
|
7543
|
+
clearWorkflowVersionIdsList(): GetTaskCountRequest;
|
|
7544
|
+
addWorkflowVersionIds(value: string, index?: number): GetTaskCountRequest;
|
|
7545
|
+
|
|
7582
7546
|
serializeBinary(): Uint8Array;
|
|
7583
7547
|
toObject(includeInstance?: boolean): GetTaskCountRequest.AsObject;
|
|
7584
7548
|
static toObject(includeInstance: boolean, msg: GetTaskCountRequest): GetTaskCountRequest.AsObject;
|
|
@@ -7592,6 +7556,8 @@ export namespace GetTaskCountRequest {
|
|
|
7592
7556
|
userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
|
|
7593
7557
|
taskId: string,
|
|
7594
7558
|
userIdsList: Array<string>,
|
|
7559
|
+
modelVersionIdsList: Array<string>,
|
|
7560
|
+
workflowVersionIdsList: Array<string>,
|
|
7595
7561
|
}
|
|
7596
7562
|
}
|
|
7597
7563
|
|
|
@@ -9107,6 +9073,21 @@ export class PutTaskAssignmentsRequest extends jspb.Message {
|
|
|
9107
9073
|
hasLabelSubmitConfig(): boolean;
|
|
9108
9074
|
clearLabelSubmitConfig(): PutTaskAssignmentsRequest;
|
|
9109
9075
|
|
|
9076
|
+
getReviewApproveConfig(): ReviewApproveConfig | undefined;
|
|
9077
|
+
setReviewApproveConfig(value?: ReviewApproveConfig): PutTaskAssignmentsRequest;
|
|
9078
|
+
hasReviewApproveConfig(): boolean;
|
|
9079
|
+
clearReviewApproveConfig(): PutTaskAssignmentsRequest;
|
|
9080
|
+
|
|
9081
|
+
getReviewRequestChangesConfig(): ReviewRequestChangesConfig | undefined;
|
|
9082
|
+
setReviewRequestChangesConfig(value?: ReviewRequestChangesConfig): PutTaskAssignmentsRequest;
|
|
9083
|
+
hasReviewRequestChangesConfig(): boolean;
|
|
9084
|
+
clearReviewRequestChangesConfig(): PutTaskAssignmentsRequest;
|
|
9085
|
+
|
|
9086
|
+
getReviewRejectConfig(): ReviewRejectConfig | undefined;
|
|
9087
|
+
setReviewRejectConfig(value?: ReviewRejectConfig): PutTaskAssignmentsRequest;
|
|
9088
|
+
hasReviewRejectConfig(): boolean;
|
|
9089
|
+
clearReviewRejectConfig(): PutTaskAssignmentsRequest;
|
|
9090
|
+
|
|
9110
9091
|
getActionConfigCase(): PutTaskAssignmentsRequest.ActionConfigCase;
|
|
9111
9092
|
|
|
9112
9093
|
serializeBinary(): Uint8Array;
|
|
@@ -9124,11 +9105,17 @@ export namespace PutTaskAssignmentsRequest {
|
|
|
9124
9105
|
inputId: string,
|
|
9125
9106
|
action: PutTaskAssignmentsRequestAction,
|
|
9126
9107
|
labelSubmitConfig?: LabelSubmitConfig.AsObject,
|
|
9108
|
+
reviewApproveConfig?: ReviewApproveConfig.AsObject,
|
|
9109
|
+
reviewRequestChangesConfig?: ReviewRequestChangesConfig.AsObject,
|
|
9110
|
+
reviewRejectConfig?: ReviewRejectConfig.AsObject,
|
|
9127
9111
|
}
|
|
9128
9112
|
|
|
9129
9113
|
export enum ActionConfigCase {
|
|
9130
9114
|
ACTION_CONFIG_NOT_SET = 0,
|
|
9131
9115
|
LABEL_SUBMIT_CONFIG = 6,
|
|
9116
|
+
REVIEW_APPROVE_CONFIG = 7,
|
|
9117
|
+
REVIEW_REQUEST_CHANGES_CONFIG = 8,
|
|
9118
|
+
REVIEW_REJECT_CONFIG = 9,
|
|
9132
9119
|
}
|
|
9133
9120
|
}
|
|
9134
9121
|
|
|
@@ -9152,6 +9139,84 @@ export namespace LabelSubmitConfig {
|
|
|
9152
9139
|
}
|
|
9153
9140
|
}
|
|
9154
9141
|
|
|
9142
|
+
export class ReviewApproveConfig extends jspb.Message {
|
|
9143
|
+
getTaskAssignmentsList(): Array<proto_clarifai_api_resources_pb.TaskAssignment>;
|
|
9144
|
+
setTaskAssignmentsList(value: Array<proto_clarifai_api_resources_pb.TaskAssignment>): ReviewApproveConfig;
|
|
9145
|
+
clearTaskAssignmentsList(): ReviewApproveConfig;
|
|
9146
|
+
addTaskAssignments(value?: proto_clarifai_api_resources_pb.TaskAssignment, index?: number): proto_clarifai_api_resources_pb.TaskAssignment;
|
|
9147
|
+
|
|
9148
|
+
getWorkersList(): Array<proto_clarifai_api_resources_pb.Worker>;
|
|
9149
|
+
setWorkersList(value: Array<proto_clarifai_api_resources_pb.Worker>): ReviewApproveConfig;
|
|
9150
|
+
clearWorkersList(): ReviewApproveConfig;
|
|
9151
|
+
addWorkers(value?: proto_clarifai_api_resources_pb.Worker, index?: number): proto_clarifai_api_resources_pb.Worker;
|
|
9152
|
+
|
|
9153
|
+
serializeBinary(): Uint8Array;
|
|
9154
|
+
toObject(includeInstance?: boolean): ReviewApproveConfig.AsObject;
|
|
9155
|
+
static toObject(includeInstance: boolean, msg: ReviewApproveConfig): ReviewApproveConfig.AsObject;
|
|
9156
|
+
static serializeBinaryToWriter(message: ReviewApproveConfig, writer: jspb.BinaryWriter): void;
|
|
9157
|
+
static deserializeBinary(bytes: Uint8Array): ReviewApproveConfig;
|
|
9158
|
+
static deserializeBinaryFromReader(message: ReviewApproveConfig, reader: jspb.BinaryReader): ReviewApproveConfig;
|
|
9159
|
+
}
|
|
9160
|
+
|
|
9161
|
+
export namespace ReviewApproveConfig {
|
|
9162
|
+
export type AsObject = {
|
|
9163
|
+
taskAssignmentsList: Array<proto_clarifai_api_resources_pb.TaskAssignment.AsObject>,
|
|
9164
|
+
workersList: Array<proto_clarifai_api_resources_pb.Worker.AsObject>,
|
|
9165
|
+
}
|
|
9166
|
+
}
|
|
9167
|
+
|
|
9168
|
+
export class ReviewRequestChangesConfig extends jspb.Message {
|
|
9169
|
+
getTaskAssignmentsList(): Array<proto_clarifai_api_resources_pb.TaskAssignment>;
|
|
9170
|
+
setTaskAssignmentsList(value: Array<proto_clarifai_api_resources_pb.TaskAssignment>): ReviewRequestChangesConfig;
|
|
9171
|
+
clearTaskAssignmentsList(): ReviewRequestChangesConfig;
|
|
9172
|
+
addTaskAssignments(value?: proto_clarifai_api_resources_pb.TaskAssignment, index?: number): proto_clarifai_api_resources_pb.TaskAssignment;
|
|
9173
|
+
|
|
9174
|
+
getWorkersList(): Array<proto_clarifai_api_resources_pb.Worker>;
|
|
9175
|
+
setWorkersList(value: Array<proto_clarifai_api_resources_pb.Worker>): ReviewRequestChangesConfig;
|
|
9176
|
+
clearWorkersList(): ReviewRequestChangesConfig;
|
|
9177
|
+
addWorkers(value?: proto_clarifai_api_resources_pb.Worker, index?: number): proto_clarifai_api_resources_pb.Worker;
|
|
9178
|
+
|
|
9179
|
+
serializeBinary(): Uint8Array;
|
|
9180
|
+
toObject(includeInstance?: boolean): ReviewRequestChangesConfig.AsObject;
|
|
9181
|
+
static toObject(includeInstance: boolean, msg: ReviewRequestChangesConfig): ReviewRequestChangesConfig.AsObject;
|
|
9182
|
+
static serializeBinaryToWriter(message: ReviewRequestChangesConfig, writer: jspb.BinaryWriter): void;
|
|
9183
|
+
static deserializeBinary(bytes: Uint8Array): ReviewRequestChangesConfig;
|
|
9184
|
+
static deserializeBinaryFromReader(message: ReviewRequestChangesConfig, reader: jspb.BinaryReader): ReviewRequestChangesConfig;
|
|
9185
|
+
}
|
|
9186
|
+
|
|
9187
|
+
export namespace ReviewRequestChangesConfig {
|
|
9188
|
+
export type AsObject = {
|
|
9189
|
+
taskAssignmentsList: Array<proto_clarifai_api_resources_pb.TaskAssignment.AsObject>,
|
|
9190
|
+
workersList: Array<proto_clarifai_api_resources_pb.Worker.AsObject>,
|
|
9191
|
+
}
|
|
9192
|
+
}
|
|
9193
|
+
|
|
9194
|
+
export class ReviewRejectConfig extends jspb.Message {
|
|
9195
|
+
getTaskAssignmentsList(): Array<proto_clarifai_api_resources_pb.TaskAssignment>;
|
|
9196
|
+
setTaskAssignmentsList(value: Array<proto_clarifai_api_resources_pb.TaskAssignment>): ReviewRejectConfig;
|
|
9197
|
+
clearTaskAssignmentsList(): ReviewRejectConfig;
|
|
9198
|
+
addTaskAssignments(value?: proto_clarifai_api_resources_pb.TaskAssignment, index?: number): proto_clarifai_api_resources_pb.TaskAssignment;
|
|
9199
|
+
|
|
9200
|
+
getWorkersList(): Array<proto_clarifai_api_resources_pb.Worker>;
|
|
9201
|
+
setWorkersList(value: Array<proto_clarifai_api_resources_pb.Worker>): ReviewRejectConfig;
|
|
9202
|
+
clearWorkersList(): ReviewRejectConfig;
|
|
9203
|
+
addWorkers(value?: proto_clarifai_api_resources_pb.Worker, index?: number): proto_clarifai_api_resources_pb.Worker;
|
|
9204
|
+
|
|
9205
|
+
serializeBinary(): Uint8Array;
|
|
9206
|
+
toObject(includeInstance?: boolean): ReviewRejectConfig.AsObject;
|
|
9207
|
+
static toObject(includeInstance: boolean, msg: ReviewRejectConfig): ReviewRejectConfig.AsObject;
|
|
9208
|
+
static serializeBinaryToWriter(message: ReviewRejectConfig, writer: jspb.BinaryWriter): void;
|
|
9209
|
+
static deserializeBinary(bytes: Uint8Array): ReviewRejectConfig;
|
|
9210
|
+
static deserializeBinaryFromReader(message: ReviewRejectConfig, reader: jspb.BinaryReader): ReviewRejectConfig;
|
|
9211
|
+
}
|
|
9212
|
+
|
|
9213
|
+
export namespace ReviewRejectConfig {
|
|
9214
|
+
export type AsObject = {
|
|
9215
|
+
taskAssignmentsList: Array<proto_clarifai_api_resources_pb.TaskAssignment.AsObject>,
|
|
9216
|
+
workersList: Array<proto_clarifai_api_resources_pb.Worker.AsObject>,
|
|
9217
|
+
}
|
|
9218
|
+
}
|
|
9219
|
+
|
|
9155
9220
|
export class MultiTaskAssignmentResponse extends jspb.Message {
|
|
9156
9221
|
getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
|
|
9157
9222
|
setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiTaskAssignmentResponse;
|
|
@@ -9871,14 +9936,19 @@ export class PostRunnerItemOutputsRequest extends jspb.Message {
|
|
|
9871
9936
|
getRunnerId(): string;
|
|
9872
9937
|
setRunnerId(value: string): PostRunnerItemOutputsRequest;
|
|
9873
9938
|
|
|
9874
|
-
|
|
9875
|
-
|
|
9939
|
+
getRunnerItemId(): string;
|
|
9940
|
+
setRunnerItemId(value: string): PostRunnerItemOutputsRequest;
|
|
9876
9941
|
|
|
9877
9942
|
getRunnerItemOutputsList(): Array<RunnerItemOutput>;
|
|
9878
9943
|
setRunnerItemOutputsList(value: Array<RunnerItemOutput>): PostRunnerItemOutputsRequest;
|
|
9879
9944
|
clearRunnerItemOutputsList(): PostRunnerItemOutputsRequest;
|
|
9880
9945
|
addRunnerItemOutputs(value?: RunnerItemOutput, index?: number): RunnerItemOutput;
|
|
9881
9946
|
|
|
9947
|
+
getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
|
|
9948
|
+
setStatus(value?: proto_clarifai_api_status_status_pb.Status): PostRunnerItemOutputsRequest;
|
|
9949
|
+
hasStatus(): boolean;
|
|
9950
|
+
clearStatus(): PostRunnerItemOutputsRequest;
|
|
9951
|
+
|
|
9882
9952
|
serializeBinary(): Uint8Array;
|
|
9883
9953
|
toObject(includeInstance?: boolean): PostRunnerItemOutputsRequest.AsObject;
|
|
9884
9954
|
static toObject(includeInstance: boolean, msg: PostRunnerItemOutputsRequest): PostRunnerItemOutputsRequest.AsObject;
|
|
@@ -9891,8 +9961,9 @@ export namespace PostRunnerItemOutputsRequest {
|
|
|
9891
9961
|
export type AsObject = {
|
|
9892
9962
|
userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
|
|
9893
9963
|
runnerId: string,
|
|
9894
|
-
|
|
9964
|
+
runnerItemId: string,
|
|
9895
9965
|
runnerItemOutputsList: Array<RunnerItemOutput.AsObject>,
|
|
9966
|
+
status?: proto_clarifai_api_status_status_pb.Status.AsObject,
|
|
9896
9967
|
}
|
|
9897
9968
|
}
|
|
9898
9969
|
|
|
@@ -9902,10 +9973,10 @@ export class MultiRunnerItemResponse extends jspb.Message {
|
|
|
9902
9973
|
hasStatus(): boolean;
|
|
9903
9974
|
clearStatus(): MultiRunnerItemResponse;
|
|
9904
9975
|
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9976
|
+
getRunnerItemsList(): Array<RunnerItem>;
|
|
9977
|
+
setRunnerItemsList(value: Array<RunnerItem>): MultiRunnerItemResponse;
|
|
9978
|
+
clearRunnerItemsList(): MultiRunnerItemResponse;
|
|
9979
|
+
addRunnerItems(value?: RunnerItem, index?: number): RunnerItem;
|
|
9909
9980
|
|
|
9910
9981
|
serializeBinary(): Uint8Array;
|
|
9911
9982
|
toObject(includeInstance?: boolean): MultiRunnerItemResponse.AsObject;
|
|
@@ -9918,7 +9989,7 @@ export class MultiRunnerItemResponse extends jspb.Message {
|
|
|
9918
9989
|
export namespace MultiRunnerItemResponse {
|
|
9919
9990
|
export type AsObject = {
|
|
9920
9991
|
status?: proto_clarifai_api_status_status_pb.Status.AsObject,
|
|
9921
|
-
|
|
9992
|
+
runnerItemsList: Array<RunnerItem.AsObject>,
|
|
9922
9993
|
}
|
|
9923
9994
|
}
|
|
9924
9995
|
|
|
@@ -9929,11 +10000,18 @@ export class RunnerItem extends jspb.Message {
|
|
|
9929
10000
|
getDescription(): string;
|
|
9930
10001
|
setDescription(value: string): RunnerItem;
|
|
9931
10002
|
|
|
10003
|
+
getProcessingInfo(): proto_clarifai_api_resources_pb.ProcessingInfo | undefined;
|
|
10004
|
+
setProcessingInfo(value?: proto_clarifai_api_resources_pb.ProcessingInfo): RunnerItem;
|
|
10005
|
+
hasProcessingInfo(): boolean;
|
|
10006
|
+
clearProcessingInfo(): RunnerItem;
|
|
10007
|
+
|
|
9932
10008
|
getPostModelOutputsRequest(): PostModelOutputsRequest | undefined;
|
|
9933
10009
|
setPostModelOutputsRequest(value?: PostModelOutputsRequest): RunnerItem;
|
|
9934
10010
|
hasPostModelOutputsRequest(): boolean;
|
|
9935
10011
|
clearPostModelOutputsRequest(): RunnerItem;
|
|
9936
10012
|
|
|
10013
|
+
getRequestCase(): RunnerItem.RequestCase;
|
|
10014
|
+
|
|
9937
10015
|
serializeBinary(): Uint8Array;
|
|
9938
10016
|
toObject(includeInstance?: boolean): RunnerItem.AsObject;
|
|
9939
10017
|
static toObject(includeInstance: boolean, msg: RunnerItem): RunnerItem.AsObject;
|
|
@@ -9946,8 +10024,14 @@ export namespace RunnerItem {
|
|
|
9946
10024
|
export type AsObject = {
|
|
9947
10025
|
id: string,
|
|
9948
10026
|
description: string,
|
|
10027
|
+
processingInfo?: proto_clarifai_api_resources_pb.ProcessingInfo.AsObject,
|
|
9949
10028
|
postModelOutputsRequest?: PostModelOutputsRequest.AsObject,
|
|
9950
10029
|
}
|
|
10030
|
+
|
|
10031
|
+
export enum RequestCase {
|
|
10032
|
+
REQUEST_NOT_SET = 0,
|
|
10033
|
+
POST_MODEL_OUTPUTS_REQUEST = 4,
|
|
10034
|
+
}
|
|
9951
10035
|
}
|
|
9952
10036
|
|
|
9953
10037
|
export class RunnerItemOutput extends jspb.Message {
|
|
@@ -9956,6 +10040,8 @@ export class RunnerItemOutput extends jspb.Message {
|
|
|
9956
10040
|
hasMultiOutputResponse(): boolean;
|
|
9957
10041
|
clearMultiOutputResponse(): RunnerItemOutput;
|
|
9958
10042
|
|
|
10043
|
+
getResponseCase(): RunnerItemOutput.ResponseCase;
|
|
10044
|
+
|
|
9959
10045
|
serializeBinary(): Uint8Array;
|
|
9960
10046
|
toObject(includeInstance?: boolean): RunnerItemOutput.AsObject;
|
|
9961
10047
|
static toObject(includeInstance: boolean, msg: RunnerItemOutput): RunnerItemOutput.AsObject;
|
|
@@ -9968,6 +10054,11 @@ export namespace RunnerItemOutput {
|
|
|
9968
10054
|
export type AsObject = {
|
|
9969
10055
|
multiOutputResponse?: MultiOutputResponse.AsObject,
|
|
9970
10056
|
}
|
|
10057
|
+
|
|
10058
|
+
export enum ResponseCase {
|
|
10059
|
+
RESPONSE_NOT_SET = 0,
|
|
10060
|
+
MULTI_OUTPUT_RESPONSE = 1,
|
|
10061
|
+
}
|
|
9971
10062
|
}
|
|
9972
10063
|
|
|
9973
10064
|
export class MultiRunnerItemOutputResponse extends jspb.Message {
|
|
@@ -10071,4 +10162,5 @@ export enum PutTaskAssignmentsRequestAction {
|
|
|
10071
10162
|
REVIEW_START = 10,
|
|
10072
10163
|
REVIEW_APPROVE = 11,
|
|
10073
10164
|
REVIEW_REQUEST_CHANGES = 12,
|
|
10165
|
+
REVIEW_REJECT = 13,
|
|
10074
10166
|
}
|