clarifai-web-grpc 10.5.0 → 10.5.2

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.
@@ -121,13 +121,6 @@ export class V2Client {
121
121
  response: proto_clarifai_api_service_pb.MultiKnowledgeGraphResponse) => void
122
122
  ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiKnowledgeGraphResponse>;
123
123
 
124
- postConceptMappingJobs(
125
- request: proto_clarifai_api_service_pb.PostConceptMappingJobsRequest,
126
- metadata: grpcWeb.Metadata | undefined,
127
- callback: (err: grpcWeb.RpcError,
128
- response: proto_clarifai_api_service_pb.MultiConceptMappingJobResponse) => void
129
- ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiConceptMappingJobResponse>;
130
-
131
124
  getAnnotation(
132
125
  request: proto_clarifai_api_service_pb.GetAnnotationRequest,
133
126
  metadata: grpcWeb.Metadata | undefined,
@@ -1603,6 +1596,41 @@ export class V2Client {
1603
1596
  response: proto_clarifai_api_status_status_pb.BaseResponse) => void
1604
1597
  ): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
1605
1598
 
1599
+ getDeployment(
1600
+ request: proto_clarifai_api_service_pb.GetDeploymentRequest,
1601
+ metadata: grpcWeb.Metadata | undefined,
1602
+ callback: (err: grpcWeb.RpcError,
1603
+ response: proto_clarifai_api_service_pb.SingleDeploymentResponse) => void
1604
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.SingleDeploymentResponse>;
1605
+
1606
+ listDeployments(
1607
+ request: proto_clarifai_api_service_pb.ListDeploymentsRequest,
1608
+ metadata: grpcWeb.Metadata | undefined,
1609
+ callback: (err: grpcWeb.RpcError,
1610
+ response: proto_clarifai_api_service_pb.MultiDeploymentResponse) => void
1611
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiDeploymentResponse>;
1612
+
1613
+ postDeployments(
1614
+ request: proto_clarifai_api_service_pb.PostDeploymentsRequest,
1615
+ metadata: grpcWeb.Metadata | undefined,
1616
+ callback: (err: grpcWeb.RpcError,
1617
+ response: proto_clarifai_api_service_pb.MultiDeploymentResponse) => void
1618
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiDeploymentResponse>;
1619
+
1620
+ patchDeployments(
1621
+ request: proto_clarifai_api_service_pb.PatchDeploymentsRequest,
1622
+ metadata: grpcWeb.Metadata | undefined,
1623
+ callback: (err: grpcWeb.RpcError,
1624
+ response: proto_clarifai_api_service_pb.MultiDeploymentResponse) => void
1625
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiDeploymentResponse>;
1626
+
1627
+ deleteDeployments(
1628
+ request: proto_clarifai_api_service_pb.DeleteDeploymentsRequest,
1629
+ metadata: grpcWeb.Metadata | undefined,
1630
+ callback: (err: grpcWeb.RpcError,
1631
+ response: proto_clarifai_api_status_status_pb.BaseResponse) => void
1632
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
1633
+
1606
1634
  }
1607
1635
 
1608
1636
  export class V2PromiseClient {
@@ -1690,11 +1718,6 @@ export class V2PromiseClient {
1690
1718
  metadata?: grpcWeb.Metadata
1691
1719
  ): Promise<proto_clarifai_api_service_pb.MultiKnowledgeGraphResponse>;
1692
1720
 
1693
- postConceptMappingJobs(
1694
- request: proto_clarifai_api_service_pb.PostConceptMappingJobsRequest,
1695
- metadata?: grpcWeb.Metadata
1696
- ): Promise<proto_clarifai_api_service_pb.MultiConceptMappingJobResponse>;
1697
-
1698
1721
  getAnnotation(
1699
1722
  request: proto_clarifai_api_service_pb.GetAnnotationRequest,
1700
1723
  metadata?: grpcWeb.Metadata
@@ -2750,5 +2773,30 @@ export class V2PromiseClient {
2750
2773
  metadata?: grpcWeb.Metadata
2751
2774
  ): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
2752
2775
 
2776
+ getDeployment(
2777
+ request: proto_clarifai_api_service_pb.GetDeploymentRequest,
2778
+ metadata?: grpcWeb.Metadata
2779
+ ): Promise<proto_clarifai_api_service_pb.SingleDeploymentResponse>;
2780
+
2781
+ listDeployments(
2782
+ request: proto_clarifai_api_service_pb.ListDeploymentsRequest,
2783
+ metadata?: grpcWeb.Metadata
2784
+ ): Promise<proto_clarifai_api_service_pb.MultiDeploymentResponse>;
2785
+
2786
+ postDeployments(
2787
+ request: proto_clarifai_api_service_pb.PostDeploymentsRequest,
2788
+ metadata?: grpcWeb.Metadata
2789
+ ): Promise<proto_clarifai_api_service_pb.MultiDeploymentResponse>;
2790
+
2791
+ patchDeployments(
2792
+ request: proto_clarifai_api_service_pb.PatchDeploymentsRequest,
2793
+ metadata?: grpcWeb.Metadata
2794
+ ): Promise<proto_clarifai_api_service_pb.MultiDeploymentResponse>;
2795
+
2796
+ deleteDeployments(
2797
+ request: proto_clarifai_api_service_pb.DeleteDeploymentsRequest,
2798
+ metadata?: grpcWeb.Metadata
2799
+ ): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
2800
+
2753
2801
  }
2754
2802
 
@@ -1071,67 +1071,6 @@ proto.clarifai.api.V2PromiseClient.prototype.postKnowledgeGraphs =
1071
1071
  };
1072
1072
 
1073
1073
 
1074
- /**
1075
- * @const
1076
- * @type {!grpc.web.MethodDescriptor<
1077
- * !proto.clarifai.api.PostConceptMappingJobsRequest,
1078
- * !proto.clarifai.api.MultiConceptMappingJobResponse>}
1079
- */
1080
- const methodDescriptor_V2_PostConceptMappingJobs = new grpc.web.MethodDescriptor(
1081
- '/clarifai.api.V2/PostConceptMappingJobs',
1082
- grpc.web.MethodType.UNARY,
1083
- proto.clarifai.api.PostConceptMappingJobsRequest,
1084
- proto.clarifai.api.MultiConceptMappingJobResponse,
1085
- /**
1086
- * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} request
1087
- * @return {!Uint8Array}
1088
- */
1089
- function(request) {
1090
- return request.serializeBinary();
1091
- },
1092
- proto.clarifai.api.MultiConceptMappingJobResponse.deserializeBinary
1093
- );
1094
-
1095
-
1096
- /**
1097
- * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} request The
1098
- * request proto
1099
- * @param {?Object<string, string>} metadata User defined
1100
- * call metadata
1101
- * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiConceptMappingJobResponse)}
1102
- * callback The callback function(error, response)
1103
- * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiConceptMappingJobResponse>|undefined}
1104
- * The XHR Node Readable Stream
1105
- */
1106
- proto.clarifai.api.V2Client.prototype.postConceptMappingJobs =
1107
- function(request, metadata, callback) {
1108
- return this.client_.rpcCall(this.hostname_ +
1109
- '/clarifai.api.V2/PostConceptMappingJobs',
1110
- request,
1111
- metadata || {},
1112
- methodDescriptor_V2_PostConceptMappingJobs,
1113
- callback);
1114
- };
1115
-
1116
-
1117
- /**
1118
- * @param {!proto.clarifai.api.PostConceptMappingJobsRequest} request The
1119
- * request proto
1120
- * @param {?Object<string, string>=} metadata User defined
1121
- * call metadata
1122
- * @return {!Promise<!proto.clarifai.api.MultiConceptMappingJobResponse>}
1123
- * Promise that resolves to the response
1124
- */
1125
- proto.clarifai.api.V2PromiseClient.prototype.postConceptMappingJobs =
1126
- function(request, metadata) {
1127
- return this.client_.unaryCall(this.hostname_ +
1128
- '/clarifai.api.V2/PostConceptMappingJobs',
1129
- request,
1130
- metadata || {},
1131
- methodDescriptor_V2_PostConceptMappingJobs);
1132
- };
1133
-
1134
-
1135
1074
  /**
1136
1075
  * @const
1137
1076
  * @type {!grpc.web.MethodDescriptor<
@@ -13998,5 +13937,310 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteNodepools =
13998
13937
  };
13999
13938
 
14000
13939
 
13940
+ /**
13941
+ * @const
13942
+ * @type {!grpc.web.MethodDescriptor<
13943
+ * !proto.clarifai.api.GetDeploymentRequest,
13944
+ * !proto.clarifai.api.SingleDeploymentResponse>}
13945
+ */
13946
+ const methodDescriptor_V2_GetDeployment = new grpc.web.MethodDescriptor(
13947
+ '/clarifai.api.V2/GetDeployment',
13948
+ grpc.web.MethodType.UNARY,
13949
+ proto.clarifai.api.GetDeploymentRequest,
13950
+ proto.clarifai.api.SingleDeploymentResponse,
13951
+ /**
13952
+ * @param {!proto.clarifai.api.GetDeploymentRequest} request
13953
+ * @return {!Uint8Array}
13954
+ */
13955
+ function(request) {
13956
+ return request.serializeBinary();
13957
+ },
13958
+ proto.clarifai.api.SingleDeploymentResponse.deserializeBinary
13959
+ );
13960
+
13961
+
13962
+ /**
13963
+ * @param {!proto.clarifai.api.GetDeploymentRequest} request The
13964
+ * request proto
13965
+ * @param {?Object<string, string>} metadata User defined
13966
+ * call metadata
13967
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.SingleDeploymentResponse)}
13968
+ * callback The callback function(error, response)
13969
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.SingleDeploymentResponse>|undefined}
13970
+ * The XHR Node Readable Stream
13971
+ */
13972
+ proto.clarifai.api.V2Client.prototype.getDeployment =
13973
+ function(request, metadata, callback) {
13974
+ return this.client_.rpcCall(this.hostname_ +
13975
+ '/clarifai.api.V2/GetDeployment',
13976
+ request,
13977
+ metadata || {},
13978
+ methodDescriptor_V2_GetDeployment,
13979
+ callback);
13980
+ };
13981
+
13982
+
13983
+ /**
13984
+ * @param {!proto.clarifai.api.GetDeploymentRequest} request The
13985
+ * request proto
13986
+ * @param {?Object<string, string>=} metadata User defined
13987
+ * call metadata
13988
+ * @return {!Promise<!proto.clarifai.api.SingleDeploymentResponse>}
13989
+ * Promise that resolves to the response
13990
+ */
13991
+ proto.clarifai.api.V2PromiseClient.prototype.getDeployment =
13992
+ function(request, metadata) {
13993
+ return this.client_.unaryCall(this.hostname_ +
13994
+ '/clarifai.api.V2/GetDeployment',
13995
+ request,
13996
+ metadata || {},
13997
+ methodDescriptor_V2_GetDeployment);
13998
+ };
13999
+
14000
+
14001
+ /**
14002
+ * @const
14003
+ * @type {!grpc.web.MethodDescriptor<
14004
+ * !proto.clarifai.api.ListDeploymentsRequest,
14005
+ * !proto.clarifai.api.MultiDeploymentResponse>}
14006
+ */
14007
+ const methodDescriptor_V2_ListDeployments = new grpc.web.MethodDescriptor(
14008
+ '/clarifai.api.V2/ListDeployments',
14009
+ grpc.web.MethodType.UNARY,
14010
+ proto.clarifai.api.ListDeploymentsRequest,
14011
+ proto.clarifai.api.MultiDeploymentResponse,
14012
+ /**
14013
+ * @param {!proto.clarifai.api.ListDeploymentsRequest} request
14014
+ * @return {!Uint8Array}
14015
+ */
14016
+ function(request) {
14017
+ return request.serializeBinary();
14018
+ },
14019
+ proto.clarifai.api.MultiDeploymentResponse.deserializeBinary
14020
+ );
14021
+
14022
+
14023
+ /**
14024
+ * @param {!proto.clarifai.api.ListDeploymentsRequest} request The
14025
+ * request proto
14026
+ * @param {?Object<string, string>} metadata User defined
14027
+ * call metadata
14028
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiDeploymentResponse)}
14029
+ * callback The callback function(error, response)
14030
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiDeploymentResponse>|undefined}
14031
+ * The XHR Node Readable Stream
14032
+ */
14033
+ proto.clarifai.api.V2Client.prototype.listDeployments =
14034
+ function(request, metadata, callback) {
14035
+ return this.client_.rpcCall(this.hostname_ +
14036
+ '/clarifai.api.V2/ListDeployments',
14037
+ request,
14038
+ metadata || {},
14039
+ methodDescriptor_V2_ListDeployments,
14040
+ callback);
14041
+ };
14042
+
14043
+
14044
+ /**
14045
+ * @param {!proto.clarifai.api.ListDeploymentsRequest} request The
14046
+ * request proto
14047
+ * @param {?Object<string, string>=} metadata User defined
14048
+ * call metadata
14049
+ * @return {!Promise<!proto.clarifai.api.MultiDeploymentResponse>}
14050
+ * Promise that resolves to the response
14051
+ */
14052
+ proto.clarifai.api.V2PromiseClient.prototype.listDeployments =
14053
+ function(request, metadata) {
14054
+ return this.client_.unaryCall(this.hostname_ +
14055
+ '/clarifai.api.V2/ListDeployments',
14056
+ request,
14057
+ metadata || {},
14058
+ methodDescriptor_V2_ListDeployments);
14059
+ };
14060
+
14061
+
14062
+ /**
14063
+ * @const
14064
+ * @type {!grpc.web.MethodDescriptor<
14065
+ * !proto.clarifai.api.PostDeploymentsRequest,
14066
+ * !proto.clarifai.api.MultiDeploymentResponse>}
14067
+ */
14068
+ const methodDescriptor_V2_PostDeployments = new grpc.web.MethodDescriptor(
14069
+ '/clarifai.api.V2/PostDeployments',
14070
+ grpc.web.MethodType.UNARY,
14071
+ proto.clarifai.api.PostDeploymentsRequest,
14072
+ proto.clarifai.api.MultiDeploymentResponse,
14073
+ /**
14074
+ * @param {!proto.clarifai.api.PostDeploymentsRequest} request
14075
+ * @return {!Uint8Array}
14076
+ */
14077
+ function(request) {
14078
+ return request.serializeBinary();
14079
+ },
14080
+ proto.clarifai.api.MultiDeploymentResponse.deserializeBinary
14081
+ );
14082
+
14083
+
14084
+ /**
14085
+ * @param {!proto.clarifai.api.PostDeploymentsRequest} request The
14086
+ * request proto
14087
+ * @param {?Object<string, string>} metadata User defined
14088
+ * call metadata
14089
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiDeploymentResponse)}
14090
+ * callback The callback function(error, response)
14091
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiDeploymentResponse>|undefined}
14092
+ * The XHR Node Readable Stream
14093
+ */
14094
+ proto.clarifai.api.V2Client.prototype.postDeployments =
14095
+ function(request, metadata, callback) {
14096
+ return this.client_.rpcCall(this.hostname_ +
14097
+ '/clarifai.api.V2/PostDeployments',
14098
+ request,
14099
+ metadata || {},
14100
+ methodDescriptor_V2_PostDeployments,
14101
+ callback);
14102
+ };
14103
+
14104
+
14105
+ /**
14106
+ * @param {!proto.clarifai.api.PostDeploymentsRequest} request The
14107
+ * request proto
14108
+ * @param {?Object<string, string>=} metadata User defined
14109
+ * call metadata
14110
+ * @return {!Promise<!proto.clarifai.api.MultiDeploymentResponse>}
14111
+ * Promise that resolves to the response
14112
+ */
14113
+ proto.clarifai.api.V2PromiseClient.prototype.postDeployments =
14114
+ function(request, metadata) {
14115
+ return this.client_.unaryCall(this.hostname_ +
14116
+ '/clarifai.api.V2/PostDeployments',
14117
+ request,
14118
+ metadata || {},
14119
+ methodDescriptor_V2_PostDeployments);
14120
+ };
14121
+
14122
+
14123
+ /**
14124
+ * @const
14125
+ * @type {!grpc.web.MethodDescriptor<
14126
+ * !proto.clarifai.api.PatchDeploymentsRequest,
14127
+ * !proto.clarifai.api.MultiDeploymentResponse>}
14128
+ */
14129
+ const methodDescriptor_V2_PatchDeployments = new grpc.web.MethodDescriptor(
14130
+ '/clarifai.api.V2/PatchDeployments',
14131
+ grpc.web.MethodType.UNARY,
14132
+ proto.clarifai.api.PatchDeploymentsRequest,
14133
+ proto.clarifai.api.MultiDeploymentResponse,
14134
+ /**
14135
+ * @param {!proto.clarifai.api.PatchDeploymentsRequest} request
14136
+ * @return {!Uint8Array}
14137
+ */
14138
+ function(request) {
14139
+ return request.serializeBinary();
14140
+ },
14141
+ proto.clarifai.api.MultiDeploymentResponse.deserializeBinary
14142
+ );
14143
+
14144
+
14145
+ /**
14146
+ * @param {!proto.clarifai.api.PatchDeploymentsRequest} request The
14147
+ * request proto
14148
+ * @param {?Object<string, string>} metadata User defined
14149
+ * call metadata
14150
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiDeploymentResponse)}
14151
+ * callback The callback function(error, response)
14152
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiDeploymentResponse>|undefined}
14153
+ * The XHR Node Readable Stream
14154
+ */
14155
+ proto.clarifai.api.V2Client.prototype.patchDeployments =
14156
+ function(request, metadata, callback) {
14157
+ return this.client_.rpcCall(this.hostname_ +
14158
+ '/clarifai.api.V2/PatchDeployments',
14159
+ request,
14160
+ metadata || {},
14161
+ methodDescriptor_V2_PatchDeployments,
14162
+ callback);
14163
+ };
14164
+
14165
+
14166
+ /**
14167
+ * @param {!proto.clarifai.api.PatchDeploymentsRequest} request The
14168
+ * request proto
14169
+ * @param {?Object<string, string>=} metadata User defined
14170
+ * call metadata
14171
+ * @return {!Promise<!proto.clarifai.api.MultiDeploymentResponse>}
14172
+ * Promise that resolves to the response
14173
+ */
14174
+ proto.clarifai.api.V2PromiseClient.prototype.patchDeployments =
14175
+ function(request, metadata) {
14176
+ return this.client_.unaryCall(this.hostname_ +
14177
+ '/clarifai.api.V2/PatchDeployments',
14178
+ request,
14179
+ metadata || {},
14180
+ methodDescriptor_V2_PatchDeployments);
14181
+ };
14182
+
14183
+
14184
+ /**
14185
+ * @const
14186
+ * @type {!grpc.web.MethodDescriptor<
14187
+ * !proto.clarifai.api.DeleteDeploymentsRequest,
14188
+ * !proto.clarifai.api.status.BaseResponse>}
14189
+ */
14190
+ const methodDescriptor_V2_DeleteDeployments = new grpc.web.MethodDescriptor(
14191
+ '/clarifai.api.V2/DeleteDeployments',
14192
+ grpc.web.MethodType.UNARY,
14193
+ proto.clarifai.api.DeleteDeploymentsRequest,
14194
+ proto_clarifai_api_status_status_pb.BaseResponse,
14195
+ /**
14196
+ * @param {!proto.clarifai.api.DeleteDeploymentsRequest} request
14197
+ * @return {!Uint8Array}
14198
+ */
14199
+ function(request) {
14200
+ return request.serializeBinary();
14201
+ },
14202
+ proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary
14203
+ );
14204
+
14205
+
14206
+ /**
14207
+ * @param {!proto.clarifai.api.DeleteDeploymentsRequest} request The
14208
+ * request proto
14209
+ * @param {?Object<string, string>} metadata User defined
14210
+ * call metadata
14211
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
14212
+ * callback The callback function(error, response)
14213
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
14214
+ * The XHR Node Readable Stream
14215
+ */
14216
+ proto.clarifai.api.V2Client.prototype.deleteDeployments =
14217
+ function(request, metadata, callback) {
14218
+ return this.client_.rpcCall(this.hostname_ +
14219
+ '/clarifai.api.V2/DeleteDeployments',
14220
+ request,
14221
+ metadata || {},
14222
+ methodDescriptor_V2_DeleteDeployments,
14223
+ callback);
14224
+ };
14225
+
14226
+
14227
+ /**
14228
+ * @param {!proto.clarifai.api.DeleteDeploymentsRequest} request The
14229
+ * request proto
14230
+ * @param {?Object<string, string>=} metadata User defined
14231
+ * call metadata
14232
+ * @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
14233
+ * Promise that resolves to the response
14234
+ */
14235
+ proto.clarifai.api.V2PromiseClient.prototype.deleteDeployments =
14236
+ function(request, metadata) {
14237
+ return this.client_.unaryCall(this.hostname_ +
14238
+ '/clarifai.api.V2/DeleteDeployments',
14239
+ request,
14240
+ metadata || {},
14241
+ methodDescriptor_V2_DeleteDeployments);
14242
+ };
14243
+
14244
+
14001
14245
  module.exports = proto.clarifai.api;
14002
14246