clarifai-web-grpc 1.1.7 → 1.1.8

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 (113) hide show
  1. package/.github/workflows/ci.yml +2 -0
  2. package/.husky/pre-commit +4 -0
  3. package/.mocharc.yml +5 -0
  4. package/CHANGELOG.md +10 -4
  5. package/{lib → dist/cjs}/google/api/annotations_pb.d.ts +0 -0
  6. package/{src → dist/cjs}/google/api/annotations_pb.js +4 -19
  7. package/{lib → dist/cjs}/google/api/http_pb.d.ts +0 -0
  8. package/dist/cjs/google/api/http_pb.js +813 -0
  9. package/{lib → dist/cjs}/index.d.ts +0 -0
  10. package/dist/cjs/index.js +11 -0
  11. package/dist/cjs/proto/clarifai/api/resources_pb.d.ts +1 -0
  12. package/dist/cjs/proto/clarifai/api/resources_pb.js +32957 -0
  13. package/{lib → dist/cjs}/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -0
  14. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +908 -0
  15. package/dist/cjs/proto/clarifai/api/service_pb.d.ts +1 -0
  16. package/dist/cjs/proto/clarifai/api/service_pb.js +38791 -0
  17. package/dist/cjs/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
  18. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +312 -0
  19. package/dist/cjs/proto/clarifai/api/status/status_pb.d.ts +1 -0
  20. package/dist/cjs/proto/clarifai/api/status/status_pb.js +473 -0
  21. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
  22. package/{src → dist/cjs}/proto/clarifai/api/utils/extensions_pb.js +10 -53
  23. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
  24. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +521 -0
  25. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  26. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +294 -0
  27. package/dist/cjs/proto/clarifai/auth/types/types_pb.d.ts +1 -0
  28. package/{src → dist/cjs}/proto/clarifai/auth/types/types_pb.js +7 -9
  29. package/dist/cjs/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
  30. package/{src → dist/cjs}/proto/clarifai/auth/util/extension_pb.js +16 -87
  31. package/{lib → dist/cjs}/resources.d.ts +1 -1
  32. package/dist/cjs/resources.js +47 -0
  33. package/{lib → dist/cjs}/service.d.ts +0 -0
  34. package/dist/cjs/service.js +13 -0
  35. package/dist/esm/google/api/annotations_pb.d.ts +1 -0
  36. package/dist/esm/google/api/annotations_pb.js +32 -0
  37. package/dist/esm/google/api/http_pb.d.ts +1 -0
  38. package/dist/esm/google/api/http_pb.js +813 -0
  39. package/dist/esm/index.d.ts +5 -0
  40. package/{lib → dist/esm}/index.js +0 -0
  41. package/dist/esm/proto/clarifai/api/resources_pb.d.ts +1 -0
  42. package/dist/esm/proto/clarifai/api/resources_pb.js +32957 -0
  43. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +275 -0
  44. package/{lib → dist/esm}/proto/clarifai/api/serviceServiceClientPb.js +0 -0
  45. package/dist/esm/proto/clarifai/api/service_pb.d.ts +1 -0
  46. package/dist/esm/proto/clarifai/api/service_pb.js +38791 -0
  47. package/dist/esm/proto/clarifai/api/status/status_code_pb.d.ts +1 -0
  48. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +312 -0
  49. package/dist/esm/proto/clarifai/api/status/status_pb.d.ts +1 -0
  50. package/dist/esm/proto/clarifai/api/status/status_pb.js +473 -0
  51. package/dist/esm/proto/clarifai/api/utils/extensions_pb.d.ts +1 -0
  52. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +52 -0
  53. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -0
  54. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +521 -0
  55. package/dist/esm/proto/clarifai/auth/scope/scope_pb.d.ts +1 -0
  56. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +294 -0
  57. package/dist/esm/proto/clarifai/auth/types/types_pb.d.ts +1 -0
  58. package/dist/esm/proto/clarifai/auth/types/types_pb.js +26 -0
  59. package/dist/esm/proto/clarifai/auth/util/extension_pb.d.ts +1 -0
  60. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +80 -0
  61. package/dist/esm/resources.d.ts +12 -0
  62. package/{lib → dist/esm}/resources.js +0 -0
  63. package/{lib/service.js → dist/esm/service.d.ts} +0 -0
  64. package/dist/esm/service.js +1 -0
  65. package/{lib/google → google}/api/annotations_grpc_pb.js +0 -0
  66. package/{lib/google → google}/api/annotations_pb.js +0 -0
  67. package/{lib/google → google}/api/http_grpc_pb.js +0 -0
  68. package/{lib/google → google}/api/http_pb.js +0 -0
  69. package/package.json +21 -25
  70. package/{lib/proto → proto}/clarifai/api/resources_pb.d.ts +0 -0
  71. package/{lib/proto → proto}/clarifai/api/resources_pb.js +0 -0
  72. package/{lib/proto → proto}/clarifai/api/serviceServiceClientPb.ts +0 -0
  73. package/{lib/proto → proto}/clarifai/api/service_pb.d.ts +0 -0
  74. package/{lib/proto → proto}/clarifai/api/service_pb.js +0 -0
  75. package/{lib/proto → proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
  76. package/{lib/proto → proto}/clarifai/api/status/status_code_pb.js +0 -0
  77. package/{lib/proto → proto}/clarifai/api/status/status_pb.d.ts +0 -0
  78. package/{lib/proto → proto}/clarifai/api/status/status_pb.js +0 -0
  79. package/{lib/proto → proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
  80. package/{lib/proto → proto}/clarifai/api/utils/extensions_pb.js +0 -0
  81. package/{lib/proto → proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
  82. package/{lib/proto → proto}/clarifai/api/utils/test_proto_pb.js +0 -0
  83. package/{lib/proto → proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
  84. package/{lib/proto → proto}/clarifai/auth/scope/scope_pb.js +0 -0
  85. package/{lib/proto → proto}/clarifai/auth/types/types_pb.d.ts +0 -0
  86. package/{lib/proto → proto}/clarifai/auth/types/types_pb.js +0 -0
  87. package/{lib/proto → proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
  88. package/{lib/proto → proto}/clarifai/auth/util/extension_pb.js +0 -0
  89. package/tests/basic.test.ts +41 -0
  90. package/tests/helpers.test.ts +47 -0
  91. package/tsconfig.cjs.json +7 -0
  92. package/tsconfig.json +8 -7
  93. package/lib/google/api/annotations_grpc_pb.d.ts +0 -0
  94. package/lib/google/api/http_grpc_pb.d.ts +0 -0
  95. package/src/google/api/annotations_grpc_pb.js +0 -1
  96. package/src/google/api/http_grpc_pb.js +0 -1
  97. package/src/google/api/http_pb.js +0 -1005
  98. package/src/proto/clarifai/api/resources_pb.d.ts +0 -5052
  99. package/src/proto/clarifai/api/resources_pb.js +0 -41204
  100. package/src/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
  101. package/src/proto/clarifai/api/service_pb.d.ts +0 -5582
  102. package/src/proto/clarifai/api/service_pb.js +0 -47897
  103. package/src/proto/clarifai/api/status/status_code_pb.d.ts +0 -296
  104. package/src/proto/clarifai/api/status/status_code_pb.js +0 -314
  105. package/src/proto/clarifai/api/status/status_pb.d.ts +0 -73
  106. package/src/proto/clarifai/api/status/status_pb.js +0 -580
  107. package/src/proto/clarifai/api/utils/extensions_pb.d.ts +0 -4
  108. package/src/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -81
  109. package/src/proto/clarifai/api/utils/test_proto_pb.js +0 -640
  110. package/src/proto/clarifai/auth/scope/scope_pb.d.ts +0 -92
  111. package/src/proto/clarifai/auth/scope/scope_pb.js +0 -363
  112. package/src/proto/clarifai/auth/types/types_pb.d.ts +0 -10
  113. package/src/proto/clarifai/auth/util/extension_pb.d.ts +0 -6
@@ -0,0 +1,294 @@
1
+ "use strict";
2
+ // source: proto/clarifai/auth/scope/scope.proto
3
+ /**
4
+ * @fileoverview
5
+ * @enhanceable
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ var jspb = require('google-protobuf');
12
+ var goog = jspb;
13
+ var global = Function('return this')();
14
+ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
15
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
16
+ goog.exportSymbol('proto.clarifai.auth.scope.S', null, global);
17
+ goog.exportSymbol('proto.clarifai.auth.scope.ScopeList', null, global);
18
+ goog.exportSymbol('proto.clarifai.auth.scope.clarfaiExposed', null, global);
19
+ goog.exportSymbol('proto.clarifai.auth.scope.clarifaiDependingScopesList', null, global);
20
+ /**
21
+ * Generated by JsPbCodeGenerator.
22
+ * @param {Array=} opt_data Optional initial data array, typically from a
23
+ * server response, or constructed directly in Javascript. The array is used
24
+ * in place and becomes part of the constructed object. It is not cloned.
25
+ * If no data is provided, the constructed object will be empty, but still
26
+ * valid.
27
+ * @extends {jspb.Message}
28
+ * @constructor
29
+ */
30
+ proto.clarifai.auth.scope.ScopeList = function (opt_data) {
31
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.auth.scope.ScopeList.repeatedFields_, null);
32
+ };
33
+ goog.inherits(proto.clarifai.auth.scope.ScopeList, jspb.Message);
34
+ if (goog.DEBUG && !COMPILED) {
35
+ /**
36
+ * @public
37
+ * @override
38
+ */
39
+ proto.clarifai.auth.scope.ScopeList.displayName = 'proto.clarifai.auth.scope.ScopeList';
40
+ }
41
+ /**
42
+ * List of repeated fields within this message type.
43
+ * @private {!Array<number>}
44
+ * @const
45
+ */
46
+ proto.clarifai.auth.scope.ScopeList.repeatedFields_ = [1, 2];
47
+ if (jspb.Message.GENERATE_TO_OBJECT) {
48
+ /**
49
+ * Creates an object representation of this proto.
50
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
51
+ * Optional fields that are not set will be set to undefined.
52
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53
+ * For the list of reserved names please see:
54
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
55
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
56
+ * JSPB instance for transitional soy proto support:
57
+ * http://goto/soy-param-migration
58
+ * @return {!Object}
59
+ */
60
+ proto.clarifai.auth.scope.ScopeList.prototype.toObject = function (opt_includeInstance) {
61
+ return proto.clarifai.auth.scope.ScopeList.toObject(opt_includeInstance, this);
62
+ };
63
+ /**
64
+ * Static version of the {@see toObject} method.
65
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
66
+ * the JSPB instance for transitional soy proto support:
67
+ * http://goto/soy-param-migration
68
+ * @param {!proto.clarifai.auth.scope.ScopeList} msg The msg instance to transform.
69
+ * @return {!Object}
70
+ * @suppress {unusedLocalVariables} f is only used for nested messages
71
+ */
72
+ proto.clarifai.auth.scope.ScopeList.toObject = function (includeInstance, msg) {
73
+ var f, obj = {
74
+ scopesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
75
+ endpointsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
76
+ };
77
+ if (includeInstance) {
78
+ obj.$jspbMessageInstance = msg;
79
+ }
80
+ return obj;
81
+ };
82
+ }
83
+ /**
84
+ * Deserializes binary data (in protobuf wire format).
85
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
86
+ * @return {!proto.clarifai.auth.scope.ScopeList}
87
+ */
88
+ proto.clarifai.auth.scope.ScopeList.deserializeBinary = function (bytes) {
89
+ var reader = new jspb.BinaryReader(bytes);
90
+ var msg = new proto.clarifai.auth.scope.ScopeList;
91
+ return proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader(msg, reader);
92
+ };
93
+ /**
94
+ * Deserializes binary data (in protobuf wire format) from the
95
+ * given reader into the given message object.
96
+ * @param {!proto.clarifai.auth.scope.ScopeList} msg The message object to deserialize into.
97
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
98
+ * @return {!proto.clarifai.auth.scope.ScopeList}
99
+ */
100
+ proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader = function (msg, reader) {
101
+ while (reader.nextField()) {
102
+ if (reader.isEndGroup()) {
103
+ break;
104
+ }
105
+ var field = reader.getFieldNumber();
106
+ switch (field) {
107
+ case 1:
108
+ var value = /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (reader.readPackedEnum());
109
+ msg.setScopesList(value);
110
+ break;
111
+ case 2:
112
+ var value = /** @type {string} */ (reader.readString());
113
+ msg.addEndpoints(value);
114
+ break;
115
+ default:
116
+ reader.skipField();
117
+ break;
118
+ }
119
+ }
120
+ return msg;
121
+ };
122
+ /**
123
+ * Serializes the message to binary data (in protobuf wire format).
124
+ * @return {!Uint8Array}
125
+ */
126
+ proto.clarifai.auth.scope.ScopeList.prototype.serializeBinary = function () {
127
+ var writer = new jspb.BinaryWriter();
128
+ proto.clarifai.auth.scope.ScopeList.serializeBinaryToWriter(this, writer);
129
+ return writer.getResultBuffer();
130
+ };
131
+ /**
132
+ * Serializes the given message to binary data (in protobuf wire
133
+ * format), writing to the given BinaryWriter.
134
+ * @param {!proto.clarifai.auth.scope.ScopeList} message
135
+ * @param {!jspb.BinaryWriter} writer
136
+ * @suppress {unusedLocalVariables} f is only used for nested messages
137
+ */
138
+ proto.clarifai.auth.scope.ScopeList.serializeBinaryToWriter = function (message, writer) {
139
+ var f = undefined;
140
+ f = message.getScopesList();
141
+ if (f.length > 0) {
142
+ writer.writePackedEnum(1, f);
143
+ }
144
+ f = message.getEndpointsList();
145
+ if (f.length > 0) {
146
+ writer.writeRepeatedString(2, f);
147
+ }
148
+ };
149
+ /**
150
+ * repeated S scopes = 1;
151
+ * @return {!Array<!proto.clarifai.auth.scope.S>}
152
+ */
153
+ proto.clarifai.auth.scope.ScopeList.prototype.getScopesList = function () {
154
+ return /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (jspb.Message.getRepeatedField(this, 1));
155
+ };
156
+ /**
157
+ * @param {!Array<!proto.clarifai.auth.scope.S>} value
158
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
159
+ */
160
+ proto.clarifai.auth.scope.ScopeList.prototype.setScopesList = function (value) {
161
+ return jspb.Message.setField(this, 1, value || []);
162
+ };
163
+ /**
164
+ * @param {!proto.clarifai.auth.scope.S} value
165
+ * @param {number=} opt_index
166
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
167
+ */
168
+ proto.clarifai.auth.scope.ScopeList.prototype.addScopes = function (value, opt_index) {
169
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
170
+ };
171
+ /**
172
+ * Clears the list making it empty but non-null.
173
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
174
+ */
175
+ proto.clarifai.auth.scope.ScopeList.prototype.clearScopesList = function () {
176
+ return this.setScopesList([]);
177
+ };
178
+ /**
179
+ * repeated string endpoints = 2;
180
+ * @return {!Array<string>}
181
+ */
182
+ proto.clarifai.auth.scope.ScopeList.prototype.getEndpointsList = function () {
183
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
184
+ };
185
+ /**
186
+ * @param {!Array<string>} value
187
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
188
+ */
189
+ proto.clarifai.auth.scope.ScopeList.prototype.setEndpointsList = function (value) {
190
+ return jspb.Message.setField(this, 2, value || []);
191
+ };
192
+ /**
193
+ * @param {string} value
194
+ * @param {number=} opt_index
195
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
196
+ */
197
+ proto.clarifai.auth.scope.ScopeList.prototype.addEndpoints = function (value, opt_index) {
198
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
199
+ };
200
+ /**
201
+ * Clears the list making it empty but non-null.
202
+ * @return {!proto.clarifai.auth.scope.ScopeList} returns this
203
+ */
204
+ proto.clarifai.auth.scope.ScopeList.prototype.clearEndpointsList = function () {
205
+ return this.setEndpointsList([]);
206
+ };
207
+ /**
208
+ * @enum {number}
209
+ */
210
+ proto.clarifai.auth.scope.S = {
211
+ UNDEF: 0,
212
+ ALL: 1,
213
+ PREDICT: 2,
214
+ SEARCH: 3,
215
+ INPUTS_ADD: 4,
216
+ INPUTS_GET: 5,
217
+ INPUTS_PATCH: 7,
218
+ INPUTS_DELETE: 8,
219
+ OUTPUTS_PATCH: 9,
220
+ CONCEPTS_ADD: 10,
221
+ CONCEPTS_GET: 11,
222
+ CONCEPTS_PATCH: 12,
223
+ CONCEPTS_DELETE: 13,
224
+ MODELS_ADD: 14,
225
+ MODELS_GET: 15,
226
+ MODELS_PATCH: 16,
227
+ MODELS_DELETE: 17,
228
+ MODELS_TRAIN: 26,
229
+ MODELS_SYNC: 27,
230
+ WORKFLOWS_ADD: 18,
231
+ WORKFLOWS_GET: 19,
232
+ WORKFLOWS_PATCH: 20,
233
+ WORKFLOWS_DELETE: 21,
234
+ WORKFLOWMETRICS_GET: 96,
235
+ WORKFLOWMETRICS_ADD: 97,
236
+ WORKFLOWMETRICS_DELETE: 98,
237
+ TSNEVISUALIZATIONS_ADD: 24,
238
+ TSNEVISUALIZATIONS_GET: 25,
239
+ ANNOTATIONS_ADD: 37,
240
+ ANNOTATIONS_GET: 38,
241
+ ANNOTATIONS_PATCH: 39,
242
+ ANNOTATIONS_DELETE: 40,
243
+ COLLECTORS_ADD: 41,
244
+ COLLECTORS_GET: 42,
245
+ COLLECTORS_DELETE: 43,
246
+ APPS_ADD: 44,
247
+ APPS_GET: 45,
248
+ APPS_DELETE: 46,
249
+ KEYS_ADD: 47,
250
+ KEYS_GET: 48,
251
+ KEYS_DELETE: 49,
252
+ COLLABORATORS_ADD: 51,
253
+ COLLABORATORS_GET: 50,
254
+ COLLABORATORS_DELETE: 52,
255
+ METRICS_ADD: 54,
256
+ METRICS_GET: 53,
257
+ METRICS_DELETE: 63,
258
+ TASKS_ADD: 55,
259
+ TASKS_GET: 56,
260
+ TASKS_DELETE: 70,
261
+ PASSWORDPOLICIES_ADD: 57,
262
+ PASSWORDPOLICIES_GET: 58,
263
+ PASSWORDPOLICIES_DELETE: 59,
264
+ LABELORDERS_GET: 67,
265
+ LABELORDERS_ADD: 68,
266
+ LABELORDERS_DELETE: 69,
267
+ USERFEATURECONFIGS_GET: 71,
268
+ FINDDUPLICATEANNOTATIONSJOBS_ADD: 102,
269
+ FINDDUPLICATEANNOTATIONSJOBS_GET: 103,
270
+ FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104
271
+ };
272
+ /**
273
+ * A tuple of {field number, class constructor} for the extension
274
+ * field named `clarfaiExposed`.
275
+ * @type {!jspb.ExtensionFieldInfo<boolean>}
276
+ */
277
+ proto.clarifai.auth.scope.clarfaiExposed = new jspb.ExtensionFieldInfo(80318, { clarfaiExposed: 0 }, null,
278
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
279
+ 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);
280
+ // This registers the extension field with the extended class, so that
281
+ // toObject() will function correctly.
282
+ google_protobuf_descriptor_pb.EnumValueOptions.extensions[80318] = proto.clarifai.auth.scope.clarfaiExposed;
283
+ /**
284
+ * A tuple of {field number, class constructor} for the extension
285
+ * field named `clarifaiDependingScopesList`.
286
+ * @type {!jspb.ExtensionFieldInfo<!Array<!proto.clarifai.auth.scope.S>>}
287
+ */
288
+ proto.clarifai.auth.scope.clarifaiDependingScopesList = new jspb.ExtensionFieldInfo(80319, { clarifaiDependingScopesList: 0 }, null,
289
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 1);
290
+ 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);
291
+ // This registers the extension field with the extended class, so that
292
+ // toObject() will function correctly.
293
+ google_protobuf_descriptor_pb.EnumValueOptions.extensions[80319] = proto.clarifai.auth.scope.clarifaiDependingScopesList;
294
+ goog.object.extend(exports, proto.clarifai.auth.scope);
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  // source: proto/clarifai/auth/types/types.proto
2
3
  /**
3
4
  * @fileoverview
@@ -7,22 +8,19 @@
7
8
  * @public
8
9
  */
9
10
  // GENERATED CODE -- DO NOT EDIT!
10
-
11
11
  var jspb = require('google-protobuf');
12
12
  var goog = jspb;
13
13
  var global = Function('return this')();
14
-
15
14
  goog.exportSymbol('proto.clarifai.auth.types.AuthType', null, global);
16
15
  /**
17
16
  * @enum {number}
18
17
  */
19
18
  proto.clarifai.auth.types.AuthType = {
20
- UNDEF: 0,
21
- NOAUTH: 1,
22
- KEYAUTH: 2,
23
- SESSIONTOKENAUTH: 3,
24
- ADMINAUTH: 4,
25
- PATAUTH: 5
19
+ UNDEF: 0,
20
+ NOAUTH: 1,
21
+ KEYAUTH: 2,
22
+ SESSIONTOKENAUTH: 3,
23
+ ADMINAUTH: 4,
24
+ PATAUTH: 5
26
25
  };
27
-
28
26
  goog.object.extend(exports, proto.clarifai.auth.types);
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  // source: proto/clarifai/auth/util/extension.proto
2
3
  /**
3
4
  * @fileoverview
@@ -7,11 +8,9 @@
7
8
  * @public
8
9
  */
9
10
  // GENERATED CODE -- DO NOT EDIT!
10
-
11
11
  var jspb = require('google-protobuf');
12
12
  var goog = jspb;
13
13
  var global = Function('return this')();
14
-
15
14
  var proto_clarifai_auth_scope_scope_pb = require('../../../../proto/clarifai/auth/scope/scope_pb.js');
16
15
  goog.object.extend(proto, proto_clarifai_auth_scope_scope_pb);
17
16
  var proto_clarifai_auth_types_types_pb = require('../../../../proto/clarifai/auth/types/types_pb.js');
@@ -23,129 +22,59 @@ goog.exportSymbol('proto.clarifai.auth.util.clDependingScopesList', null, global
23
22
  goog.exportSymbol('proto.clarifai.auth.util.clPrivateField', null, global);
24
23
  goog.exportSymbol('proto.clarifai.auth.util.clPrivateMessage', null, global);
25
24
  goog.exportSymbol('proto.clarifai.auth.util.clPrivateRpc', null, global);
26
-
27
25
  /**
28
26
  * A tuple of {field number, class constructor} for the extension
29
27
  * field named `clPrivateField`.
30
28
  * @type {!jspb.ExtensionFieldInfo<boolean>}
31
29
  */
32
- proto.clarifai.auth.util.clPrivateField = new jspb.ExtensionFieldInfo(
33
- 80320,
34
- {clPrivateField: 0},
35
- null,
36
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
37
- null),
38
- 0);
39
-
40
- google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[80320] = new jspb.ExtensionFieldBinaryInfo(
41
- proto.clarifai.auth.util.clPrivateField,
42
- jspb.BinaryReader.prototype.readBool,
43
- jspb.BinaryWriter.prototype.writeBool,
44
- undefined,
45
- undefined,
46
- false);
30
+ proto.clarifai.auth.util.clPrivateField = new jspb.ExtensionFieldInfo(80320, { clPrivateField: 0 }, null,
31
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
32
+ 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);
47
33
  // This registers the extension field with the extended class, so that
48
34
  // toObject() will function correctly.
49
35
  google_protobuf_descriptor_pb.FieldOptions.extensions[80320] = proto.clarifai.auth.util.clPrivateField;
50
-
51
-
52
36
  /**
53
37
  * A tuple of {field number, class constructor} for the extension
54
38
  * field named `clPrivateRpc`.
55
39
  * @type {!jspb.ExtensionFieldInfo<boolean>}
56
40
  */
57
- proto.clarifai.auth.util.clPrivateRpc = new jspb.ExtensionFieldInfo(
58
- 80321,
59
- {clPrivateRpc: 0},
60
- null,
61
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
62
- null),
63
- 0);
64
-
65
- google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[80321] = new jspb.ExtensionFieldBinaryInfo(
66
- proto.clarifai.auth.util.clPrivateRpc,
67
- jspb.BinaryReader.prototype.readBool,
68
- jspb.BinaryWriter.prototype.writeBool,
69
- undefined,
70
- undefined,
71
- false);
41
+ proto.clarifai.auth.util.clPrivateRpc = new jspb.ExtensionFieldInfo(80321, { clPrivateRpc: 0 }, null,
42
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
43
+ 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);
72
44
  // This registers the extension field with the extended class, so that
73
45
  // toObject() will function correctly.
74
46
  google_protobuf_descriptor_pb.MethodOptions.extensions[80321] = proto.clarifai.auth.util.clPrivateRpc;
75
-
76
-
77
47
  /**
78
48
  * A tuple of {field number, class constructor} for the extension
79
49
  * field named `clDependingScopesList`.
80
50
  * @type {!jspb.ExtensionFieldInfo<!Array<!proto.clarifai.auth.scope.S>>}
81
51
  */
82
- proto.clarifai.auth.util.clDependingScopesList = new jspb.ExtensionFieldInfo(
83
- 80322,
84
- {clDependingScopesList: 0},
85
- null,
86
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
87
- null),
88
- 1);
89
-
90
- google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[80322] = new jspb.ExtensionFieldBinaryInfo(
91
- proto.clarifai.auth.util.clDependingScopesList,
92
- jspb.BinaryReader.prototype.readPackedEnum,
93
- jspb.BinaryWriter.prototype.writePackedEnum,
94
- undefined,
95
- undefined,
96
- true);
52
+ proto.clarifai.auth.util.clDependingScopesList = new jspb.ExtensionFieldInfo(80322, { clDependingScopesList: 0 }, null,
53
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 1);
54
+ 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);
97
55
  // This registers the extension field with the extended class, so that
