clarifai-web-grpc 1.1.4 → 1.1.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 (63) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/lib/google/api/annotations_grpc_pb.js +1 -2
  3. package/lib/google/api/annotations_pb.js +19 -4
  4. package/lib/google/api/http_grpc_pb.js +1 -2
  5. package/lib/google/api/http_pb.js +606 -414
  6. package/lib/proto/clarifai/api/resources_pb.d.ts +5052 -1
  7. package/lib/proto/clarifai/api/resources_pb.js +26126 -17879
  8. package/lib/proto/clarifai/api/serviceServiceClientPb.ts +3002 -0
  9. package/lib/proto/clarifai/api/service_pb.d.ts +5582 -1
  10. package/lib/proto/clarifai/api/service_pb.js +30050 -20944
  11. package/lib/proto/clarifai/api/status/status_code_pb.d.ts +296 -1
  12. package/lib/proto/clarifai/api/status/status_code_pb.js +295 -293
  13. package/lib/proto/clarifai/api/status/status_pb.d.ts +73 -1
  14. package/lib/proto/clarifai/api/status/status_pb.js +357 -250
  15. package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +4 -1
  16. package/lib/proto/clarifai/api/utils/extensions_pb.js +53 -10
  17. package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +81 -1
  18. package/lib/proto/clarifai/api/utils/test_proto_pb.js +385 -266
  19. package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +92 -1
  20. package/lib/proto/clarifai/auth/scope/scope_pb.js +232 -163
  21. package/lib/proto/clarifai/auth/types/types_pb.d.ts +10 -1
  22. package/lib/proto/clarifai/auth/types/types_pb.js +9 -7
  23. package/lib/proto/clarifai/auth/util/extension_pb.d.ts +6 -1
  24. package/lib/proto/clarifai/auth/util/extension_pb.js +87 -16
  25. package/package.json +15 -24
  26. package/tests/basic.test.ts +4 -30
  27. package/tests/helpers.test.ts +25 -41
  28. package/tsconfig.json +5 -4
  29. package/dist/google/api/annotations_grpc_pb.d.ts +0 -0
  30. package/dist/google/api/annotations_grpc_pb.js +0 -2
  31. package/dist/google/api/annotations_pb.d.ts +0 -1
  32. package/dist/google/api/annotations_pb.js +0 -32
  33. package/dist/google/api/http_grpc_pb.d.ts +0 -0
  34. package/dist/google/api/http_grpc_pb.js +0 -2
  35. package/dist/google/api/http_pb.d.ts +0 -1
  36. package/dist/google/api/http_pb.js +0 -813
  37. package/dist/index.d.ts +0 -5
  38. package/dist/index.js +0 -11
  39. package/dist/proto/clarifai/api/resources_pb.d.ts +0 -1
  40. package/dist/proto/clarifai/api/resources_pb.js +0 -32957
  41. package/dist/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  42. package/dist/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  43. package/dist/proto/clarifai/api/service_pb.d.ts +0 -1
  44. package/dist/proto/clarifai/api/service_pb.js +0 -38791
  45. package/dist/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
  46. package/dist/proto/clarifai/api/status/status_code_pb.js +0 -312
  47. package/dist/proto/clarifai/api/status/status_pb.d.ts +0 -1
  48. package/dist/proto/clarifai/api/status/status_pb.js +0 -473
  49. package/dist/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
  50. package/dist/proto/clarifai/api/utils/extensions_pb.js +0 -52
  51. package/dist/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
  52. package/dist/proto/clarifai/api/utils/test_proto_pb.js +0 -521
  53. package/dist/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
  54. package/dist/proto/clarifai/auth/scope/scope_pb.js +0 -294
  55. package/dist/proto/clarifai/auth/types/types_pb.d.ts +0 -1
  56. package/dist/proto/clarifai/auth/types/types_pb.js +0 -26
  57. package/dist/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
  58. package/dist/proto/clarifai/auth/util/extension_pb.js +0 -80
  59. package/dist/resources.d.ts +0 -12
  60. package/dist/resources.js +0 -47
  61. package/dist/service.d.ts +0 -1
  62. package/dist/service.js +0 -13
  63. package/tsconfig.cjs.json +0 -7
