clarifai-web-grpc 10.1.6 → 10.3.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.
- 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 +2827 -92
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +90 -6
- package/dist/cjs/proto/clarifai/api/service_pb.js +10404 -8056
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +10 -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 +2827 -92
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +90 -6
- package/dist/esm/proto/clarifai/api/service_pb.js +10404 -8056
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +10 -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 +456 -15
- package/proto/clarifai/api/resources_pb.js +3689 -274
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +27 -3
- package/proto/clarifai/api/service_grpc_web_pb.js +128 -6
- package/proto/clarifai/api/service_pb.d.ts +355 -0
- package/proto/clarifai/api/service_pb.js +15757 -12851
- package/proto/clarifai/api/status/status_code_pb.d.ts +10 -0
- package/proto/clarifai/api/status/status_code_pb.js +10 -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
|
@@ -3556,6 +3556,90 @@ proto.clarifai.api.V2PromiseClient.prototype.deleteModelVersion =
|
|
|
3556
3556
|
return this.client_.unaryCall(this.hostname_ +
|
|
3557
3557
|
'/clarifai.api.V2/DeleteModelVersion', request, metadata || {}, methodDescriptor_V2_DeleteModelVersion);
|
|
3558
3558
|
};
|
|
3559
|
+
/**
|
|
3560
|
+
* @const
|
|
3561
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
3562
|
+
* !proto.clarifai.api.PutModelVersionExportsRequest,
|
|
3563
|
+
* !proto.clarifai.api.SingleModelVersionExportResponse>}
|
|
3564
|
+
*/
|
|
3565
|
+
const methodDescriptor_V2_PutModelVersionExports = new grpc.web.MethodDescriptor('/clarifai.api.V2/PutModelVersionExports', grpc.web.MethodType.UNARY, proto.clarifai.api.PutModelVersionExportsRequest, proto.clarifai.api.SingleModelVersionExportResponse,
|
|
3566
|
+
/**
|
|
3567
|
+
* @param {!proto.clarifai.api.PutModelVersionExportsRequest} request
|
|
3568
|
+
* @return {!Uint8Array}
|
|
3569
|
+
*/
|
|
3570
|
+
function (request) {
|
|
3571
|
+
return request.serializeBinary();
|
|
3572
|
+
}, proto.clarifai.api.SingleModelVersionExportResponse.deserializeBinary);
|
|
3573
|
+
/**
|
|
3574
|
+
* @param {!proto.clarifai.api.PutModelVersionExportsRequest} request The
|
|
3575
|
+
* request proto
|
|
3576
|
+
* @param {?Object<string, string>} metadata User defined
|
|
3577
|
+
* call metadata
|
|
3578
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.SingleModelVersionExportResponse)}
|
|
3579
|
+
* callback The callback function(error, response)
|
|
3580
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.SingleModelVersionExportResponse>|undefined}
|
|
3581
|
+
* The XHR Node Readable Stream
|
|
3582
|
+
*/
|
|
3583
|
+
proto.clarifai.api.V2Client.prototype.putModelVersionExports =
|
|
3584
|
+
function (request, metadata, callback) {
|
|
3585
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
3586
|
+
'/clarifai.api.V2/PutModelVersionExports', request, metadata || {}, methodDescriptor_V2_PutModelVersionExports, callback);
|
|
3587
|
+
};
|
|
3588
|
+
/**
|
|
3589
|
+
* @param {!proto.clarifai.api.PutModelVersionExportsRequest} request The
|
|
3590
|
+
* request proto
|
|
3591
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
3592
|
+
* call metadata
|
|
3593
|
+
* @return {!Promise<!proto.clarifai.api.SingleModelVersionExportResponse>}
|
|
3594
|
+
* Promise that resolves to the response
|
|
3595
|
+
*/
|
|
3596
|
+
proto.clarifai.api.V2PromiseClient.prototype.putModelVersionExports =
|
|
3597
|
+
function (request, metadata) {
|
|
3598
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
3599
|
+
'/clarifai.api.V2/PutModelVersionExports', request, metadata || {}, methodDescriptor_V2_PutModelVersionExports);
|
|
3600
|
+
};
|
|
3601
|
+
/**
|
|
3602
|
+
* @const
|
|
3603
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
3604
|
+
* !proto.clarifai.api.GetModelVersionExportRequest,
|
|
3605
|
+
* !proto.clarifai.api.SingleModelVersionExportResponse>}
|
|
3606
|
+
*/
|
|
3607
|
+
const methodDescriptor_V2_GetModelVersionExport = new grpc.web.MethodDescriptor('/clarifai.api.V2/GetModelVersionExport', grpc.web.MethodType.UNARY, proto.clarifai.api.GetModelVersionExportRequest, proto.clarifai.api.SingleModelVersionExportResponse,
|
|
3608
|
+
/**
|
|
3609
|
+
* @param {!proto.clarifai.api.GetModelVersionExportRequest} request
|
|
3610
|
+
* @return {!Uint8Array}
|
|
3611
|
+
*/
|
|
3612
|
+
function (request) {
|
|
3613
|
+
return request.serializeBinary();
|
|
3614
|
+
}, proto.clarifai.api.SingleModelVersionExportResponse.deserializeBinary);
|
|
3615
|
+
/**
|
|
3616
|
+
* @param {!proto.clarifai.api.GetModelVersionExportRequest} request The
|
|
3617
|
+
* request proto
|
|
3618
|
+
* @param {?Object<string, string>} metadata User defined
|
|
3619
|
+
* call metadata
|
|
3620
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.SingleModelVersionExportResponse)}
|
|
3621
|
+
* callback The callback function(error, response)
|
|
3622
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.SingleModelVersionExportResponse>|undefined}
|
|
3623
|
+
* The XHR Node Readable Stream
|
|
3624
|
+
*/
|
|
3625
|
+
proto.clarifai.api.V2Client.prototype.getModelVersionExport =
|
|
3626
|
+
function (request, metadata, callback) {
|
|
3627
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
3628
|
+
'/clarifai.api.V2/GetModelVersionExport', request, metadata || {}, methodDescriptor_V2_GetModelVersionExport, callback);
|
|
3629
|
+
};
|
|
3630
|
+
/**
|
|
3631
|
+
* @param {!proto.clarifai.api.GetModelVersionExportRequest} request The
|
|
3632
|
+
* request proto
|
|
3633
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
3634
|
+
* call metadata
|
|
3635
|
+
* @return {!Promise<!proto.clarifai.api.SingleModelVersionExportResponse>}
|
|
3636
|
+
* Promise that resolves to the response
|
|
3637
|
+
*/
|
|
3638
|
+
proto.clarifai.api.V2PromiseClient.prototype.getModelVersionExport =
|
|
3639
|
+
function (request, metadata) {
|
|
3640
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
3641
|
+
'/clarifai.api.V2/GetModelVersionExport', request, metadata || {}, methodDescriptor_V2_GetModelVersionExport);
|
|
3642
|
+
};
|
|
3559
3643
|
/**
|
|
3560
3644
|
* @const
|
|
3561
3645
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -8264,24 +8348,24 @@ proto.clarifai.api.V2PromiseClient.prototype.listNextTaskAssignments =
|
|
|
8264
8348
|
* @const
|
|
8265
8349
|
* @type {!grpc.web.MethodDescriptor<
|
|
8266
8350
|
* !proto.clarifai.api.PutTaskAssignmentsRequest,
|
|
8267
|
-
* !proto.clarifai.api.
|
|
8351
|
+
* !proto.clarifai.api.MultiTaskAssignmentResponse>}
|
|
8268
8352
|
*/
|
|
8269
|
-
const methodDescriptor_V2_PutTaskAssignments = new grpc.web.MethodDescriptor('/clarifai.api.V2/PutTaskAssignments', grpc.web.MethodType.UNARY, proto.clarifai.api.PutTaskAssignmentsRequest,
|
|
8353
|
+
const methodDescriptor_V2_PutTaskAssignments = new grpc.web.MethodDescriptor('/clarifai.api.V2/PutTaskAssignments', grpc.web.MethodType.UNARY, proto.clarifai.api.PutTaskAssignmentsRequest, proto.clarifai.api.MultiTaskAssignmentResponse,
|
|
8270
8354
|
/**
|
|
8271
8355
|
* @param {!proto.clarifai.api.PutTaskAssignmentsRequest} request
|
|
8272
8356
|
* @return {!Uint8Array}
|
|
8273
8357
|
*/
|
|
8274
8358
|
function (request) {
|
|
8275
8359
|
return request.serializeBinary();
|
|
8276
|
-
},
|
|
8360
|
+
}, proto.clarifai.api.MultiTaskAssignmentResponse.deserializeBinary);
|
|
8277
8361
|
/**
|
|
8278
8362
|
* @param {!proto.clarifai.api.PutTaskAssignmentsRequest} request The
|
|
8279
8363
|
* request proto
|
|
8280
8364
|
* @param {?Object<string, string>} metadata User defined
|
|
8281
8365
|
* call metadata
|
|
8282
|
-
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.
|
|
8366
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.MultiTaskAssignmentResponse)}
|
|
8283
8367
|
* callback The callback function(error, response)
|
|
8284
|
-
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.
|
|
8368
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiTaskAssignmentResponse>|undefined}
|
|
8285
8369
|
* The XHR Node Readable Stream
|
|
8286
8370
|
*/
|
|
8287
8371
|
proto.clarifai.api.V2Client.prototype.putTaskAssignments =
|
|
@@ -8294,7 +8378,7 @@ proto.clarifai.api.V2Client.prototype.putTaskAssignments =
|
|
|
8294
8378
|
* request proto
|
|
8295
8379
|
* @param {?Object<string, string>=} metadata User defined
|
|
8296
8380
|
* call metadata
|
|
8297
|
-
* @return {!Promise<!proto.clarifai.api.
|
|
8381
|
+
* @return {!Promise<!proto.clarifai.api.MultiTaskAssignmentResponse>}
|
|
8298
8382
|
* Promise that resolves to the response
|
|
8299
8383
|
*/
|
|
8300
8384
|
proto.clarifai.api.V2PromiseClient.prototype.putTaskAssignments =
|