clarifai-web-grpc 11.6.6 → 11.7.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.
@@ -132,6 +132,11 @@ proto.clarifai.api.status.StatusCode = {
132
132
  ANNOTATION_MODIFY_SUCCESS: 24250,
133
133
  ANNOTATION_MODIFY_PENDING: 24251,
134
134
  ANNOTATION_MODIFY_FAILED: 24252,
135
+ ANNOTATION_TRACK_IDLE: 24300,
136
+ ANNOTATION_TRACK_IN_PROGRESS: 24301,
137
+ ANNOTATION_TRACK_PENDING: 24302,
138
+ ANNOTATION_TRACK_APPROVED: 24303,
139
+ ANNOTATION_TRACK_FAILED: 24304,
135
140
  METADATA_INVALID_PATCH_ARGUMENTS: 24900,
136
141
  METADATA_PARSING_ISSUE: 24901,
137
142
  METADATA_MANIPULATION_ISSUE: 24902,
@@ -199,6 +204,9 @@ proto.clarifai.api.status.StatusCode = {
199
204
  PIPELINE_STEP_BUILD_UNEXPECTED_ERROR: 26207,
200
205
  PIPELINE_STEP_READY: 26208,
201
206
  PIPELINE_STEP_NOT_READY: 26209,
207
+ PIPELINE_DOES_NOT_EXIST: 26300,
208
+ PIPELINE_INVALID_ARGUMENT: 26301,
209
+ PIPELINE_INVALID_REQUEST: 26302,
202
210
  INPUT_SUCCESS: 30000,
203
211
  INPUT_PENDING: 30001,
204
212
  INPUT_FAILED: 30002,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "11.6.6",
3
+ "version": "11.7.0",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -98,6 +98,72 @@ export namespace Annotation {
98
98
  }
99
99
  }
100
100
 
101
+ export class AnnotationTrack extends jspb.Message {
102
+ getId(): string;
103
+ setId(value: string): AnnotationTrack;
104
+
105
+ getAppId(): string;
106
+ setAppId(value: string): AnnotationTrack;
107
+
108
+ getInputId(): string;
109
+ setInputId(value: string): AnnotationTrack;
110
+
111
+ getConcept(): Concept | undefined;
112
+ setConcept(value?: Concept): AnnotationTrack;
113
+ hasConcept(): boolean;
114
+ clearConcept(): AnnotationTrack;
115
+
116
+ getUserId(): string;
117
+ setUserId(value: string): AnnotationTrack;
118
+
119
+ getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
120
+ setStatus(value?: proto_clarifai_api_status_status_pb.Status): AnnotationTrack;
121
+ hasStatus(): boolean;
122
+ clearStatus(): AnnotationTrack;
123
+
124
+ getStartFrame(): number;
125
+ setStartFrame(value: number): AnnotationTrack;
126
+
127
+ getEndFrame(): number;
128
+ setEndFrame(value: number): AnnotationTrack;
129
+
130
+ getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
131
+ setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): AnnotationTrack;
132
+ hasCreatedAt(): boolean;
133
+ clearCreatedAt(): AnnotationTrack;
134
+
135
+ getModifiedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
136
+ setModifiedAt(value?: google_protobuf_timestamp_pb.Timestamp): AnnotationTrack;
137
+ hasModifiedAt(): boolean;
138
+ clearModifiedAt(): AnnotationTrack;
139
+
140
+ getFrameRate(): number;
141
+ setFrameRate(value: number): AnnotationTrack;
142
+
143
+ serializeBinary(): Uint8Array;
144
+ toObject(includeInstance?: boolean): AnnotationTrack.AsObject;
145
+ static toObject(includeInstance: boolean, msg: AnnotationTrack): AnnotationTrack.AsObject;
146
+ static serializeBinaryToWriter(message: AnnotationTrack, writer: jspb.BinaryWriter): void;
147
+ static deserializeBinary(bytes: Uint8Array): AnnotationTrack;
148
+ static deserializeBinaryFromReader(message: AnnotationTrack, reader: jspb.BinaryReader): AnnotationTrack;
149
+ }
150
+
151
+ export namespace AnnotationTrack {
152
+ export type AsObject = {
153
+ id: string,
154
+ appId: string,
155
+ inputId: string,
156
+ concept?: Concept.AsObject,
157
+ userId: string,
158
+ status?: proto_clarifai_api_status_status_pb.Status.AsObject,
159
+ startFrame: number,
160
+ endFrame: number,
161
+ createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
162
+ modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
163
+ frameRate: number,
164
+ }
165
+ }
166
+
101
167
  export class Worker extends jspb.Message {
102
168
  getUser(): User | undefined;
103
169
  setUser(value?: User): Worker;
@@ -3352,6 +3418,7 @@ export namespace ModelTypeField {
3352
3418
  DATASET_VERSION = 20,
3353
3419
  ENCRYPTED_STRING = 21,
3354
3420
  CHECKPOINT_MODEL = 22,
3421
+ ARRAY_OF_SECRETS = 23,
3355
3422
  }
3356
3423
 
3357
3424
  export enum DataType {
@@ -9435,6 +9502,9 @@ export class ComputeSourceMetadata extends jspb.Message {
9435
9502
  getWorkflowId(): string;
9436
9503
  setWorkflowId(value: string): ComputeSourceMetadata;
9437
9504
 
9505
+ getComputeClusterUserId(): string;
9506
+ setComputeClusterUserId(value: string): ComputeSourceMetadata;
9507
+
9438
9508
  getComputeClusterId(): string;
9439
9509
  setComputeClusterId(value: string): ComputeSourceMetadata;
9440
9510
 
@@ -9473,6 +9543,7 @@ export namespace ComputeSourceMetadata {
9473
9543
  modelId: string,
9474
9544
  modelVersionId: string,
9475
9545
  workflowId: string,
9546
+ computeClusterUserId: string,
9476
9547
  computeClusterId: string,
9477
9548
  nodepoolId: string,
9478
9549
  runnerId: string,
@@ -10266,11 +10337,8 @@ export class Secret extends jspb.Message {
10266
10337
  getId(): string;
10267
10338
  setId(value: string): Secret;
10268
10339
 
10269
- getAppId(): string;
10270
- setAppId(value: string): Secret;
10271
-
10272
- getName(): string;
10273
- setName(value: string): Secret;
10340
+ getUserId(): string;
10341
+ setUserId(value: string): Secret;
10274
10342
 
10275
10343
  getValue(): string;
10276
10344
  setValue(value: string): Secret;
@@ -10291,11 +10359,6 @@ export class Secret extends jspb.Message {
10291
10359
  hasModifiedAt(): boolean;
10292
10360
  clearModifiedAt(): Secret;
10293
10361
 
10294
- getVisibility(): Visibility | undefined;
10295
- setVisibility(value?: Visibility): Secret;
10296
- hasVisibility(): boolean;
10297
- clearVisibility(): Secret;
10298
-
10299
10362
  getExpiresAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
10300
10363
  setExpiresAt(value?: google_protobuf_timestamp_pb.Timestamp): Secret;
10301
10364
  hasExpiresAt(): boolean;
@@ -10312,18 +10375,278 @@ export class Secret extends jspb.Message {
10312
10375
  export namespace Secret {
10313
10376
  export type AsObject = {
10314
10377
  id: string,
10315
- appId: string,
10316
- name: string,
10378
+ userId: string,
10317
10379
  value: string,
10318
10380
  version: number,
10319
10381
  description: string,
10320
10382
  createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
10321
10383
  modifiedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
10322
- visibility?: Visibility.AsObject,
10323
10384
  expiresAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
10324
10385
  }
10325
10386
  }
10326
10387
 
10388
+ export class MetricData extends jspb.Message {
10389
+ getMatrixData(): MetricData.MatrixData | undefined;
10390
+ setMatrixData(value?: MetricData.MatrixData): MetricData;
10391
+ hasMatrixData(): boolean;
10392
+ clearMatrixData(): MetricData;
10393
+
10394
+ getDataCase(): MetricData.DataCase;
10395
+
10396
+ serializeBinary(): Uint8Array;
10397
+ toObject(includeInstance?: boolean): MetricData.AsObject;
10398
+ static toObject(includeInstance: boolean, msg: MetricData): MetricData.AsObject;
10399
+ static serializeBinaryToWriter(message: MetricData, writer: jspb.BinaryWriter): void;
10400
+ static deserializeBinary(bytes: Uint8Array): MetricData;
10401
+ static deserializeBinaryFromReader(message: MetricData, reader: jspb.BinaryReader): MetricData;
10402
+ }
10403
+
10404
+ export namespace MetricData {
10405
+ export type AsObject = {
10406
+ matrixData?: MetricData.MatrixData.AsObject,
10407
+ }
10408
+
10409
+ export class Label extends jspb.Message {
10410
+ getName(): MetricLabel;
10411
+ setName(value: MetricLabel): Label;
10412
+
10413
+ getValue(): string;
10414
+ setValue(value: string): Label;
10415
+
10416
+ serializeBinary(): Uint8Array;
10417
+ toObject(includeInstance?: boolean): Label.AsObject;
10418
+ static toObject(includeInstance: boolean, msg: Label): Label.AsObject;
10419
+ static serializeBinaryToWriter(message: Label, writer: jspb.BinaryWriter): void;
10420
+ static deserializeBinary(bytes: Uint8Array): Label;
10421
+ static deserializeBinaryFromReader(message: Label, reader: jspb.BinaryReader): Label;
10422
+ }
10423
+
10424
+ export namespace Label {
10425
+ export type AsObject = {
10426
+ name: MetricLabel,
10427
+ value: string,
10428
+ }
10429
+ }
10430
+
10431
+
10432
+ export class MetricSample extends jspb.Message {
10433
+ getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
10434
+ setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): MetricSample;
10435
+ hasTimestamp(): boolean;
10436
+ clearTimestamp(): MetricSample;
10437
+
10438
+ getValue(): number;
10439
+ setValue(value: number): MetricSample;
10440
+
10441
+ serializeBinary(): Uint8Array;
10442
+ toObject(includeInstance?: boolean): MetricSample.AsObject;
10443
+ static toObject(includeInstance: boolean, msg: MetricSample): MetricSample.AsObject;
10444
+ static serializeBinaryToWriter(message: MetricSample, writer: jspb.BinaryWriter): void;
10445
+ static deserializeBinary(bytes: Uint8Array): MetricSample;
10446
+ static deserializeBinaryFromReader(message: MetricSample, reader: jspb.BinaryReader): MetricSample;
10447
+ }
10448
+
10449
+ export namespace MetricSample {
10450
+ export type AsObject = {
10451
+ timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
10452
+ value: number,
10453
+ }
10454
+ }
10455
+
10456
+
10457
+ export class MatrixData extends jspb.Message {
10458
+ getSeriesList(): Array<MetricData.MatrixData.TimeSeries>;
10459
+ setSeriesList(value: Array<MetricData.MatrixData.TimeSeries>): MatrixData;
10460
+ clearSeriesList(): MatrixData;
10461
+ addSeries(value?: MetricData.MatrixData.TimeSeries, index?: number): MetricData.MatrixData.TimeSeries;
10462
+
10463
+ serializeBinary(): Uint8Array;
10464
+ toObject(includeInstance?: boolean): MatrixData.AsObject;
10465
+ static toObject(includeInstance: boolean, msg: MatrixData): MatrixData.AsObject;
10466
+ static serializeBinaryToWriter(message: MatrixData, writer: jspb.BinaryWriter): void;
10467
+ static deserializeBinary(bytes: Uint8Array): MatrixData;
10468
+ static deserializeBinaryFromReader(message: MatrixData, reader: jspb.BinaryReader): MatrixData;
10469
+ }
10470
+
10471
+ export namespace MatrixData {
10472
+ export type AsObject = {
10473
+ seriesList: Array<MetricData.MatrixData.TimeSeries.AsObject>,
10474
+ }
10475
+
10476
+ export class TimeSeries extends jspb.Message {
10477
+ getLabelsList(): Array<MetricData.Label>;
10478
+ setLabelsList(value: Array<MetricData.Label>): TimeSeries;
10479
+ clearLabelsList(): TimeSeries;
10480
+ addLabels(value?: MetricData.Label, index?: number): MetricData.Label;
10481
+
10482
+ getValueList(): Array<MetricData.MetricSample>;
10483
+ setValueList(value: Array<MetricData.MetricSample>): TimeSeries;
10484
+ clearValueList(): TimeSeries;
10485
+ addValue(value?: MetricData.MetricSample, index?: number): MetricData.MetricSample;
10486
+
10487
+ serializeBinary(): Uint8Array;
10488
+ toObject(includeInstance?: boolean): TimeSeries.AsObject;
10489
+ static toObject(includeInstance: boolean, msg: TimeSeries): TimeSeries.AsObject;
10490
+ static serializeBinaryToWriter(message: TimeSeries, writer: jspb.BinaryWriter): void;
10491
+ static deserializeBinary(bytes: Uint8Array): TimeSeries;
10492
+ static deserializeBinaryFromReader(message: TimeSeries, reader: jspb.BinaryReader): TimeSeries;
10493
+ }
10494
+
10495
+ export namespace TimeSeries {
10496
+ export type AsObject = {
10497
+ labelsList: Array<MetricData.Label.AsObject>,
10498
+ valueList: Array<MetricData.MetricSample.AsObject>,
10499
+ }
10500
+ }
10501
+
10502
+ }
10503
+
10504
+
10505
+ export enum DataCase {
10506
+ DATA_NOT_SET = 0,
10507
+ MATRIX_DATA = 1,
10508
+ }
10509
+ }
10510
+
10511
+ export class MetricAggregate extends jspb.Message {
10512
+ getOperator(): MetricAggregate.Operator;
10513
+ setOperator(value: MetricAggregate.Operator): MetricAggregate;
10514
+
10515
+ getLabelsList(): Array<MetricLabel>;
10516
+ setLabelsList(value: Array<MetricLabel>): MetricAggregate;
10517
+ clearLabelsList(): MetricAggregate;
10518
+ addLabels(value: MetricLabel, index?: number): MetricAggregate;
10519
+
10520
+ serializeBinary(): Uint8Array;
10521
+ toObject(includeInstance?: boolean): MetricAggregate.AsObject;
10522
+ static toObject(includeInstance: boolean, msg: MetricAggregate): MetricAggregate.AsObject;
10523
+ static serializeBinaryToWriter(message: MetricAggregate, writer: jspb.BinaryWriter): void;
10524
+ static deserializeBinary(bytes: Uint8Array): MetricAggregate;
10525
+ static deserializeBinaryFromReader(message: MetricAggregate, reader: jspb.BinaryReader): MetricAggregate;
10526
+ }
10527
+
10528
+ export namespace MetricAggregate {
10529
+ export type AsObject = {
10530
+ operator: MetricAggregate.Operator,
10531
+ labelsList: Array<MetricLabel>,
10532
+ }
10533
+
10534
+ export enum Operator {
10535
+ OPERATOR_NOT_SET = 0,
10536
+ AVG = 1,
10537
+ SUM = 2,
10538
+ MAX = 3,
10539
+ MIN = 4,
10540
+ P95 = 5,
10541
+ P99 = 6,
10542
+ P50 = 7,
10543
+ COUNT = 8,
10544
+ }
10545
+ }
10546
+
10547
+ export class MetricFilter extends jspb.Message {
10548
+ getLabel(): MetricLabel;
10549
+ setLabel(value: MetricLabel): MetricFilter;
10550
+
10551
+ getEquals(): string;
10552
+ setEquals(value: string): MetricFilter;
10553
+
10554
+ getIn(): MetricFilter.MultiValues | undefined;
10555
+ setIn(value?: MetricFilter.MultiValues): MetricFilter;
10556
+ hasIn(): boolean;
10557
+ clearIn(): MetricFilter;
10558
+
10559
+ getValueCase(): MetricFilter.ValueCase;
10560
+
10561
+ serializeBinary(): Uint8Array;
10562
+ toObject(includeInstance?: boolean): MetricFilter.AsObject;
10563
+ static toObject(includeInstance: boolean, msg: MetricFilter): MetricFilter.AsObject;
10564
+ static serializeBinaryToWriter(message: MetricFilter, writer: jspb.BinaryWriter): void;
10565
+ static deserializeBinary(bytes: Uint8Array): MetricFilter;
10566
+ static deserializeBinaryFromReader(message: MetricFilter, reader: jspb.BinaryReader): MetricFilter;
10567
+ }
10568
+
10569
+ export namespace MetricFilter {
10570
+ export type AsObject = {
10571
+ label: MetricLabel,
10572
+ equals: string,
10573
+ pb_in?: MetricFilter.MultiValues.AsObject,
10574
+ }
10575
+
10576
+ export class MultiValues extends jspb.Message {
10577
+ getInList(): Array<string>;
10578
+ setInList(value: Array<string>): MultiValues;
10579
+ clearInList(): MultiValues;
10580
+ addIn(value: string, index?: number): MultiValues;
10581
+
10582
+ serializeBinary(): Uint8Array;
10583
+ toObject(includeInstance?: boolean): MultiValues.AsObject;
10584
+ static toObject(includeInstance: boolean, msg: MultiValues): MultiValues.AsObject;
10585
+ static serializeBinaryToWriter(message: MultiValues, writer: jspb.BinaryWriter): void;
10586
+ static deserializeBinary(bytes: Uint8Array): MultiValues;
10587
+ static deserializeBinaryFromReader(message: MultiValues, reader: jspb.BinaryReader): MultiValues;
10588
+ }
10589
+
10590
+ export namespace MultiValues {
10591
+ export type AsObject = {
10592
+ inList: Array<string>,
10593
+ }
10594
+ }
10595
+
10596
+
10597
+ export enum ValueCase {
10598
+ VALUE_NOT_SET = 0,
10599
+ EQUALS = 2,
10600
+ IN = 3,
10601
+ }
10602
+ }
10603
+
10604
+ export class MetricSearchQuery extends jspb.Message {
10605
+ getMetricType(): MetricType;
10606
+ setMetricType(value: MetricType): MetricSearchQuery;
10607
+
10608
+ getStartTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
10609
+ setStartTime(value?: google_protobuf_timestamp_pb.Timestamp): MetricSearchQuery;
10610
+ hasStartTime(): boolean;
10611
+ clearStartTime(): MetricSearchQuery;
10612
+
10613
+ getEndTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
10614
+ setEndTime(value?: google_protobuf_timestamp_pb.Timestamp): MetricSearchQuery;
10615
+ hasEndTime(): boolean;
10616
+ clearEndTime(): MetricSearchQuery;
10617
+
10618
+ getResolution(): string;
10619
+ setResolution(value: string): MetricSearchQuery;
10620
+
10621
+ getFiltersList(): Array<MetricFilter>;
10622
+ setFiltersList(value: Array<MetricFilter>): MetricSearchQuery;
10623
+ clearFiltersList(): MetricSearchQuery;
10624
+ addFilters(value?: MetricFilter, index?: number): MetricFilter;
10625
+
10626
+ getAggregate(): MetricAggregate | undefined;
10627
+ setAggregate(value?: MetricAggregate): MetricSearchQuery;
10628
+ hasAggregate(): boolean;
10629
+ clearAggregate(): MetricSearchQuery;
10630
+
10631
+ serializeBinary(): Uint8Array;
10632
+ toObject(includeInstance?: boolean): MetricSearchQuery.AsObject;
10633
+ static toObject(includeInstance: boolean, msg: MetricSearchQuery): MetricSearchQuery.AsObject;
10634
+ static serializeBinaryToWriter(message: MetricSearchQuery, writer: jspb.BinaryWriter): void;
10635
+ static deserializeBinary(bytes: Uint8Array): MetricSearchQuery;
10636
+ static deserializeBinaryFromReader(message: MetricSearchQuery, reader: jspb.BinaryReader): MetricSearchQuery;
10637
+ }
10638
+
10639
+ export namespace MetricSearchQuery {
10640
+ export type AsObject = {
10641
+ metricType: MetricType,
10642
+ startTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
10643
+ endTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
10644
+ resolution: string,
10645
+ filtersList: Array<MetricFilter.AsObject>,
10646
+ aggregate?: MetricAggregate.AsObject,
10647
+ }
10648
+ }
10649
+
10327
10650
  export enum WorkflowModelUseCase {
10328
10651
  WORKFLOW_MODEL_USE_CASE_NOT_SET = 0,
10329
10652
  CLASSIFICATION = 1,
@@ -10508,3 +10831,16 @@ export enum EventType {
10508
10831
  DEPLOYMENT_UPDATE = 1101,
10509
10832
  DEPLOYMENT_DELETE = 1102,
10510
10833
  }
10834
+ export enum MetricType {
10835
+ METRIC_TYPE_NOT_SET = 0,
10836
+ MODEL_REQUEST_COUNT = 1,
10837
+ MODEL_LATENCY = 2,
10838
+ }
10839
+ export enum MetricLabel {
10840
+ METRIC_LABEL_NOT_SET = 0,
10841
+ APP_ID = 1,
10842
+ MODEL_ID = 2,
10843
+ MODEL_VERSION_ID = 3,
10844
+ CALLER_USER_ID = 4,
10845
+ WORKFLOW_ID = 5,
10846
+ }