@@ -1 +1,92 @@
1
- export {};
1
+ import * as jspb from "google-protobuf"
2
+
3
+ import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb';
4
+
5
+ export class ScopeList extends jspb.Message {
6
+ getScopesList(): Array<S>;
7
+ setScopesList(value: Array<S>): void;
8
+ clearScopesList(): void;
9
+ addScopes(value: S, index?: number): void;
10
+
11
+ getEndpointsList(): Array<string>;
12
+ setEndpointsList(value: Array<string>): void;
13
+ clearEndpointsList(): void;
14
+ addEndpoints(value: string, index?: number): void;
15
+
16
+ serializeBinary(): Uint8Array;
17
+ toObject(includeInstance?: boolean): ScopeList.AsObject;
18
+ static toObject(includeInstance: boolean, msg: ScopeList): ScopeList.AsObject;
19
+ static serializeBinaryToWriter(message: ScopeList, writer: jspb.BinaryWriter): void;
20
+ static deserializeBinary(bytes: Uint8Array): ScopeList;
21
+ static deserializeBinaryFromReader(message: ScopeList, reader: jspb.BinaryReader): ScopeList;
22
+ }
23
+
24
+ export namespace ScopeList {
25
+ export type AsObject = {
26
+ scopesList: Array<S>,
27
+ endpointsList: Array<string>,
28
+ }
29
+ }
30
+
31
+ export enum S {
32
+ UNDEF = 0,
33
+ ALL = 1,
34
+ PREDICT = 2,
35
+ SEARCH = 3,
36
+ INPUTS_ADD = 4,
37
+ INPUTS_GET = 5,
38
+ INPUTS_PATCH = 7,
39
+ INPUTS_DELETE = 8,
40
+ OUTPUTS_PATCH = 9,
41
+ CONCEPTS_ADD = 10,
42
+ CONCEPTS_GET = 11,
43
+ CONCEPTS_PATCH = 12,
44
+ CONCEPTS_DELETE = 13,
45
+ MODELS_ADD = 14,
46
+ MODELS_GET = 15,
47
+ MODELS_PATCH = 16,
48
+ MODELS_DELETE = 17,
49
+ MODELS_TRAIN = 26,
50
+ MODELS_SYNC = 27,
51
+ WORKFLOWS_ADD = 18,
52
+ WORKFLOWS_GET = 19,
53
+ WORKFLOWS_PATCH = 20,
54
+ WORKFLOWS_DELETE = 21,
55
+ WORKFLOWMETRICS_GET = 96,
56
+ WORKFLOWMETRICS_ADD = 97,
57
+ WORKFLOWMETRICS_DELETE = 98,
58
+ TSNEVISUALIZATIONS_ADD = 24,
59
+ TSNEVISUALIZATIONS_GET = 25,
60
+ ANNOTATIONS_ADD = 37,
61
+ ANNOTATIONS_GET = 38,
62
+ ANNOTATIONS_PATCH = 39,
63
+ ANNOTATIONS_DELETE = 40,
64
+ COLLECTORS_ADD = 41,
65
+ COLLECTORS_GET = 42,
66
+ COLLECTORS_DELETE = 43,
67
+ APPS_ADD = 44,
68
+ APPS_GET = 45,
69
+ APPS_DELETE = 46,
70
+ KEYS_ADD = 47,
71
+ KEYS_GET = 48,
72
+ KEYS_DELETE = 49,
73
+ COLLABORATORS_ADD = 51,
74
+ COLLABORATORS_GET = 50,
75
+ COLLABORATORS_DELETE = 52,
76
+ METRICS_ADD = 54,
77
+ METRICS_GET = 53,
78
+ METRICS_DELETE = 63,
79
+ TASKS_ADD = 55,
80
+ TASKS_GET = 56,
81
+ TASKS_DELETE = 70,
82
+ PASSWORDPOLICIES_ADD = 57,
83
+ PASSWORDPOLICIES_GET = 58,
84
+ PASSWORDPOLICIES_DELETE = 59,
85
+ LABELORDERS_GET = 67,
86
+ LABELORDERS_ADD = 68,
87
+ LABELORDERS_DELETE = 69,
88
+ USERFEATURECONFIGS_GET = 71,
89
+ FINDDUPLICATEANNOTATIONSJOBS_ADD = 102,
90
+ FINDDUPLICATEANNOTATIONSJOBS_GET = 103,
91
+ FINDDUPLICATEANNOTATIONSJOBS_DELETE = 104,
92
+ }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // source: proto/clarifai/auth/scope/scope.proto
3
2
  /**
4
3
  * @fileoverview
@@ -8,9 +7,11 @@
8
7
  * @public
9
8
  */
