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.
Files changed (62) hide show
  1. package/.github/workflows/ci.yml +0 -6
  2. package/CHANGELOG.md +2 -2
  3. package/{lib/google → google}/api/annotations_grpc_pb.js +0 -0
  4. package/{src/google → google}/api/annotations_pb.js +0 -0
  5. package/{lib/google → google}/api/http_grpc_pb.js +0 -0
  6. package/{src/google → google}/api/http_pb.js +0 -0
  7. package/lib/google/api/annotations_pb.js +4 -19
  8. package/lib/google/api/http_pb.js +414 -606
  9. package/lib/proto/clarifai/api/resources_pb.d.ts +1 -5052
  10. package/lib/proto/clarifai/api/resources_pb.js +17880 -26127
  11. package/lib/proto/clarifai/api/service_pb.d.ts +1 -5582
  12. package/lib/proto/clarifai/api/service_pb.js +20941 -30047
  13. package/lib/proto/clarifai/api/status/status_code_pb.d.ts +1 -296
  14. package/lib/proto/clarifai/api/status/status_code_pb.js +293 -295
  15. package/lib/proto/clarifai/api/status/status_pb.d.ts +1 -73
  16. package/lib/proto/clarifai/api/status/status_pb.js +250 -357
  17. package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +1 -4
  18. package/lib/proto/clarifai/api/utils/extensions_pb.js +10 -53
  19. package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +1 -81
  20. package/lib/proto/clarifai/api/utils/test_proto_pb.js +266 -385
  21. package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +1 -92
  22. package/lib/proto/clarifai/auth/scope/scope_pb.js +163 -232
  23. package/lib/proto/clarifai/auth/types/types_pb.d.ts +1 -10
  24. package/lib/proto/clarifai/auth/types/types_pb.js +7 -9
  25. package/lib/proto/clarifai/auth/util/extension_pb.d.ts +1 -6
  26. package/lib/proto/clarifai/auth/util/extension_pb.js +16 -87
  27. package/package.json +6 -30
  28. package/{src/proto → proto}/clarifai/api/resources_pb.d.ts +0 -0
  29. package/{src/proto → proto}/clarifai/api/resources_pb.js +0 -0
  30. package/{lib/proto → proto}/clarifai/api/serviceServiceClientPb.ts +0 -0
  31. package/{src/proto → proto}/clarifai/api/service_pb.d.ts +0 -0
  32. package/{src/proto → proto}/clarifai/api/service_pb.js +0 -0
  33. package/{src/proto → proto}/clarifai/api/status/status_code_pb.d.ts +0 -0
  34. package/{src/proto → proto}/clarifai/api/status/status_code_pb.js +0 -0
  35. package/{src/proto → proto}/clarifai/api/status/status_pb.d.ts +0 -0
  36. package/{src/proto → proto}/clarifai/api/status/status_pb.js +0 -0
  37. package/{src/proto → proto}/clarifai/api/utils/extensions_pb.d.ts +0 -0
  38. package/{src/proto → proto}/clarifai/api/utils/extensions_pb.js +0 -0
  39. package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.d.ts +0 -0
  40. package/{src/proto → proto}/clarifai/api/utils/test_proto_pb.js +0 -0
  41. package/{src/proto → proto}/clarifai/auth/scope/scope_pb.d.ts +0 -0
  42. package/{src/proto → proto}/clarifai/auth/scope/scope_pb.js +0 -0
  43. package/{src/proto → proto}/clarifai/auth/types/types_pb.d.ts +0 -0
  44. package/{src/proto → proto}/clarifai/auth/types/types_pb.js +0 -0
  45. package/{src/proto → proto}/clarifai/auth/util/extension_pb.d.ts +0 -0
  46. package/{src/proto → proto}/clarifai/auth/util/extension_pb.js +0 -0
  47. package/tsconfig.json +3 -9
  48. package/.husky/pre-commit +0 -4
  49. package/.mocharc.yml +0 -5
  50. package/lib/google/api/annotations_grpc_pb.d.ts +0 -0
  51. package/lib/google/api/http_grpc_pb.d.ts +0 -0
  52. package/lib/index.d.ts +0 -5
  53. package/lib/index.js +0 -7
  54. package/lib/resources.d.ts +0 -12
  55. package/lib/resources.js +0 -11
  56. package/lib/service.d.ts +0 -1
  57. package/lib/service.js +0 -1
  58. package/src/google/api/annotations_grpc_pb.js +0 -1
  59. package/src/google/api/http_grpc_pb.js +0 -1
  60. package/src/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
  61. package/tests/basic.test.ts +0 -15
  62. package/tests/helpers.test.ts +0 -31
