clarifai-web-grpc 10.2.1 → 10.3.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.
- 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 +2720 -113
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +38 -42
- package/dist/cjs/proto/clarifai/api/service_pb.js +1042 -445
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +6 -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 +2720 -113
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +38 -42
- package/dist/esm/proto/clarifai/api/service_pb.js +1042 -445
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +6 -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 +435 -0
- package/proto/clarifai/api/resources_pb.js +3370 -114
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +10 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +56 -61
- package/proto/clarifai/api/service_pb.d.ts +164 -72
- package/proto/clarifai/api/service_pb.js +1534 -767
- package/proto/clarifai/api/status/status_code_pb.d.ts +6 -0
- package/proto/clarifai/api/status/status_code_pb.js +6 -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
|
@@ -1750,6 +1750,44 @@ proto.clarifai.api.V2PromiseClient.prototype.postModelOutputs =
|
|
|
1750
1750
|
return this.client_.unaryCall(this.hostname_ +
|
|
1751
1751
|
'/clarifai.api.V2/PostModelOutputs', request, metadata || {}, methodDescriptor_V2_PostModelOutputs);
|
|
1752
1752
|
};
|
|
1753
|
+
/**
|
|
1754
|
+
* @const
|
|
1755
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
1756
|
+
* !proto.clarifai.api.PostModelOutputsRequest,
|
|
1757
|
+
* !proto.clarifai.api.MultiOutputResponse>}
|
|
1758
|
+
*/
|
|
1759
|
+
const methodDescriptor_V2_GenerateModelOutputs = new grpc.web.MethodDescriptor('/clarifai.api.V2/GenerateModelOutputs', grpc.web.MethodType.SERVER_STREAMING, proto.clarifai.api.PostModelOutputsRequest, proto.clarifai.api.MultiOutputResponse,
|
|
1760
|
+
/**
|
|
1761
|
+
* @param {!proto.clarifai.api.PostModelOutputsRequest} request
|
|
1762
|
+
* @return {!Uint8Array}
|
|
1763
|
+
*/
|
|
1764
|
+
function (request) {
|
|
1765
|
+
return request.serializeBinary();
|
|
1766
|
+
}, proto.clarifai.api.MultiOutputResponse.deserializeBinary);
|
|
1767
|
+
/**
|
|
1768
|
+
* @param {!proto.clarifai.api.PostModelOutputsRequest} request The request proto
|
|
1769
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
1770
|
+
* call metadata
|
|
1771
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiOutputResponse>}
|
|
1772
|
+
* The XHR Node Readable Stream
|
|
1773
|
+
*/
|
|
1774
|
+
proto.clarifai.api.V2Client.prototype.generateModelOutputs =
|
|
1775
|
+
function (request, metadata) {
|
|
1776
|
+
return this.client_.serverStreaming(this.hostname_ +
|
|
1777
|
+
'/clarifai.api.V2/GenerateModelOutputs', request, metadata || {}, methodDescriptor_V2_GenerateModelOutputs);
|
|
1778
|
+
};
|
|
1779
|
+
/**
|
|
1780
|
+
* @param {!proto.clarifai.api.PostModelOutputsRequest} request The request proto
|
|
1781
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
1782
|
+
* call metadata
|
|
1783
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiOutputResponse>}
|
|
1784
|
+
* The XHR Node Readable Stream
|
|
1785
|
+
*/
|
|
1786
|
+
proto.clarifai.api.V2PromiseClient.prototype.generateModelOutputs =
|
|
1787
|
+
function (request, metadata) {
|
|
1788
|
+
return this.client_.serverStreaming(this.hostname_ +
|
|
1789
|
+
'/clarifai.api.V2/GenerateModelOutputs', request, metadata || {}, methodDescriptor_V2_GenerateModelOutputs);
|
|
1790
|
+
};
|
|
1753
1791
|
/**
|
|
1754
1792
|
* @const
|
|
1755
1793
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -6202,48 +6240,6 @@ proto.clarifai.api.V2PromiseClient.prototype.getStatusCode =
|
|
|
6202
6240
|
return this.client_.unaryCall(this.hostname_ +
|
|
6203
6241
|
'/clarifai.api.V2/GetStatusCode', request, metadata || {}, methodDescriptor_V2_GetStatusCode);
|
|
6204
6242
|
};
|
|
6205
|
-
/**
|
|
6206
|
-
* @const
|
|
6207
|
-
* @type {!grpc.web.MethodDescriptor<
|
|
6208
|
-
* !proto.clarifai.api.GetResourcePriceRequest,
|
|
6209
|
-
* !proto.clarifai.api.GetResourcePriceResponse>}
|
|
6210
|
-
*/
|
|
6211
|
-
const methodDescriptor_V2_GetResourcePrice = new grpc.web.MethodDescriptor('/clarifai.api.V2/GetResourcePrice', grpc.web.MethodType.UNARY, proto.clarifai.api.GetResourcePriceRequest, proto.clarifai.api.GetResourcePriceResponse,
|
|
6212
|
-
/**
|
|
6213
|
-
* @param {!proto.clarifai.api.GetResourcePriceRequest} request
|
|
6214
|
-
* @return {!Uint8Array}
|
|
6215
|
-
*/
|
|
6216
|
-
function (request) {
|
|
6217
|
-
return request.serializeBinary();
|
|
6218
|
-
}, proto.clarifai.api.GetResourcePriceResponse.deserializeBinary);
|
|
6219
|
-
/**
|
|
6220
|
-
* @param {!proto.clarifai.api.GetResourcePriceRequest} request The
|
|
6221
|
-
* request proto
|
|
6222
|
-
* @param {?Object<string, string>} metadata User defined
|
|
6223
|
-
* call metadata
|
|
6224
|
-
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.GetResourcePriceResponse)}
|
|
6225
|
-
* callback The callback function(error, response)
|
|
6226
|
-
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.GetResourcePriceResponse>|undefined}
|
|
6227
|
-
* The XHR Node Readable Stream
|
|
6228
|
-
*/
|
|
6229
|
-
proto.clarifai.api.V2Client.prototype.getResourcePrice =
|
|
6230
|
-
function (request, metadata, callback) {
|
|
6231
|
-
return this.client_.rpcCall(this.hostname_ +
|
|
6232
|
-
'/clarifai.api.V2/GetResourcePrice', request, metadata || {}, methodDescriptor_V2_GetResourcePrice, callback);
|
|
6233
|
-
};
|
|
6234
|
-
/**
|
|
6235
|
-
* @param {!proto.clarifai.api.GetResourcePriceRequest} request The
|
|
6236
|
-
* request proto
|
|
6237
|
-
* @param {?Object<string, string>=} metadata User defined
|
|
6238
|
-
* call metadata
|
|
6239
|
-
* @return {!Promise<!proto.clarifai.api.GetResourcePriceResponse>}
|
|
6240
|
-
* Promise that resolves to the response
|
|
6241
|
-
*/
|
|
6242
|
-
proto.clarifai.api.V2PromiseClient.prototype.getResourcePrice =
|
|
6243
|
-
function (request, metadata) {
|
|
6244
|
-
return this.client_.unaryCall(this.hostname_ +
|
|
6245
|
-
'/clarifai.api.V2/GetResourcePrice', request, metadata || {}, methodDescriptor_V2_GetResourcePrice);
|
|
6246
|
-
};
|
|
6247
6243
|
/**
|
|
6248
6244
|
* @const
|
|
6249
6245
|
* @type {!grpc.web.MethodDescriptor<
|