clarifai-web-grpc 10.3.3 → 10.4.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.
@@ -55,6 +55,9 @@ proto.clarifai.api.status.StatusCode = {
55
55
  MODEL_UPLOADING: 21104,
56
56
  MODEL_UPLOADING_FAILED: 21105,
57
57
  MODEL_TRAINING_FAILED: 21106,
58
+ MODEL_BUILDING: 21107,
59
+ MODEL_BUILDING_FAILED: 21108,
60
+ MODEL_BUILD_UNEXPECTED_ERROR: 21109,
58
61
  MODEL_TRAINING_NO_DATA: 21110,
59
62
  MODEL_TRAINING_NO_POSITIVES: 21111,
60
63
  MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: 21112,
@@ -169,6 +172,12 @@ proto.clarifai.api.status.StatusCode = {
169
172
  RUNNER_STREAM_END: 25606,
170
173
  RUNNER_ITEM_CANCELLED: 25607,
171
174
  RUNNER_PROCESSING_FAILED: 25608,
175
+ NODEPOOL_DOES_NOT_EXIST: 25700,
176
+ NODEPOOL_INVALID_ARGUMENT: 25701,
177
+ NODEPOOL_INVALID_REQUEST: 25702,
178
+ COMPUTE_CLUSTER_DOES_NOT_EXIST: 25800,
179
+ COMPUTE_CLUSTER_INVALID_ARGUMENT: 25801,
180
+ COMPUTE_CLUSTER_INVALID_REQUEST: 25802,
172
181
  INPUT_DOWNLOAD_SUCCESS: 30000,
173
182
  INPUT_DOWNLOAD_PENDING: 30001,
174
183
  INPUT_DOWNLOAD_FAILED: 30002,
@@ -307,7 +307,13 @@ proto.clarifai.auth.scope.S = {
307
307
  RUNNERS_ADD: 132,
308
308
  RUNNERS_DELETE: 133,
309
309
  RUNNERITEMS_GET: 134,
310
- RUNNERITEMS_ADD: 135
310
+ RUNNERITEMS_ADD: 135,
311
+ NODEPOOLS_GET: 136,
312
+ NODEPOOLS_ADD: 137,
313
+ NODEPOOLS_DELETE: 138,
314
+ COMPUTECLUSTERS_GET: 139,
315
+ COMPUTECLUSTERS_ADD: 140,
316
+ COMPUTECLUSTERS_DELETE: 141
311
317
  };
312
318
  /**
313
319
  * A tuple of {field number, class constructor} for the extension
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "10.3.3",
3
+ "version": "10.4.1",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -914,6 +914,18 @@ export class ConceptQuery extends jspb.Message {
914
914
  clearUseCasesList(): ConceptQuery;
915
915
  addUseCases(value: WorkflowModelUseCase, index?: number): ConceptQuery;
916
916
 
917
+ getModel(): Model | undefined;
918
+ setModel(value?: Model): ConceptQuery;
919
+ hasModel(): boolean;
920
+ clearModel(): ConceptQuery;
921
+
922
+ getWorkflow(): Workflow | undefined;
923
+ setWorkflow(value?: Workflow): ConceptQuery;
924
+ hasWorkflow(): boolean;
925
+ clearWorkflow(): ConceptQuery;
926
+
927
+ getSourceCase(): ConceptQuery.SourceCase;
928
+
917
929
  serializeBinary(): Uint8Array;
918
930
  toObject(includeInstance?: boolean): ConceptQuery.AsObject;
919
931
  static toObject(includeInstance: boolean, msg: ConceptQuery): ConceptQuery.AsObject;
@@ -928,6 +940,14 @@ export namespace ConceptQuery {
928
940
  language: string,
929
941
  workflowId: string,
930
942
  useCasesList: Array<WorkflowModelUseCase>,
943
+ model?: Model.AsObject,
944
+ workflow?: Workflow.AsObject,
945
+ }
946
+
947
+ export enum SourceCase {
948
+ SOURCE_NOT_SET = 0,
949
+ MODEL = 5,
950
+ WORKFLOW = 6,
931
951
  }
932
952
  }
933
953
 
@@ -4752,6 +4772,9 @@ export class User extends jspb.Message {
4752
4772
  getIntention(): string;
4753
4773
  setIntention(value: string): User;
4754
4774
 
4775
+ getReferralSource(): string;
4776
+ setReferralSource(value: string): User;
4777
+
4755
4778
  getBillType(): string;
4756
4779
  setBillType(value: string): User;
4757
4780
 
@@ -4830,6 +4853,7 @@ export namespace User {
4830
4853
  jobTitle: string,
4831
4854
  jobRole: string,
4832
4855
  intention: string,
4856
+ referralSource: string,
4833
4857
  billType: string,
4834
4858
  createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
4835
4859
  dateGdprConsent?: google_protobuf_timestamp_pb.Timestamp.AsObject,
@@ -6185,6 +6209,11 @@ export class TaskMetrics extends jspb.Message {
6185
6209
  hasWork(): boolean;
6186
6210
  clearWork(): TaskMetrics;
6187
6211
 
6212
+ getReview(): TaskReviewMetrics | undefined;
6213
+ setReview(value?: TaskReviewMetrics): TaskMetrics;
6214
+ hasReview(): boolean;
6215
+ clearReview(): TaskMetrics;
6216
+
6188
6217
  serializeBinary(): Uint8Array;
6189
6218
  toObject(includeInstance?: boolean): TaskMetrics.AsObject;
6190
6219
  static toObject(includeInstance: boolean, msg: TaskMetrics): TaskMetrics.AsObject;
@@ -6196,6 +6225,7 @@ export class TaskMetrics extends jspb.Message {
6196
6225
  export namespace TaskMetrics {
6197
6226
  export type AsObject = {
6198
6227
  work?: TaskWorkMetrics.AsObject,
6228
+ review?: TaskReviewMetrics.AsObject,
6199
6229
  }
6200
6230
  }
6201
6231
 
@@ -6221,6 +6251,28 @@ export namespace TaskWorkMetrics {
6221
6251
  }
6222
6252
  }
6223
6253
 
6254
+ export class TaskReviewMetrics extends jspb.Message {
6255
+ getInputsCountEstimated(): number;
6256
+ setInputsCountEstimated(value: number): TaskReviewMetrics;
6257
+
6258
+ getInputsPercentEstimated(): number;
6259
+ setInputsPercentEstimated(value: number): TaskReviewMetrics;
6260
+
6261
+ serializeBinary(): Uint8Array;
6262
+ toObject(includeInstance?: boolean): TaskReviewMetrics.AsObject;
6263
+ static toObject(includeInstance: boolean, msg: TaskReviewMetrics): TaskReviewMetrics.AsObject;
6264
+ static serializeBinaryToWriter(message: TaskReviewMetrics, writer: jspb.BinaryWriter): void;
6265
+ static deserializeBinary(bytes: Uint8Array): TaskReviewMetrics;
6266
+ static deserializeBinaryFromReader(message: TaskReviewMetrics, reader: jspb.BinaryReader): TaskReviewMetrics;
6267
+ }
6268
+
6269
+ export namespace TaskReviewMetrics {
6270
+ export type AsObject = {
6271
+ inputsCountEstimated: number,
6272
+ inputsPercentEstimated: number,
6273
+ }
6274
+ }
6275
+
6224
6276
  export class Collector extends jspb.Message {
6225
6277
  getId(): string;
6226
6278
  setId(value: string): Collector;
@@ -7935,15 +7987,10 @@ export class Runner extends jspb.Message {
7935
7987
  clearLabelsList(): Runner;
7936
7988
  addLabels(value: string, index?: number): Runner;
7937
7989
 
7938
- getModel(): Model | undefined;
7939
- setModel(value?: Model): Runner;
7940
- hasModel(): boolean;
7941
- clearModel(): Runner;
7942
-
7943
- getWorkflow(): Workflow | undefined;
7944
- setWorkflow(value?: Workflow): Runner;
7945
- hasWorkflow(): boolean;
7946
- clearWorkflow(): Runner;
7990
+ getWorker(): Worker | undefined;
7991
+ setWorker(value?: Worker): Runner;
7992
+ hasWorker(): boolean;
7993
+ clearWorker(): Runner;
7947
7994
 
7948
7995
  getNodepool(): Nodepool | undefined;
7949
7996
  setNodepool(value?: Nodepool): Runner;
@@ -7955,8 +8002,6 @@ export class Runner extends jspb.Message {
7955
8002
  hasComputeInfo(): boolean;
7956
8003
  clearComputeInfo(): Runner;
7957
8004
 
7958
- getObjectCase(): Runner.ObjectCase;
7959
-
7960
8005
  serializeBinary(): Uint8Array;
7961
8006
  toObject(includeInstance?: boolean): Runner.AsObject;
7962
8007
  static toObject(includeInstance: boolean, msg: Runner): Runner.AsObject;
@@ -7974,40 +8019,46 @@ export namespace Runner {
7974
8019
  metadata?: google_protobuf_struct_pb.Struct.AsObject,
7975
8020
  userId: string,
7976
8021
  labelsList: Array<string>,
7977
- model?: Model.AsObject,
7978
- workflow?: Workflow.AsObject,
8022
+ worker?: Worker.AsObject,
7979
8023
  nodepool?: Nodepool.AsObject,
7980
8024
  computeInfo?: ComputeInfo.AsObject,
7981
8025
  }
7982
-
7983
- export enum ObjectCase {
7984
- OBJECT_NOT_SET = 0,
7985
- MODEL = 9,
7986
- WORKFLOW = 10,
7987
- }
7988
8026
  }
7989
8027
 
7990
8028
  export class Nodepool extends jspb.Message {
7991
8029
  getId(): string;
7992
8030
  setId(value: string): Nodepool;
7993
8031
 
8032
+ getDescription(): string;
8033
+ setDescription(value: string): Nodepool;
8034
+
8035
+ getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
8036
+ setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Nodepool;
8037
+ hasCreatedAt(): boolean;
8038
+ clearCreatedAt(): Nodepool;
8039
+
8040
+ getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
8041
+ setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): Nodepool;
8042
+ hasModifiedAt(): boolean;
8043
+ clearModifiedAt(): Nodepool;
8044
+
7994
8045
  getUserId(): string;
7995
8046
  setUserId(value: string): Nodepool;
7996
8047
 
7997
- getCloudRegion(): CloudRegion | undefined;
7998
- setCloudRegion(value?: CloudRegion): Nodepool;
7999
- hasCloudRegion(): boolean;
8000
- clearCloudRegion(): Nodepool;
8048
+ getComputeCluster(): ComputeCluster | undefined;
8049
+ setComputeCluster(value?: ComputeCluster): Nodepool;
8050
+ hasComputeCluster(): boolean;
8051
+ clearComputeCluster(): Nodepool;
8001
8052
 
8002
- getCapacityTypesList(): Array<Nodepool.CapacityType>;
8003
- setCapacityTypesList(value: Array<Nodepool.CapacityType>): Nodepool;
8004
- clearCapacityTypesList(): Nodepool;
8005
- addCapacityTypes(value: Nodepool.CapacityType, index?: number): Nodepool;
8053
+ getNodeCapacityType(): NodeCapacityType | undefined;
8054
+ setNodeCapacityType(value?: NodeCapacityType): Nodepool;
8055
+ hasNodeCapacityType(): boolean;
8056
+ clearNodeCapacityType(): Nodepool;
8006
8057
 
8007
- getInstanceTypesList(): Array<string>;
8008
- setInstanceTypesList(value: Array<string>): Nodepool;
8058
+ getInstanceTypesList(): Array<InstanceType>;
8059
+ setInstanceTypesList(value: Array<InstanceType>): Nodepool;
8009
8060
  clearInstanceTypesList(): Nodepool;
8010
- addInstanceTypes(value: string, index?: number): Nodepool;
8061
+ addInstanceTypes(value?: InstanceType, index?: number): InstanceType;
8011
8062
 
8012
8063
  getMinInstances(): number;
8013
8064
  setMinInstances(value: number): Nodepool;
@@ -8015,6 +8066,16 @@ export class Nodepool extends jspb.Message {
8015
8066
  getMaxInstances(): number;
8016
8067
  setMaxInstances(value: number): Nodepool;
8017
8068
 
8069
+ getVisibility(): Visibility | undefined;
8070
+ setVisibility(value?: Visibility): Nodepool;
8071
+ hasVisibility(): boolean;
8072
+ clearVisibility(): Nodepool;
8073
+
8074
+ getMetadata(): google_protobuf_struct_pb.Struct | undefined;
8075
+ setMetadata(value?: google_protobuf_struct_pb.Struct): Nodepool;
8076
+ hasMetadata(): boolean;
8077
+ clearMetadata(): Nodepool;
8078
+
8018
8079
  serializeBinary(): Uint8Array;
8019
8080
  toObject(includeInstance?: boolean): Nodepool.AsObject;
8020
8081
  static toObject(includeInstance: boolean, msg: Nodepool): Nodepool.AsObject;
@@ -8026,53 +8087,141 @@ export class Nodepool extends jspb.Message {
8026
8087
  export namespace Nodepool {
8027
8088
  export type AsObject = {
8028
8089
  id: string,
8090
+ description: string,
8091
+ createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
8092
+ modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
8029
8093
  userId: string,
8030
- cloudRegion?: CloudRegion.AsObject,
8031
- capacityTypesList: Array<Nodepool.CapacityType>,
8032
- instanceTypesList: Array<string>,
8094
+ computeCluster?: ComputeCluster.AsObject,
8095
+ nodeCapacityType?: NodeCapacityType.AsObject,
8096
+ instanceTypesList: Array<InstanceType.AsObject>,
8033
8097
  minInstances: number,
8034
8098
  maxInstances: number,
8099
+ visibility?: Visibility.AsObject,
8100
+ metadata?: google_protobuf_struct_pb.Struct.AsObject,
8101
+ }
8102
+ }
8103
+
8104
+ export class NodeCapacityType extends jspb.Message {
8105
+ getCapacityTypesList(): Array<NodeCapacityType.CapacityType>;
8106
+ setCapacityTypesList(value: Array<NodeCapacityType.CapacityType>): NodeCapacityType;
8107
+ clearCapacityTypesList(): NodeCapacityType;
8108
+ addCapacityTypes(value: NodeCapacityType.CapacityType, index?: number): NodeCapacityType;
8109
+
8110
+ serializeBinary(): Uint8Array;
8111
+ toObject(includeInstance?: boolean): NodeCapacityType.AsObject;
8112
+ static toObject(includeInstance: boolean, msg: NodeCapacityType): NodeCapacityType.AsObject;
8113
+ static serializeBinaryToWriter(message: NodeCapacityType, writer: jspb.BinaryWriter): void;
8114
+ static deserializeBinary(bytes: Uint8Array): NodeCapacityType;
8115
+ static deserializeBinaryFromReader(message: NodeCapacityType, reader: jspb.BinaryReader): NodeCapacityType;
8116
+ }
8117
+
8118
+ export namespace NodeCapacityType {
8119
+ export type AsObject = {
8120
+ capacityTypesList: Array<NodeCapacityType.CapacityType>,
8035
8121
  }
8036
8122
 
8037
8123
  export enum CapacityType {
8038
8124
  UKNOWN_CAPACITY_TYPE = 0,
8039
- ONDEMAND_TYPE = 1,
8125
+ ON_DEMAND_TYPE = 1,
8040
8126
  SPOT_TYPE = 2,
8041
8127
  }
8042
8128
  }
8043
8129
 
8044
- export class CloudRegion extends jspb.Message {
8130
+ export class InstanceType extends jspb.Message {
8045
8131
  getId(): string;
8046
- setId(value: string): CloudRegion;
8132
+ setId(value: string): InstanceType;
8047
8133
 
8048
- getCloud(): CloudRegion.Cloud;
8049
- setCloud(value: CloudRegion.Cloud): CloudRegion;
8134
+ getDescription(): string;
8135
+ setDescription(value: string): InstanceType;
8050
8136
 
8051
- getRegion(): string;
8052
- setRegion(value: string): CloudRegion;
8137
+ getComputeInfo(): ComputeInfo | undefined;
8138
+ setComputeInfo(value?: ComputeInfo): InstanceType;
8139
+ hasComputeInfo(): boolean;
8140
+ clearComputeInfo(): InstanceType;
8053
8141
 
8054
8142
  serializeBinary(): Uint8Array;
8055
- toObject(includeInstance?: boolean): CloudRegion.AsObject;
8056
- static toObject(includeInstance: boolean, msg: CloudRegion): CloudRegion.AsObject;
8057
- static serializeBinaryToWriter(message: CloudRegion, writer: jspb.BinaryWriter): void;
8058
- static deserializeBinary(bytes: Uint8Array): CloudRegion;
8059
- static deserializeBinaryFromReader(message: CloudRegion, reader: jspb.BinaryReader): CloudRegion;
8143
+ toObject(includeInstance?: boolean): InstanceType.AsObject;
8144
+ static toObject(includeInstance: boolean, msg: InstanceType): InstanceType.AsObject;
8145
+ static serializeBinaryToWriter(message: InstanceType, writer: jspb.BinaryWriter): void;
8146
+ static deserializeBinary(bytes: Uint8Array): InstanceType;
8147
+ static deserializeBinaryFromReader(message: InstanceType, reader: jspb.BinaryReader): InstanceType;
8060
8148
  }
8061
8149
 
8062
- export namespace CloudRegion {
8150
+ export namespace InstanceType {
8063
8151
  export type AsObject = {
8064
8152
  id: string,
8065
- cloud: CloudRegion.Cloud,
8066
- region: string,
8153
+ description: string,
8154
+ computeInfo?: ComputeInfo.AsObject,
8067
8155
  }
8156
+ }
8157
+
8158
+ export class CloudProvider extends jspb.Message {
8159
+ getId(): string;
8160
+ setId(value: string): CloudProvider;
8161
+
8162
+ getName(): string;
8163
+ setName(value: string): CloudProvider;
8164
+
8165
+ serializeBinary(): Uint8Array;
8166
+ toObject(includeInstance?: boolean): CloudProvider.AsObject;
8167
+ static toObject(includeInstance: boolean, msg: CloudProvider): CloudProvider.AsObject;
8168
+ static serializeBinaryToWriter(message: CloudProvider, writer: jspb.BinaryWriter): void;
8169
+ static deserializeBinary(bytes: Uint8Array): CloudProvider;
8170
+ static deserializeBinaryFromReader(message: CloudProvider, reader: jspb.BinaryReader): CloudProvider;
8171
+ }
8172
+
8173
+ export namespace CloudProvider {
8174
+ export type AsObject = {
8175
+ id: string,
8176
+ name: string,
8177
+ }
8178
+ }
8179
+
8180
+ export class ComputeCluster extends jspb.Message {
8181
+ getId(): string;
8182
+ setId(value: string): ComputeCluster;
8068
8183
 
8069
- export enum Cloud {
8070
- UNKOWN_CLOUD = 0,
8071
- SELF_HOSTED = 1,
8072
- AWS = 2,
8073
- GCP = 3,
8074
- AZURE = 4,
8075
- LAMBDA = 5,
8184
+ getDescription(): string;
8185
+ setDescription(value: string): ComputeCluster;
8186
+
8187
+ getCloudProvider(): CloudProvider | undefined;
8188
+ setCloudProvider(value?: CloudProvider): ComputeCluster;
8189
+ hasCloudProvider(): boolean;
8190
+ clearCloudProvider(): ComputeCluster;
8191
+
8192
+ getRegion(): string;
8193
+ setRegion(value: string): ComputeCluster;
8194
+
8195
+ getUserId(): string;
8196
+ setUserId(value: string): ComputeCluster;
8197
+
8198
+ getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
8199
+ setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): ComputeCluster;
8200
+ hasCreatedAt(): boolean;
8201
+ clearCreatedAt(): ComputeCluster;
8202
+
8203
+ getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
8204
+ setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): ComputeCluster;
8205
+ hasModifiedAt(): boolean;
8206
+ clearModifiedAt(): ComputeCluster;
8207
+
8208
+ serializeBinary(): Uint8Array;
8209
+ toObject(includeInstance?: boolean): ComputeCluster.AsObject;
8210
+ static toObject(includeInstance: boolean, msg: ComputeCluster): ComputeCluster.AsObject;
8211
+ static serializeBinaryToWriter(message: ComputeCluster, writer: jspb.BinaryWriter): void;
8212
+ static deserializeBinary(bytes: Uint8Array): ComputeCluster;
8213
+ static deserializeBinaryFromReader(message: ComputeCluster, reader: jspb.BinaryReader): ComputeCluster;
8214
+ }
8215
+
8216
+ export namespace ComputeCluster {
8217
+ export type AsObject = {
8218
+ id: string,
8219
+ description: string,
8220
+ cloudProvider?: CloudProvider.AsObject,
8221
+ region: string,
8222
+ userId: string,
8223
+ createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
8224
+ modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
8076
8225
  }
8077
8226
  }
8078
8227
 
@@ -8180,6 +8329,16 @@ export class Deployment extends jspb.Message {
8180
8329
  getSchedulingChoice(): Deployment.SchedulingChoice;
8181
8330
  setSchedulingChoice(value: Deployment.SchedulingChoice): Deployment;
8182
8331
 
8332
+ getVisibility(): Visibility | undefined;
8333
+ setVisibility(value?: Visibility): Deployment;
8334
+ hasVisibility(): boolean;
8335
+ clearVisibility(): Deployment;
8336
+
8337
+ getMetadata(): google_protobuf_struct_pb.Struct | undefined;
8338
+ setMetadata(value?: google_protobuf_struct_pb.Struct): Deployment;
8339
+ hasMetadata(): boolean;
8340
+ clearMetadata(): Deployment;
8341
+
8183
8342
  getObjectCase(): Deployment.ObjectCase;
8184
8343
 
8185
8344
  serializeBinary(): Uint8Array;
@@ -8199,6 +8358,8 @@ export namespace Deployment {
8199
8358
  model?: Model.AsObject,
8200
8359
  workflow?: Workflow.AsObject,
8201
8360
  schedulingChoice: Deployment.SchedulingChoice,
8361
+ visibility?: Visibility.AsObject,
8362
+ metadata?: google_protobuf_struct_pb.Struct.AsObject,
8202
8363
  }
8203
8364
 
8204
8365
  export enum SchedulingChoice {