98
56
  // toObject() will function correctly.
99
57
  google_protobuf_descriptor_pb.MethodOptions.extensions[80322] = proto.clarifai.auth.util.clDependingScopesList;
100
-
101
-
102
58
  /**
103
59
  * A tuple of {field number, class constructor} for the extension
104
60
  * field named `clAuthType`.
105
61
  * @type {!jspb.ExtensionFieldInfo<!proto.clarifai.auth.types.AuthType>}
106
62
  */
107
- proto.clarifai.auth.util.clAuthType = new jspb.ExtensionFieldInfo(
108
- 80323,
109
- {clAuthType: 0},
110
- null,
111
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
112
- null),
113
- 0);
114
-
115
- google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[80323] = new jspb.ExtensionFieldBinaryInfo(
116
- proto.clarifai.auth.util.clAuthType,
117
- jspb.BinaryReader.prototype.readEnum,
118
- jspb.BinaryWriter.prototype.writeEnum,
119
- undefined,
120
- undefined,
121
- false);
63
+ proto.clarifai.auth.util.clAuthType = new jspb.ExtensionFieldInfo(80323, { clAuthType: 0 }, null,
64
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
65
+ 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);
122
66
  // This registers the extension field with the extended class, so that
123
67
  // toObject() will function correctly.
