clarifai-web-grpc 1.1.6 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +0 -6
- package/CHANGELOG.md +2 -2
- package/{lib/google → google}/api/annotations_grpc_pb.js +0 -0
- package/{src/google → google}/api/annotations_pb.js +0 -0
- package/{lib/google → google}/api/http_grpc_pb.js +0 -0
- package/{src/google → google}/api/http_pb.js +0 -0
- package/lib/google/api/annotations_pb.js +4 -19
- package/lib/google/api/http_pb.js +414 -606
- package/lib/proto/clarifai/api/resources_pb.d.ts +1 -5052
- package/lib/proto/clarifai/api/resources_pb.js +17880 -26127
- package/lib/proto/clarifai/api/service_pb.d.ts +1 -5582
- package/lib/proto/clarifai/api/service_pb.js +20941 -30047
- package/lib/proto/clarifai/api/status/status_code_pb.d.ts +1 -296
- package/lib/proto/clarifai/api/status/status_code_pb.js +293 -295
- package/lib/proto/clarifai/api/status/status_pb.d.ts +1 -73
- package/lib/proto/clarifai/api/status/status_pb.js +250 -357
- package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +1 -4
- package/lib/proto/clarifai/api/utils/extensions_pb.js +10 -53
- package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -81
- package/lib/proto/clarifai/api/utils/test_proto_pb.js +266 -385
- package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +1 -92
- package/lib/proto/clarifai/auth/scope/scope_pb.js +163 -232
- package/lib/proto/clarifai/auth/types/types_pb.d.ts +1 -10
- package/lib/proto/clarifai/auth/types/types_pb.js +7 -9
- package/lib/proto/clarifai/auth/util/extension_pb.d.ts +1 -6
- package/lib/proto/clarifai/auth/util/extension_pb.js +16 -87
- package/package.json +6 -30
- package/{src/proto → proto}/clarifai/api/resources_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/resources_pb.js +0 -0
- package/{lib/proto → proto}/clarifai/api/serviceServiceClientPb.ts +0 -0
- package/{src/proto → proto}/clarifai/api/service_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/service_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_code_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/status/status_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/utils/extensions_pb.js +0 -0
- package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/auth/scope/scope_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/types/types_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/auth/types/types_pb.js +0 -0
- package/{src/proto → proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
- package/{src/proto → proto}/clarifai/auth/util/extension_pb.js +0 -0
- package/tsconfig.json +3 -9
- package/.husky/pre-commit +0 -4
- package/.mocharc.yml +0 -5
- package/lib/google/api/annotations_grpc_pb.d.ts +0 -0
- package/lib/google/api/http_grpc_pb.d.ts +0 -0
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -7
- package/lib/resources.d.ts +0 -12
- package/lib/resources.js +0 -11
- package/lib/service.d.ts +0 -1
- package/lib/service.js +0 -1
- package/src/google/api/annotations_grpc_pb.js +0 -1
- package/src/google/api/http_grpc_pb.js +0 -1
- package/src/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
- package/tests/basic.test.ts +0 -15
- package/tests/helpers.test.ts +0 -31
|
@@ -1,92 +1 @@
|
|
|
1
|
-
|
|
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
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// source: proto/clarifai/auth/scope/scope.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 google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
|
16
15
|
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
17
16
|
goog.exportSymbol('proto.clarifai.auth.scope.S', null, global);
|
|
@@ -28,80 +27,69 @@ goog.exportSymbol('proto.clarifai.auth.scope.clarifaiDependingScopesList', null,
|
|
|
28
27
|
* @extends {jspb.Message}
|
|
29
28
|
* @constructor
|
|
30
29
|
*/
|
|
31
|
-
proto.clarifai.auth.scope.ScopeList = function(opt_data) {
|
|
32
|
-
|
|
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);
|
|
33
32
|
};
|
|
34
33
|
goog.inherits(proto.clarifai.auth.scope.ScopeList, jspb.Message);
|
|
35
34
|
if (goog.DEBUG && !COMPILED) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
* @override
|
|
38
|
+
*/
|
|
39
|
+
proto.clarifai.auth.scope.ScopeList.displayName = 'proto.clarifai.auth.scope.ScopeList';
|
|
41
40
|
}
|
|
42
|
-
|
|
43
41
|
/**
|
|
44
42
|
* List of repeated fields within this message type.
|
|
45
43
|
* @private {!Array<number>}
|
|
46
44
|
* @const
|
|
47
45
|
*/
|
|
48
|
-
proto.clarifai.auth.scope.ScopeList.repeatedFields_ = [1,2];
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
proto.clarifai.auth.scope.ScopeList.repeatedFields_ = [1, 2];
|
|
52
47
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
proto.clarifai.auth.scope.ScopeList.prototype.toObject = function(opt_includeInstance) {
|
|
66
|
-
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
return obj;
|
|
89
|
-
};
|
|
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
|
+
};
|
|
90
82
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
83
|
/**
|
|
94
84
|
* Deserializes binary data (in protobuf wire format).
|
|
95
85
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
96
86
|
* @return {!proto.clarifai.auth.scope.ScopeList}
|
|
97
87
|
*/
|
|
98
|
-
proto.clarifai.auth.scope.ScopeList.deserializeBinary = function(bytes) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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);
|
|
102
92
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
93
|
/**
|
|
106
94
|
* Deserializes binary data (in protobuf wire format) from the
|
|
107
95
|
* given reader into the given message object.
|
|
@@ -109,41 +97,37 @@ proto.clarifai.auth.scope.ScopeList.deserializeBinary = function(bytes) {
|
|
|
109
97
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
110
98
|
* @return {!proto.clarifai.auth.scope.ScopeList}
|
|
111
99
|
*/
|
|
112
|
-
proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader = function(msg, reader) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
+
}
|
|
130
119
|
}
|
|
131
|
-
|
|
132
|
-
return msg;
|
|
120
|
+
return msg;
|
|
133
121
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
122
|
/**
|
|
137
123
|
* Serializes the message to binary data (in protobuf wire format).
|
|
138
124
|
* @return {!Uint8Array}
|
|
139
125
|
*/
|
|
140
|
-
proto.clarifai.auth.scope.ScopeList.prototype.serializeBinary = function() {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
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();
|
|
144
130
|
};
|
|
145
|
-
|
|
146
|
-
|
|
147
131
|
/**
|
|
148
132
|
* Serializes the given message to binary data (in protobuf wire
|
|
149
133
|
* format), writing to the given BinaryWriter.
|
|
@@ -151,213 +135,160 @@ proto.clarifai.auth.scope.ScopeList.prototype.serializeBinary = function() {
|
|
|
151
135
|
* @param {!jspb.BinaryWriter} writer
|
|
152
136
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
153
137
|
*/
|
|
154
|
-
proto.clarifai.auth.scope.ScopeList.serializeBinaryToWriter = function(message, writer) {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if (f.length > 0) {
|
|
165
|
-
writer.writeRepeatedString(
|
|
166
|
-
2,
|
|
167
|
-
f
|
|
168
|
-
);
|
|
169
|
-
}
|
|
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
|
+
}
|
|
170
148
|
};
|
|
171
|
-
|
|
172
|
-
|
|
173
149
|
/**
|
|
174
150
|
* repeated S scopes = 1;
|
|
175
151
|
* @return {!Array<!proto.clarifai.auth.scope.S>}
|
|
176
152
|
*/
|
|
177
|
-
proto.clarifai.auth.scope.ScopeList.prototype.getScopesList = function() {
|
|
178
|
-
|
|
153
|
+
proto.clarifai.auth.scope.ScopeList.prototype.getScopesList = function () {
|
|
154
|
+
return /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
179
155
|
};
|
|
180
|
-
|
|
181
|
-
|
|
182
156
|
/**
|
|
183
157
|
* @param {!Array<!proto.clarifai.auth.scope.S>} value
|
|
184
158
|
* @return {!proto.clarifai.auth.scope.ScopeList} returns this
|
|
185
159
|
*/
|
|
186
|
-
proto.clarifai.auth.scope.ScopeList.prototype.setScopesList = function(value) {
|
|
187
|
-
|
|
160
|
+
proto.clarifai.auth.scope.ScopeList.prototype.setScopesList = function (value) {
|
|
161
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
188
162
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
163
|
/**
|
|
192
164
|
* @param {!proto.clarifai.auth.scope.S} value
|
|
193
165
|
* @param {number=} opt_index
|
|
194
166
|
* @return {!proto.clarifai.auth.scope.ScopeList} returns this
|
|
195
167
|
*/
|
|
196
|
-
proto.clarifai.auth.scope.ScopeList.prototype.addScopes = function(value, opt_index) {
|
|
197
|
-
|
|
168
|
+
proto.clarifai.auth.scope.ScopeList.prototype.addScopes = function (value, opt_index) {
|
|
169
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
198
170
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
171
|
/**
|
|
202
172
|
* Clears the list making it empty but non-null.
|
|
203
173
|
* @return {!proto.clarifai.auth.scope.ScopeList} returns this
|
|
204
174
|
*/
|
|
205
|
-
proto.clarifai.auth.scope.ScopeList.prototype.clearScopesList = function() {
|
|
206
|
-
|
|
175
|
+
proto.clarifai.auth.scope.ScopeList.prototype.clearScopesList = function () {
|
|
176
|
+
return this.setScopesList([]);
|
|
207
177
|
};
|
|
208
|
-
|
|
209
|
-
|
|
210
178
|
/**
|
|
211
179
|
* repeated string endpoints = 2;
|
|
212
180
|
* @return {!Array<string>}
|
|
213
181
|
*/
|
|
214
|
-
proto.clarifai.auth.scope.ScopeList.prototype.getEndpointsList = function() {
|
|
215
|
-
|
|
182
|
+
proto.clarifai.auth.scope.ScopeList.prototype.getEndpointsList = function () {
|
|
183
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
216
184
|
};
|
|
217
|
-
|
|
218
|
-
|
|
219
185
|
/**
|
|
220
186
|
* @param {!Array<string>} value
|
|
221
187
|
* @return {!proto.clarifai.auth.scope.ScopeList} returns this
|
|
222
188
|
*/
|
|
223
|
-
proto.clarifai.auth.scope.ScopeList.prototype.setEndpointsList = function(value) {
|
|
224
|
-
|
|
189
|
+
proto.clarifai.auth.scope.ScopeList.prototype.setEndpointsList = function (value) {
|
|
190
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
225
191
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
192
|
/**
|
|
229
193
|
* @param {string} value
|
|
230
194
|
* @param {number=} opt_index
|
|
231
195
|
* @return {!proto.clarifai.auth.scope.ScopeList} returns this
|
|
232
196
|
*/
|
|
233
|
-
proto.clarifai.auth.scope.ScopeList.prototype.addEndpoints = function(value, opt_index) {
|
|
234
|
-
|
|
197
|
+
proto.clarifai.auth.scope.ScopeList.prototype.addEndpoints = function (value, opt_index) {
|
|
198
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
235
199
|
};
|
|
236
|
-
|
|
237
|
-
|
|
238
200
|
/**
|
|
239
201
|
* Clears the list making it empty but non-null.
|
|
240
202
|
* @return {!proto.clarifai.auth.scope.ScopeList} returns this
|
|
241
203
|
*/
|
|
242
|
-
proto.clarifai.auth.scope.ScopeList.prototype.clearEndpointsList = function() {
|
|
243
|
-
|
|
204
|
+
proto.clarifai.auth.scope.ScopeList.prototype.clearEndpointsList = function () {
|
|
205
|
+
return this.setEndpointsList([]);
|
|
244
206
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
207
|
/**
|
|
248
208
|
* @enum {number}
|
|
249
209
|
*/
|
|
250
210
|
proto.clarifai.auth.scope.S = {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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
|
|
311
271
|
};
|
|
312
|
-
|
|
313
|
-
|
|
314
272
|
/**
|
|
315
273
|
* A tuple of {field number, class constructor} for the extension
|
|
316
274
|
* field named `clarfaiExposed`.
|
|
317
275
|
* @type {!jspb.ExtensionFieldInfo<boolean>}
|
|
318
276
|
*/
|
|
319
|
-
proto.clarifai.auth.scope.clarfaiExposed = new jspb.ExtensionFieldInfo(
|
|
320
|
-
|
|
321
|
-
|
|
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);
|
|
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);
|
|
334
280
|
// This registers the extension field with the extended class, so that
|
|
335
281
|
// toObject() will function correctly.
|
|
336
282
|
google_protobuf_descriptor_pb.EnumValueOptions.extensions[80318] = proto.clarifai.auth.scope.clarfaiExposed;
|
|
337
|
-
|
|
338
|
-
|
|
339
283
|
/**
|
|
340
284
|
* A tuple of {field number, class constructor} for the extension
|
|
341
285
|
* field named `clarifaiDependingScopesList`.
|
|
342
286
|
* @type {!jspb.ExtensionFieldInfo<!Array<!proto.clarifai.auth.scope.S>>}
|
|
343
287
|
*/
|
|
344
|
-
proto.clarifai.auth.scope.clarifaiDependingScopesList = new jspb.ExtensionFieldInfo(
|
|
345
|
-
|
|
346
|
-
|
|
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);
|
|
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);
|
|
359
291
|
// This registers the extension field with the extended class, so that
|
|
360
292
|
// toObject() will function correctly.
|
|
361
293
|
google_protobuf_descriptor_pb.EnumValueOptions.extensions[80319] = proto.clarifai.auth.scope.clarifaiDependingScopesList;
|
|
362
|
-
|
|
363
294
|
goog.object.extend(exports, proto.clarifai.auth.scope);
|
|
@@ -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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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,6 +1 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
1
|
+
export {};
|