clarifai-web-grpc 11.1.0 → 11.1.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.
@@ -1652,6 +1652,13 @@ export class V2Client {
1652
1652
  response: proto_clarifai_api_service_pb.MultiWorkflowEvaluationTemplateResponse) => void
1653
1653
  ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiWorkflowEvaluationTemplateResponse>;
1654
1654
 
1655
+ postLogEntries(
1656
+ request: proto_clarifai_api_service_pb.PostLogEntriesRequest,
1657
+ metadata: grpcWeb.Metadata | undefined,
1658
+ callback: (err: grpcWeb.RpcError,
1659
+ response: proto_clarifai_api_status_status_pb.BaseResponse) => void
1660
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
1661
+
1655
1662
  listLogEntries(
1656
1663
  request: proto_clarifai_api_service_pb.ListLogEntriesRequest,
1657
1664
  metadata: grpcWeb.Metadata | undefined,
@@ -1659,6 +1666,18 @@ export class V2Client {
1659
1666
  response: proto_clarifai_api_service_pb.MultiLogEntryResponse) => void
1660
1667
  ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiLogEntryResponse>;
1661
1668
 
1669
+ streamLogEntries(
1670
+ request: proto_clarifai_api_service_pb.StreamLogEntriesRequest,
1671
+ metadata?: grpcWeb.Metadata
1672
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiLogEntryResponse>;
1673
+
1674
+ postComputePlaneMetrics(
1675
+ request: proto_clarifai_api_service_pb.PostComputePlaneMetricsRequest,
1676
+ metadata: grpcWeb.Metadata | undefined,
1677
+ callback: (err: grpcWeb.RpcError,
1678
+ response: proto_clarifai_api_status_status_pb.BaseResponse) => void
1679
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
1680
+
1662
1681
  }
1663
1682
 
1664
1683
  export class V2PromiseClient {
@@ -2841,10 +2860,25 @@ export class V2PromiseClient {
2841
2860
  metadata?: grpcWeb.Metadata
2842
2861
  ): Promise<proto_clarifai_api_service_pb.MultiWorkflowEvaluationTemplateResponse>;
2843
2862
 
2863
+ postLogEntries(
2864
+ request: proto_clarifai_api_service_pb.PostLogEntriesRequest,
2865
+ metadata?: grpcWeb.Metadata
2866
+ ): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
2867
+
2844
2868
  listLogEntries(
2845
2869
  request: proto_clarifai_api_service_pb.ListLogEntriesRequest,
2846
2870
  metadata?: grpcWeb.Metadata
2847
2871
  ): Promise<proto_clarifai_api_service_pb.MultiLogEntryResponse>;
2848
2872
 
2873
+ streamLogEntries(
2874
+ request: proto_clarifai_api_service_pb.StreamLogEntriesRequest,
2875
+ metadata?: grpcWeb.Metadata
2876
+ ): grpcWeb.ClientReadableStream<proto_clarifai_api_service_pb.MultiLogEntryResponse>;
2877
+
2878
+ postComputePlaneMetrics(
2879
+ request: proto_clarifai_api_service_pb.PostComputePlaneMetricsRequest,
2880
+ metadata?: grpcWeb.Metadata
2881
+ ): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
2882
+
2849
2883
  }
2850
2884
 
@@ -14425,6 +14425,67 @@ proto.clarifai.api.V2PromiseClient.prototype.listWorkflowEvaluationTemplates =
14425
14425
  };
14426
14426
 
14427
14427
 
14428
+ /**
14429
+ * @const
14430
+ * @type {!grpc.web.MethodDescriptor<
14431
+ * !proto.clarifai.api.PostLogEntriesRequest,
14432
+ * !proto.clarifai.api.status.BaseResponse>}
14433
+ */
14434
+ const methodDescriptor_V2_PostLogEntries = new grpc.web.MethodDescriptor(
14435
+ '/clarifai.api.V2/PostLogEntries',
14436
+ grpc.web.MethodType.UNARY,
14437
+ proto.clarifai.api.PostLogEntriesRequest,
14438
+ proto_clarifai_api_status_status_pb.BaseResponse,
14439
+ /**
14440
+ * @param {!proto.clarifai.api.PostLogEntriesRequest} request
14441
+ * @return {!Uint8Array}
14442
+ */
14443
+ function(request) {
14444
+ return request.serializeBinary();
14445
+ },
14446
+ proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary
14447
+ );
14448
+
14449
+
14450
+ /**
14451
+ * @param {!proto.clarifai.api.PostLogEntriesRequest} request The
14452
+ * request proto
14453
+ * @param {?Object<string, string>} metadata User defined
14454
+ * call metadata
14455
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
14456
+ * callback The callback function(error, response)
14457
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
14458
+ * The XHR Node Readable Stream
14459
+ */
14460
+ proto.clarifai.api.V2Client.prototype.postLogEntries =
14461
+ function(request, metadata, callback) {
14462
+ return this.client_.rpcCall(this.hostname_ +
14463
+ '/clarifai.api.V2/PostLogEntries',
14464
+ request,
14465
+ metadata || {},
14466
+ methodDescriptor_V2_PostLogEntries,
14467
+ callback);
14468
+ };
14469
+
14470
+
14471
+ /**
14472
+ * @param {!proto.clarifai.api.PostLogEntriesRequest} request The
14473
+ * request proto
14474
+ * @param {?Object<string, string>=} metadata User defined
14475
+ * call metadata
14476
+ * @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
14477
+ * Promise that resolves to the response
14478
+ */
14479
+ proto.clarifai.api.V2PromiseClient.prototype.postLogEntries =
14480
+ function(request, metadata) {
14481
+ return this.client_.unaryCall(this.hostname_ +
14482
+ '/clarifai.api.V2/PostLogEntries',
14483
+ request,
14484
+ metadata || {},
14485
+ methodDescriptor_V2_PostLogEntries);
14486
+ };
14487
+
14488
+
14428
14489
  /**
14429
14490
  * @const
14430
14491
  * @type {!grpc.web.MethodDescriptor<
@@ -14486,5 +14547,122 @@ proto.clarifai.api.V2PromiseClient.prototype.listLogEntries =
14486
14547
  };
14487
14548
 
14488
14549
 
14550
+ /**
14551
+ * @const
14552
+ * @type {!grpc.web.MethodDescriptor<
14553
+ * !proto.clarifai.api.StreamLogEntriesRequest,
14554
+ * !proto.clarifai.api.MultiLogEntryResponse>}
14555
+ */
14556
+ const methodDescriptor_V2_StreamLogEntries = new grpc.web.MethodDescriptor(
14557
+ '/clarifai.api.V2/StreamLogEntries',
14558
+ grpc.web.MethodType.SERVER_STREAMING,
14559
+ proto.clarifai.api.StreamLogEntriesRequest,
14560
+ proto.clarifai.api.MultiLogEntryResponse,
14561
+ /**
14562
+ * @param {!proto.clarifai.api.StreamLogEntriesRequest} request
14563
+ * @return {!Uint8Array}
14564
+ */
14565
+ function(request) {
14566
+ return request.serializeBinary();
14567
+ },
14568
+ proto.clarifai.api.MultiLogEntryResponse.deserializeBinary
14569
+ );
14570
+
14571
+
14572
+ /**
14573
+ * @param {!proto.clarifai.api.StreamLogEntriesRequest} request The request proto
14574
+ * @param {?Object<string, string>=} metadata User defined
14575
+ * call metadata
14576
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiLogEntryResponse>}
14577
+ * The XHR Node Readable Stream
14578
+ */
14579
+ proto.clarifai.api.V2Client.prototype.streamLogEntries =
14580
+ function(request, metadata) {
14581
+ return this.client_.serverStreaming(this.hostname_ +
14582
+ '/clarifai.api.V2/StreamLogEntries',
14583
+ request,
14584
+ metadata || {},
14585
+ methodDescriptor_V2_StreamLogEntries);
14586
+ };
14587
+
14588
+
14589
+ /**
14590
+ * @param {!proto.clarifai.api.StreamLogEntriesRequest} request The request proto
14591
+ * @param {?Object<string, string>=} metadata User defined
14592
+ * call metadata
14593
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.MultiLogEntryResponse>}
14594
+ * The XHR Node Readable Stream
14595
+ */
14596
+ proto.clarifai.api.V2PromiseClient.prototype.streamLogEntries =
14597
+ function(request, metadata) {
14598
+ return this.client_.serverStreaming(this.hostname_ +
14599
+ '/clarifai.api.V2/StreamLogEntries',
14600
+ request,
14601
+ metadata || {},
14602
+ methodDescriptor_V2_StreamLogEntries);
14603
+ };
14604
+
14605
+
14606
+ /**
14607
+ * @const
14608
+ * @type {!grpc.web.MethodDescriptor<
14609
+ * !proto.clarifai.api.PostComputePlaneMetricsRequest,
14610
+ * !proto.clarifai.api.status.BaseResponse>}
14611
+ */
14612
+ const methodDescriptor_V2_PostComputePlaneMetrics = new grpc.web.MethodDescriptor(
14613
+ '/clarifai.api.V2/PostComputePlaneMetrics',
14614
+ grpc.web.MethodType.UNARY,
14615
+ proto.clarifai.api.PostComputePlaneMetricsRequest,
14616
+ proto_clarifai_api_status_status_pb.BaseResponse,
14617
+ /**
14618
+ * @param {!proto.clarifai.api.PostComputePlaneMetricsRequest} request
14619
+ * @return {!Uint8Array}
14620
+ */
14621
+ function(request) {
14622
+ return request.serializeBinary();
14623
+ },
14624
+ proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary
14625
+ );
14626
+
14627
+
14628
+ /**
14629
+ * @param {!proto.clarifai.api.PostComputePlaneMetricsRequest} request The
14630
+ * request proto
14631
+ * @param {?Object<string, string>} metadata User defined
14632
+ * call metadata
14633
+ * @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
14634
+ * callback The callback function(error, response)
14635
+ * @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
14636
+ * The XHR Node Readable Stream
14637
+ */
14638
+ proto.clarifai.api.V2Client.prototype.postComputePlaneMetrics =
14639
+ function(request, metadata, callback) {
14640
+ return this.client_.rpcCall(this.hostname_ +
14641
+ '/clarifai.api.V2/PostComputePlaneMetrics',
14642
+ request,
14643
+ metadata || {},
14644
+ methodDescriptor_V2_PostComputePlaneMetrics,
14645
+ callback);
14646
+ };
14647
+
14648
+
14649
+ /**
14650
+ * @param {!proto.clarifai.api.PostComputePlaneMetricsRequest} request The
14651
+ * request proto
14652
+ * @param {?Object<string, string>=} metadata User defined
14653
+ * call metadata
14654
+ * @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
14655
+ * Promise that resolves to the response
14656
+ */
14657
+ proto.clarifai.api.V2PromiseClient.prototype.postComputePlaneMetrics =
14658
+ function(request, metadata) {
14659
+ return this.client_.unaryCall(this.hostname_ +
14660
+ '/clarifai.api.V2/PostComputePlaneMetrics',
14661
+ request,
14662
+ metadata || {},
14663
+ methodDescriptor_V2_PostComputePlaneMetrics);
14664
+ };
14665
+
14666
+
14489
14667
  module.exports = proto.clarifai.api;
14490
14668
 
@@ -3107,6 +3107,46 @@ export namespace ListModelInputsRequest {
3107
3107
  }
3108
3108
  }
3109
3109
 
3110
+ export class PostComputePlaneMetricsRequest extends jspb.Message {
3111
+ getComputePlaneMetricsList(): Array<proto_clarifai_api_resources_pb.ComputePlaneMetrics>;
3112
+ setComputePlaneMetricsList(value: Array<proto_clarifai_api_resources_pb.ComputePlaneMetrics>): PostComputePlaneMetricsRequest;
3113
+ clearComputePlaneMetricsList(): PostComputePlaneMetricsRequest;
3114
+ addComputePlaneMetrics(value?: proto_clarifai_api_resources_pb.ComputePlaneMetrics, index?: number): proto_clarifai_api_resources_pb.ComputePlaneMetrics;
3115
+
3116
+ serializeBinary(): Uint8Array;
3117
+ toObject(includeInstance?: boolean): PostComputePlaneMetricsRequest.AsObject;
3118
+ static toObject(includeInstance: boolean, msg: PostComputePlaneMetricsRequest): PostComputePlaneMetricsRequest.AsObject;
3119
+ static serializeBinaryToWriter(message: PostComputePlaneMetricsRequest, writer: jspb.BinaryWriter): void;
3120
+ static deserializeBinary(bytes: Uint8Array): PostComputePlaneMetricsRequest;
3121
+ static deserializeBinaryFromReader(message: PostComputePlaneMetricsRequest, reader: jspb.BinaryReader): PostComputePlaneMetricsRequest;
3122
+ }
3123
+
3124
+ export namespace PostComputePlaneMetricsRequest {
3125
+ export type AsObject = {
3126
+ computePlaneMetricsList: Array<proto_clarifai_api_resources_pb.ComputePlaneMetrics.AsObject>,
3127
+ }
3128
+ }
3129
+
3130
+ export class PostLogEntriesRequest extends jspb.Message {
3131
+ getLogEntriesList(): Array<proto_clarifai_api_resources_pb.LogEntry>;
3132
+ setLogEntriesList(value: Array<proto_clarifai_api_resources_pb.LogEntry>): PostLogEntriesRequest;
3133
+ clearLogEntriesList(): PostLogEntriesRequest;
3134
+ addLogEntries(value?: proto_clarifai_api_resources_pb.LogEntry, index?: number): proto_clarifai_api_resources_pb.LogEntry;
3135
+
3136
+ serializeBinary(): Uint8Array;
3137
+ toObject(includeInstance?: boolean): PostLogEntriesRequest.AsObject;
3138
+ static toObject(includeInstance: boolean, msg: PostLogEntriesRequest): PostLogEntriesRequest.AsObject;
3139
+ static serializeBinaryToWriter(message: PostLogEntriesRequest, writer: jspb.BinaryWriter): void;
3140
+ static deserializeBinary(bytes: Uint8Array): PostLogEntriesRequest;
3141
+ static deserializeBinaryFromReader(message: PostLogEntriesRequest, reader: jspb.BinaryReader): PostLogEntriesRequest;
3142
+ }
3143
+
3144
+ export namespace PostLogEntriesRequest {
3145
+ export type AsObject = {
3146
+ logEntriesList: Array<proto_clarifai_api_resources_pb.LogEntry.AsObject>,
3147
+ }
3148
+ }
3149
+
3110
3150
  export class ListLogEntriesRequest extends jspb.Message {
3111
3151
  getPage(): number;
3112
3152
  setPage(value: number): ListLogEntriesRequest;
@@ -3163,6 +3203,54 @@ export namespace ListLogEntriesRequest {
3163
3203
  }
3164
3204
  }
3165
3205
 
3206
+ export class StreamLogEntriesRequest extends jspb.Message {
3207
+ getLogType(): string;
3208
+ setLogType(value: string): StreamLogEntriesRequest;
3209
+
3210
+ getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
3211
+ setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): StreamLogEntriesRequest;
3212
+ hasUserAppId(): boolean;
3213
+ clearUserAppId(): StreamLogEntriesRequest;
3214
+
3215
+ getModelId(): string;
3216
+ setModelId(value: string): StreamLogEntriesRequest;
3217
+
3218
+ getModelVersionId(): string;
3219
+ setModelVersionId(value: string): StreamLogEntriesRequest;
3220
+
3221
+ getWorkflowId(): string;
3222
+ setWorkflowId(value: string): StreamLogEntriesRequest;
3223
+
3224
+ getComputeClusterId(): string;
3225
+ setComputeClusterId(value: string): StreamLogEntriesRequest;
3226
+
3227
+ getNodepoolId(): string;
3228
+ setNodepoolId(value: string): StreamLogEntriesRequest;
3229
+
3230
+ getRunnerId(): string;
3231
+ setRunnerId(value: string): StreamLogEntriesRequest;
3232
+
3233
+ serializeBinary(): Uint8Array;
3234
+ toObject(includeInstance?: boolean): StreamLogEntriesRequest.AsObject;
3235
+ static toObject(includeInstance: boolean, msg: StreamLogEntriesRequest): StreamLogEntriesRequest.AsObject;
3236
+ static serializeBinaryToWriter(message: StreamLogEntriesRequest, writer: jspb.BinaryWriter): void;
3237
+ static deserializeBinary(bytes: Uint8Array): StreamLogEntriesRequest;
3238
+ static deserializeBinaryFromReader(message: StreamLogEntriesRequest, reader: jspb.BinaryReader): StreamLogEntriesRequest;
3239
+ }
3240
+
3241
+ export namespace StreamLogEntriesRequest {
3242
+ export type AsObject = {
3243
+ logType: string,
3244
+ userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
3245
+ modelId: string,
3246
+ modelVersionId: string,
3247
+ workflowId: string,
3248
+ computeClusterId: string,
3249
+ nodepoolId: string,
3250
+ runnerId: string,
3251
+ }
3252
+ }
3253
+
3166
3254
  export class GetKeyRequest extends jspb.Message {
3167
3255
  getUserAppId(): proto_clarifai_api_resources_pb.UserAppIDSet | undefined;
3168
3256
  setUserAppId(value?: proto_clarifai_api_resources_pb.UserAppIDSet): GetKeyRequest;