124
68
  google_protobuf_descriptor_pb.MethodOptions.extensions[80323] = proto.clarifai.auth.util.clAuthType;
125
-
126
-
127
69
  /**
128
70
  * A tuple of {field number, class constructor} for the extension
129
71
  * field named `clPrivateMessage`.
130
72
  * @type {!jspb.ExtensionFieldInfo<boolean>}
131
73
  */
132
- proto.clarifai.auth.util.clPrivateMessage = new jspb.ExtensionFieldInfo(
133
- 80324,
134
- {clPrivateMessage: 0},
135
- null,
136
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
137
- null),
138
- 0);
139
-
140
- google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[80324] = new jspb.ExtensionFieldBinaryInfo(
141
- proto.clarifai.auth.util.clPrivateMessage,
142
- jspb.BinaryReader.prototype.readBool,
143
- jspb.BinaryWriter.prototype.writeBool,
144
- undefined,
145
- undefined,
146
- false);
74
+ proto.clarifai.auth.util.clPrivateMessage = new jspb.ExtensionFieldInfo(80324, { clPrivateMessage: 0 }, null,
75
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
76
+ 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);
147
77
  // This registers the extension field with the extended class, so that
148
78
  // toObject() will function correctly.
149
79
  google_protobuf_descriptor_pb.MessageOptions.extensions[80324] = proto.clarifai.auth.util.clPrivateMessage;
