clarifai-web-grpc 5.1.0 → 9.6.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/.github/workflows/ci.yml +15 -8
- package/README.md +6 -0
- package/VERSION +1 -1
- package/package.json +2 -23
- package/proto/clarifai/api/resources_pb.d.ts +635 -34
- package/proto/clarifai/api/resources_pb.js +5808 -989
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +168 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +876 -79
- package/proto/clarifai/api/service_pb.d.ts +634 -54
- package/proto/clarifai/api/service_pb.js +5671 -739
- package/proto/clarifai/api/status/status_code_pb.d.ts +17 -1
- package/proto/clarifai/api/status/status_code_pb.js +17 -1
- package/.husky/commit-msg +0 -4
- package/CHANGELOG.md +0 -7
- package/dist/cjs/google/api/annotations_pb.d.ts +0 -1
- package/dist/cjs/google/api/annotations_pb.js +0 -32
- package/dist/cjs/google/api/http_pb.d.ts +0 -1
- package/dist/cjs/google/api/http_pb.js +0 -813
- package/dist/cjs/index.d.ts +0 -7
- package/dist/cjs/proto/clarifai/api/resources_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +0 -45222
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +0 -5
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +0 -8217
- package/dist/cjs/proto/clarifai/api/service_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/api/service_pb.js +0 -58616
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +0 -354
- package/dist/cjs/proto/clarifai/api/status/status_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +0 -717
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +0 -60
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +0 -197
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +0 -529
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +0 -327
- package/dist/cjs/proto/clarifai/auth/types/types_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/auth/types/types_pb.js +0 -34
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +0 -88
- package/dist/cjs/resources.d.ts +0 -1
- package/dist/cjs/resources.js +0 -13
- package/dist/cjs/service.d.ts +0 -1
- package/dist/cjs/service.js +0 -13
- package/dist/esm/google/api/annotations_pb.d.ts +0 -1
- package/dist/esm/google/api/annotations_pb.js +0 -32
- package/dist/esm/google/api/http_pb.d.ts +0 -1
- package/dist/esm/google/api/http_pb.js +0 -813
- package/dist/esm/index.d.ts +0 -7
- package/dist/esm/index.js +0 -9
- package/dist/esm/proto/clarifai/api/resources_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +0 -45222
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +0 -5
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +0 -8217
- package/dist/esm/proto/clarifai/api/service_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/api/service_pb.js +0 -58616
- package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +0 -354
- package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/api/status/status_pb.js +0 -717
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +0 -60
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +0 -197
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +0 -529
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +0 -327
- package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +0 -34
- package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +0 -88
- package/dist/esm/resources.d.ts +0 -1
- package/dist/esm/resources.js +0 -1
- package/dist/esm/service.d.ts +0 -1
- package/dist/esm/service.js +0 -1
- package/package.json-E +0 -52
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// source: proto/clarifai/api/utils/extensions.proto
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview
|
|
5
|
-
* @enhanceable
|
|
6
|
-
* @suppress {missingRequire} reports error on implicit type usages.
|
|
7
|
-
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
8
|
-
* field starts with 'MSG_' and isn't a translatable message.
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
// @ts-nocheck
|
|
14
|
-
var jspb = require('google-protobuf');
|
|
15
|
-
var goog = jspb;
|
|
16
|
-
var global = (typeof globalThis !== 'undefined' && globalThis) ||
|
|
17
|
-
(typeof window !== 'undefined' && window) ||
|
|
18
|
-
(typeof global !== 'undefined' && global) ||
|
|
19
|
-
(typeof self !== 'undefined' && self) ||
|
|
20
|
-
(function () { return this; }).call(null) ||
|
|
21
|
-
Function('return this')();
|
|
22
|
-
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
|
23
|
-
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
24
|
-
goog.exportSymbol('proto.clarifai.api.utils.clDefaultFloat', null, global);
|
|
25
|
-
goog.exportSymbol('proto.clarifai.api.utils.clMoretags', null, global);
|
|
26
|
-
goog.exportSymbol('proto.clarifai.api.utils.clShowIfEmpty', null, global);
|
|
27
|
-
/**
|
|
28
|
-
* A tuple of {field number, class constructor} for the extension
|
|
29
|
-
* field named `clShowIfEmpty`.
|
|
30
|
-
* @type {!jspb.ExtensionFieldInfo<boolean>}
|
|
31
|
-
*/
|
|
32
|
-
proto.clarifai.api.utils.clShowIfEmpty = new jspb.ExtensionFieldInfo(50000, { clShowIfEmpty: 0 }, null,
|
|
33
|
-
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
|
|
34
|
-
google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50000] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clShowIfEmpty, jspb.BinaryReader.prototype.readBool, jspb.BinaryWriter.prototype.writeBool, undefined, undefined, false);
|
|
35
|
-
// This registers the extension field with the extended class, so that
|
|
36
|
-
// toObject() will function correctly.
|
|
37
|
-
google_protobuf_descriptor_pb.FieldOptions.extensions[50000] = proto.clarifai.api.utils.clShowIfEmpty;
|
|
38
|
-
/**
|
|
39
|
-
* A tuple of {field number, class constructor} for the extension
|
|
40
|
-
* field named `clMoretags`.
|
|
41
|
-
* @type {!jspb.ExtensionFieldInfo<string>}
|
|
42
|
-
*/
|
|
43
|
-
proto.clarifai.api.utils.clMoretags = new jspb.ExtensionFieldInfo(50001, { clMoretags: 0 }, null,
|
|
44
|
-
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
|
|
45
|
-
google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50001] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clMoretags, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false);
|
|
46
|
-
// This registers the extension field with the extended class, so that
|
|
47
|
-
// toObject() will function correctly.
|
|
48
|
-
google_protobuf_descriptor_pb.FieldOptions.extensions[50001] = proto.clarifai.api.utils.clMoretags;
|
|
49
|
-
/**
|
|
50
|
-
* A tuple of {field number, class constructor} for the extension
|
|
51
|
-
* field named `clDefaultFloat`.
|
|
52
|
-
* @type {!jspb.ExtensionFieldInfo<number>}
|
|
53
|
-
*/
|
|
54
|
-
proto.clarifai.api.utils.clDefaultFloat = new jspb.ExtensionFieldInfo(50010, { clDefaultFloat: 0 }, null,
|
|
55
|
-
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
|
|
56
|
-
google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50010] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clDefaultFloat, jspb.BinaryReader.prototype.readFloat, jspb.BinaryWriter.prototype.writeFloat, undefined, undefined, false);
|
|
57
|
-
// This registers the extension field with the extended class, so that
|
|
58
|
-
// toObject() will function correctly.
|
|
59
|
-
google_protobuf_descriptor_pb.FieldOptions.extensions[50010] = proto.clarifai.api.utils.clDefaultFloat;
|
|
60
|
-
goog.object.extend(exports, proto.clarifai.api.utils);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// source: proto/clarifai/api/utils/matrix.proto
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview
|
|
5
|
-
* @enhanceable
|
|
6
|
-
* @suppress {missingRequire} reports error on implicit type usages.
|
|
7
|
-
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
8
|
-
* field starts with 'MSG_' and isn't a translatable message.
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
// @ts-nocheck
|
|
14
|
-
var jspb = require('google-protobuf');
|
|
15
|
-
var goog = jspb;
|
|
16
|
-
var global = (typeof globalThis !== 'undefined' && globalThis) ||
|
|
17
|
-
(typeof window !== 'undefined' && window) ||
|
|
18
|
-
(typeof global !== 'undefined' && global) ||
|
|
19
|
-
(typeof self !== 'undefined' && self) ||
|
|
20
|
-
(function () { return this; }).call(null) ||
|
|
21
|
-
Function('return this')();
|
|
22
|
-
goog.exportSymbol('proto.MatrixUint64', null, global);
|
|
23
|
-
/**
|
|
24
|
-
* Generated by JsPbCodeGenerator.
|
|
25
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
26
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
27
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
28
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
29
|
-
* valid.
|
|
30
|
-
* @extends {jspb.Message}
|
|
31
|
-
* @constructor
|
|
32
|
-
*/
|
|
33
|
-
proto.MatrixUint64 = function (opt_data) {
|
|
34
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.MatrixUint64.repeatedFields_, null);
|
|
35
|
-
};
|
|
36
|
-
goog.inherits(proto.MatrixUint64, jspb.Message);
|
|
37
|
-
if (goog.DEBUG && !COMPILED) {
|
|
38
|
-
/**
|
|
39
|
-
* @public
|
|
40
|
-
* @override
|
|
41
|
-
*/
|
|
42
|
-
proto.MatrixUint64.displayName = 'proto.MatrixUint64';
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* List of repeated fields within this message type.
|
|
46
|
-
* @private {!Array<number>}
|
|
47
|
-
* @const
|
|
48
|
-
*/
|
|
49
|
-
proto.MatrixUint64.repeatedFields_ = [2];
|
|
50
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
51
|
-
/**
|
|
52
|
-
* Creates an object representation of this proto.
|
|
53
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
54
|
-
* Optional fields that are not set will be set to undefined.
|
|
55
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
56
|
-
* For the list of reserved names please see:
|
|
57
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
58
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
59
|
-
* JSPB instance for transitional soy proto support:
|
|
60
|
-
* http://goto/soy-param-migration
|
|
61
|
-
* @return {!Object}
|
|
62
|
-
*/
|
|
63
|
-
proto.MatrixUint64.prototype.toObject = function (opt_includeInstance) {
|
|
64
|
-
return proto.MatrixUint64.toObject(opt_includeInstance, this);
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Static version of the {@see toObject} method.
|
|
68
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
69
|
-
* the JSPB instance for transitional soy proto support:
|
|
70
|
-
* http://goto/soy-param-migration
|
|
71
|
-
* @param {!proto.MatrixUint64} msg The msg instance to transform.
|
|
72
|
-
* @return {!Object}
|
|
73
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
74
|
-
*/
|
|
75
|
-
proto.MatrixUint64.toObject = function (includeInstance, msg) {
|
|
76
|
-
var f, obj = {
|
|
77
|
-
nCols: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
78
|
-
dataList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
79
|
-
};
|
|
80
|
-
if (includeInstance) {
|
|
81
|
-
obj.$jspbMessageInstance = msg;
|
|
82
|
-
}
|
|
83
|
-
return obj;
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Deserializes binary data (in protobuf wire format).
|
|
88
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
89
|
-
* @return {!proto.MatrixUint64}
|
|
90
|
-
*/
|
|
91
|
-
proto.MatrixUint64.deserializeBinary = function (bytes) {
|
|
92
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
93
|
-
var msg = new proto.MatrixUint64;
|
|
94
|
-
return proto.MatrixUint64.deserializeBinaryFromReader(msg, reader);
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
98
|
-
* given reader into the given message object.
|
|
99
|
-
* @param {!proto.MatrixUint64} msg The message object to deserialize into.
|
|
100
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
101
|
-
* @return {!proto.MatrixUint64}
|
|
102
|
-
*/
|
|
103
|
-
proto.MatrixUint64.deserializeBinaryFromReader = function (msg, reader) {
|
|
104
|
-
while (reader.nextField()) {
|
|
105
|
-
if (reader.isEndGroup()) {
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
var field = reader.getFieldNumber();
|
|
109
|
-
switch (field) {
|
|
110
|
-
case 1:
|
|
111
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
112
|
-
msg.setNCols(value);
|
|
113
|
-
break;
|
|
114
|
-
case 2:
|
|
115
|
-
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint64() : [reader.readUint64()]);
|
|
116
|
-
for (var i = 0; i < values.length; i++) {
|
|
117
|
-
msg.addData(values[i]);
|
|
118
|
-
}
|
|
119
|
-
break;
|
|
120
|
-
default:
|
|
121
|
-
reader.skipField();
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return msg;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
129
|
-
* @return {!Uint8Array}
|
|
130
|
-
*/
|
|
131
|
-
proto.MatrixUint64.prototype.serializeBinary = function () {
|
|
132
|
-
var writer = new jspb.BinaryWriter();
|
|
133
|
-
proto.MatrixUint64.serializeBinaryToWriter(this, writer);
|
|
134
|
-
return writer.getResultBuffer();
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
138
|
-
* format), writing to the given BinaryWriter.
|
|
139
|
-
* @param {!proto.MatrixUint64} message
|
|
140
|
-
* @param {!jspb.BinaryWriter} writer
|
|
141
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
142
|
-
*/
|
|
143
|
-
proto.MatrixUint64.serializeBinaryToWriter = function (message, writer) {
|
|
144
|
-
var f = undefined;
|
|
145
|
-
f = message.getNCols();
|
|
146
|
-
if (f !== 0) {
|
|
147
|
-
writer.writeUint64(1, f);
|
|
148
|
-
}
|
|
149
|
-
f = message.getDataList();
|
|
150
|
-
if (f.length > 0) {
|
|
151
|
-
writer.writePackedUint64(2, f);
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
/**
|
|
155
|
-
* optional uint64 n_cols = 1;
|
|
156
|
-
* @return {number}
|
|
157
|
-
*/
|
|
158
|
-
proto.MatrixUint64.prototype.getNCols = function () {
|
|
159
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* @param {number} value
|
|
163
|
-
* @return {!proto.MatrixUint64} returns this
|
|
164
|
-
*/
|
|
165
|
-
proto.MatrixUint64.prototype.setNCols = function (value) {
|
|
166
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* repeated uint64 data = 2;
|
|
170
|
-
* @return {!Array<number>}
|
|
171
|
-
*/
|
|
172
|
-
proto.MatrixUint64.prototype.getDataList = function () {
|
|
173
|
-
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
174
|
-
};
|
|
175
|
-
/**
|
|
176
|
-
* @param {!Array<number>} value
|
|
177
|
-
* @return {!proto.MatrixUint64} returns this
|
|
178
|
-
*/
|
|
179
|
-
proto.MatrixUint64.prototype.setDataList = function (value) {
|
|
180
|
-
return jspb.Message.setField(this, 2, value || []);
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* @param {number} value
|
|
184
|
-
* @param {number=} opt_index
|
|
185
|
-
* @return {!proto.MatrixUint64} returns this
|
|
186
|
-
*/
|
|
187
|
-
proto.MatrixUint64.prototype.addData = function (value, opt_index) {
|
|
188
|
-
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
189
|
-
};
|
|
190
|
-
/**
|
|
191
|
-
* Clears the list making it empty but non-null.
|
|
192
|
-
* @return {!proto.MatrixUint64} returns this
|
|
193
|
-
*/
|
|
194
|
-
proto.MatrixUint64.prototype.clearDataList = function () {
|
|
195
|
-
return this.setDataList([]);
|
|
196
|
-
};
|
|
197
|
-
goog.object.extend(exports, proto);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|