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.
- package/CHANGELOG.md +2 -2
- package/lib/google/api/annotations_grpc_pb.js +1 -2
- package/lib/google/api/annotations_pb.js +19 -4
- package/lib/google/api/http_grpc_pb.js +1 -2
- package/lib/google/api/http_pb.js +606 -414
- package/lib/proto/clarifai/api/resources_pb.d.ts +5052 -1
- package/lib/proto/clarifai/api/resources_pb.js +26126 -17879
- package/lib/proto/clarifai/api/serviceServiceClientPb.ts +3002 -0
- package/lib/proto/clarifai/api/service_pb.d.ts +5582 -1
- package/lib/proto/clarifai/api/service_pb.js +30050 -20944
- package/lib/proto/clarifai/api/status/status_code_pb.d.ts +296 -1
- package/lib/proto/clarifai/api/status/status_code_pb.js +295 -293
- package/lib/proto/clarifai/api/status/status_pb.d.ts +73 -1
- package/lib/proto/clarifai/api/status/status_pb.js +357 -250
- package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +4 -1
- package/lib/proto/clarifai/api/utils/extensions_pb.js +53 -10
- package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +81 -1
- package/lib/proto/clarifai/api/utils/test_proto_pb.js +385 -266
- package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +92 -1
- package/lib/proto/clarifai/auth/scope/scope_pb.js +232 -163
- package/lib/proto/clarifai/auth/types/types_pb.d.ts +10 -1
- package/lib/proto/clarifai/auth/types/types_pb.js +9 -7
- package/lib/proto/clarifai/auth/util/extension_pb.d.ts +6 -1
- package/lib/proto/clarifai/auth/util/extension_pb.js +87 -16
- package/package.json +15 -24
- package/tests/basic.test.ts +4 -30
- package/tests/helpers.test.ts +25 -41
- package/tsconfig.json +5 -4
- package/dist/google/api/annotations_grpc_pb.d.ts +0 -0
- package/dist/google/api/annotations_grpc_pb.js +0 -2
- package/dist/google/api/annotations_pb.d.ts +0 -1
- package/dist/google/api/annotations_pb.js +0 -32
- package/dist/google/api/http_grpc_pb.d.ts +0 -0
- package/dist/google/api/http_grpc_pb.js +0 -2
- package/dist/google/api/http_pb.d.ts +0 -1
- package/dist/google/api/http_pb.js +0 -813
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -11
- package/dist/proto/clarifai/api/resources_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/resources_pb.js +0 -32957
- package/dist/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/dist/proto/clarifai/api/serviceServiceClientPb.js +0 -908
- package/dist/proto/clarifai/api/service_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/service_pb.js +0 -38791
- package/dist/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/status/status_code_pb.js +0 -312
- package/dist/proto/clarifai/api/status/status_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/status/status_pb.js +0 -473
- package/dist/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/utils/extensions_pb.js +0 -52
- package/dist/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
- package/dist/proto/clarifai/api/utils/test_proto_pb.js +0 -521
- package/dist/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
- package/dist/proto/clarifai/auth/scope/scope_pb.js +0 -294
- package/dist/proto/clarifai/auth/types/types_pb.d.ts +0 -1
- package/dist/proto/clarifai/auth/types/types_pb.js +0 -26
- package/dist/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
- package/dist/proto/clarifai/auth/util/extension_pb.js +0 -80
- package/dist/resources.d.ts +0 -12
- package/dist/resources.js +0 -47
- package/dist/service.d.ts +0 -1
- package/dist/service.js +0 -13
- package/tsconfig.cjs.json +0 -7
|
@@ -1 +1,92 @@
|
|
|
1
|
-
|
|
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
|
|
31
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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,
|
|
48
|
+
proto.clarifai.auth.scope.ScopeList.repeatedFields_ = [1,2];
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
47
52
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
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
|
|
161
|
-
|
|
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
|
|
169
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
190
|
-
|
|
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
|
|
198
|
-
|
|
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
|
-
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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(
|
|
278
|
-
|
|
279
|
-
|
|
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(
|
|
289
|
-
|
|
290
|
-
|
|
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,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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
+
|