clarifai-web-grpc 10.1.6 → 10.3.0
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 +2827 -92
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +90 -6
- package/dist/cjs/proto/clarifai/api/service_pb.js +10404 -8056
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +10 -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 +2827 -92
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +90 -6
- package/dist/esm/proto/clarifai/api/service_pb.js +10404 -8056
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +10 -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 +456 -15
- package/proto/clarifai/api/resources_pb.js +3689 -274
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +27 -3
- package/proto/clarifai/api/service_grpc_web_pb.js +128 -6
- package/proto/clarifai/api/service_pb.d.ts +355 -0
- package/proto/clarifai/api/service_pb.js +15757 -12851
- package/proto/clarifai/api/status/status_code_pb.d.ts +10 -0
- package/proto/clarifai/api/status/status_code_pb.js +10 -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
|
@@ -90,6 +90,10 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
90
90
|
MODEL_NOT_DEPLOYED: 21353,
|
|
91
91
|
MODEL_REFERENCE_INVALID_ARGUMENT: 21400,
|
|
92
92
|
MODEL_EXAMPLE_INPUT_INVALID_ARGUMENT: 21420,
|
|
93
|
+
MODEL_EXPORTED: 21500,
|
|
94
|
+
MODEL_EXPORTING: 21501,
|
|
95
|
+
MODEL_EXPORTING_FAILED: 21502,
|
|
96
|
+
MODEL_EXPORT_PENDING: 21503,
|
|
93
97
|
WORKFLOW_NO_MATCHING_INPUT: 22001,
|
|
94
98
|
WORKFLOW_REQUIRE_TRAINED_MODEL: 22002,
|
|
95
99
|
WORKFLOW_DUPLICATE: 22100,
|
|
@@ -303,6 +307,12 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
303
307
|
TASK_CONFLICT: 54100,
|
|
304
308
|
TASK_NOT_IMPLEMENTED: 54101,
|
|
305
309
|
TASK_MISSING: 54102,
|
|
310
|
+
TASK_PERMISSION_DENIED: 54103,
|
|
311
|
+
TASK_ASSIGNMENT_SUCCESS: 54200,
|
|
312
|
+
TASK_ASSIGNMENT_PENDING: 54201,
|
|
313
|
+
TASK_ASSIGNMENT_AWAITING_REVIEW: 54202,
|
|
314
|
+
TASK_ASSIGNMENT_AWAITING_CONSENSUS_REVIEW: 54203,
|
|
315
|
+
TASK_ASSIGNMENT_REVIEW_DENIED: 54204,
|
|
306
316
|
LABEL_ORDER_PENDING: 55001,
|
|
307
317
|
LABEL_ORDER_IN_PROGRESS: 55002,
|
|
308
318
|
LABEL_ORDER_SUCCESS: 55003,
|
package/dist/esm/resources.d.ts
CHANGED
package/dist/esm/resources.js
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ClarifaiStub } from '../index'
|
|
2
|
+
import { App } from '../resources'
|
|
3
|
+
import { PostAppsRequest } from '../service'
|
|
4
|
+
|
|
5
|
+
export async function createAnApp() {
|
|
6
|
+
// get a client object
|
|
7
|
+
const client = ClarifaiStub.promise()
|
|
8
|
+
|
|
9
|
+
// create an app
|
|
10
|
+
const app = new App();
|
|
11
|
+
app.setId('cat-app');
|
|
12
|
+
app.setDefaultWorkflowId('General-Detection');
|
|
13
|
+
app.setDescription('An app for some cats');
|
|
14
|
+
|
|
15
|
+
// create a request
|
|
16
|
+
const req = new PostAppsRequest();
|
|
17
|
+
req.setAppsList([app]);
|
|
18
|
+
|
|
19
|
+
// send the request
|
|
20
|
+
const auth = {
|
|
21
|
+
authorization: `Key ${process.env.CLARIFAI_TOKEN}`,
|
|
22
|
+
};
|
|
23
|
+
const resp = await client.postApps(req, auth);
|
|
24
|
+
|
|
25
|
+
// log the app id
|
|
26
|
+
console.log(resp.getAppsList()[0].getId());
|
|
27
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ClarifaiStub } from '../index'
|
|
2
|
+
import { Struct, Data, Input, Text } from '../resources'
|
|
3
|
+
import { PostInputsRequest } from '../service'
|
|
4
|
+
|
|
5
|
+
export async function createAnInput() {
|
|
6
|
+
// create an input with some text. In a real app, this might come
|
|
7
|
+
// from a filepicker widget, or maybe a datasource like S3 or a database.
|
|
8
|
+
const input = new Input();
|
|
9
|
+
|
|
10
|
+
const data = new Data();
|
|
11
|
+
|
|
12
|
+
const text = new Text();
|
|
13
|
+
text.setRaw("hello world");
|
|
14
|
+
|
|
15
|
+
// we can also attach metadata to an input so we can correlate it with
|
|
16
|
+
// other data in our system. This can be any JSON-serializable object.
|
|
17
|
+
const metadata = Struct.fromJavaScript({
|
|
18
|
+
product_id: '1234',
|
|
19
|
+
location: 'San Francisco',
|
|
20
|
+
client: 'acme',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
data.setMetadata(metadata);
|
|
24
|
+
|
|
25
|
+
input.setData(data);
|
|
26
|
+
|
|
27
|
+
// get a client object
|
|
28
|
+
const client = ClarifaiStub.promise()
|
|
29
|
+
|
|
30
|
+
// create a request
|
|
31
|
+
const req = new PostInputsRequest();
|
|
32
|
+
req.setInputsList([input]);
|
|
33
|
+
|
|
34
|
+
// send the request
|
|
35
|
+
const auth = {
|
|
36
|
+
authorization: `Key ${process.env.CLARIFAI_TOKEN}`,
|
|
37
|
+
};
|
|
38
|
+
const resp = await client.postInputs(req, auth);
|
|
39
|
+
|
|
40
|
+
// log the input id
|
|
41
|
+
console.log(resp.getInputsList()[0].getId());
|
|
42
|
+
}
|
package/index.ts
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { V2Client, V2PromiseClient } from './proto/clarifai/api/service_grpc_web_pb'
|
|
2
2
|
|
|
3
3
|
export class ClarifaiStub {
|
|
4
|
-
static grpc (hostname = 'api.clarifai.com') {
|
|
4
|
+
static grpc (hostname = 'https://api-grpc-web.clarifai.com') {
|
|
5
5
|
const options = { 'grpc.max_receive_message_length': 128 * 1024 * 1024 } // 128 MB
|
|
6
6
|
return new V2Client(hostname, null, options)
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
static promise (hostname = 'https://api-grpc-web.clarifai.com') {
|
|
10
|
+
const options = { 'grpc.max_receive_message_length': 128 * 1024 * 1024 } // 128 MB
|
|
11
|
+
return new V2PromiseClient(hostname, null, options)
|
|
12
|
+
}
|
|
8
13
|
}
|
|
9
14
|
|
|
10
15
|
export { V2Client, V2PromiseClient }
|
|
11
|
-
export { RpcError, Metadata, ClientReadableStream } from 'grpc-web'
|
|
16
|
+
export { RpcError, Metadata, ClientReadableStream, Request, UnaryResponse } from 'grpc-web'
|
|
12
17
|
export { BaseResponse } from './proto/clarifai/api/status/status_pb'
|
package/package.json
CHANGED
|
@@ -3330,6 +3330,16 @@ export class ModelVersion extends jspb.Message {
|
|
|
3330
3330
|
getTrainLog(): string;
|
|
3331
3331
|
setTrainLog(value: string): ModelVersion;
|
|
3332
3332
|
|
|
3333
|
+
getInferenceComputeInfo(): ComputeInfo | undefined;
|
|
3334
|
+
setInferenceComputeInfo(value?: ComputeInfo): ModelVersion;
|
|
3335
|
+
hasInferenceComputeInfo(): boolean;
|
|
3336
|
+
clearInferenceComputeInfo(): ModelVersion;
|
|
3337
|
+
|
|
3338
|
+
getBuildInfo(): BuildInfo | undefined;
|
|
3339
|
+
setBuildInfo(value?: BuildInfo): ModelVersion;
|
|
3340
|
+
hasBuildInfo(): boolean;
|
|
3341
|
+
clearBuildInfo(): ModelVersion;
|
|
3342
|
+
|
|
3333
3343
|
serializeBinary(): Uint8Array;
|
|
3334
3344
|
toObject(includeInstance?: boolean): ModelVersion.AsObject;
|
|
3335
3345
|
static toObject(includeInstance: boolean, msg: ModelVersion): ModelVersion.AsObject;
|
|
@@ -3360,6 +3370,62 @@ export namespace ModelVersion {
|
|
|
3360
3370
|
trainInfo?: TrainInfo.AsObject,
|
|
3361
3371
|
importInfo?: ImportInfo.AsObject,
|
|
3362
3372
|
trainLog: string,
|
|
3373
|
+
inferenceComputeInfo?: ComputeInfo.AsObject,
|
|
3374
|
+
buildInfo?: BuildInfo.AsObject,
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
export class BuildInfo extends jspb.Message {
|
|
3379
|
+
getDockerImageName(): string;
|
|
3380
|
+
setDockerImageName(value: string): BuildInfo;
|
|
3381
|
+
|
|
3382
|
+
getDockerImageTag(): string;
|
|
3383
|
+
setDockerImageTag(value: string): BuildInfo;
|
|
3384
|
+
|
|
3385
|
+
getDockerImageDigest(): string;
|
|
3386
|
+
setDockerImageDigest(value: string): BuildInfo;
|
|
3387
|
+
|
|
3388
|
+
serializeBinary(): Uint8Array;
|
|
3389
|
+
toObject(includeInstance?: boolean): BuildInfo.AsObject;
|
|
3390
|
+
static toObject(includeInstance: boolean, msg: BuildInfo): BuildInfo.AsObject;
|
|
3391
|
+
static serializeBinaryToWriter(message: BuildInfo, writer: jspb.BinaryWriter): void;
|
|
3392
|
+
static deserializeBinary(bytes: Uint8Array): BuildInfo;
|
|
3393
|
+
static deserializeBinaryFromReader(message: BuildInfo, reader: jspb.BinaryReader): BuildInfo;
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
export namespace BuildInfo {
|
|
3397
|
+
export type AsObject = {
|
|
3398
|
+
dockerImageName: string,
|
|
3399
|
+
dockerImageTag: string,
|
|
3400
|
+
dockerImageDigest: string,
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
export class ModelVersionExport extends jspb.Message {
|
|
3405
|
+
getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
|
|
3406
|
+
setStatus(value?: proto_clarifai_api_status_status_pb.Status): ModelVersionExport;
|
|
3407
|
+
hasStatus(): boolean;
|
|
3408
|
+
clearStatus(): ModelVersionExport;
|
|
3409
|
+
|
|
3410
|
+
getUrl(): string;
|
|
3411
|
+
setUrl(value: string): ModelVersionExport;
|
|
3412
|
+
|
|
3413
|
+
getSize(): number;
|
|
3414
|
+
setSize(value: number): ModelVersionExport;
|
|
3415
|
+
|
|
3416
|
+
serializeBinary(): Uint8Array;
|
|
3417
|
+
toObject(includeInstance?: boolean): ModelVersionExport.AsObject;
|
|
3418
|
+
static toObject(includeInstance: boolean, msg: ModelVersionExport): ModelVersionExport.AsObject;
|
|
3419
|
+
static serializeBinaryToWriter(message: ModelVersionExport, writer: jspb.BinaryWriter): void;
|
|
3420
|
+
static deserializeBinary(bytes: Uint8Array): ModelVersionExport;
|
|
3421
|
+
static deserializeBinaryFromReader(message: ModelVersionExport, reader: jspb.BinaryReader): ModelVersionExport;
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
export namespace ModelVersionExport {
|
|
3425
|
+
export type AsObject = {
|
|
3426
|
+
status?: proto_clarifai_api_status_status_pb.Status.AsObject,
|
|
3427
|
+
url: string,
|
|
3428
|
+
size: number,
|
|
3363
3429
|
}
|
|
3364
3430
|
}
|
|
3365
3431
|
|
|
@@ -3810,6 +3876,16 @@ export class EvalTestSetEntry extends jspb.Message {
|
|
|
3810
3876
|
hasAnnotation(): boolean;
|
|
3811
3877
|
clearAnnotation(): EvalTestSetEntry;
|
|
3812
3878
|
|
|
3879
|
+
getPredictedAnnotation(): Annotation | undefined;
|
|
3880
|
+
setPredictedAnnotation(value?: Annotation): EvalTestSetEntry;
|
|
3881
|
+
hasPredictedAnnotation(): boolean;
|
|
3882
|
+
clearPredictedAnnotation(): EvalTestSetEntry;
|
|
3883
|
+
|
|
3884
|
+
getGroundTruthAnnotation(): Annotation | undefined;
|
|
3885
|
+
setGroundTruthAnnotation(value?: Annotation): EvalTestSetEntry;
|
|
3886
|
+
hasGroundTruthAnnotation(): boolean;
|
|
3887
|
+
clearGroundTruthAnnotation(): EvalTestSetEntry;
|
|
3888
|
+
|
|
3813
3889
|
serializeBinary(): Uint8Array;
|
|
3814
3890
|
toObject(includeInstance?: boolean): EvalTestSetEntry.AsObject;
|
|
3815
3891
|
static toObject(includeInstance: boolean, msg: EvalTestSetEntry): EvalTestSetEntry.AsObject;
|
|
@@ -3824,6 +3900,8 @@ export namespace EvalTestSetEntry {
|
|
|
3824
3900
|
predictedConceptsList: Array<Concept.AsObject>,
|
|
3825
3901
|
groundTruthConceptsList: Array<Concept.AsObject>,
|
|
3826
3902
|
annotation?: Annotation.AsObject,
|
|
3903
|
+
predictedAnnotation?: Annotation.AsObject,
|
|
3904
|
+
groundTruthAnnotation?: Annotation.AsObject,
|
|
3827
3905
|
}
|
|
3828
3906
|
}
|
|
3829
3907
|
|
|
@@ -5664,21 +5742,16 @@ export class TaskWorker extends jspb.Message {
|
|
|
5664
5742
|
clearUsersList(): TaskWorker;
|
|
5665
5743
|
addUsers(value?: User, index?: number): User;
|
|
5666
5744
|
|
|
5667
|
-
getModelsList(): Array<Model>;
|
|
5668
|
-
setModelsList(value: Array<Model>): TaskWorker;
|
|
5669
|
-
clearModelsList(): TaskWorker;
|
|
5670
|
-
addModels(value?: Model, index?: number): Model;
|
|
5671
|
-
|
|
5672
|
-
getWorkflowsList(): Array<Workflow>;
|
|
5673
|
-
setWorkflowsList(value: Array<Workflow>): TaskWorker;
|
|
5674
|
-
clearWorkflowsList(): TaskWorker;
|
|
5675
|
-
addWorkflows(value?: Workflow, index?: number): Workflow;
|
|
5676
|
-
|
|
5677
5745
|
getPartitionedStrategyInfo(): TaskWorkerPartitionedStrategyInfo | undefined;
|
|
5678
5746
|
setPartitionedStrategyInfo(value?: TaskWorkerPartitionedStrategyInfo): TaskWorker;
|
|
5679
5747
|
hasPartitionedStrategyInfo(): boolean;
|
|
5680
5748
|
clearPartitionedStrategyInfo(): TaskWorker;
|
|
5681
5749
|
|
|
5750
|
+
getWorkersList(): Array<Worker>;
|
|
5751
|
+
setWorkersList(value: Array<Worker>): TaskWorker;
|
|
5752
|
+
clearWorkersList(): TaskWorker;
|
|
5753
|
+
addWorkers(value?: Worker, index?: number): Worker;
|
|
5754
|
+
|
|
5682
5755
|
getStrategyInfoCase(): TaskWorker.StrategyInfoCase;
|
|
5683
5756
|
|
|
5684
5757
|
serializeBinary(): Uint8Array;
|
|
@@ -5694,9 +5767,8 @@ export namespace TaskWorker {
|
|
|
5694
5767
|
strategy: TaskWorker.TaskWorkerStrategy,
|
|
5695
5768
|
userIdsList: Array<string>,
|
|
5696
5769
|
usersList: Array<User.AsObject>,
|
|
5697
|
-
modelsList: Array<Model.AsObject>,
|
|
5698
|
-
workflowsList: Array<Workflow.AsObject>,
|
|
5699
5770
|
partitionedStrategyInfo?: TaskWorkerPartitionedStrategyInfo.AsObject,
|
|
5771
|
+
workersList: Array<Worker.AsObject>,
|
|
5700
5772
|
}
|
|
5701
5773
|
|
|
5702
5774
|
export enum TaskWorkerStrategy {
|
|
@@ -5885,6 +5957,54 @@ export namespace TaskAIAssistant {
|
|
|
5885
5957
|
}
|
|
5886
5958
|
}
|
|
5887
5959
|
|
|
5960
|
+
export class TaskAssignment extends jspb.Message {
|
|
5961
|
+
getId(): string;
|
|
5962
|
+
setId(value: string): TaskAssignment;
|
|
5963
|
+
|
|
5964
|
+
getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
5965
|
+
setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): TaskAssignment;
|
|
5966
|
+
hasCreatedAt(): boolean;
|
|
5967
|
+
clearCreatedAt(): TaskAssignment;
|
|
5968
|
+
|
|
5969
|
+
getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
5970
|
+
setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): TaskAssignment;
|
|
5971
|
+
hasModifiedAt(): boolean;
|
|
5972
|
+
clearModifiedAt(): TaskAssignment;
|
|
5973
|
+
|
|
5974
|
+
getWorker(): Worker | undefined;
|
|
5975
|
+
setWorker(value?: Worker): TaskAssignment;
|
|
5976
|
+
hasWorker(): boolean;
|
|
5977
|
+
clearWorker(): TaskAssignment;
|
|
5978
|
+
|
|
5979
|
+
getInput(): Input | undefined;
|
|
5980
|
+
setInput(value?: Input): TaskAssignment;
|
|
5981
|
+
hasInput(): boolean;
|
|
5982
|
+
clearInput(): TaskAssignment;
|
|
5983
|
+
|
|
5984
|
+
getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
|
|
5985
|
+
setStatus(value?: proto_clarifai_api_status_status_pb.Status): TaskAssignment;
|
|
5986
|
+
hasStatus(): boolean;
|
|
5987
|
+
clearStatus(): TaskAssignment;
|
|
5988
|
+
|
|
5989
|
+
serializeBinary(): Uint8Array;
|
|
5990
|
+
toObject(includeInstance?: boolean): TaskAssignment.AsObject;
|
|
5991
|
+
static toObject(includeInstance: boolean, msg: TaskAssignment): TaskAssignment.AsObject;
|
|
5992
|
+
static serializeBinaryToWriter(message: TaskAssignment, writer: jspb.BinaryWriter): void;
|
|
5993
|
+
static deserializeBinary(bytes: Uint8Array): TaskAssignment;
|
|
5994
|
+
static deserializeBinaryFromReader(message: TaskAssignment, reader: jspb.BinaryReader): TaskAssignment;
|
|
5995
|
+
}
|
|
5996
|
+
|
|
5997
|
+
export namespace TaskAssignment {
|
|
5998
|
+
export type AsObject = {
|
|
5999
|
+
id: string,
|
|
6000
|
+
createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
6001
|
+
modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
6002
|
+
worker?: Worker.AsObject,
|
|
6003
|
+
input?: Input.AsObject,
|
|
6004
|
+
status?: proto_clarifai_api_status_status_pb.Status.AsObject,
|
|
6005
|
+
}
|
|
6006
|
+
}
|
|
6007
|
+
|
|
5888
6008
|
export class TaskStatusCountPerUser extends jspb.Message {
|
|
5889
6009
|
getUserId(): string;
|
|
5890
6010
|
setUserId(value: string): TaskStatusCountPerUser;
|
|
@@ -6008,8 +6128,10 @@ export namespace TaskConcept {
|
|
|
6008
6128
|
}
|
|
6009
6129
|
|
|
6010
6130
|
export class TaskMetrics extends jspb.Message {
|
|
6011
|
-
|
|
6012
|
-
|
|
6131
|
+
getWork(): TaskWorkMetrics | undefined;
|
|
6132
|
+
setWork(value?: TaskWorkMetrics): TaskMetrics;
|
|
6133
|
+
hasWork(): boolean;
|
|
6134
|
+
clearWork(): TaskMetrics;
|
|
6013
6135
|
|
|
6014
6136
|
serializeBinary(): Uint8Array;
|
|
6015
6137
|
toObject(includeInstance?: boolean): TaskMetrics.AsObject;
|
|
@@ -6021,7 +6143,29 @@ export class TaskMetrics extends jspb.Message {
|
|
|
6021
6143
|
|
|
6022
6144
|
export namespace TaskMetrics {
|
|
6023
6145
|
export type AsObject = {
|
|
6024
|
-
|
|
6146
|
+
work?: TaskWorkMetrics.AsObject,
|
|
6147
|
+
}
|
|
6148
|
+
}
|
|
6149
|
+
|
|
6150
|
+
export class TaskWorkMetrics extends jspb.Message {
|
|
6151
|
+
getInputsCountEstimated(): number;
|
|
6152
|
+
setInputsCountEstimated(value: number): TaskWorkMetrics;
|
|
6153
|
+
|
|
6154
|
+
getInputsPercentEstimated(): number;
|
|
6155
|
+
setInputsPercentEstimated(value: number): TaskWorkMetrics;
|
|
6156
|
+
|
|
6157
|
+
serializeBinary(): Uint8Array;
|
|
6158
|
+
toObject(includeInstance?: boolean): TaskWorkMetrics.AsObject;
|
|
6159
|
+
static toObject(includeInstance: boolean, msg: TaskWorkMetrics): TaskWorkMetrics.AsObject;
|
|
6160
|
+
static serializeBinaryToWriter(message: TaskWorkMetrics, writer: jspb.BinaryWriter): void;
|
|
6161
|
+
static deserializeBinary(bytes: Uint8Array): TaskWorkMetrics;
|
|
6162
|
+
static deserializeBinaryFromReader(message: TaskWorkMetrics, reader: jspb.BinaryReader): TaskWorkMetrics;
|
|
6163
|
+
}
|
|
6164
|
+
|
|
6165
|
+
export namespace TaskWorkMetrics {
|
|
6166
|
+
export type AsObject = {
|
|
6167
|
+
inputsCountEstimated: number,
|
|
6168
|
+
inputsPercentEstimated: number,
|
|
6025
6169
|
}
|
|
6026
6170
|
}
|
|
6027
6171
|
|
|
@@ -7739,6 +7883,28 @@ export class Runner extends jspb.Message {
|
|
|
7739
7883
|
clearLabelsList(): Runner;
|
|
7740
7884
|
addLabels(value: string, index?: number): Runner;
|
|
7741
7885
|
|
|
7886
|
+
getModel(): Model | undefined;
|
|
7887
|
+
setModel(value?: Model): Runner;
|
|
7888
|
+
hasModel(): boolean;
|
|
7889
|
+
clearModel(): Runner;
|
|
7890
|
+
|
|
7891
|
+
getWorkflow(): Workflow | undefined;
|
|
7892
|
+
setWorkflow(value?: Workflow): Runner;
|
|
7893
|
+
hasWorkflow(): boolean;
|
|
7894
|
+
clearWorkflow(): Runner;
|
|
7895
|
+
|
|
7896
|
+
getNodepool(): Nodepool | undefined;
|
|
7897
|
+
setNodepool(value?: Nodepool): Runner;
|
|
7898
|
+
hasNodepool(): boolean;
|
|
7899
|
+
clearNodepool(): Runner;
|
|
7900
|
+
|
|
7901
|
+
getComputeInfo(): ComputeInfo | undefined;
|
|
7902
|
+
setComputeInfo(value?: ComputeInfo): Runner;
|
|
7903
|
+
hasComputeInfo(): boolean;
|
|
7904
|
+
clearComputeInfo(): Runner;
|
|
7905
|
+
|
|
7906
|
+
getObjectCase(): Runner.ObjectCase;
|
|
7907
|
+
|
|
7742
7908
|
serializeBinary(): Uint8Array;
|
|
7743
7909
|
toObject(includeInstance?: boolean): Runner.AsObject;
|
|
7744
7910
|
static toObject(includeInstance: boolean, msg: Runner): Runner.AsObject;
|
|
@@ -7756,6 +7922,281 @@ export namespace Runner {
|
|
|
7756
7922
|
metadata?: google_protobuf_struct_pb.Struct.AsObject,
|
|
7757
7923
|
userId: string,
|
|
7758
7924
|
labelsList: Array<string>,
|
|
7925
|
+
model?: Model.AsObject,
|
|
7926
|
+
workflow?: Workflow.AsObject,
|
|
7927
|
+
nodepool?: Nodepool.AsObject,
|
|
7928
|
+
computeInfo?: ComputeInfo.AsObject,
|
|
7929
|
+
}
|
|
7930
|
+
|
|
7931
|
+
export enum ObjectCase {
|
|
7932
|
+
OBJECT_NOT_SET = 0,
|
|
7933
|
+
MODEL = 9,
|
|
7934
|
+
WORKFLOW = 10,
|
|
7935
|
+
}
|
|
7936
|
+
}
|
|
7937
|
+
|
|
7938
|
+
export class Nodepool extends jspb.Message {
|
|
7939
|
+
getId(): string;
|
|
7940
|
+
setId(value: string): Nodepool;
|
|
7941
|
+
|
|
7942
|
+
getUserId(): string;
|
|
7943
|
+
setUserId(value: string): Nodepool;
|
|
7944
|
+
|
|
7945
|
+
getCloudRegion(): CloudRegion | undefined;
|
|
7946
|
+
setCloudRegion(value?: CloudRegion): Nodepool;
|
|
7947
|
+
hasCloudRegion(): boolean;
|
|
7948
|
+
clearCloudRegion(): Nodepool;
|
|
7949
|
+
|
|
7950
|
+
getCapacityTypesList(): Array<Nodepool.CapacityType>;
|
|
7951
|
+
setCapacityTypesList(value: Array<Nodepool.CapacityType>): Nodepool;
|
|
7952
|
+
clearCapacityTypesList(): Nodepool;
|
|
7953
|
+
addCapacityTypes(value: Nodepool.CapacityType, index?: number): Nodepool;
|
|
7954
|
+
|
|
7955
|
+
getInstanceTypesList(): Array<string>;
|
|
7956
|
+
setInstanceTypesList(value: Array<string>): Nodepool;
|
|
7957
|
+
clearInstanceTypesList(): Nodepool;
|
|
7958
|
+
addInstanceTypes(value: string, index?: number): Nodepool;
|
|
7959
|
+
|
|
7960
|
+
getMinInstances(): number;
|
|
7961
|
+
setMinInstances(value: number): Nodepool;
|
|
7962
|
+
|
|
7963
|
+
getMaxInstances(): number;
|
|
7964
|
+
setMaxInstances(value: number): Nodepool;
|
|
7965
|
+
|
|
7966
|
+
serializeBinary(): Uint8Array;
|
|
7967
|
+
toObject(includeInstance?: boolean): Nodepool.AsObject;
|
|
7968
|
+
static toObject(includeInstance: boolean, msg: Nodepool): Nodepool.AsObject;
|
|
7969
|
+
static serializeBinaryToWriter(message: Nodepool, writer: jspb.BinaryWriter): void;
|
|
7970
|
+
static deserializeBinary(bytes: Uint8Array): Nodepool;
|
|
7971
|
+
static deserializeBinaryFromReader(message: Nodepool, reader: jspb.BinaryReader): Nodepool;
|
|
7972
|
+
}
|
|
7973
|
+
|
|
7974
|
+
export namespace Nodepool {
|
|
7975
|
+
export type AsObject = {
|
|
7976
|
+
id: string,
|
|
7977
|
+
userId: string,
|
|
7978
|
+
cloudRegion?: CloudRegion.AsObject,
|
|
7979
|
+
capacityTypesList: Array<Nodepool.CapacityType>,
|
|
7980
|
+
instanceTypesList: Array<string>,
|
|
7981
|
+
minInstances: number,
|
|
7982
|
+
maxInstances: number,
|
|
7983
|
+
}
|
|
7984
|
+
|
|
7985
|
+
export enum CapacityType {
|
|
7986
|
+
UKNOWN_CAPACITY_TYPE = 0,
|
|
7987
|
+
ONDEMAND_TYPE = 1,
|
|
7988
|
+
SPOT_TYPE = 2,
|
|
7989
|
+
}
|
|
7990
|
+
}
|
|
7991
|
+
|
|
7992
|
+
export class CloudRegion extends jspb.Message {
|
|
7993
|
+
getId(): string;
|
|
7994
|
+
setId(value: string): CloudRegion;
|
|
7995
|
+
|
|
7996
|
+
getCloud(): CloudRegion.Cloud;
|
|
7997
|
+
setCloud(value: CloudRegion.Cloud): CloudRegion;
|
|
7998
|
+
|
|
7999
|
+
getRegion(): string;
|
|
8000
|
+
setRegion(value: string): CloudRegion;
|
|
8001
|
+
|
|
8002
|
+
serializeBinary(): Uint8Array;
|
|
8003
|
+
toObject(includeInstance?: boolean): CloudRegion.AsObject;
|
|
8004
|
+
static toObject(includeInstance: boolean, msg: CloudRegion): CloudRegion.AsObject;
|
|
8005
|
+
static serializeBinaryToWriter(message: CloudRegion, writer: jspb.BinaryWriter): void;
|
|
8006
|
+
static deserializeBinary(bytes: Uint8Array): CloudRegion;
|
|
8007
|
+
static deserializeBinaryFromReader(message: CloudRegion, reader: jspb.BinaryReader): CloudRegion;
|
|
8008
|
+
}
|
|
8009
|
+
|
|
8010
|
+
export namespace CloudRegion {
|
|
8011
|
+
export type AsObject = {
|
|
8012
|
+
id: string,
|
|
8013
|
+
cloud: CloudRegion.Cloud,
|
|
8014
|
+
region: string,
|
|
8015
|
+
}
|
|
8016
|
+
|
|
8017
|
+
export enum Cloud {
|
|
8018
|
+
UNKOWN_CLOUD = 0,
|
|
8019
|
+
SELF_HOSTED = 1,
|
|
8020
|
+
AWS = 2,
|
|
8021
|
+
GCP = 3,
|
|
8022
|
+
AZURE = 4,
|
|
8023
|
+
LAMBDA = 5,
|
|
8024
|
+
}
|
|
8025
|
+
}
|
|
8026
|
+
|
|
8027
|
+
export class ComputeInfo extends jspb.Message {
|
|
8028
|
+
getNumCpus(): number;
|
|
8029
|
+
setNumCpus(value: number): ComputeInfo;
|
|
8030
|
+
|
|
8031
|
+
getCpuMemory(): string;
|
|
8032
|
+
setCpuMemory(value: string): ComputeInfo;
|
|
8033
|
+
|
|
8034
|
+
getNumAccelerators(): number;
|
|
8035
|
+
setNumAccelerators(value: number): ComputeInfo;
|
|
8036
|
+
|
|
8037
|
+
getAcceleratorMemory(): string;
|
|
8038
|
+
setAcceleratorMemory(value: string): ComputeInfo;
|
|
8039
|
+
|
|
8040
|
+
getAcceleratorTypeList(): Array<string>;
|
|
8041
|
+
setAcceleratorTypeList(value: Array<string>): ComputeInfo;
|
|
8042
|
+
clearAcceleratorTypeList(): ComputeInfo;
|
|
8043
|
+
addAcceleratorType(value: string, index?: number): ComputeInfo;
|
|
8044
|
+
|
|
8045
|
+
serializeBinary(): Uint8Array;
|
|
8046
|
+
toObject(includeInstance?: boolean): ComputeInfo.AsObject;
|
|
8047
|
+
static toObject(includeInstance: boolean, msg: ComputeInfo): ComputeInfo.AsObject;
|
|
8048
|
+
static serializeBinaryToWriter(message: ComputeInfo, writer: jspb.BinaryWriter): void;
|
|
8049
|
+
static deserializeBinary(bytes: Uint8Array): ComputeInfo;
|
|
8050
|
+
static deserializeBinaryFromReader(message: ComputeInfo, reader: jspb.BinaryReader): ComputeInfo;
|
|
8051
|
+
}
|
|
8052
|
+
|
|
8053
|
+
export namespace ComputeInfo {
|
|
8054
|
+
export type AsObject = {
|
|
8055
|
+
numCpus: number,
|
|
8056
|
+
cpuMemory: string,
|
|
8057
|
+
numAccelerators: number,
|
|
8058
|
+
acceleratorMemory: string,
|
|
8059
|
+
acceleratorTypeList: Array<string>,
|
|
8060
|
+
}
|
|
8061
|
+
}
|
|
8062
|
+
|
|
8063
|
+
export class AutoscaleConfig extends jspb.Message {
|
|
8064
|
+
getMinReplicas(): number;
|
|
8065
|
+
setMinReplicas(value: number): AutoscaleConfig;
|
|
8066
|
+
|
|
8067
|
+
getMaxReplicas(): number;
|
|
8068
|
+
setMaxReplicas(value: number): AutoscaleConfig;
|
|
8069
|
+
|
|
8070
|
+
getTrafficHistorySeconds(): number;
|
|
8071
|
+
setTrafficHistorySeconds(value: number): AutoscaleConfig;
|
|
8072
|
+
|
|
8073
|
+
getScaleDownDelaySeconds(): number;
|
|
8074
|
+
setScaleDownDelaySeconds(value: number): AutoscaleConfig;
|
|
8075
|
+
|
|
8076
|
+
getScaleUpDelaySeconds(): number;
|
|
8077
|
+
setScaleUpDelaySeconds(value: number): AutoscaleConfig;
|
|
8078
|
+
|
|
8079
|
+
getEnablePacking(): boolean;
|
|
8080
|
+
setEnablePacking(value: boolean): AutoscaleConfig;
|
|
8081
|
+
|
|
8082
|
+
serializeBinary(): Uint8Array;
|
|
8083
|
+
toObject(includeInstance?: boolean): AutoscaleConfig.AsObject;
|
|
8084
|
+
static toObject(includeInstance: boolean, msg: AutoscaleConfig): AutoscaleConfig.AsObject;
|
|
8085
|
+
static serializeBinaryToWriter(message: AutoscaleConfig, writer: jspb.BinaryWriter): void;
|
|
8086
|
+
static deserializeBinary(bytes: Uint8Array): AutoscaleConfig;
|
|
8087
|
+
static deserializeBinaryFromReader(message: AutoscaleConfig, reader: jspb.BinaryReader): AutoscaleConfig;
|
|
8088
|
+
}
|
|
8089
|
+
|
|
8090
|
+
export namespace AutoscaleConfig {
|
|
8091
|
+
export type AsObject = {
|
|
8092
|
+
minReplicas: number,
|
|
8093
|
+
maxReplicas: number,
|
|
8094
|
+
trafficHistorySeconds: number,
|
|
8095
|
+
scaleDownDelaySeconds: number,
|
|
8096
|
+
scaleUpDelaySeconds: number,
|
|
8097
|
+
enablePacking: boolean,
|
|
8098
|
+
}
|
|
8099
|
+
}
|
|
8100
|
+
|
|
8101
|
+
export class Deployment extends jspb.Message {
|
|
8102
|
+
getId(): string;
|
|
8103
|
+
setId(value: string): Deployment;
|
|
8104
|
+
|
|
8105
|
+
getUserId(): string;
|
|
8106
|
+
setUserId(value: string): Deployment;
|
|
8107
|
+
|
|
8108
|
+
getAutoscaleConfig(): AutoscaleConfig | undefined;
|
|
8109
|
+
setAutoscaleConfig(value?: AutoscaleConfig): Deployment;
|
|
8110
|
+
hasAutoscaleConfig(): boolean;
|
|
8111
|
+
clearAutoscaleConfig(): Deployment;
|
|
8112
|
+
|
|
8113
|
+
getNodepoolsList(): Array<Nodepool>;
|
|
8114
|
+
setNodepoolsList(value: Array<Nodepool>): Deployment;
|
|
8115
|
+
clearNodepoolsList(): Deployment;
|
|
8116
|
+
addNodepools(value?: Nodepool, index?: number): Nodepool;
|
|
8117
|
+
|
|
8118
|
+
getModel(): Model | undefined;
|
|
8119
|
+
setModel(value?: Model): Deployment;
|
|
8120
|
+
hasModel(): boolean;
|
|
8121
|
+
clearModel(): Deployment;
|
|
8122
|
+
|
|
8123
|
+
getWorkflow(): Workflow | undefined;
|
|
8124
|
+
setWorkflow(value?: Workflow): Deployment;
|
|
8125
|
+
hasWorkflow(): boolean;
|
|
8126
|
+
clearWorkflow(): Deployment;
|
|
8127
|
+
|
|
8128
|
+
getSchedulingChoice(): Deployment.SchedulingChoice;
|
|
8129
|
+
setSchedulingChoice(value: Deployment.SchedulingChoice): Deployment;
|
|
8130
|
+
|
|
8131
|
+
getObjectCase(): Deployment.ObjectCase;
|
|
8132
|
+
|
|
8133
|
+
serializeBinary(): Uint8Array;
|
|
8134
|
+
toObject(includeInstance?: boolean): Deployment.AsObject;
|
|
8135
|
+
static toObject(includeInstance: boolean, msg: Deployment): Deployment.AsObject;
|
|
8136
|
+
static serializeBinaryToWriter(message: Deployment, writer: jspb.BinaryWriter): void;
|
|
8137
|
+
static deserializeBinary(bytes: Uint8Array): Deployment;
|
|
8138
|
+
static deserializeBinaryFromReader(message: Deployment, reader: jspb.BinaryReader): Deployment;
|
|
8139
|
+
}
|
|
8140
|
+
|
|
8141
|
+
export namespace Deployment {
|
|
8142
|
+
export type AsObject = {
|
|
8143
|
+
id: string,
|
|
8144
|
+
userId: string,
|
|
8145
|
+
autoscaleConfig?: AutoscaleConfig.AsObject,
|
|
8146
|
+
nodepoolsList: Array<Nodepool.AsObject>,
|
|
8147
|
+
model?: Model.AsObject,
|
|
8148
|
+
workflow?: Workflow.AsObject,
|
|
8149
|
+
schedulingChoice: Deployment.SchedulingChoice,
|
|
8150
|
+
}
|
|
8151
|
+
|
|
8152
|
+
export enum SchedulingChoice {
|
|
8153
|
+
UNKNOWN_SCHEDULING_CHOICE = 0,
|
|
8154
|
+
FAIL = 1,
|
|
8155
|
+
RANDOM = 2,
|
|
8156
|
+
PRICE = 3,
|
|
8157
|
+
PERFORMANCE = 4,
|
|
8158
|
+
NETWORK = 5,
|
|
8159
|
+
UTILIZATION = 6,
|
|
8160
|
+
PREFER_SPOT = 7,
|
|
8161
|
+
PREFER_ONDEMAND = 8,
|
|
8162
|
+
}
|
|
8163
|
+
|
|
8164
|
+
export enum ObjectCase {
|
|
8165
|
+
OBJECT_NOT_SET = 0,
|
|
8166
|
+
MODEL = 5,
|
|
8167
|
+
WORKFLOW = 6,
|
|
8168
|
+
}
|
|
8169
|
+
}
|
|
8170
|
+
|
|
8171
|
+
export class RunnerSelector extends jspb.Message {
|
|
8172
|
+
getNodepool(): Nodepool | undefined;
|
|
8173
|
+
setNodepool(value?: Nodepool): RunnerSelector;
|
|
8174
|
+
hasNodepool(): boolean;
|
|
8175
|
+
clearNodepool(): RunnerSelector;
|
|
8176
|
+
|
|
8177
|
+
getRunner(): Runner | undefined;
|
|
8178
|
+
setRunner(value?: Runner): RunnerSelector;
|
|
8179
|
+
hasRunner(): boolean;
|
|
8180
|
+
clearRunner(): RunnerSelector;
|
|
8181
|
+
|
|
8182
|
+
getDeployment(): Deployment | undefined;
|
|
8183
|
+
setDeployment(value?: Deployment): RunnerSelector;
|
|
8184
|
+
hasDeployment(): boolean;
|
|
8185
|
+
clearDeployment(): RunnerSelector;
|
|
8186
|
+
|
|
8187
|
+
serializeBinary(): Uint8Array;
|
|
8188
|
+
toObject(includeInstance?: boolean): RunnerSelector.AsObject;
|
|
8189
|
+
static toObject(includeInstance: boolean, msg: RunnerSelector): RunnerSelector.AsObject;
|
|
8190
|
+
static serializeBinaryToWriter(message: RunnerSelector, writer: jspb.BinaryWriter): void;
|
|
8191
|
+
static deserializeBinary(bytes: Uint8Array): RunnerSelector;
|
|
8192
|
+
static deserializeBinaryFromReader(message: RunnerSelector, reader: jspb.BinaryReader): RunnerSelector;
|
|
8193
|
+
}
|
|
8194
|
+
|
|
8195
|
+
export namespace RunnerSelector {
|
|
8196
|
+
export type AsObject = {
|
|
8197
|
+
nodepool?: Nodepool.AsObject,
|
|
8198
|
+
runner?: Runner.AsObject,
|
|
8199
|
+
deployment?: Deployment.AsObject,
|
|
7759
8200
|
}
|
|
7760
8201
|
}
|
|
7761
8202
|
|