@@ -1,4 +1 @@
1
- import * as jspb from "google-protobuf"
2
-
3
- import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb';
4
-
1
+ export {};
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  // source: proto/clarifai/api/utils/extensions.proto
2
3
  /**
3
4
  * @fileoverview
@@ -7,89 +8,45 @@
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.api.utils.clDefaultFloat', null, global);
18
17
  goog.exportSymbol('proto.clarifai.api.utils.clMoretags', null, global);
19
18
  goog.exportSymbol('proto.clarifai.api.utils.clShowIfEmpty', null, global);
20
-
21
19
  /**
22
20
  * A tuple of {field number, class constructor} for the extension
23
21
  * field named `clShowIfEmpty`.
24
22
  * @type {!jspb.ExtensionFieldInfo<boolean>}
25
23
  */
26
- proto.clarifai.api.utils.clShowIfEmpty = new jspb.ExtensionFieldInfo(
27
- 50000,
28
- {clShowIfEmpty: 0},
29
- null,
30
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
31
- null),
32
- 0);
33
-
34
- google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50000] = new jspb.ExtensionFieldBinaryInfo(
35
- proto.clarifai.api.utils.clShowIfEmpty,
36
- jspb.BinaryReader.prototype.readBool,
37
- jspb.BinaryWriter.prototype.writeBool,
38
- undefined,
39
- undefined,
40
- false);
24
+ proto.clarifai.api.utils.clShowIfEmpty = new jspb.ExtensionFieldInfo(50000, { clShowIfEmpty: 0 }, null,
25
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
26
+ google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50000] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clShowIfEmpty, jspb.BinaryReader.prototype.readBool, jspb.BinaryWriter.prototype.writeBool, undefined, undefined, false);
41
27
  // This registers the extension field with the extended class, so that
42
28
  // toObject() will function correctly.
43
29
  google_protobuf_descriptor_pb.FieldOptions.extensions[50000] = proto.clarifai.api.utils.clShowIfEmpty;
44
-
45
-
46
30
  /**
47
31
  * A tuple of {field number, class constructor} for the extension
48
32
  * field named `clMoretags`.
49
33
  * @type {!jspb.ExtensionFieldInfo<string>}
50
34
  */
51
- proto.clarifai.api.utils.clMoretags = new jspb.ExtensionFieldInfo(
52
- 50001,
53
- {clMoretags: 0},
54
- null,
55
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
56
- null),
57
- 0);
58
-
59
- google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50001] = new jspb.ExtensionFieldBinaryInfo(
60
- proto.clarifai.api.utils.clMoretags,
61
- jspb.BinaryReader.prototype.readString,
62
- jspb.BinaryWriter.prototype.writeString,
63
- undefined,
64
- undefined,
65
- false);
35
+ proto.clarifai.api.utils.clMoretags = new jspb.ExtensionFieldInfo(50001, { clMoretags: 0 }, null,
36
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
37
+ google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50001] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clMoretags, jspb.BinaryReader.prototype.readString, jspb.BinaryWriter.prototype.writeString, undefined, undefined, false);
66
38
  // This registers the extension field with the extended class, so that
67
39
  // toObject() will function correctly.
68
40
  google_protobuf_descriptor_pb.FieldOptions.extensions[50001] = proto.clarifai.api.utils.clMoretags;
69
-
70
-
71
41
  /**
72
42
  * A tuple of {field number, class constructor} for the extension
73
43
  * field named `clDefaultFloat`.
74
44
  * @type {!jspb.ExtensionFieldInfo<number>}
75
45
  */
