clarifai-web-grpc 11.7.6 → 11.8.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.
@@ -1923,6 +1923,20 @@ export class V2Client {
1923
1923
  response: proto_clarifai_api_service_pb.MultiSecretResponse) => void
1924
1924
  ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiSecretResponse>;
1925
1925
 
1926
+ postMetricsQuery(
1927
+ request: proto_clarifai_api_service_pb.PostMetricsQueryRequest,
1928
+ metadata: grpcWeb.Metadata | undefined,
1929
+ callback: (err: grpcWeb.RpcError,
1930
+ response: proto_clarifai_api_service_pb.MetricsQueryResponse) => void
1931
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MetricsQueryResponse>;
1932
+
1933
+ listMetricLabels(
1934
+ request: proto_clarifai_api_service_pb.ListMetricLabelsRequest,
1935
+ metadata: grpcWeb.Metadata | undefined,
1936
+ callback: (err: grpcWeb.RpcError,
1937
+ response: proto_clarifai_api_service_pb.MultiMetricLabelsResponse) => void
1938
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiMetricLabelsResponse>;
1939
+
1926
1940
  }
1927
1941
 
1928
1942
  export class V2PromiseClient {
@@ -3300,5 +3314,15 @@ export class V2PromiseClient {
3300
3314
  metadata?: grpcWeb.Metadata
3301
3315
  ): Promise<proto_clarifai_api_service_pb.MultiSecretResponse>;
3302
3316
 
3317
+ postMetricsQuery(
3318
+ request: proto_clarifai_api_service_pb.PostMetricsQueryRequest,
3319
+ metadata?: grpcWeb.Metadata
3320
+ ): Promise<proto_clarifai_api_service_pb.MetricsQueryResponse>;
3321
+
3322
+ listMetricLabels(
3323
+ request: proto_clarifai_api_service_pb.ListMetricLabelsRequest,
3324
+ metadata?: grpcWeb.Metadata
3325
+ ): Promise<proto_clarifai_api_service_pb.MultiMetricLabelsResponse>;
3326
+
3303
3327
  }
3304
3328
 
@@ -16799,5 +16799,127 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteSecrets =
16799
16799
  };
16800
16800
 
16801
16801
 
16802
+ /**
16803
+ * @const
16804
+ * @type {!grpc.web.MethodDescriptor<
16805
+ * !proto.clarifai.api.PostMetricsQueryRequest,
16806
+ * !proto.clarifai.api.MetricsQueryResponse>}
16807
+ */
16808
+ const methodDescriptor_V2_PostMetricsQuery = new grpc.web.MethodDescriptor(
16809
+ '/clarifai.api.V2/PostMetricsQuery',
16810
+ grpc.web.MethodType.UNARY,
16811
+ proto.clarifai.api.PostMetricsQueryRequest,
16812
+ proto.clarifai.api.MetricsQueryResponse,
16813
+ /**
16814
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} request
16815
+ * @return {!Uint8Array}
16816
+ */
16817
+ function(request) {
16818
+ return request.serializeBinary();
16819
+ },
16820
+ proto.clarifai.api.MetricsQueryResponse.deserializeBinary
16821
+ );
16822
+
16823
+
16824
+ /**
16825
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} request The
16826
+ * request proto
16827
+ * @param {?Object<string, string>} metadata User defined
16828
+ * call metadata
16829
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MetricsQueryResponse)}
16830
+ * callback The callback function(error, response)
16831
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MetricsQueryResponse>|undefined}
16832
+ * The XHR Node Readable Stream
16833
+ */
16834
+ proto.clarifai.api.V2Client.prototype.postMetricsQuery =
16835
+ function(request, metadata, callback) {
16836
+ return this.client_.rpcCall(this.hostname_ +
16837
+ '/clarifai.api.V2/PostMetricsQuery',
16838
+ request,
16839
+ metadata || {},
16840
+ methodDescriptor_V2_PostMetricsQuery,
16841
+ callback);
16842
+ };
16843
+
16844
+
16845
+ /**
16846
+ * @param {!proto.clarifai.api.PostMetricsQueryRequest} request The
16847
+ * request proto
16848
+ * @param {?Object<string, string>=} metadata User defined
16849
+ * call metadata
16850
+ * @return {!Promise<!proto.clarifai.api.MetricsQueryResponse>}
16851
+ * Promise that resolves to the response
16852
+ */
16853
+ proto.clarifai.api.V2PromiseClient.prototype.postMetricsQuery =
16854
+ function(request, metadata) {
16855
+ return this.client_.unaryCall(this.hostname_ +
16856
+ '/clarifai.api.V2/PostMetricsQuery',
16857
+ request,
16858
+ metadata || {},
16859
+ methodDescriptor_V2_PostMetricsQuery);
16860
+ };
16861
+
16862
+
16863
+ /**
16864
+ * @const
16865
+ * @type {!grpc.web.MethodDescriptor<
16866
+ * !proto.clarifai.api.ListMetricLabelsRequest,
16867
+ * !proto.clarifai.api.MultiMetricLabelsResponse>}
16868
+ */
16869
+ const methodDescriptor_V2_ListMetricLabels = new grpc.web.MethodDescriptor(
16870
+ '/clarifai.api.V2/ListMetricLabels',
16871
+ grpc.web.MethodType.UNARY,
16872
+ proto.clarifai.api.ListMetricLabelsRequest,
16873
+ proto.clarifai.api.MultiMetricLabelsResponse,
16874
+ /**
16875
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} request
16876
+ * @return {!Uint8Array}
16877
+ */
16878
+ function(request) {
16879
+ return request.serializeBinary();
16880
+ },
16881
+ proto.clarifai.api.MultiMetricLabelsResponse.deserializeBinary
16882
+ );
16883
+
16884
+
16885
+ /**
16886
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} request The
16887
+ * request proto
16888
+ * @param {?Object<string, string>} metadata User defined
16889
+ * call metadata
16890
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiMetricLabelsResponse)}
16891
+ * callback The callback function(error, response)
16892
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiMetricLabelsResponse>|undefined}
16893
+ * The XHR Node Readable Stream
16894
+ */
16895
+ proto.clarifai.api.V2Client.prototype.listMetricLabels =
16896
+ function(request, metadata, callback) {
16897
+ return this.client_.rpcCall(this.hostname_ +
16898
+ '/clarifai.api.V2/ListMetricLabels',
16899
+ request,
16900
+ metadata || {},
16901
+ methodDescriptor_V2_ListMetricLabels,
16902
+ callback);
16903
+ };
16904
+
16905
+
16906
+ /**
16907
+ * @param {!proto.clarifai.api.ListMetricLabelsRequest} request The
16908
+ * request proto
16909
+ * @param {?Object<string, string>=} metadata User defined
16910
+ * call metadata
16911
+ * @return {!Promise<!proto.clarifai.api.MultiMetricLabelsResponse>}
16912
+ * Promise that resolves to the response
16913
+ */
16914
+ proto.clarifai.api.V2PromiseClient.prototype.listMetricLabels =
16915
+ function(request, metadata) {
16916
+ return this.client_.unaryCall(this.hostname_ +
16917
+ '/clarifai.api.V2/ListMetricLabels',
16918
+ request,
16919
+ metadata || {},
16920
+ methodDescriptor_V2_ListMetricLabels);
16921
+ };
16922
+
16923
+
16802
16924
  module.exports = proto.clarifai.api;
