clarifai-web-grpc 11.7.1 → 11.7.3
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/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +183 -1
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +12 -12
- package/dist/cjs/proto/clarifai/api/service_pb.js +9 -9
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/dist/esm/proto/clarifai/api/resources_pb.js +183 -1
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +12 -12
- package/dist/esm/proto/clarifai/api/service_pb.js +9 -9
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +3 -0
- package/package.json +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +26 -0
- package/proto/clarifai/api/resources_pb.js +225 -1
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +6 -6
- package/proto/clarifai/api/service_grpc_web_pb.js +12 -12
- package/proto/clarifai/api/service_pb.d.ts +5 -5
- package/proto/clarifai/api/service_pb.js +9 -9
- package/proto/clarifai/api/status/status_code_pb.d.ts +3 -0
- package/proto/clarifai/api/status/status_code_pb.js +3 -0
|
@@ -10818,24 +10818,24 @@ proto.clarifai.api.V2PromiseClient.prototype.patchPipelines =
|
|
|
10818
10818
|
* @const
|
|
10819
10819
|
* @type {!grpc.web.MethodDescriptor<
|
|
10820
10820
|
* !proto.clarifai.api.DeletePipelinesRequest,
|
|
10821
|
-
* !proto.clarifai.api.
|
|
10821
|
+
* !proto.clarifai.api.status.BaseResponse>}
|
|
10822
10822
|
*/
|
|
10823
|
-
const methodDescriptor_V2_DeletePipelines = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeletePipelines', grpc.web.MethodType.UNARY, proto.clarifai.api.DeletePipelinesRequest,
|
|
10823
|
+
const methodDescriptor_V2_DeletePipelines = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeletePipelines', grpc.web.MethodType.UNARY, proto.clarifai.api.DeletePipelinesRequest, proto_clarifai_api_status_status_pb.BaseResponse,
|
|
10824
10824
|
/**
|
|
10825
10825
|
* @param {!proto.clarifai.api.DeletePipelinesRequest} request
|
|
10826
10826
|
* @return {!Uint8Array}
|
|
10827
10827
|
*/
|
|
10828
10828
|
function (request) {
|
|
10829
10829
|
return request.serializeBinary();
|
|
10830
|
-
},
|
|
10830
|
+
}, proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary);
|
|
10831
10831
|
/**
|
|
10832
10832
|
* @param {!proto.clarifai.api.DeletePipelinesRequest} request The
|
|
10833
10833
|
* request proto
|
|
10834
10834
|
* @param {?Object<string, string>} metadata User defined
|
|
10835
10835
|
* call metadata
|
|
10836
|
-
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.
|
|
10836
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
|
|
10837
10837
|
* callback The callback function(error, response)
|
|
10838
|
-
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.
|
|
10838
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
|
|
10839
10839
|
* The XHR Node Readable Stream
|
|
10840
10840
|
*/
|
|
10841
10841
|
proto.clarifai.api.V2Client.prototype.deletePipelines =
|
|
@@ -10848,7 +10848,7 @@ proto.clarifai.api.V2Client.prototype.deletePipelines =
|
|
|
10848
10848
|
* request proto
|
|
10849
10849
|
* @param {?Object<string, string>=} metadata User defined
|
|
10850
10850
|
* call metadata
|
|
10851
|
-
* @return {!Promise<!proto.clarifai.api.
|
|
10851
|
+
* @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
|
|
10852
10852
|
* Promise that resolves to the response
|
|
10853
10853
|
*/
|
|
10854
10854
|
proto.clarifai.api.V2PromiseClient.prototype.deletePipelines =
|
|
@@ -10986,24 +10986,24 @@ proto.clarifai.api.V2PromiseClient.prototype.patchPipelineVersions =
|
|
|
10986
10986
|
* @const
|
|
10987
10987
|
* @type {!grpc.web.MethodDescriptor<
|
|
10988
10988
|
* !proto.clarifai.api.DeletePipelineVersionsRequest,
|
|
10989
|
-
* !proto.clarifai.api.
|
|
10989
|
+
* !proto.clarifai.api.status.BaseResponse>}
|
|
10990
10990
|
*/
|
|
10991
|
-
const methodDescriptor_V2_DeletePipelineVersions = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeletePipelineVersions', grpc.web.MethodType.UNARY, proto.clarifai.api.DeletePipelineVersionsRequest,
|
|
10991
|
+
const methodDescriptor_V2_DeletePipelineVersions = new grpc.web.MethodDescriptor('/clarifai.api.V2/DeletePipelineVersions', grpc.web.MethodType.UNARY, proto.clarifai.api.DeletePipelineVersionsRequest, proto_clarifai_api_status_status_pb.BaseResponse,
|
|
10992
10992
|
/**
|
|
10993
10993
|
* @param {!proto.clarifai.api.DeletePipelineVersionsRequest} request
|
|
10994
10994
|
* @return {!Uint8Array}
|
|
10995
10995
|
*/
|
|
10996
10996
|
function (request) {
|
|
10997
10997
|
return request.serializeBinary();
|
|
10998
|
-
},
|
|
10998
|
+
}, proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary);
|
|
10999
10999
|
/**
|
|
11000
11000
|
* @param {!proto.clarifai.api.DeletePipelineVersionsRequest} request The
|
|
11001
11001
|
* request proto
|
|
11002
11002
|
* @param {?Object<string, string>} metadata User defined
|
|
11003
11003
|
* call metadata
|
|
11004
|
-
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.
|
|
11004
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
|
|
11005
11005
|
* callback The callback function(error, response)
|
|
11006
|
-
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.
|
|
11006
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
|
|
11007
11007
|
* The XHR Node Readable Stream
|
|
11008
11008
|
*/
|
|
11009
11009
|
proto.clarifai.api.V2Client.prototype.deletePipelineVersions =
|
|
@@ -11016,7 +11016,7 @@ proto.clarifai.api.V2Client.prototype.deletePipelineVersions =
|
|
|
11016
11016
|
* request proto
|
|
11017
11017
|
* @param {?Object<string, string>=} metadata User defined
|
|
11018
11018
|
* call metadata
|
|
11019
|
-
* @return {!Promise<!proto.clarifai.api.
|
|
11019
|
+
* @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
|
|
11020
11020
|
* Promise that resolves to the response
|
|
11021
11021
|
*/
|
|
11022
11022
|
proto.clarifai.api.V2PromiseClient.prototype.deletePipelineVersions =
|
|
@@ -83083,7 +83083,7 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
83083
83083
|
proto.clarifai.api.DeletePipelinesRequest.toObject = function (includeInstance, msg) {
|
|
83084
83084
|
var f, obj = {
|
|
83085
83085
|
userAppId: (f = msg.getUserAppId()) && proto_clarifai_api_resources_pb.UserAppIDSet.toObject(includeInstance, f),
|
|
83086
|
-
|
|
83086
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
83087
83087
|
};
|
|
83088
83088
|
if (includeInstance) {
|
|
83089
83089
|
obj.$jspbMessageInstance = msg;
|
|
@@ -83122,7 +83122,7 @@ proto.clarifai.api.DeletePipelinesRequest.deserializeBinaryFromReader = function
|
|
|
83122
83122
|
break;
|
|
83123
83123
|
case 2:
|
|
83124
83124
|
var value = /** @type {string} */ (reader.readString());
|
|
83125
|
-
msg.
|
|
83125
|
+
msg.addIds(value);
|
|
83126
83126
|
break;
|
|
83127
83127
|
default:
|
|
83128
83128
|
reader.skipField();
|
|
@@ -83153,7 +83153,7 @@ proto.clarifai.api.DeletePipelinesRequest.serializeBinaryToWriter = function (me
|
|
|
83153
83153
|
if (f != null) {
|
|
83154
83154
|
writer.writeMessage(1, f, proto_clarifai_api_resources_pb.UserAppIDSet.serializeBinaryToWriter);
|
|
83155
83155
|
}
|
|
83156
|
-
f = message.
|
|
83156
|
+
f = message.getIdsList();
|
|
83157
83157
|
if (f.length > 0) {
|
|
83158
83158
|
writer.writeRepeatedString(2, f);
|
|
83159
83159
|
}
|
|
@@ -83187,17 +83187,17 @@ proto.clarifai.api.DeletePipelinesRequest.prototype.hasUserAppId = function () {
|
|
|
83187
83187
|
return jspb.Message.getField(this, 1) != null;
|
|
83188
83188
|
};
|
|
83189
83189
|
/**
|
|
83190
|
-
* repeated string
|
|
83190
|
+
* repeated string ids = 2;
|
|
83191
83191
|
* @return {!Array<string>}
|
|
83192
83192
|
*/
|
|
83193
|
-
proto.clarifai.api.DeletePipelinesRequest.prototype.
|
|
83193
|
+
proto.clarifai.api.DeletePipelinesRequest.prototype.getIdsList = function () {
|
|
83194
83194
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
83195
83195
|
};
|
|
83196
83196
|
/**
|
|
83197
83197
|
* @param {!Array<string>} value
|
|
83198
83198
|
* @return {!proto.clarifai.api.DeletePipelinesRequest} returns this
|
|
83199
83199
|
*/
|
|
83200
|
-
proto.clarifai.api.DeletePipelinesRequest.prototype.
|
|
83200
|
+
proto.clarifai.api.DeletePipelinesRequest.prototype.setIdsList = function (value) {
|
|
83201
83201
|
return jspb.Message.setField(this, 2, value || []);
|
|
83202
83202
|
};
|
|
83203
83203
|
/**
|
|
@@ -83205,15 +83205,15 @@ proto.clarifai.api.DeletePipelinesRequest.prototype.setPipelineIdsList = functio
|
|
|
83205
83205
|
* @param {number=} opt_index
|
|
83206
83206
|
* @return {!proto.clarifai.api.DeletePipelinesRequest} returns this
|
|
83207
83207
|
*/
|
|
83208
|
-
proto.clarifai.api.DeletePipelinesRequest.prototype.
|
|
83208
|
+
proto.clarifai.api.DeletePipelinesRequest.prototype.addIds = function (value, opt_index) {
|
|
83209
83209
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
83210
83210
|
};
|
|
83211
83211
|
/**
|
|
83212
83212
|
* Clears the list making it empty but non-null.
|
|
83213
83213
|
* @return {!proto.clarifai.api.DeletePipelinesRequest} returns this
|
|
83214
83214
|
*/
|
|
83215
|
-
proto.clarifai.api.DeletePipelinesRequest.prototype.
|
|
83216
|
-
return this.
|
|
83215
|
+
proto.clarifai.api.DeletePipelinesRequest.prototype.clearIdsList = function () {
|
|
83216
|
+
return this.setIdsList([]);
|
|
83217
83217
|
};
|
|
83218
83218
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
83219
83219
|
/**
|
|
@@ -317,6 +317,7 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
317
317
|
EVALUATION_UNEXPECTED_ERROR: 43108,
|
|
318
318
|
EVALUATION_MIXED: 43109,
|
|
319
319
|
STRIPE_EVENT_ERROR: 44001,
|
|
320
|
+
STRIPE_UNEXPECTED_ERROR: 44002,
|
|
320
321
|
CACHE_MISS: 45001,
|
|
321
322
|
REDIS_SCRIPT_EXITED_WITH_FAILURE: 45002,
|
|
322
323
|
REDIS_STREAM_ERR: 45003,
|
|
@@ -325,6 +326,8 @@ proto.clarifai.api.status.StatusCode = {
|
|
|
325
326
|
SIGNUP_EVENT_ERROR: 46001,
|
|
326
327
|
SIGNUP_FLAGGED: 46002,
|
|
327
328
|
FILETYPE_UNSUPPORTED: 46003,
|
|
329
|
+
LOGIN_EVENT_ERROR: 46004,
|
|
330
|
+
SIFT_UNCATEGORIZED_ERROR: 46005,
|
|
328
331
|
APP_COUNT_INVALID_MESSAGE: 47001,
|
|
329
332
|
APP_COUNT_UPDATE_INCREMENT_FAILED: 47002,
|
|
330
333
|
APP_COUNT_REBUILD_FAILED: 47003,
|
package/package.json
CHANGED
|
@@ -2784,6 +2784,11 @@ export class Model extends jspb.Message {
|
|
|
2784
2784
|
getReplicaCount(): number;
|
|
2785
2785
|
setReplicaCount(value: number): Model;
|
|
2786
2786
|
|
|
2787
|
+
getOpenRouterInfo(): OpenRouterInfo | undefined;
|
|
2788
|
+
setOpenRouterInfo(value?: OpenRouterInfo): Model;
|
|
2789
|
+
hasOpenRouterInfo(): boolean;
|
|
2790
|
+
clearOpenRouterInfo(): Model;
|
|
2791
|
+
|
|
2787
2792
|
serializeBinary(): Uint8Array;
|
|
2788
2793
|
toObject(includeInstance?: boolean): Model.AsObject;
|
|
2789
2794
|
static toObject(includeInstance: boolean, msg: Model): Model.AsObject;
|
|
@@ -2829,6 +2834,7 @@ export namespace Model {
|
|
|
2829
2834
|
featuredOrder?: google_protobuf_wrappers_pb.Int32Value.AsObject,
|
|
2830
2835
|
deployRestriction: DeployRestriction,
|
|
2831
2836
|
replicaCount: number,
|
|
2837
|
+
openRouterInfo?: OpenRouterInfo.AsObject,
|
|
2832
2838
|
}
|
|
2833
2839
|
|
|
2834
2840
|
export enum Source {
|
|
@@ -2844,6 +2850,26 @@ export namespace Model {
|
|
|
2844
2850
|
}
|
|
2845
2851
|
}
|
|
2846
2852
|
|
|
2853
|
+
export class OpenRouterInfo extends jspb.Message {
|
|
2854
|
+
getParams(): google_protobuf_struct_pb.Struct | undefined;
|
|
2855
|
+
setParams(value?: google_protobuf_struct_pb.Struct): OpenRouterInfo;
|
|
2856
|
+
hasParams(): boolean;
|
|
2857
|
+
clearParams(): OpenRouterInfo;
|
|
2858
|
+
|
|
2859
|
+
serializeBinary(): Uint8Array;
|
|
2860
|
+
toObject(includeInstance?: boolean): OpenRouterInfo.AsObject;
|
|
2861
|
+
static toObject(includeInstance: boolean, msg: OpenRouterInfo): OpenRouterInfo.AsObject;
|
|
2862
|
+
static serializeBinaryToWriter(message: OpenRouterInfo, writer: jspb.BinaryWriter): void;
|
|
2863
|
+
static deserializeBinary(bytes: Uint8Array): OpenRouterInfo;
|
|
2864
|
+
static deserializeBinaryFromReader(message: OpenRouterInfo, reader: jspb.BinaryReader): OpenRouterInfo;
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
export namespace OpenRouterInfo {
|
|
2868
|
+
export type AsObject = {
|
|
2869
|
+
params?: google_protobuf_struct_pb.Struct.AsObject,
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2847
2873
|
export class ModelReference extends jspb.Message {
|
|
2848
2874
|
getId(): string;
|
|
2849
2875
|
setId(value: string): ModelReference;
|
|
@@ -236,6 +236,7 @@ goog.exportSymbol('proto.clarifai.api.NodeCapacityType', null, global);
|
|
|
236
236
|
goog.exportSymbol('proto.clarifai.api.NodeCapacityType.CapacityType', null, global);
|
|
237
237
|
goog.exportSymbol('proto.clarifai.api.NodeInput', null, global);
|
|
238
238
|
goog.exportSymbol('proto.clarifai.api.Nodepool', null, global);
|
|
239
|
+
goog.exportSymbol('proto.clarifai.api.OpenRouterInfo', null, global);
|
|
239
240
|
goog.exportSymbol('proto.clarifai.api.Operation', null, global);
|
|
240
241
|
goog.exportSymbol('proto.clarifai.api.Operation.AnnotationOperationCase', null, global);
|
|
241
242
|
goog.exportSymbol('proto.clarifai.api.Operation.OperationCase', null, global);
|
|
@@ -1745,6 +1746,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1745
1746
|
*/
|
|
1746
1747
|
proto.clarifai.api.Model.displayName = 'proto.clarifai.api.Model';
|
|
1747
1748
|
}
|
|
1749
|
+
/**
|
|
1750
|
+
* Generated by JsPbCodeGenerator.
|
|
1751
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1752
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1753
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1754
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1755
|
+
* valid.
|
|
1756
|
+
* @extends {jspb.Message}
|
|
1757
|
+
* @constructor
|
|
1758
|
+
*/
|
|
1759
|
+
proto.clarifai.api.OpenRouterInfo = function(opt_data) {
|
|
1760
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1761
|
+
};
|
|
1762
|
+
goog.inherits(proto.clarifai.api.OpenRouterInfo, jspb.Message);
|
|
1763
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1764
|
+
/**
|
|
1765
|
+
* @public
|
|
1766
|
+
* @override
|
|
1767
|
+
*/
|
|
1768
|
+
proto.clarifai.api.OpenRouterInfo.displayName = 'proto.clarifai.api.OpenRouterInfo';
|
|
1769
|
+
}
|
|
1748
1770
|
/**
|
|
1749
1771
|
* Generated by JsPbCodeGenerator.
|
|
1750
1772
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -26248,7 +26270,8 @@ proto.clarifai.api.Model.toObject = function(includeInstance, msg) {
|
|
|
26248
26270
|
billingType: jspb.Message.getFieldWithDefault(msg, 40, 0),
|
|
26249
26271
|
featuredOrder: (f = msg.getFeaturedOrder()) && google_protobuf_wrappers_pb.Int32Value.toObject(includeInstance, f),
|
|
26250
26272
|
deployRestriction: jspb.Message.getFieldWithDefault(msg, 42, 0),
|
|
26251
|
-
replicaCount: jspb.Message.getFieldWithDefault(msg, 43, 0)
|
|
26273
|
+
replicaCount: jspb.Message.getFieldWithDefault(msg, 43, 0),
|
|
26274
|
+
openRouterInfo: (f = msg.getOpenRouterInfo()) && proto.clarifai.api.OpenRouterInfo.toObject(includeInstance, f)
|
|
26252
26275
|
};
|
|
26253
26276
|
|
|
26254
26277
|
if (includeInstance) {
|
|
@@ -26438,6 +26461,11 @@ proto.clarifai.api.Model.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
26438
26461
|
var value = /** @type {number} */ (reader.readUint32());
|
|
26439
26462
|
msg.setReplicaCount(value);
|
|
26440
26463
|
break;
|
|
26464
|
+
case 44:
|
|
26465
|
+
var value = new proto.clarifai.api.OpenRouterInfo;
|
|
26466
|
+
reader.readMessage(value,proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader);
|
|
26467
|
+
msg.setOpenRouterInfo(value);
|
|
26468
|
+
break;
|
|
26441
26469
|
default:
|
|
26442
26470
|
reader.skipField();
|
|
26443
26471
|
break;
|
|
@@ -26725,6 +26753,14 @@ proto.clarifai.api.Model.serializeBinaryToWriter = function(message, writer) {
|
|
|
26725
26753
|
f
|
|
26726
26754
|
);
|
|
26727
26755
|
}
|
|
26756
|
+
f = message.getOpenRouterInfo();
|
|
26757
|
+
if (f != null) {
|
|
26758
|
+
writer.writeMessage(
|
|
26759
|
+
44,
|
|
26760
|
+
f,
|
|
26761
|
+
proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter
|
|
26762
|
+
);
|
|
26763
|
+
}
|
|
26728
26764
|
};
|
|
26729
26765
|
|
|
26730
26766
|
|
|
@@ -27700,6 +27736,194 @@ proto.clarifai.api.Model.prototype.setReplicaCount = function(value) {
|
|
|
27700
27736
|
};
|
|
27701
27737
|
|
|
27702
27738
|
|
|
27739
|
+
/**
|
|
27740
|
+
* optional OpenRouterInfo open_router_info = 44;
|
|
27741
|
+
* @return {?proto.clarifai.api.OpenRouterInfo}
|
|
27742
|
+
*/
|
|
27743
|
+
proto.clarifai.api.Model.prototype.getOpenRouterInfo = function() {
|
|
27744
|
+
return /** @type{?proto.clarifai.api.OpenRouterInfo} */ (
|
|
27745
|
+
jspb.Message.getWrapperField(this, proto.clarifai.api.OpenRouterInfo, 44));
|
|
27746
|
+
};
|
|
27747
|
+
|
|
27748
|
+
|
|
27749
|
+
/**
|
|
27750
|
+
* @param {?proto.clarifai.api.OpenRouterInfo|undefined} value
|
|
27751
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
27752
|
+
*/
|
|
27753
|
+
proto.clarifai.api.Model.prototype.setOpenRouterInfo = function(value) {
|
|
27754
|
+
return jspb.Message.setWrapperField(this, 44, value);
|
|
27755
|
+
};
|
|
27756
|
+
|
|
27757
|
+
|
|
27758
|
+
/**
|
|
27759
|
+
* Clears the message field making it undefined.
|
|
27760
|
+
* @return {!proto.clarifai.api.Model} returns this
|
|
27761
|
+
*/
|
|
27762
|
+
proto.clarifai.api.Model.prototype.clearOpenRouterInfo = function() {
|
|
27763
|
+
return this.setOpenRouterInfo(undefined);
|
|
27764
|
+
};
|
|
27765
|
+
|
|
27766
|
+
|
|
27767
|
+
/**
|
|
27768
|
+
* Returns whether this field is set.
|
|
27769
|
+
* @return {boolean}
|
|
27770
|
+
*/
|
|
27771
|
+
proto.clarifai.api.Model.prototype.hasOpenRouterInfo = function() {
|
|
27772
|
+
return jspb.Message.getField(this, 44) != null;
|
|
27773
|
+
};
|
|
27774
|
+
|
|
27775
|
+
|
|
27776
|
+
|
|
27777
|
+
|
|
27778
|
+
|
|
27779
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
27780
|
+
/**
|
|
27781
|
+
* Creates an object representation of this proto.
|
|
27782
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
27783
|
+
* Optional fields that are not set will be set to undefined.
|
|
27784
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
27785
|
+
* For the list of reserved names please see:
|
|
27786
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
27787
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
27788
|
+
* JSPB instance for transitional soy proto support:
|
|
27789
|
+
* http://goto/soy-param-migration
|
|
27790
|
+
* @return {!Object}
|
|
27791
|
+
*/
|
|
27792
|
+
proto.clarifai.api.OpenRouterInfo.prototype.toObject = function(opt_includeInstance) {
|
|
27793
|
+
return proto.clarifai.api.OpenRouterInfo.toObject(opt_includeInstance, this);
|
|
27794
|
+
};
|
|
27795
|
+
|
|
27796
|
+
|
|
27797
|
+
/**
|
|
27798
|
+
* Static version of the {@see toObject} method.
|
|
27799
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
27800
|
+
* the JSPB instance for transitional soy proto support:
|
|
27801
|
+
* http://goto/soy-param-migration
|
|
27802
|
+
* @param {!proto.clarifai.api.OpenRouterInfo} msg The msg instance to transform.
|
|
27803
|
+
* @return {!Object}
|
|
27804
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
27805
|
+
*/
|
|
27806
|
+
proto.clarifai.api.OpenRouterInfo.toObject = function(includeInstance, msg) {
|
|
27807
|
+
var f, obj = {
|
|
27808
|
+
params: (f = msg.getParams()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
27809
|
+
};
|
|
27810
|
+
|
|
27811
|
+
if (includeInstance) {
|
|
27812
|
+
obj.$jspbMessageInstance = msg;
|
|
27813
|
+
}
|
|
27814
|
+
return obj;
|
|
27815
|
+
};
|
|
27816
|
+
}
|
|
27817
|
+
|
|
27818
|
+
|
|
27819
|
+
/**
|
|
27820
|
+
* Deserializes binary data (in protobuf wire format).
|
|
27821
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
27822
|
+
* @return {!proto.clarifai.api.OpenRouterInfo}
|
|
27823
|
+
*/
|
|
27824
|
+
proto.clarifai.api.OpenRouterInfo.deserializeBinary = function(bytes) {
|
|
27825
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
27826
|
+
var msg = new proto.clarifai.api.OpenRouterInfo;
|
|
27827
|
+
return proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader(msg, reader);
|
|
27828
|
+
};
|
|
27829
|
+
|
|
27830
|
+
|
|
27831
|
+
/**
|
|
27832
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
27833
|
+
* given reader into the given message object.
|
|
27834
|
+
* @param {!proto.clarifai.api.OpenRouterInfo} msg The message object to deserialize into.
|
|
27835
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
27836
|
+
* @return {!proto.clarifai.api.OpenRouterInfo}
|
|
27837
|
+
*/
|
|
27838
|
+
proto.clarifai.api.OpenRouterInfo.deserializeBinaryFromReader = function(msg, reader) {
|
|
27839
|
+
while (reader.nextField()) {
|
|
27840
|
+
if (reader.isEndGroup()) {
|
|
27841
|
+
break;
|
|
27842
|
+
}
|
|
27843
|
+
var field = reader.getFieldNumber();
|
|
27844
|
+
switch (field) {
|
|
27845
|
+
case 1:
|
|
27846
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
27847
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
27848
|
+
msg.setParams(value);
|
|
27849
|
+
break;
|
|
27850
|
+
default:
|
|
27851
|
+
reader.skipField();
|
|
27852
|
+
break;
|
|
27853
|
+
}
|
|
27854
|
+
}
|
|
27855
|
+
return msg;
|
|
27856
|
+
};
|
|
27857
|
+
|
|
27858
|
+
|
|
27859
|
+
/**
|
|
27860
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
27861
|
+
* @return {!Uint8Array}
|
|
27862
|
+
*/
|
|
27863
|
+
proto.clarifai.api.OpenRouterInfo.prototype.serializeBinary = function() {
|
|
27864
|
+
var writer = new jspb.BinaryWriter();
|
|
27865
|
+
proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter(this, writer);
|
|
27866
|
+
return writer.getResultBuffer();
|
|
27867
|
+
};
|
|
27868
|
+
|
|
27869
|
+
|
|
27870
|
+
/**
|
|
27871
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
27872
|
+
* format), writing to the given BinaryWriter.
|
|
27873
|
+
* @param {!proto.clarifai.api.OpenRouterInfo} message
|
|
27874
|
+
* @param {!jspb.BinaryWriter} writer
|
|
27875
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
27876
|
+
*/
|
|
27877
|
+
proto.clarifai.api.OpenRouterInfo.serializeBinaryToWriter = function(message, writer) {
|
|
27878
|
+
var f = undefined;
|
|
27879
|
+
f = message.getParams();
|
|
27880
|
+
if (f != null) {
|
|
27881
|
+
writer.writeMessage(
|
|
27882
|
+
1,
|
|
27883
|
+
f,
|
|
27884
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
27885
|
+
);
|
|
27886
|
+
}
|
|
27887
|
+
};
|
|
27888
|
+
|
|
27889
|
+
|
|
27890
|
+
/**
|
|
27891
|
+
* optional google.protobuf.Struct params = 1;
|
|
27892
|
+
* @return {?proto.google.protobuf.Struct}
|
|
27893
|
+
*/
|
|
27894
|
+
proto.clarifai.api.OpenRouterInfo.prototype.getParams = function() {
|
|
27895
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
27896
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
|
|
27897
|
+
};
|
|
27898
|
+
|
|
27899
|
+
|
|
27900
|
+
/**
|
|
27901
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
27902
|
+
* @return {!proto.clarifai.api.OpenRouterInfo} returns this
|
|
27903
|
+
*/
|
|
27904
|
+
proto.clarifai.api.OpenRouterInfo.prototype.setParams = function(value) {
|
|
27905
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
27906
|
+
};
|
|
27907
|
+
|
|
27908
|
+
|
|
27909
|
+
/**
|
|
27910
|
+
* Clears the message field making it undefined.
|
|
27911
|
+
* @return {!proto.clarifai.api.OpenRouterInfo} returns this
|
|
27912
|
+
*/
|
|
27913
|
+
proto.clarifai.api.OpenRouterInfo.prototype.clearParams = function() {
|
|
27914
|
+
return this.setParams(undefined);
|
|
27915
|
+
};
|
|
27916
|
+
|
|
27917
|
+
|
|
27918
|
+
/**
|
|
27919
|
+
* Returns whether this field is set.
|
|
27920
|
+
* @return {boolean}
|
|
27921
|
+
*/
|
|
27922
|
+
proto.clarifai.api.OpenRouterInfo.prototype.hasParams = function() {
|
|
27923
|
+
return jspb.Message.getField(this, 1) != null;
|
|
27924
|
+
};
|
|
27925
|
+
|
|
27926
|
+
|
|
27703
27927
|
|
|
27704
27928
|
|
|
27705
27929
|
|
|
@@ -1801,8 +1801,8 @@ export class V2Client {
|
|
|
1801
1801
|
request: proto_clarifai_api_service_pb.DeletePipelinesRequest,
|
|
1802
1802
|
metadata: grpcWeb.Metadata | undefined,
|
|
1803
1803
|
callback: (err: grpcWeb.RpcError,
|
|
1804
|
-
response:
|
|
1805
|
-
): grpcWeb.ClientReadableStream<
|
|
1804
|
+
response: proto_clarifai_api_status_status_pb.BaseResponse) => void
|
|
1805
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
|
|
1806
1806
|
|
|
1807
1807
|
getPipelineVersion(
|
|
1808
1808
|
request: proto_clarifai_api_service_pb.GetPipelineVersionRequest,
|
|
@@ -1829,8 +1829,8 @@ export class V2Client {
|
|
|
1829
1829
|
request: proto_clarifai_api_service_pb.DeletePipelineVersionsRequest,
|
|
1830
1830
|
metadata: grpcWeb.Metadata | undefined,
|
|
1831
1831
|
callback: (err: grpcWeb.RpcError,
|
|
1832
|
-
response:
|
|
1833
|
-
): grpcWeb.ClientReadableStream<
|
|
1832
|
+
response: proto_clarifai_api_status_status_pb.BaseResponse) => void
|
|
1833
|
+
): grpcWeb.ClientReadableStream<proto_clarifai_api_status_status_pb.BaseResponse>;
|
|
1834
1834
|
|
|
1835
1835
|
getPipelineVersionRun(
|
|
1836
1836
|
request: proto_clarifai_api_service_pb.GetPipelineVersionRunRequest,
|
|
@@ -3213,7 +3213,7 @@ export class V2PromiseClient {
|
|
|
3213
3213
|
deletePipelines(
|
|
3214
3214
|
request: proto_clarifai_api_service_pb.DeletePipelinesRequest,
|
|
3215
3215
|
metadata?: grpcWeb.Metadata
|
|
3216
|
-
): Promise<
|
|
3216
|
+
): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
|
|
3217
3217
|
|
|
3218
3218
|
getPipelineVersion(
|
|
3219
3219
|
request: proto_clarifai_api_service_pb.GetPipelineVersionRequest,
|
|
@@ -3233,7 +3233,7 @@ export class V2PromiseClient {
|
|
|
3233
3233
|
deletePipelineVersions(
|
|
3234
3234
|
request: proto_clarifai_api_service_pb.DeletePipelineVersionsRequest,
|
|
3235
3235
|
metadata?: grpcWeb.Metadata
|
|
3236
|
-
): Promise<
|
|
3236
|
+
): Promise<proto_clarifai_api_status_status_pb.BaseResponse>;
|
|
3237
3237
|
|
|
3238
3238
|
getPipelineVersionRun(
|
|
3239
3239
|
request: proto_clarifai_api_service_pb.GetPipelineVersionRunRequest,
|
|
@@ -15705,13 +15705,13 @@ proto.clarifai.api.V2PromiseClient.prototype.patchPipelines =
|
|
|
15705
15705
|
* @const
|
|
15706
15706
|
* @type {!grpc.web.MethodDescriptor<
|
|
15707
15707
|
* !proto.clarifai.api.DeletePipelinesRequest,
|
|
15708
|
-
* !proto.clarifai.api.
|
|
15708
|
+
* !proto.clarifai.api.status.BaseResponse>}
|
|
15709
15709
|
*/
|
|
15710
15710
|
const methodDescriptor_V2_DeletePipelines = new grpc.web.MethodDescriptor(
|
|
15711
15711
|
'/clarifai.api.V2/DeletePipelines',
|
|
15712
15712
|
grpc.web.MethodType.UNARY,
|
|
15713
15713
|
proto.clarifai.api.DeletePipelinesRequest,
|
|
15714
|
-
|
|
15714
|
+
proto_clarifai_api_status_status_pb.BaseResponse,
|
|
15715
15715
|
/**
|
|
15716
15716
|
* @param {!proto.clarifai.api.DeletePipelinesRequest} request
|
|
15717
15717
|
* @return {!Uint8Array}
|
|
@@ -15719,7 +15719,7 @@ const methodDescriptor_V2_DeletePipelines = new grpc.web.MethodDescriptor(
|
|
|
15719
15719
|
function(request) {
|
|
15720
15720
|
return request.serializeBinary();
|
|
15721
15721
|
},
|
|
15722
|
-
|
|
15722
|
+
proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary
|
|
15723
15723
|
);
|
|
15724
15724
|
|
|
15725
15725
|
|
|
@@ -15728,9 +15728,9 @@ const methodDescriptor_V2_DeletePipelines = new grpc.web.MethodDescriptor(
|
|
|
15728
15728
|
* request proto
|
|
15729
15729
|
* @param {?Object<string, string>} metadata User defined
|
|
15730
15730
|
* call metadata
|
|
15731
|
-
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.
|
|
15731
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
|
|
15732
15732
|
* callback The callback function(error, response)
|
|
15733
|
-
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.
|
|
15733
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
|
|
15734
15734
|
* The XHR Node Readable Stream
|
|
15735
15735
|
*/
|
|
15736
15736
|
proto.clarifai.api.V2Client.prototype.deletePipelines =
|
|
@@ -15749,7 +15749,7 @@ proto.clarifai.api.V2Client.prototype.deletePipelines =
|
|
|
15749
15749
|
* request proto
|
|
15750
15750
|
* @param {?Object<string, string>=} metadata User defined
|
|
15751
15751
|
* call metadata
|
|
15752
|
-
* @return {!Promise<!proto.clarifai.api.
|
|
15752
|
+
* @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
|
|
15753
15753
|
* Promise that resolves to the response
|
|
15754
15754
|
*/
|
|
15755
15755
|
proto.clarifai.api.V2PromiseClient.prototype.deletePipelines =
|
|
@@ -15949,13 +15949,13 @@ proto.clarifai.api.V2PromiseClient.prototype.patchPipelineVersions =
|
|
|
15949
15949
|
* @const
|
|
15950
15950
|
* @type {!grpc.web.MethodDescriptor<
|
|
15951
15951
|
* !proto.clarifai.api.DeletePipelineVersionsRequest,
|
|
15952
|
-
* !proto.clarifai.api.
|
|
15952
|
+
* !proto.clarifai.api.status.BaseResponse>}
|
|
15953
15953
|
*/
|
|
15954
15954
|
const methodDescriptor_V2_DeletePipelineVersions = new grpc.web.MethodDescriptor(
|
|
15955
15955
|
'/clarifai.api.V2/DeletePipelineVersions',
|
|
15956
15956
|
grpc.web.MethodType.UNARY,
|
|
15957
15957
|
proto.clarifai.api.DeletePipelineVersionsRequest,
|
|
15958
|
-
|
|
15958
|
+
proto_clarifai_api_status_status_pb.BaseResponse,
|
|
15959
15959
|
/**
|
|
15960
15960
|
* @param {!proto.clarifai.api.DeletePipelineVersionsRequest} request
|
|
15961
15961
|
* @return {!Uint8Array}
|
|
@@ -15963,7 +15963,7 @@ const methodDescriptor_V2_DeletePipelineVersions = new grpc.web.MethodDescriptor
|
|
|
15963
15963
|
function(request) {
|
|
15964
15964
|
return request.serializeBinary();
|
|
15965
15965
|
},
|
|
15966
|
-
|
|
15966
|
+
proto_clarifai_api_status_status_pb.BaseResponse.deserializeBinary
|
|
15967
15967
|
);
|
|
15968
15968
|
|
|
15969
15969
|
|
|
@@ -15972,9 +15972,9 @@ const methodDescriptor_V2_DeletePipelineVersions = new grpc.web.MethodDescriptor
|
|
|
15972
15972
|
* request proto
|
|
15973
15973
|
* @param {?Object<string, string>} metadata User defined
|
|
15974
15974
|
* call metadata
|
|
15975
|
-
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.
|
|
15975
|
+
* @param {function(?grpc.web.RpcError, ?proto.clarifai.api.status.BaseResponse)}
|
|
15976
15976
|
* callback The callback function(error, response)
|
|
15977
|
-
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.
|
|
15977
|
+
* @return {!grpc.web.ClientReadableStream<!proto.clarifai.api.status.BaseResponse>|undefined}
|
|
15978
15978
|
* The XHR Node Readable Stream
|
|
15979
15979
|
*/
|
|
15980
15980
|
proto.clarifai.api.V2Client.prototype.deletePipelineVersions =
|
|
@@ -15993,7 +15993,7 @@ proto.clarifai.api.V2Client.prototype.deletePipelineVersions =
|
|
|
15993
15993
|
* request proto
|
|
15994
15994
|
* @param {?Object<string, string>=} metadata User defined
|
|
15995
15995
|
* call metadata
|
|
15996
|
-
* @return {!Promise<!proto.clarifai.api.
|
|
15996
|
+
* @return {!Promise<!proto.clarifai.api.status.BaseResponse>}
|
|
15997
15997
|
* Promise that resolves to the response
|
|
15998
15998
|
*/
|
|
15999
15999
|
proto.clarifai.api.V2PromiseClient.prototype.deletePipelineVersions =
|
|
@@ -11888,10 +11888,10 @@ export class DeletePipelinesRequest extends jspb.Message {
|
|
|
11888
11888
|
hasUserAppId(): boolean;
|
|
11889
11889
|
clearUserAppId(): DeletePipelinesRequest;
|
|
11890
11890
|
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11891
|
+
getIdsList(): Array<string>;
|
|
11892
|
+
setIdsList(value: Array<string>): DeletePipelinesRequest;
|
|
11893
|
+
clearIdsList(): DeletePipelinesRequest;
|
|
11894
|
+
addIds(value: string, index?: number): DeletePipelinesRequest;
|
|
11895
11895
|
|
|
11896
11896
|
serializeBinary(): Uint8Array;
|
|
11897
11897
|
toObject(includeInstance?: boolean): DeletePipelinesRequest.AsObject;
|
|
@@ -11904,7 +11904,7 @@ export class DeletePipelinesRequest extends jspb.Message {
|
|
|
11904
11904
|
export namespace DeletePipelinesRequest {
|
|
11905
11905
|
export type AsObject = {
|
|
11906
11906
|
userAppId?: proto_clarifai_api_resources_pb.UserAppIDSet.AsObject,
|
|
11907
|
-
|
|
11907
|
+
idsList: Array<string>,
|
|
11908
11908
|
}
|
|
11909
11909
|
}
|
|
11910
11910
|
|