10
9
  // 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
+
14
15
  var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
15
16
  goog.object.extend(proto, google_protobuf_descriptor_pb);
16
17
  goog.exportSymbol('proto.clarifai.auth.scope.S', null, global);
@@ -27,69 +28,80 @@ goog.exportSymbol('proto.clarifai.auth.scope.clarifaiDependingScopesList', null,
27
28
  * @extends {jspb.Message}
28
29
  * @constructor
29
30
  */
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);
31
+ proto.clarifai.auth.scope.ScopeList = function(opt_data) {
32
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.clarifai.auth.scope.ScopeList.repeatedFields_, null);
32
33
  };
33
34
  goog.inherits(proto.clarifai.auth.scope.ScopeList, jspb.Message);
34
35
  if (goog.DEBUG && !COMPILED) {
35
- /**
36
- * @public
37
- * @override
38
- */
39
- proto.clarifai.auth.scope.ScopeList.displayName = 'proto.clarifai.auth.scope.ScopeList';
36
+ /**
37
+ * @public
38
+ * @override
39
+ */
40
+ proto.clarifai.auth.scope.ScopeList.displayName = 'proto.clarifai.auth.scope.ScopeList';
40
41
  }
42
+
41
43
  /**
42
44
  * List of repeated fields within this message type.
43
45
  * @private {!Array<number>}
44
46
  * @const
45
47
  */
46
- proto.clarifai.auth.scope.ScopeList.repeatedFields_ = [1, 2];
48
+ proto.clarifai.auth.scope.ScopeList.repeatedFields_ = [1,2];
49
+
50
+
51
+
47
52
  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
- };
53
+ /**
54
+ * Creates an object representation of this proto.
55
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
56
+ * Optional fields that are not set will be set to undefined.
57
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
58
+ * For the list of reserved names please see:
59
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
60
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61
+ * JSPB instance for transitional soy proto support:
62
+ * http://goto/soy-param-migration
63
+ * @return {!Object}
64
+ */
65
+ proto.clarifai.auth.scope.ScopeList.prototype.toObject = function(opt_includeInstance) {
66
+ return proto.clarifai.auth.scope.ScopeList.toObject(opt_includeInstance, this);
67
+ };
68
+
69
+
70
+ /**
71
+ * Static version of the {@see toObject} method.
72
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
73
+ * the JSPB instance for transitional soy proto support:
74
+ * http://goto/soy-param-migration
75
+ * @param {!proto.clarifai.auth.scope.ScopeList} msg The msg instance to transform.
76
+ * @return {!Object}
77
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78
+ */
79
+ proto.clarifai.auth.scope.ScopeList.toObject = function(includeInstance, msg) {
80
+ var f, obj = {
81
+ scopesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
82
+ endpointsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
83
+ };
84
+
85
+ if (includeInstance) {
86
+ obj.$jspbMessageInstance = msg;
87
+ }
88
+ return obj;
89
+ };
82
90
  }
91
+
92
+
83
93
  /**
84
94
  * Deserializes binary data (in protobuf wire format).
85
95
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
86
96
  * @return {!proto.clarifai.auth.scope.ScopeList}
87
97
  */
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);
98
+ proto.clarifai.auth.scope.ScopeList.deserializeBinary = function(bytes) {
99
+ var reader = new jspb.BinaryReader(bytes);
100
+ var msg = new proto.clarifai.auth.scope.ScopeList;
101
+ return proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader(msg, reader);
92
102
  };
103
+
104
+
93
105
  /**
94
106
  * Deserializes binary data (in protobuf wire format) from the
95
107
  * given reader into the given message object.
@@ -97,37 +109,41 @@ proto.clarifai.auth.scope.ScopeList.deserializeBinary = function (bytes) {
97
109
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
98
110
  * @return {!proto.clarifai.auth.scope.ScopeList}
99
111
  */
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
- }
112
+ proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader = function(msg, reader) {
113
+ while (reader.nextField()) {
114
+ if (reader.isEndGroup()) {
115
+ break;
116
+ }
117
+ var field = reader.getFieldNumber();
118
+ switch (field) {
119
+ case 1:
120
+ var value = /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (reader.readPackedEnum());
121
+ msg.setScopesList(value);
122
+ break;
123
+ case 2:
124
+ var value = /** @type {string} */ (reader.readString());
125
+ msg.addEndpoints(value);
126
+ break;
127
+ default:
128
+ reader.skipField();
129
+ break;
119
130
  }
120
- return msg;
131
+ }
132
+ return msg;
121
133
  };