16803
16925
 
@@ -12882,6 +12882,114 @@ export namespace MultiSecretResponse {
12882
12882
  }
12883
12883
  }
12884
12884
 
12885
+ export class PostMetricsQueryRequest extends jspb.Message {
12886
+ getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
12887
+ setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): PostMetricsQueryRequest;
12888
+ hasUserAppId(): boolean;
12889
+ clearUserAppId(): PostMetricsQueryRequest;
12890
+
12891
+ getQuery(): proto_clarifai_api_resources_pb.MetricSearchQuery | undefined;
12892
+ setQuery(value?: proto_clarifai_api_resources_pb.MetricSearchQuery): PostMetricsQueryRequest;
12893
+ hasQuery(): boolean;
12894
+ clearQuery(): PostMetricsQueryRequest;
12895
+
12896
+ serializeBinary(): Uint8Array;
12897
+ toObject(includeInstance?: boolean): PostMetricsQueryRequest.AsObject;
12898
+ static toObject(includeInstance: boolean, msg: PostMetricsQueryRequest): PostMetricsQueryRequest.AsObject;
12899
+ static serializeBinaryToWriter(message: PostMetricsQueryRequest, writer: jspb.BinaryWriter): void;
12900
+ static deserializeBinary(bytes: Uint8Array): PostMetricsQueryRequest;
12901
+ static deserializeBinaryFromReader(message: PostMetricsQueryRequest, reader: jspb.BinaryReader): PostMetricsQueryRequest;
12902
+ }
12903
+
12904
+ export namespace PostMetricsQueryRequest {
12905
+ export type AsObject = {
12906
+ userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
12907
+ query?: proto_clarifai_api_resources_pb.MetricSearchQuery.AsObject,
12908
+ }
12909
+ }
12910
+
12911
+ export class MetricsQueryResponse extends jspb.Message {
12912
+ getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
12913
+ setStatus(value?: proto_clarifai_api_status_status_pb.Status): MetricsQueryResponse;
12914
+ hasStatus(): boolean;
12915
+ clearStatus(): MetricsQueryResponse;
12916
+
12917
+ getData(): proto_clarifai_api_resources_pb.MetricData | undefined;
12918
+ setData(value?: proto_clarifai_api_resources_pb.MetricData): MetricsQueryResponse;
12919
+ hasData(): boolean;
12920
+ clearData(): MetricsQueryResponse;
12921
+
12922
+ getResolution(): string;
12923
+ setResolution(value: string): MetricsQueryResponse;
12924
+
12925
+ serializeBinary(): Uint8Array;
12926
+ toObject(includeInstance?: boolean): MetricsQueryResponse.AsObject;
12927
+ static toObject(includeInstance: boolean, msg: MetricsQueryResponse): MetricsQueryResponse.AsObject;
12928
+ static serializeBinaryToWriter(message: MetricsQueryResponse, writer: jspb.BinaryWriter): void;
12929
+ static deserializeBinary(bytes: Uint8Array): MetricsQueryResponse;
12930
+ static deserializeBinaryFromReader(message: MetricsQueryResponse, reader: jspb.BinaryReader): MetricsQueryResponse;
12931
+ }
12932
+
12933
+ export namespace MetricsQueryResponse {
12934
+ export type AsObject = {
12935
+ status?: proto_clarifai_api_status_status_pb.Status.AsObject,
12936
+ data?: proto_clarifai_api_resources_pb.MetricData.AsObject,
12937
+ resolution: string,
12938
+ }
12939
+ }
12940
+
12941
+ export class ListMetricLabelsRequest extends jspb.Message {
12942
+ getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
12943
+ setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): ListMetricLabelsRequest;
12944
+ hasUserAppId(): boolean;
12945
+ clearUserAppId(): ListMetricLabelsRequest;
12946
+
12947
+ getMetricTypesList(): Array<proto_clarifai_api_resources_pb.MetricType>;
12948
+ setMetricTypesList(value: Array<proto_clarifai_api_resources_pb.MetricType>): ListMetricLabelsRequest;
12949
+ clearMetricTypesList(): ListMetricLabelsRequest;
12950
+ addMetricTypes(value: proto_clarifai_api_resources_pb.MetricType, index?: number): ListMetricLabelsRequest;
12951
+
12952
+ serializeBinary(): Uint8Array;
12953
+ toObject(includeInstance?: boolean): ListMetricLabelsRequest.AsObject;
12954
+ static toObject(includeInstance: boolean, msg: ListMetricLabelsRequest): ListMetricLabelsRequest.AsObject;
12955
+ static serializeBinaryToWriter(message: ListMetricLabelsRequest, writer: jspb.BinaryWriter): void;
12956
+ static deserializeBinary(bytes: Uint8Array): ListMetricLabelsRequest;
12957
+ static deserializeBinaryFromReader(message: ListMetricLabelsRequest, reader: jspb.BinaryReader): ListMetricLabelsRequest;
12958
+ }
12959
+
12960
+ export namespace ListMetricLabelsRequest {
12961
+ export type AsObject = {
12962
+ userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
12963
+ metricTypesList: Array<proto_clarifai_api_resources_pb.MetricType>,
12964
+ }
12965
+ }
12966
+
12967
+ export class MultiMetricLabelsResponse extends jspb.Message {
12968
+ getStatus(): proto_clarifai_api_status_status_pb.Status | undefined;
12969
+ setStatus(value?: proto_clarifai_api_status_status_pb.Status): MultiMetricLabelsResponse;
12970
+ hasStatus(): boolean;
12971
+ clearStatus(): MultiMetricLabelsResponse;
12972
+
12973
+ getMetricTypeLabelsList(): Array<proto_clarifai_api_resources_pb.MetricTypeLabels>;
12974
+ setMetricTypeLabelsList(value: Array<proto_clarifai_api_resources_pb.MetricTypeLabels>): MultiMetricLabelsResponse;
12975
+ clearMetricTypeLabelsList(): MultiMetricLabelsResponse;
12976
+ addMetricTypeLabels(value?: proto_clarifai_api_resources_pb.MetricTypeLabels, index?: number): proto_clarifai_api_resources_pb.MetricTypeLabels;
12977
+
12978
+ serializeBinary(): Uint8Array;
12979
+ toObject(includeInstance?: boolean): MultiMetricLabelsResponse.AsObject;
12980
+ static toObject(includeInstance: boolean, msg: MultiMetricLabelsResponse): MultiMetricLabelsResponse.AsObject;
12981
+ static serializeBinaryToWriter(message: MultiMetricLabelsResponse, writer: jspb.BinaryWriter): void;
12982
+ static deserializeBinary(bytes: Uint8Array): MultiMetricLabelsResponse;
12983
+ static deserializeBinaryFromReader(message: MultiMetricLabelsResponse, reader: jspb.BinaryReader): MultiMetricLabelsResponse;
12984
+ }
12985
+
12986
+ export namespace MultiMetricLabelsResponse {
12987
+ export type AsObject = {
12988
+ status?: proto_clarifai_api_status_status_pb.Status.AsObject,
12989
+ metricTypeLabelsList: Array<proto_clarifai_api_resources_pb.MetricTypeLabels.AsObject>,
12990
+ }
12991
+ }
12992
+
12885
12993
  export enum OrganizationInvitationStatus {
12886
12994
  NOT_SET = 0,
12887
12995
  PENDING = 1,