clarifai-web-grpc 4.2.0 → 5.1.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.
Files changed (45) hide show
  1. package/.github/workflows/codeql-analysis.yml +72 -0
  2. package/CHANGELOG.md +3 -2
  3. package/README.md +15 -18
  4. package/VERSION +1 -1
  5. package/dist/cjs/proto/clarifai/api/resources_pb.js +6502 -822
  6. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +1324 -106
  7. package/dist/cjs/proto/clarifai/api/service_pb.js +8771 -326
  8. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +21 -15
  9. package/dist/cjs/proto/clarifai/api/status/status_pb.js +6 -15
  10. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +6 -15
  11. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +6 -15
  12. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +6 -15
  13. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +16 -16
  14. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +6 -15
  15. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +6 -15
  16. package/dist/esm/proto/clarifai/api/resources_pb.js +6502 -822
  17. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +1324 -106
  18. package/dist/esm/proto/clarifai/api/service_pb.js +8771 -326
  19. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +21 -15
  20. package/dist/esm/proto/clarifai/api/status/status_pb.js +6 -15
  21. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +6 -15
  22. package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +6 -15
  23. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +6 -15
  24. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +16 -16
  25. package/dist/esm/proto/clarifai/auth/types/types_pb.js +6 -15
  26. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +6 -15
  27. package/package.json +2 -2
  28. package/package.json-E +1 -1
  29. package/proto/clarifai/api/resources_pb.d.ts +886 -14
  30. package/proto/clarifai/api/resources_pb.js +8083 -959
  31. package/proto/clarifai/api/service_grpc_web_pb.d.ts +360 -12
  32. package/proto/clarifai/api/service_grpc_web_pb.js +1915 -146
  33. package/proto/clarifai/api/service_pb.d.ts +1305 -99
  34. package/proto/clarifai/api/service_pb.js +10750 -349
  35. package/proto/clarifai/api/status/status_code_pb.d.ts +15 -0
  36. package/proto/clarifai/api/status/status_code_pb.js +22 -7
  37. package/proto/clarifai/api/status/status_pb.js +7 -7
  38. package/proto/clarifai/api/utils/extensions_pb.js +7 -7
  39. package/proto/clarifai/api/utils/matrix_pb.js +7 -7
  40. package/proto/clarifai/api/utils/test_proto_pb.js +7 -7
  41. package/proto/clarifai/auth/scope/scope_pb.d.ts +9 -0
  42. package/proto/clarifai/auth/scope/scope_pb.js +17 -8
  43. package/proto/clarifai/auth/types/types_pb.js +7 -7
  44. package/proto/clarifai/auth/util/extension_pb.js +7 -7
  45. package/LICENCE +0 -13