134
+
135
+
122
136
  /**
123
137
  * Serializes the message to binary data (in protobuf wire format).
124
138
  * @return {!Uint8Array}
125
139
  */
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();
140
+ proto.clarifai.auth.scope.ScopeList.prototype.serializeBinary = function() {
141
+ var writer = new jspb.BinaryWriter();
142
+ proto.clarifai.auth.scope.ScopeList.serializeBinaryToWriter(this, writer);
143
+ return writer.getResultBuffer();
130
144
  };
145
+
146
+
131
147
  /**
132
148
  * Serializes the given message to binary data (in protobuf wire
133
149
  * format), writing to the given BinaryWriter.
@@ -135,160 +151,213 @@ proto.clarifai.auth.scope.ScopeList.prototype.serializeBinary = function () {
135
151
  * @param {!jspb.BinaryWriter} writer
136
152
  * @suppress {unusedLocalVariables} f is only used for nested messages
137
153
  */
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
- }
154
+ proto.clarifai.auth.scope.ScopeList.serializeBinaryToWriter = function(message, writer) {
155
+ var f = undefined;
156
+ f = message.getScopesList();
157
+ if (f.length > 0) {
158
+ writer.writePackedEnum(
159
+ 1,
160
+ f
161
+ );
162
+ }
163
+ f = message.getEndpointsList();
164
+ if (f.length > 0) {
165
+ writer.writeRepeatedString(
166
+ 2,
167
+ f
168
+ );
169
+ }
148
170
  };
171
+
172
+
149
173
  /**
150
174
  * repeated S scopes = 1;
151
175
  * @return {!Array<!proto.clarifai.auth.scope.S>}
152
176
  */