76
- proto.clarifai.api.utils.clDefaultFloat = new jspb.ExtensionFieldInfo(
77
- 50010,
78
- {clDefaultFloat: 0},
79
- null,
80
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
81
- null),
82
- 0);
83
-
84
- google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50010] = new jspb.ExtensionFieldBinaryInfo(
85
- proto.clarifai.api.utils.clDefaultFloat,
86
- jspb.BinaryReader.prototype.readFloat,
87
- jspb.BinaryWriter.prototype.writeFloat,
88
- undefined,
89
- undefined,
90
- false);
46
+ proto.clarifai.api.utils.clDefaultFloat = new jspb.ExtensionFieldInfo(50010, { clDefaultFloat: 0 }, null,
47
+ /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), 0);
48
+ google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[50010] = new jspb.ExtensionFieldBinaryInfo(proto.clarifai.api.utils.clDefaultFloat, jspb.BinaryReader.prototype.readFloat, jspb.BinaryWriter.prototype.writeFloat, undefined, undefined, false);
91
49
  // This registers the extension field with the extended class, so that
92
50
  // toObject() will function correctly.
93
51
  google_protobuf_descriptor_pb.FieldOptions.extensions[50010] = proto.clarifai.api.utils.clDefaultFloat;
94
-
95
52
  goog.object.extend(exports, proto.clarifai.api.utils);
@@ -1,81 +1 @@
1
- import * as jspb from "google-protobuf"
2
-
3
- import * as proto_clarifai_api_utils_extensions_pb from '../../../../proto/clarifai/api/utils/extensions_pb';
4
-
5
- export class TestProto extends jspb.Message {
6
- getId(): string;
7
- setId(value: string): void;
8
-
9
- getMessage(): string;
10
- setMessage(value: string): void;
11
-
12
- getValue(): number;
13
- setValue(value: number): void;
14
-
15
- getImageBytes(): Uint8Array | string;
16
- getImageBytes_asU8(): Uint8Array;
17
- getImageBytes_asB64(): string;
18
- setImageBytes(value: Uint8Array | string): void;
19
-
20
- getStringOneof(): string;
21
- setStringOneof(value: string): void;
22
-
23
- getBoolOneof(): boolean;
24
- setBoolOneof(value: boolean): void;
25
-
26
- getMessageOneof(): TestProto2 | undefined;
27
- setMessageOneof(value?: TestProto2): void;
28
- hasMessageOneof(): boolean;
29
- clearMessageOneof(): void;
30
-
31
- getOneOfFieldCase(): TestProto.OneOfFieldCase;
32
-
33
- serializeBinary(): Uint8Array;
34
- toObject(includeInstance?: boolean): TestProto.AsObject;
35
- static toObject(includeInstance: boolean, msg: TestProto): TestProto.AsObject;
36
- static serializeBinaryToWriter(message: TestProto, writer: jspb.BinaryWriter): void;
37
- static deserializeBinary(bytes: Uint8Array): TestProto;
38
- static deserializeBinaryFromReader(message: TestProto, reader: jspb.BinaryReader): TestProto;
39
- }
40
-
41
- export namespace TestProto {
42
- export type AsObject = {
43
- id: string,
44
- message: string,
45
- value: number,
46
- imageBytes: Uint8Array | string,
47
- stringOneof: string,
48
- boolOneof: boolean,
49
- messageOneof?: TestProto2.AsObject,
50
- }
51
-
52
- export enum OneOfFieldCase {
53
- ONE_OF_FIELD_NOT_SET = 0,
54
- STRING_ONEOF = 5,
55
- BOOL_ONEOF = 6,
56
- MESSAGE_ONEOF = 7,
57
- }
58
- }
59
-
60
- export class TestProto2 extends jspb.Message {
61
- getId(): string;
62
- setId(value: string): void;
63
-
64
- getFlip(): boolean;
65
- setFlip(value: boolean): void;
66
-
67
- serializeBinary(): Uint8Array;
68
- toObject(includeInstance?: boolean): TestProto2.AsObject;
69
- static toObject(includeInstance: boolean, msg: TestProto2): TestProto2.AsObject;
70
- static serializeBinaryToWriter(message: TestProto2, writer: jspb.BinaryWriter): void;
71
- static deserializeBinary(bytes: Uint8Array): TestProto2;
72
- static deserializeBinaryFromReader(message: TestProto2, reader: jspb.BinaryReader): TestProto2;
73
- }
74
-
75
- export namespace TestProto2 {
76
- export type AsObject = {
77
- id: string,
78
- flip: boolean,
79
- }
80
- }
81
-
1
+ export {};