clarifai-web-grpc 3.0.0 → 4.2.0
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 -2
- package/CHANGELOG.md +3 -10
- package/README.md +2 -2
- package/VERSION +1 -1
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/index.js +6 -4
- package/dist/cjs/proto/clarifai/api/resources_pb.js +8300 -1715
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +6999 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +20160 -8780
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +37 -1
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +255 -2
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +18 -1
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +206 -0
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +18 -1
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +38 -5
- package/dist/cjs/proto/clarifai/auth/types/types_pb.js +18 -1
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +18 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/proto/clarifai/api/resources_pb.js +8300 -1715
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +6999 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +20160 -8780
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +37 -1
- package/dist/esm/proto/clarifai/api/status/status_pb.js +255 -2
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +18 -1
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +206 -0
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +18 -1
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +38 -5
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +18 -1
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +18 -1
- package/index.ts +3 -3
- package/package.json +3 -8
- package/package.json-E +52 -0
- package/proto/clarifai/api/resources_pb.d.ts +2022 -1020
- package/proto/clarifai/api/resources_pb.js +21288 -13035
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +2000 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +10160 -0
- package/proto/clarifai/api/service_pb.d.ts +2788 -1161
- package/proto/clarifai/api/service_pb.js +23741 -9706
- package/proto/clarifai/api/status/status_code_pb.d.ts +22 -1
- package/proto/clarifai/api/status/status_code_pb.js +29 -1
- package/proto/clarifai/api/status/status_pb.d.ts +50 -13
- package/proto/clarifai/api/status/status_pb.js +304 -2
- package/proto/clarifai/api/utils/extensions_pb.d.ts +2 -1
- package/proto/clarifai/api/utils/extensions_pb.js +10 -1
- package/proto/clarifai/api/utils/matrix_pb.d.ts +28 -0
- package/proto/clarifai/api/utils/matrix_pb.js +234 -0
- package/proto/clarifai/api/utils/test_proto_pb.d.ts +12 -11
- package/proto/clarifai/api/utils/test_proto_pb.js +10 -1
- package/proto/clarifai/auth/scope/scope_pb.d.ts +23 -8
- package/proto/clarifai/auth/scope/scope_pb.js +30 -5
- package/proto/clarifai/auth/types/types_pb.d.ts +3 -1
- package/proto/clarifai/auth/types/types_pb.js +10 -1
- package/proto/clarifai/auth/util/extension_pb.d.ts +2 -1
- package/proto/clarifai/auth/util/extension_pb.js +10 -1
- package/.husky/pre-commit +0 -4
- package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
- package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
- package/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
- package/tests/basic.test.ts +0 -41
- package/tests/package.test.ts +0 -0
|
@@ -3,14 +3,31 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview
|
|
5
5
|
* @enhanceable
|
|
6
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
7
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
8
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
// @ts-nocheck
|
|
11
14
|
var jspb = require('google-protobuf');
|
|
12
15
|
var goog = jspb;
|
|
13
|
-
var global =
|
|
16
|
+
var global = (function () {
|
|
17
|
+
if (this) {
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
if (typeof window !== 'undefined') {
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
if (typeof global !== 'undefined') {
|
|
24
|
+
return global;
|
|
25
|
+
}
|
|
26
|
+
if (typeof self !== 'undefined') {
|
|
27
|
+
return self;
|
|
28
|
+
}
|
|
29
|
+
return Function('return this')();
|
|
30
|
+
}.call(null));
|
|
14
31
|
var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
|
|
15
32
|
goog.object.extend(proto, google_protobuf_descriptor_pb);
|
|
16
33
|
goog.exportSymbol('proto.clarifai.auth.scope.S', null, global);
|
|
@@ -105,8 +122,10 @@ proto.clarifai.auth.scope.ScopeList.deserializeBinaryFromReader = function (msg,
|
|
|
105
122
|
var field = reader.getFieldNumber();
|
|
106
123
|
switch (field) {
|
|
107
124
|
case 1:
|
|
108
|
-
var
|
|
109
|
-
|
|
125
|
+
var values = /** @type {!Array<!proto.clarifai.auth.scope.S>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
126
|
+
for (var i = 0; i < values.length; i++) {
|
|
127
|
+
msg.addScopes(values[i]);
|
|
128
|
+
}
|
|
110
129
|
break;
|
|
111
130
|
case 2:
|
|
112
131
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -211,7 +230,6 @@ proto.clarifai.auth.scope.S = {
|
|
|
211
230
|
UNDEF: 0,
|
|
212
231
|
ALL: 1,
|
|
213
232
|
PREDICT: 2,
|
|
214
|
-
SEARCH: 3,
|
|
215
233
|
INPUTS_ADD: 4,
|
|
216
234
|
INPUTS_GET: 5,
|
|
217
235
|
INPUTS_PATCH: 7,
|
|
@@ -267,7 +285,22 @@ proto.clarifai.auth.scope.S = {
|
|
|
267
285
|
USERFEATURECONFIGS_GET: 71,
|
|
268
286
|
FINDDUPLICATEANNOTATIONSJOBS_ADD: 102,
|
|
269
287
|
FINDDUPLICATEANNOTATIONSJOBS_GET: 103,
|
|
270
|
-
FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104
|
|
288
|
+
FINDDUPLICATEANNOTATIONSJOBS_DELETE: 104,
|
|
289
|
+
DATASETS_GET: 105,
|
|
290
|
+
DATASETS_ADD: 106,
|
|
291
|
+
DATASETS_DELETE: 107,
|
|
292
|
+
SEARCH: 3,
|
|
293
|
+
SAVEDSEARCH_GET: 114,
|
|
294
|
+
SAVEDSEARCH_ADD: 115,
|
|
295
|
+
SAVEDSEARCH_DELETE: 116,
|
|
296
|
+
MODELVERSIONPUBLICATIONS_ADD: 117,
|
|
297
|
+
MODELVERSIONPUBLICATIONS_DELETE: 118,
|
|
298
|
+
WORKFLOWPUBLICATIONS_ADD: 119,
|
|
299
|
+
WORKFLOWPUBLICATIONS_DELETE: 120,
|
|
300
|
+
BULKOPERATION_ADD: 121,
|
|
301
|
+
BULKOPERATION_GET: 122,
|
|
302
|
+
BULKOPERATION_DELETE: 123,
|
|
303
|
+
HISTORICALUSAGE_GET: 124
|
|
271
304
|
};
|
|
272
305
|
/**
|
|
273
306
|
* A tuple of {field number, class constructor} for the extension
|
|
@@ -3,14 +3,31 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview
|
|
5
5
|
* @enhanceable
|
|
6
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
7
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
8
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
// @ts-nocheck
|
|
11
14
|
var jspb = require('google-protobuf');
|
|
12
15
|
var goog = jspb;
|
|
13
|
-
var global =
|
|
16
|
+
var global = (function () {
|
|
17
|
+
if (this) {
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
if (typeof window !== 'undefined') {
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
if (typeof global !== 'undefined') {
|
|
24
|
+
return global;
|
|
25
|
+
}
|
|
26
|
+
if (typeof self !== 'undefined') {
|
|
27
|
+
return self;
|
|
28
|
+
}
|
|
29
|
+
return Function('return this')();
|
|
30
|
+
}.call(null));
|
|
14
31
|
goog.exportSymbol('proto.clarifai.auth.types.AuthType', null, global);
|
|
15
32
|
/**
|
|
16
33
|
* @enum {number}
|
|
@@ -3,14 +3,31 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview
|
|
5
5
|
* @enhanceable
|
|
6
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
7
|
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
8
|
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
9
|
* @public
|
|
9
10
|
*/
|
|
10
11
|
// GENERATED CODE -- DO NOT EDIT!
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
// @ts-nocheck
|
|
11
14
|
var jspb = require('google-protobuf');
|
|
12
15
|
var goog = jspb;
|
|
13
|
-
var global =
|
|
16
|
+
var global = (function () {
|
|
17
|
+
if (this) {
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
if (typeof window !== 'undefined') {
|
|
21
|
+
return window;
|
|
22
|
+
}
|
|
23
|
+
if (typeof global !== 'undefined') {
|
|
24
|
+
return global;
|
|
25
|
+
}
|
|
26
|
+
if (typeof self !== 'undefined') {
|
|
27
|
+
return self;
|
|
28
|
+
}
|
|
29
|
+
return Function('return this')();
|
|
30
|
+
}.call(null));
|
|
14
31
|
var proto_clarifai_auth_scope_scope_pb = require('../../../../proto/clarifai/auth/scope/scope_pb.js');
|
|
15
32
|
goog.object.extend(proto, proto_clarifai_auth_scope_scope_pb);
|
|
16
33
|
var proto_clarifai_auth_types_types_pb = require('../../../../proto/clarifai/auth/types/types_pb.js');
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V2Client } from './proto/clarifai/api/
|
|
1
|
+
import { V2Client, V2PromiseClient } from './proto/clarifai/api/service_grpc_web_pb';
|
|
2
2
|
export declare class ClarifaiStub {
|
|
3
3
|
static grpc(hostname?: string): V2Client;
|
|
4
4
|
}
|
|
5
|
-
export { V2Client };
|
|
6
|
-
export {
|
|
5
|
+
export { V2Client, V2PromiseClient };
|
|
6
|
+
export { RpcError, Metadata, ClientReadableStream } from 'grpc-web';
|
|
7
7
|
export { BaseResponse } from './proto/clarifai/api/status/status_pb';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { V2Client } from './proto/clarifai/api/
|
|
1
|
+
import { V2Client, V2PromiseClient } from './proto/clarifai/api/service_grpc_web_pb';
|
|
2
2
|
export class ClarifaiStub {
|
|
3
3
|
static grpc(hostname = 'api.clarifai.com') {
|
|
4
4
|
return new V2Client(hostname);
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
-
export { V2Client };
|
|
8
|
-
export { ClientReadableStream } from 'grpc-web';
|
|
7
|
+
export { V2Client, V2PromiseClient };
|
|
8
|
+
export { RpcError, ClientReadableStream } from 'grpc-web';
|
|
9
9
|
export { BaseResponse } from './proto/clarifai/api/status/status_pb';
|