153
- proto.clarifai.auth.scope.ScopeList.prototype.getScopesList = function () {
154
- return /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (jspb.Message.getRepeatedField(this, 1));
177
+ proto.clarifai.auth.scope.ScopeList.prototype.getScopesList = function() {
178
+ return /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (jspb.Message.getRepeatedField(this, 1));
155
179
  };
180
+
181
+
156
182
  /**
157
183
  * @param {!Array<!proto.clarifai.auth.scope.S>} value
158
184
  * @return {!proto.clarifai.auth.scope.ScopeList} returns this
159
185
  */
160
- proto.clarifai.auth.scope.ScopeList.prototype.setScopesList = function (value) {
161
- return jspb.Message.setField(this, 1, value || []);
186
+ proto.clarifai.auth.scope.ScopeList.prototype.setScopesList = function(value) {
187
+ return jspb.Message.setField(this, 1, value || []);
162
188
  };
189
+
190
+
163
191
  /**
164
192
  * @param {!proto.clarifai.auth.scope.S} value
165
193
  * @param {number=} opt_index
166
194
  * @return {!proto.clarifai.auth.scope.ScopeList} returns this
167
195
  */
168
- proto.clarifai.auth.scope.ScopeList.prototype.addScopes = function (value, opt_index) {
169
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
196
+ proto.clarifai.auth.scope.ScopeList.prototype.addScopes = function(value, opt_index) {
197
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
170
198
  };
199
+
200
+
171
201
  /**
172
202
  * Clears the list making it empty but non-null.
173
203
  * @return {!proto.clarifai.auth.scope.ScopeList} returns this
174
204
  */
175
- proto.clarifai.auth.scope.ScopeList.prototype.clearScopesList = function () {
176
- return this.setScopesList([]);
205
+ proto.clarifai.auth.scope.ScopeList.prototype.clearScopesList = function() {
206
+ return this.setScopesList([]);
177
207
  };
208
+
209
+
178
210
  /**
179
211
  * repeated string endpoints = 2;
180
212
  * @return {!Array<string>}
181
213
  */
182
- proto.clarifai.auth.scope.ScopeList.prototype.getEndpointsList = function () {
183
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
214
+ proto.clarifai.auth.scope.ScopeList.prototype.getEndpointsList = function() {
215
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
184
216
  };
217
+
218
+
185
219
  /**
186
220
  * @param {!Array<string>} value
187
221
  * @return {!proto.clarifai.auth.scope.ScopeList} returns this
188
222
  */
189
- proto.clarifai.auth.scope.ScopeList.prototype.setEndpointsList = function (value) {
190
- return jspb.Message.setField(this, 2, value || []);
223
+ proto.clarifai.auth.scope.ScopeList.prototype.setEndpointsList = function(value) {
224
+ return jspb.Message.setField(this, 2, value || []);
191
225
  };
226
+
227
+
192
228
  /**
193
229
  * @param {string} value
194
230
  * @param {number=} opt_index
195
231
  * @return {!proto.clarifai.auth.scope.ScopeList} returns this
196
232
  */
197
- proto.clarifai.auth.scope.ScopeList.prototype.addEndpoints = function (value, opt_index) {
198
- return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
233
+ proto.clarifai.auth.scope.ScopeList.prototype.addEndpoints = function(value, opt_index) {
234
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
199
235
  };
236
+
237
+
200
238
  /**
201
239
  * Clears the list making it empty but non-null.
202
240
  * @return {!proto.clarifai.auth.scope.ScopeList} returns this
203
241
  */
204
- proto.clarifai.auth.scope.ScopeList.prototype.clearEndpointsList = function () {
205
- return this.setEndpointsList([]);
242
+ proto.clarifai.auth.scope.ScopeList.prototype.clearEndpointsList = function() {
243
+ return this.setEndpointsList([]);
206
244
  };
245
+
246
+
207
247
  /**
208
248
  * @enum {number}
209
249
  */
210
250
  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
251
+ UNDEF: 0,
252
+ ALL: 1,
253
+ PREDICT: 2,
254
+ SEARCH: 3,
255
+ INPUTS_ADD: 4,
256
+ INPUTS_GET: 5,
257
+ INPUTS_PATCH: 7,
258
+ INPUTS_DELETE: 8,
259
+ OUTPUTS_PATCH: 9,
260
+ CONCEPTS_ADD: 10,
261
+ CONCEPTS_GET: 11,
262
+ CONCEPTS_PATCH: 12,
263
+ CONCEPTS_DELETE: 13,
264
+ MODELS_ADD: 14,
265
+ MODELS_GET: 15,
266
+ MODELS_PATCH: 16,
267
+ MODELS_DELETE: 17,
268
+ MODELS_TRAIN: 26,
269
+ MODELS_SYNC: 27,
270
+ WORKFLOWS_ADD: 18,
271
+ WORKFLOWS_GET: 19,
272
+ WORKFLOWS_PATCH: 20,
273
+ WORKFLOWS_DELETE: 21,
274
+ WORKFLOWMETRICS_GET: 96,
275
+ WORKFLOWMETRICS_ADD: 97,
276
+ WORKFLOWMETRICS_DELETE: 98,
277
+ TSNEVISUALIZATIONS_ADD: 24,
278
+ TSNEVISUALIZATIONS_GET: 25,
279
+ ANNOTATIONS_ADD: 37,
280
+ ANNOTATIONS_GET: 38,
281
+ ANNOTATIONS_PATCH: 39,
282
+ ANNOTATIONS_DELETE: 40,
283
+ COLLECTORS_ADD: 41,
284
+ COLLECTORS_GET: 42,
285
+ COLLECTORS_DELETE: 43,
286
+ APPS_ADD: 44,
287
+ APPS_GET: 45,
288
+ APPS_DELETE: 46,
289
+ KEYS_ADD: 47,
290
+ KEYS_GET: 48,
291
+ KEYS_DELETE: 49,
292
+ COLLABORATORS_ADD: 51,
293
+ COLLABORATORS_GET: 50,
294
+ COLLABORATORS_DELETE: 52,
295
+ METRICS_ADD: 54,
296
+ METRICS_GET: 53,
297
+ METRICS_DELETE: 63,
298
+ TASKS_ADD: 55,
299
+ TASKS_GET: 56,
300
+ TASKS_DELETE: 70,
301
+ PASSWORDPOLICIES_ADD: 57,
302
+ PASSWORDPOLICIES_GET: 58,
303
+ PASSWORDPOLICIES_DELETE: 59,
304
+ LABELORDERS_GET: 67,
305
+ LABELORDERS_ADD: 68,
306
+ LABELORDERS_DELETE: 69,
307
+ USERFEATURECONFIGS_GET: 71,
308
+ FINDDUPLICATEANNOTATIONSJOBS_ADD: 102,
309
+ FINDDUPLICATEANNOTATIONSJOBS_GET: 103,
310
+ FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104
271
311
  };
312
+
313
+
272
314
  /**
273
315
  * A tuple of {field number, class constructor} for the extension
274
316
  * field named `clarfaiExposed`.
275
317
  * @type {!jspb.ExtensionFieldInfo<boolean>}
276
318
  */
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);
319
+ proto.clarifai.auth.scope.clarfaiExposed = new jspb.ExtensionFieldInfo(
320
+ 80318,
321
+ {clarfaiExposed: 0},
322
+ null,
323
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
324
+ null),
325
+ 0);
326
+
327
+ google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[80318] = new jspb.ExtensionFieldBinaryInfo(
328
+ proto.clarifai.auth.scope.clarfaiExposed,
329
+ jspb.BinaryReader.prototype.readBool,
330
+ jspb.BinaryWriter.prototype.writeBool,
331
+ undefined,
332
+ undefined,
333
+ false);
280
334
  // This registers the extension field with the extended class, so that
281
335
  // toObject() will function correctly.
282
336
  google_protobuf_descriptor_pb.EnumValueOptions.extensions[80318] = proto.clarifai.auth.scope.clarfaiExposed;
337
+
338
+
283
339
  /**
284
340
  * A tuple of {field number, class constructor} for the extension
285
341
  * field named `clarifaiDependingScopesList`.
286
342
  * @type {!jspb.ExtensionFieldInfo<!Array<!proto.clarifai.auth.scope.S>>}
287
343
  */
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);
344
+ proto.clarifai.auth.scope.clarifaiDependingScopesList = new jspb.ExtensionFieldInfo(
345
+ 80319,
346
+ {clarifaiDependingScopesList: 0},
347
+ null,
348
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
349
+ null),
350
+ 1);
351
+
352
+ google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[80319] = new jspb.ExtensionFieldBinaryInfo(
353
+ proto.clarifai.auth.scope.clarifaiDependingScopesList,
354
+ jspb.BinaryReader.prototype.readPackedEnum,
355
+ jspb.BinaryWriter.prototype.writePackedEnum,
356
+ undefined,
357
+ undefined,
358
+ true);
291
359
  // This registers the extension field with the extended class, so that
292
360
  // toObject() will function correctly.
293
361
  google_protobuf_descriptor_pb.EnumValueOptions.extensions[80319] = proto.clarifai.auth.scope.clarifaiDependingScopesList;
362
+
294
363
  goog.object.extend(exports, proto.clarifai.auth.scope);
@@ -1 +1,10 @@
1
- export {};
1
+ import * as jspb from "google-protobuf"
2
+
3
+ export enum AuthType {
4
+ UNDEF = 0,
5
+ NOAUTH = 1,
6
+ KEYAUTH = 2,
7
+ SESSIONTOKENAUTH = 3,
8
+ ADMINAUTH = 4,
9
+ PATAUTH = 5,
10
+ }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // source: proto/clarifai/auth/types/types.proto
3
2
  /**
4
3
  * @fileoverview
@@ -8,19 +7,22 @@
8
7
  * @public
9
8
  */
10
9
  // 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
+
14
15
  goog.exportSymbol('proto.clarifai.auth.types.AuthType', null, global);
15
16
  /**
16
17
  * @enum {number}
17
18
  */
18
19
  proto.clarifai.auth.types.AuthType = {
19
- UNDEF: 0,
20
- NOAUTH: 1,
21
- KEYAUTH: 2,
22
- SESSIONTOKENAUTH: 3,
23
- ADMINAUTH: 4,
24
- PATAUTH: 5
20
+ UNDEF: 0,
21
+ NOAUTH: 1,
22
+ KEYAUTH: 2,
23
+ SESSIONTOKENAUTH: 3,
24
+ ADMINAUTH: 4,
25
+ PATAUTH: 5
25
26
  };
27
+
26
28
  goog.object.extend(exports, proto.clarifai.auth.types);
@@ -1 +1,6 @@
1
- export {};
1
+ import * as jspb from "google-protobuf"
2
+
3
+ import * as proto_clarifai_auth_scope_scope_pb from '../../../../proto/clarifai/auth/scope/scope_pb';
4
+ import * as proto_clarifai_auth_types_types_pb from '../../../../proto/clarifai/auth/types/types_pb';
5
+ import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb';
6
+