150
-
151
80
  goog.object.extend(exports, proto.clarifai.auth.util);
@@ -7,6 +7,6 @@ export { Struct } from 'google-protobuf/google/protobuf/struct_pb';
7
7
  export { Timestamp } from 'google-protobuf/google/protobuf/timestamp_pb';
8
8
  export { Type, Field, Enum, EnumValue, Option } from 'google-protobuf/google/protobuf/type_pb';
9
9
  export { DoubleValue, FloatValue, Int64Value, UInt64Value, Int32Value, UInt32Value, BoolValue, StringValue, BytesValue } from 'google-protobuf/google/protobuf/wrappers_pb';
10
- export type { Error, Metadata } from 'grpc-web';
10
+ export { Error, Metadata } from 'grpc-web';
11
11
  export { Status, BaseResponse } from './proto/clarifai/api/status/status_pb';
12
12
  export { StatusCode } from './proto/clarifai/api/status/status_code_pb';
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.StatusCode = exports.BaseResponse = exports.Status = exports.BytesValue = exports.StringValue = exports.BoolValue = exports.UInt32Value = exports.Int32Value = exports.UInt64Value = exports.Int64Value = exports.FloatValue = exports.DoubleValue = exports.Option = exports.EnumValue = exports.Enum = exports.Field = exports.Type = exports.Timestamp = exports.Struct = exports.Empty = exports.Duration = exports.Api = exports.Any = void 0;
14
+ __exportStar(require("./proto/clarifai/api/resources_pb"), exports);
15
+ var any_pb_1 = require("google-protobuf/google/protobuf/any_pb");
16
+ Object.defineProperty(exports, "Any", { enumerable: true, get: function () { return any_pb_1.Any; } });
17
+ var api_pb_1 = require("google-protobuf/google/protobuf/api_pb");
18
+ Object.defineProperty(exports, "Api", { enumerable: true, get: function () { return api_pb_1.Api; } });
19
+ var duration_pb_1 = require("google-protobuf/google/protobuf/duration_pb");
20
+ Object.defineProperty(exports, "Duration", { enumerable: true, get: function () { return duration_pb_1.Duration; } });
21
+ var empty_pb_1 = require("google-protobuf/google/protobuf/empty_pb");
22
+ Object.defineProperty(exports, "Empty", { enumerable: true, get: function () { return empty_pb_1.Empty; } });
23
+ var struct_pb_1 = require("google-protobuf/google/protobuf/struct_pb");
24
+ Object.defineProperty(exports, "Struct", { enumerable: true, get: function () { return struct_pb_1.Struct; } });
25
+ var timestamp_pb_1 = require("google-protobuf/google/protobuf/timestamp_pb");
26
+ Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return timestamp_pb_1.Timestamp; } });
27
+ var type_pb_1 = require("google-protobuf/google/protobuf/type_pb");
28
+ Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return type_pb_1.Type; } });
29
+ Object.defineProperty(exports, "Field", { enumerable: true, get: function () { return type_pb_1.Field; } });
30
+ Object.defineProperty(exports, "Enum", { enumerable: true, get: function () { return type_pb_1.Enum; } });
31
+ Object.defineProperty(exports, "EnumValue", { enumerable: true, get: function () { return type_pb_1.EnumValue; } });
32
+ Object.defineProperty(exports, "Option", { enumerable: true, get: function () { return type_pb_1.Option; } });
33
+ var wrappers_pb_1 = require("google-protobuf/google/protobuf/wrappers_pb");
34
+ Object.defineProperty(exports, "DoubleValue", { enumerable: true, get: function () { return wrappers_pb_1.DoubleValue; } });
35
+ Object.defineProperty(exports, "FloatValue", { enumerable: true, get: function () { return wrappers_pb_1.FloatValue; } });
36
+ Object.defineProperty(exports, "Int64Value", { enumerable: true, get: function () { return wrappers_pb_1.Int64Value; } });
37
+ Object.defineProperty(exports, "UInt64Value", { enumerable: true, get: function () { return wrappers_pb_1.UInt64Value; } });
38
+ Object.defineProperty(exports, "Int32Value", { enumerable: true, get: function () { return wrappers_pb_1.Int32Value; } });
39
+ Object.defineProperty(exports, "UInt32Value", { enumerable: true, get: function () { return wrappers_pb_1.UInt32Value; } });
40
+ Object.defineProperty(exports, "BoolValue", { enumerable: true, get: function () { return wrappers_pb_1.BoolValue; } });
41
+ Object.defineProperty(exports, "StringValue", { enumerable: true, get: function () { return wrappers_pb_1.StringValue; } });
42
+ Object.defineProperty(exports, "BytesValue", { enumerable: true, get: function () { return wrappers_pb_1.BytesValue; } });
43
+ var status_pb_1 = require("./proto/clarifai/api/status/status_pb");
44
+ Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return status_pb_1.Status; } });
45
+ Object.defineProperty(exports, "BaseResponse", { enumerable: true, get: function () { return status_pb_1.BaseResponse; } });
46
+ var status_code_pb_1 = require("./proto/clarifai/api/status/status_code_pb");
47
+ Object.defineProperty(exports, "StatusCode", { enumerable: true, get: function () { return status_code_pb_1.StatusCode; } });
File without changes
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./proto/clarifai/api/service_pb"), exports);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ // source: google/api/annotations.proto
3
+ /**
4
+ * @fileoverview
5
+ * @enhanceable
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+ var jspb = require('google-protobuf');
14
+ var goog = jspb;
15
+ var global = Function('return this')();
16
+ var google_api_http_pb = require('../../google/api/http_pb.js');
17
+ goog.object.extend(proto, google_api_http_pb);
18
+ var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
19
+ goog.object.extend(proto, google_protobuf_descriptor_pb);
20
+ goog.exportSymbol('proto.google.api.http', null, global);
21
+ /**
22
+ * A tuple of {field number, class constructor} for the extension
23
+ * field named `http`.
24
+ * @type {!jspb.ExtensionFieldInfo<!proto.google.api.HttpRule>}
25
+ */
26
+ proto.google.api.http = new jspb.ExtensionFieldInfo(72295728, { http: 0 }, google_api_http_pb.HttpRule,
27
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (google_api_http_pb.HttpRule.toObject), 0);
28
+ google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(proto.google.api.http, jspb.BinaryReader.prototype.readMessage, jspb.BinaryWriter.prototype.writeMessage, google_api_http_pb.HttpRule.serializeBinaryToWriter, google_api_http_pb.HttpRule.deserializeBinaryFromReader, false);
29
+ // This registers the extension field with the extended class, so that
30
+ // toObject() will function correctly.
31
+ google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
32
+ goog.object.extend(exports, proto.google.api);
@@ -0,0 +1 @@
1
+ export {};