@@ -113,6 +113,11 @@ export enum StatusCode {
113
113
  DATA_DUMP_IN_PROGRESS = 25153,
114
114
  DATA_DUMP_NO_DATA = 25154,
115
115
  DATA_DUMP_UNEXPECTED_ERROR = 25155,
116
+ DATA_DUMP_EXPORT_SUCCESS = 25170,
117
+ DATA_DUMP_EXPORT_PENDING = 25171,
118
+ DATA_DUMP_EXPORT_FAILED = 25172,
119
+ DATA_DUMP_EXPORT_IN_PROGRESS = 25173,
120
+ DATA_DUMP_EXPORT_UNEXPECTED_ERROR = 25174,
116
121
  APP_DUPLICATION_SUCCESS = 25200,
117
122
  APP_DUPLICATION_FAILED = 25201,
118
123
  APP_DUPLICATION_PENDING = 25202,
@@ -293,7 +298,17 @@ export enum StatusCode {
293
298
  JOB_RUNNING = 64001,
294
299
  JOB_COMPLETED = 64002,
295
300
  JOB_FAILED = 64003,
301
+ JOB_CANCELLED = 64004,
302
+ JOB_UNEXPECTED_ERROR = 64006,
296
303
  AUTH_MISSING_IDP_ASSOC = 65000,
304
+ LIST_OBJECTS_FAILED = 66000,
305
+ ARCHIVE_EXTRACT_FAILED = 67000,
306
+ UPLOAD_IN_PROGRESS = 68000,
307
+ UPLOAD_DONE = 68001,
308
+ UPLOAD_FAILED = 68002,
309
+ UPLOAD_UNEXPECTED_ERROR = 68003,
310
+ UPLOAD_EXPIRED = 68004,
311
+ BILLING_INVALID_INFO = 69000,
297
312
  INTERNAL_SERVER_ISSUE = 98004,
298
313
  INTERNAL_FETCHING_ISSUE = 98005,
299
314
  INTERNAL_DATABASE_ISSUE = 98006,
@@ -13,13 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
23
 
24
24
  goog.exportSymbol('proto.clarifai.api.status.StatusCode', null, global);
25
25
  /**
@@ -136,6 +136,11 @@ proto.clarifai.api.status.StatusCode = {
136
136
  DATA_DUMP_IN_PROGRESS: 25153,
137
137
  DATA_DUMP_NO_DATA: 25154,
138
138
  DATA_DUMP_UNEXPECTED_ERROR: 25155,
139
+ DATA_DUMP_EXPORT_SUCCESS: 25170,
140
+ DATA_DUMP_EXPORT_PENDING: 25171,
141
+ DATA_DUMP_EXPORT_FAILED: 25172,
142
+ DATA_DUMP_EXPORT_IN_PROGRESS: 25173,
143
+ DATA_DUMP_EXPORT_UNEXPECTED_ERROR: 25174,
139
144
  APP_DUPLICATION_SUCCESS: 25200,
140
145
  APP_DUPLICATION_FAILED: 25201,
141
146
  APP_DUPLICATION_PENDING: 25202,
@@ -316,7 +321,17 @@ proto.clarifai.api.status.StatusCode = {
316
321
  JOB_RUNNING: 64001,
317
322
  JOB_COMPLETED: 64002,
318
323
  JOB_FAILED: 64003,
324
+ JOB_CANCELLED: 64004,
325
+ JOB_UNEXPECTED_ERROR: 64006,
319
326
  AUTH_MISSING_IDP_ASSOC: 65000,
327
+ LIST_OBJECTS_FAILED: 66000,
328
+ ARCHIVE_EXTRACT_FAILED: 67000,
329
+ UPLOAD_IN_PROGRESS: 68000,
330
+ UPLOAD_DONE: 68001,
331
+ UPLOAD_FAILED: 68002,
332
+ UPLOAD_UNEXPECTED_ERROR: 68003,
333
+ UPLOAD_EXPIRED: 68004,
334
+ BILLING_INVALID_INFO: 69000,
320
335
  INTERNAL_SERVER_ISSUE: 98004,
321
336
  INTERNAL_FETCHING_ISSUE: 98005,
322
337
  INTERNAL_DATABASE_ISSUE: 98006,
@@ -13,13 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
23
 
24
24
  var proto_clarifai_auth_util_extension_pb = require('../../../../proto/clarifai/auth/util/extension_pb.js');
25
25
  goog.object.extend(proto, proto_clarifai_auth_util_extension_pb);
@@ -13,13 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
23
 
24
24
  var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
25
25
  goog.object.extend(proto, google_protobuf_descriptor_pb);
@@ -13,13 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
23
 
24
24
  goog.exportSymbol('proto.MatrixUint64', null, global);
25
25
  /**
@@ -13,13 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
23
 
24
24
  var proto_clarifai_api_utils_extensions_pb = require('../../../../proto/clarifai/api/utils/extensions_pb.js');
25
25
  goog.object.extend(proto, proto_clarifai_api_utils_extensions_pb);
@@ -92,6 +92,12 @@ export enum S {
92
92
  DATASETS_GET = 105,
93
93
  DATASETS_ADD = 106,
94
94
  DATASETS_DELETE = 107,
95
+ MODULES_ADD = 108,
96
+ MODULES_GET = 109,
97
+ MODULES_DELETE = 110,
98
+ INSTALLEDMODULEVERSIONS_ADD = 111,
99
+ INSTALLEDMODULEVERSIONS_GET = 112,
100
+ INSTALLEDMODULEVERSIONS_DELETE = 113,
95
101
  SEARCH = 3,
96
102
  SAVEDSEARCH_GET = 114,
97
103
  SAVEDSEARCH_ADD = 115,
@@ -104,4 +110,7 @@ export enum S {
104
110
  BULKOPERATION_GET = 122,
105
111
  BULKOPERATION_DELETE = 123,
106
112
  HISTORICALUSAGE_GET = 124,
113
+ UPLOADS_GET = 128,
114
+ UPLOADS_ADD = 129,
115
+ UPLOADS_DELETE = 130,
107
116
  }
@@ -13,13 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
23
 
24
24
  var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
25
25
  goog.object.extend(proto, google_protobuf_descriptor_pb);
@@ -321,6 +321,12 @@ proto.clarifai.auth.scope.S = {
321
321
  DATASETS_GET: 105,
322
322
  DATASETS_ADD: 106,
323
323
  DATASETS_DELETE: 107,
324
+ MODULES_ADD: 108,
325
+ MODULES_GET: 109,
326
+ MODULES_DELETE: 110,
327
+ INSTALLEDMODULEVERSIONS_ADD: 111,
328
+ INSTALLEDMODULEVERSIONS_GET: 112,
329
+ INSTALLEDMODULEVERSIONS_DELETE: 113,
324
330
  SEARCH: 3,
325
331
  SAVEDSEARCH_GET: 114,
326
332
  SAVEDSEARCH_ADD: 115,
@@ -332,7 +338,10 @@ proto.clarifai.auth.scope.S = {
332
338
  BULKOPERATION_ADD: 121,
333
339
  BULKOPERATION_GET: 122,
334
340
  BULKOPERATION_DELETE: 123,
335
- HISTORICALUSAGE_GET: 124
341
+ HISTORICALUSAGE_GET: 124,
342
+ UPLOADS_GET: 128,
343
+ UPLOADS_ADD: 129,
344
+ UPLOADS_DELETE: 130
336
345
  };
337
346
 
338
347
 
@@ -13,13 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
23
 
24
24
  goog.exportSymbol('proto.clarifai.auth.types.AuthType', null, global);
25
25
  /**
@@ -13,13 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
23
 
24
24
  var proto_clarifai_auth_scope_scope_pb = require('../../../../proto/clarifai/auth/scope/scope_pb.js');
25
25
  goog.object.extend(proto, proto_clarifai_auth_scope_scope_pb);
package/LICENCE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2021 Clarifai, Inc.
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.