clarifai-web-grpc 9.6.1 → 9.10.4

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.
Files changed (79) hide show
  1. package/.github/workflows/ci.yml +25 -17
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/dist/cjs/google/api/annotations_pb.d.ts +1 -0
  5. package/dist/cjs/google/api/annotations_pb.js +32 -0
  6. package/dist/cjs/google/api/http_pb.d.ts +1 -0
  7. package/dist/cjs/google/api/http_pb.js +813 -0
  8. package/dist/cjs/index.d.ts +7 -0
  9. package/dist/cjs/index.js +2 -1
  10. package/dist/cjs/proto/clarifai/api/resources_pb.d.ts +1 -0
  11. package/dist/cjs/proto/clarifai/api/resources_pb.js +51179 -0
  12. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  13. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +9103 -0
  14. package/dist/cjs/proto/clarifai/api/service_pb.d.ts +1 -0
  15. package/dist/cjs/proto/clarifai/api/service_pb.js +67405 -0
  16. package/dist/cjs/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
  17. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +376 -0
  18. package/dist/cjs/proto/clarifai/api/status/status_pb.d.ts +1 -0
  19. package/dist/cjs/proto/clarifai/api/status/status_pb.js +717 -0
  20. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
  21. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +60 -0
  22. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  23. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +197 -0
  24. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
  25. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +529 -0
  26. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  27. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +332 -0
  28. package/dist/cjs/proto/clarifai/auth/types/types_pb.d.ts +1 -0
  29. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +34 -0
  30. package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
  31. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +88 -0
  32. package/dist/cjs/resources.d.ts +1 -0
  33. package/dist/cjs/resources.js +13 -0
  34. package/dist/cjs/service.d.ts +1 -0
  35. package/dist/cjs/service.js +13 -0
  36. package/dist/esm/google/api/annotations_pb.d.ts +1 -0
  37. package/dist/esm/google/api/annotations_pb.js +32 -0
  38. package/dist/esm/google/api/http_pb.d.ts +1 -0
  39. package/dist/esm/google/api/http_pb.js +813 -0
  40. package/dist/esm/index.d.ts +7 -0
  41. package/dist/esm/index.js +10 -0
  42. package/dist/esm/proto/clarifai/api/resources_pb.d.ts +1 -0
  43. package/dist/esm/proto/clarifai/api/resources_pb.js +51179 -0
  44. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  45. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +9103 -0
  46. package/dist/esm/proto/clarifai/api/service_pb.d.ts +1 -0
  47. package/dist/esm/proto/clarifai/api/service_pb.js +67405 -0
  48. package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
  49. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +376 -0
  50. package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +1 -0
  51. package/dist/esm/proto/clarifai/api/status/status_pb.js +717 -0
  52. package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
  53. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +60 -0
  54. package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  55. package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +197 -0
  56. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
  57. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +529 -0
  58. package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  59. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +332 -0
  60. package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +1 -0
  61. package/dist/esm/proto/clarifai/auth/types/types_pb.js +34 -0
  62. package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
  63. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +88 -0
  64. package/dist/esm/resources.d.ts +1 -0
  65. package/dist/esm/resources.js +1 -0
  66. package/dist/esm/service.d.ts +1 -0
  67. package/dist/esm/service.js +1 -0
  68. package/index.ts +2 -1
  69. package/package.json +1 -1
  70. package/proto/clarifai/api/resources_pb.d.ts +352 -27
  71. package/proto/clarifai/api/resources_pb.js +2840 -232
  72. package/proto/clarifai/api/service_grpc_web_pb.d.ts +96 -0
  73. package/proto/clarifai/api/service_grpc_web_pb.js +488 -0
  74. package/proto/clarifai/api/service_pb.d.ts +742 -46
  75. package/proto/clarifai/api/service_pb.js +12437 -6437
  76. package/proto/clarifai/api/status/status_code_pb.d.ts +7 -1
  77. package/proto/clarifai/api/status/status_code_pb.js +7 -1
  78. package/proto/clarifai/auth/scope/scope_pb.d.ts +5 -0
  79. package/proto/clarifai/auth/scope/scope_pb.js +6 -1
@@ -0,0 +1,60 @@
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);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,197 @@
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);