clarifai-web-grpc 9.6.1 → 9.10.5

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 +51218 -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 +67552 -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 +51218 -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 +67552 -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 +359 -27
  71. package/proto/clarifai/api/resources_pb.js +2892 -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 +770 -50
  75. package/proto/clarifai/api/service_pb.js +29397 -23205
  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,332 @@
1
+ "use strict";
2
+ // source: proto/clarifai/auth/scope/scope.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.auth.scope.S', null, global);
25
+ goog.exportSymbol('proto.clarifai.auth.scope.ScopeList', null, global);
26
+ goog.exportSymbol('proto.clarifai.auth.scope.clarfaiExposed', null, global);
27
+ goog.exportSymbol('proto.clarifai.auth.scope.clarifaiDependingScopesList', null, global);
28
+ /**
29
+ * Generated by JsPbCodeGenerator.
30
+ * @param {Array=} opt_data Optional initial data array, typically from a
31
+ * server response, or constructed directly in Javascript. The array is used
32
+ * in place and becomes part of the constructed object. It is not cloned.
33
+ * If no data is provided, the constructed object will be empty, but still
34
+ * valid.
35
+ * @extends {jspb.Message}
36
+ * @constructor
37
+ */
38
+ proto.clarifai.auth.scope.ScopeList = function (opt_data) {
39
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.auth.scope.ScopeList.repeatedFields_, null);
40
+ };
41
+ goog.inherits(proto.clarifai.auth.scope.ScopeList, jspb.Message);
42
+ if (goog.DEBUG && !COMPILED) {
43
+ /**
44
+ * @public
45
+ * @override
46
+ */
47
+ proto.clarifai.auth.scope.ScopeList.displayName = 'proto.clarifai.auth.scope.ScopeList';
48
+ }
49
+ /**
50
+ * List of repeated fields within this message type.
51
+ * @private {!Array<number>}
52
+ * @const
53
+ */
54
+ proto.clarifai.auth.scope.ScopeList.repeatedFields_ = [1, 2];
55
+ if (jspb.Message.GENERATE_TO_OBJECT) {
56
+ /**
57
+ * Creates an object representation of this proto.
58
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
59
+ * Optional fields that are not set will be set to undefined.
60
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61
+ * For the list of reserved names please see:
62
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
63
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
64
+ * JSPB instance for transitional soy proto support:
65
+ * http://goto/soy-param-migration
66
+ * @return {!Object}
67
+ */
68
+ proto.clarifai.auth.scope.ScopeList.prototype.toObject = function (opt_includeInstance) {
69
+ return proto.clarifai.auth.scope.ScopeList.toObject(opt_includeInstance, this);
70
+ };
71
+ /**
72
+ * Static version of the {@see toObject} method.
73
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
74
+ * the JSPB instance for transitional soy proto support:
75
+ * http://goto/soy-param-migration
76
+ * @param {!proto.clarifai.auth.scope.ScopeList} msg The msg instance to transform.
77
+ * @return {!Object}
78
+ * @suppress {unusedLocalVariables} f is only used for nested messages
79
+ */
80
+ proto.clarifai.auth.scope.ScopeList.toObject = function (includeInstance, msg) {
81
+ var f, obj = {
82
+ scopesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
83
+ endpointsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
84
+ };
85
+ if (includeInstance) {
86
+ obj.$jspbMessageInstance = msg;
87
+ }
88
+ return obj;
89
+ };
90
+ }
91
+ /**
92
+ * Deserializes binary data (in protobuf wire format).
93
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
94
+ * @return {!proto.clarifai.auth.scope.ScopeList}
95
+ */
96
+ proto.clarifai.auth.scope.ScopeList.deserializeBinary = function (bytes) {
97
+ var reader = new jspb.BinaryReader(bytes);
98
+ var msg = new proto.clarifai.auth.scope.ScopeList;
99
+ return proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader(msg, reader);
100
+ };
101
+ /**
102
+ * Deserializes binary data (in protobuf wire format) from the
103
+ * given reader into the given message object.
104
+ * @param {!proto.clarifai.auth.scope.ScopeList} msg The message object to deserialize into.
105
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
106
+ * @return {!proto.clarifai.auth.scope.ScopeList}
107
+ */
108
+ proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader = function (msg, reader) {
109
+ while (reader.nextField()) {
110
+ if (reader.isEndGroup()) {
111
+ break;
112
+ }
113
+ var field = reader.getFieldNumber();
114
+ switch (field) {
115
+ case 1:
116
+ var values = /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
117
+ for (var i = 0; i < values.length; i++) {
118
+ msg.addScopes(values[i]);
119
+ }
120
+ break;
121
+ case 2:
122
+ var value = /** @type {string} */ (reader.readString());
123
+ msg.addEndpoints(value);
124
+ break;
125
+ default:
126
+ reader.skipField();
127
+ break;
128
+ }
129
+ }
130
+ return msg;
131
+ };
132
+ /**
133
+ * Serializes the message to binary data (in protobuf wire format).
134
+ * @return {!Uint8Array}
135
+ */
136
+ proto.clarifai.auth.scope.ScopeList.prototype.serializeBinary = function () {
137
+ var writer = new jspb.BinaryWriter();
138
+ proto.clarifai.auth.scope.ScopeList.serializeBinaryToWriter(this, writer);
139
+ return writer.getResultBuffer();
140
+ };
141
+ /**
142
+ * Serializes the given message to binary data (in protobuf wire
143
+ * format), writing to the given BinaryWriter.
144
+ * @param {!proto.clarifai.auth.scope.ScopeList} message
145
+ * @param {!jspb.BinaryWriter} writer
146
+ * @suppress {unusedLocalVariables} f is only used for nested messages
147
+ */
148
+ proto.clarifai.auth.scope.ScopeList.serializeBinaryToWriter = function (message, writer) {
149
+ var f = undefined;
150
+ f = message.getScopesList();
151
+ if (f.length > 0) {
152
+ writer.writePackedEnum(1, f);
153
+ }
154
+ f = message.getEndpointsList();
155
+ if (f.length > 0) {
156
+ writer.writeRepeatedString(2, f);
157
+ }
158
+ };
159
+ /**
160
+ * repeated S scopes = 1;
161
+ * @return {!Array<!proto.clarifai.auth.scope.S>}
162
+ */
163
+ proto.clarifai.auth.scope.ScopeList.prototype.getScopesList = function () {
164
+ return /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (jspb.Message.getRepeatedField(this, 1));
165
+ };
166
+ /**
167
+ * @param {!Array<!proto.clarifai.auth.scope.S>} value
168
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
169
+ */
170
+ proto.clarifai.auth.scope.ScopeList.prototype.setScopesList = function (value) {
171
+ return jspb.Message.setField(this, 1, value || []);
172
+ };
173
+ /**
174
+ * @param {!proto.clarifai.auth.scope.S} value
175
+ * @param {number=} opt_index
176
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
177
+ */
178
+ proto.clarifai.auth.scope.ScopeList.prototype.addScopes = function (value, opt_index) {
179
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
180
+ };
181
+ /**
182
+ * Clears the list making it empty but non-null.
183
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
184
+ */
185
+ proto.clarifai.auth.scope.ScopeList.prototype.clearScopesList = function () {
186
+ return this.setScopesList([]);
187
+ };
188
+ /**
189
+ * repeated string endpoints = 2;
190
+ * @return {!Array<string>}
191
+ */
192
+ proto.clarifai.auth.scope.ScopeList.prototype.getEndpointsList = function () {
193
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
194
+ };
195
+ /**
196
+ * @param {!Array<string>} value
197
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
198
+ */
199
+ proto.clarifai.auth.scope.ScopeList.prototype.setEndpointsList = function (value) {
200
+ return jspb.Message.setField(this, 2, value || []);
201
+ };
202
+ /**
203
+ * @param {string} value
204
+ * @param {number=} opt_index
205
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
206
+ */
207
+ proto.clarifai.auth.scope.ScopeList.prototype.addEndpoints = function (value, opt_index) {
208
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
209
+ };
210
+ /**
211
+ * Clears the list making it empty but non-null.
212
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
213
+ */
214
+ proto.clarifai.auth.scope.ScopeList.prototype.clearEndpointsList = function () {
215
+ return this.setEndpointsList([]);
216
+ };
217
+ /**
218
+ * @enum {number}
219
+ */
220
+ proto.clarifai.auth.scope.S = {
221
+ UNDEF: 0,
222
+ ALL: 1,
223
+ PREDICT: 2,
224
+ INPUTS_ADD: 4,
225
+ INPUTS_GET: 5,
226
+ INPUTS_PATCH: 7,
227
+ INPUTS_DELETE: 8,
228
+ OUTPUTS_PATCH: 9,
229
+ CONCEPTS_ADD: 10,
230
+ CONCEPTS_GET: 11,
231
+ CONCEPTS_PATCH: 12,
232
+ CONCEPTS_DELETE: 13,
233
+ MODELS_ADD: 14,
234
+ MODELS_GET: 15,
235
+ MODELS_PATCH: 16,
236
+ MODELS_DELETE: 17,
237
+ MODELS_TRAIN: 26,
238
+ MODELS_SYNC: 27,
239
+ WORKFLOWS_ADD: 18,
240
+ WORKFLOWS_GET: 19,
241
+ WORKFLOWS_PATCH: 20,
242
+ WORKFLOWS_DELETE: 21,
243
+ WORKFLOWMETRICS_GET: 96,
244
+ WORKFLOWMETRICS_ADD: 97,
245
+ WORKFLOWMETRICS_DELETE: 98,
246
+ TSNEVISUALIZATIONS_ADD: 24,
247
+ TSNEVISUALIZATIONS_GET: 25,
248
+ ANNOTATIONS_ADD: 37,
249
+ ANNOTATIONS_GET: 38,
250
+ ANNOTATIONS_PATCH: 39,
251
+ ANNOTATIONS_DELETE: 40,
252
+ COLLECTORS_ADD: 41,
253
+ COLLECTORS_GET: 42,
254
+ COLLECTORS_DELETE: 43,
255
+ APPS_ADD: 44,
256
+ APPS_GET: 45,
257
+ APPS_DELETE: 46,
258
+ KEYS_ADD: 47,
259
+ KEYS_GET: 48,
260
+ KEYS_DELETE: 49,
261
+ COLLABORATORS_ADD: 51,
262
+ COLLABORATORS_GET: 50,
263
+ COLLABORATORS_DELETE: 52,
264
+ METRICS_ADD: 54,
265
+ METRICS_GET: 53,
266
+ METRICS_DELETE: 63,
267
+ TASKS_ADD: 55,
268
+ TASKS_GET: 56,
269
+ TASKS_DELETE: 70,
270
+ PASSWORDPOLICIES_ADD: 57,
271
+ PASSWORDPOLICIES_GET: 58,
272
+ PASSWORDPOLICIES_DELETE: 59,
273
+ LABELORDERS_GET: 67,
274
+ LABELORDERS_ADD: 68,
275
+ LABELORDERS_DELETE: 69,
276
+ USERFEATURECONFIGS_GET: 71,
277
+ FINDDUPLICATEANNOTATIONSJOBS_ADD: 102,
278
+ FINDDUPLICATEANNOTATIONSJOBS_GET: 103,
279
+ FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104,
280
+ DATASETS_GET: 105,
281
+ DATASETS_ADD: 106,
282
+ DATASETS_DELETE: 107,
283
+ MODULES_ADD: 108,
284
+ MODULES_GET: 109,
285
+ MODULES_DELETE: 110,
286
+ INSTALLEDMODULEVERSIONS_ADD: 111,
287
+ INSTALLEDMODULEVERSIONS_GET: 112,
288
+ INSTALLEDMODULEVERSIONS_DELETE: 113,
289
+ SEARCH: 3,
290
+ SAVEDSEARCH_GET: 114,
291
+ SAVEDSEARCH_ADD: 115,
292
+ SAVEDSEARCH_DELETE: 116,
293
+ MODELVERSIONPUBLICATIONS_ADD: 117,
294
+ MODELVERSIONPUBLICATIONS_DELETE: 118,
295
+ WORKFLOWPUBLICATIONS_ADD: 119,
296
+ WORKFLOWPUBLICATIONS_DELETE: 120,
297
+ BULKOPERATION_ADD: 121,
298
+ BULKOPERATION_GET: 122,
299
+ BULKOPERATION_DELETE: 123,
300
+ HISTORICALUSAGE_GET: 124,
301
+ UPLOADS_GET: 128,
302
+ UPLOADS_ADD: 129,
303
+ UPLOADS_DELETE: 130,
304
+ RUNNERS_GET: 131,
305
+ RUNNERS_ADD: 132,
306
+ RUNNERS_DELETE: 133,
307
+ RUNNERITEMS_GET: 134,
308
+ RUNNERITEMS_ADD: 135
309
+ };
310
+ /**
311
+ * A tuple of {field number, class constructor} for the extension
312
+ * field named `clarfaiExposed`.
313
+ * @type {!jspb.ExtensionFieldInfo<boolean>}
314
+ */
315
+ proto.clarifai.auth.scope.clarfaiExposed = new jspb.ExtensionFieldInfo(80318, { clarfaiExposed: 0 }, null,
316
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
317
+ google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[80318] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.auth.scope.clarfaiExposed, jspb.BinaryReader.prototype.readBool, jspb.BinaryWriter.prototype.writeBool, undefined, undefined, false);
318
+ // This registers the extension field with the extended class, so that
319
+ // toObject() will function correctly.
320
+ google_protobuf_descriptor_pb.EnumValueOptions.extensions[80318] = proto.clarifai.auth.scope.clarfaiExposed;
321
+ /**
322
+ * A tuple of {field number, class constructor} for the extension
323
+ * field named `clarifaiDependingScopesList`.
324
+ * @type {!jspb.ExtensionFieldInfo<!Array<!proto.clarifai.auth.scope.S>>}
325
+ */
326
+ proto.clarifai.auth.scope.clarifaiDependingScopesList = new jspb.ExtensionFieldInfo(80319, { clarifaiDependingScopesList: 0 }, null,
327
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 1);
328
+ google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[80319] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.auth.scope.clarifaiDependingScopesList, jspb.BinaryReader.prototype.readPackedEnum, jspb.BinaryWriter.prototype.writePackedEnum, undefined, undefined, true);
329
+ // This registers the extension field with the extended class, so that
330
+ // toObject() will function correctly.
331
+ google_protobuf_descriptor_pb.EnumValueOptions.extensions[80319] = proto.clarifai.auth.scope.clarifaiDependingScopesList;
332
+ goog.object.extend(exports, proto.clarifai.auth.scope);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // source: proto/clarifai/auth/types/types.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.clarifai.auth.types.AuthType', null, global);
23
+ /**
24
+ * @enum {number}
25
+ */
26
+ proto.clarifai.auth.types.AuthType = {
27
+ UNDEF: 0,
28
+ NOAUTH: 1,
29
+ KEYAUTH: 2,
30
+ SESSIONTOKENAUTH: 3,
31
+ ADMINAUTH: 4,
32
+ PATAUTH: 5
33
+ };
34
+ goog.object.extend(exports, proto.clarifai.auth.types);
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ // source: proto/clarifai/auth/util/extension.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 proto_clarifai_auth_scope_scope_pb = require('../../../../proto/clarifai/auth/scope/scope_pb.js');
23
+ goog.object.extend(proto, proto_clarifai_auth_scope_scope_pb);
24
+ var proto_clarifai_auth_types_types_pb = require('../../../../proto/clarifai/auth/types/types_pb.js');
25
+ goog.object.extend(proto, proto_clarifai_auth_types_types_pb);
26
+ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
27
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
28
+ goog.exportSymbol('proto.clarifai.auth.util.clAuthType', null, global);
29
+ goog.exportSymbol('proto.clarifai.auth.util.clDependingScopesList', null, global);
30
+ goog.exportSymbol('proto.clarifai.auth.util.clPrivateField', null, global);
31
+ goog.exportSymbol('proto.clarifai.auth.util.clPrivateMessage', null, global);
32
+ goog.exportSymbol('proto.clarifai.auth.util.clPrivateRpc', null, global);
33
+ /**
34
+ * A tuple of {field number, class constructor} for the extension
35
+ * field named `clPrivateField`.
36
+ * @type {!jspb.ExtensionFieldInfo<boolean>}
37
+ */
38
+ proto.clarifai.auth.util.clPrivateField = new jspb.ExtensionFieldInfo(80320, { clPrivateField: 0 }, null,
39
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
40
+ google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[80320] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.auth.util.clPrivateField, jspb.BinaryReader.prototype.readBool, jspb.BinaryWriter.prototype.writeBool, undefined, undefined, false);
41
+ // This registers the extension field with the extended class, so that
42
+ // toObject() will function correctly.
43
+ google_protobuf_descriptor_pb.FieldOptions.extensions[80320] = proto.clarifai.auth.util.clPrivateField;
44
+ /**
45
+ * A tuple of {field number, class constructor} for the extension
46
+ * field named `clPrivateRpc`.
47
+ * @type {!jspb.ExtensionFieldInfo<boolean>}
48
+ */
49
+ proto.clarifai.auth.util.clPrivateRpc = new jspb.ExtensionFieldInfo(80321, { clPrivateRpc: 0 }, null,
50
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
51
+ google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[80321] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.auth.util.clPrivateRpc, jspb.BinaryReader.prototype.readBool, jspb.BinaryWriter.prototype.writeBool, undefined, undefined, false);
52
+ // This registers the extension field with the extended class, so that
53
+ // toObject() will function correctly.
54
+ google_protobuf_descriptor_pb.MethodOptions.extensions[80321] = proto.clarifai.auth.util.clPrivateRpc;
55
+ /**
56
+ * A tuple of {field number, class constructor} for the extension
57
+ * field named `clDependingScopesList`.
58
+ * @type {!jspb.ExtensionFieldInfo<!Array<!proto.clarifai.auth.scope.S>>}
59
+ */
60
+ proto.clarifai.auth.util.clDependingScopesList = new jspb.ExtensionFieldInfo(80322, { clDependingScopesList: 0 }, null,
61
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 1);
62
+ google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[80322] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.auth.util.clDependingScopesList, jspb.BinaryReader.prototype.readPackedEnum, jspb.BinaryWriter.prototype.writePackedEnum, undefined, undefined, true);
63
+ // This registers the extension field with the extended class, so that
64
+ // toObject() will function correctly.
65
+ google_protobuf_descriptor_pb.MethodOptions.extensions[80322] = proto.clarifai.auth.util.clDependingScopesList;
66
+ /**
67
+ * A tuple of {field number, class constructor} for the extension
68
+ * field named `clAuthType`.
69
+ * @type {!jspb.ExtensionFieldInfo<!proto.clarifai.auth.types.AuthType>}
70
+ */
71
+ proto.clarifai.auth.util.clAuthType = new jspb.ExtensionFieldInfo(80323, { clAuthType: 0 }, null,
72
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
73
+ google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[80323] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.auth.util.clAuthType, jspb.BinaryReader.prototype.readEnum, jspb.BinaryWriter.prototype.writeEnum, undefined, undefined, false);
74
+ // This registers the extension field with the extended class, so that
75
+ // toObject() will function correctly.
76
+ google_protobuf_descriptor_pb.MethodOptions.extensions[80323] = proto.clarifai.auth.util.clAuthType;
77
+ /**
78
+ * A tuple of {field number, class constructor} for the extension
79
+ * field named `clPrivateMessage`.
80
+ * @type {!jspb.ExtensionFieldInfo<boolean>}
81
+ */
82
+ proto.clarifai.auth.util.clPrivateMessage = new jspb.ExtensionFieldInfo(80324, { clPrivateMessage: 0 }, null,
83
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
84
+ google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[80324] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.auth.util.clPrivateMessage, jspb.BinaryReader.prototype.readBool, jspb.BinaryWriter.prototype.writeBool, undefined, undefined, false);
85
+ // This registers the extension field with the extended class, so that
86
+ // toObject() will function correctly.
87
+ google_protobuf_descriptor_pb.MessageOptions.extensions[80324] = proto.clarifai.auth.util.clPrivateMessage;
88
+ goog.object.extend(exports, proto.clarifai.auth.util);
@@ -0,0 +1 @@
1
+ export * from './proto/clarifai/api/resources_pb';
@@ -0,0 +1 @@
1
+ export * from './proto/clarifai/api/resources_pb';
@@ -0,0 +1 @@
1
+ export * from './proto/clarifai/api/service_pb';
@@ -0,0 +1 @@
1
+ export * from './proto/clarifai/api/service_pb';
package/index.ts CHANGED
@@ -2,7 +2,8 @@ import { V2Client, V2PromiseClient } from './proto/clarifai/api/service_grpc_web
2
2
 
3
3
  export class ClarifaiStub {
4
4
  static grpc (hostname = 'api.clarifai.com') {
5
- return new V2Client(hostname)
5
+ const options = { 'grpc.max_receive_message_length': 128 * 1024 * 1024 } // 128 MB
6
+ return new V2Client(hostname, null, options)
6
7
  }
7
8
  }
8
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarifai-web-grpc",
3
- "version": "9.6.1",
3
+ "version": "9.10.5",
4
4
  "description": "The official Clarifai gRPC-web client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",