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.
Files changed (63) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/lib/google/api/annotations_grpc_pb.js +1 -2
  3. package/lib/google/api/annotations_pb.js +19 -4
  4. package/lib/google/api/http_grpc_pb.js +1 -2
  5. package/lib/google/api/http_pb.js +606 -414
  6. package/lib/proto/clarifai/api/resources_pb.d.ts +5052 -1
  7. package/lib/proto/clarifai/api/resources_pb.js +26126 -17879
  8. package/lib/proto/clarifai/api/serviceServiceClientPb.ts +3002 -0
  9. package/lib/proto/clarifai/api/service_pb.d.ts +5582 -1
  10. package/lib/proto/clarifai/api/service_pb.js +30050 -20944
  11. package/lib/proto/clarifai/api/status/status_code_pb.d.ts +296 -1
  12. package/lib/proto/clarifai/api/status/status_code_pb.js +295 -293
  13. package/lib/proto/clarifai/api/status/status_pb.d.ts +73 -1
  14. package/lib/proto/clarifai/api/status/status_pb.js +357 -250
  15. package/lib/proto/clarifai/api/utils/extensions_pb.d.ts +4 -1
  16. package/lib/proto/clarifai/api/utils/extensions_pb.js +53 -10
  17. package/lib/proto/clarifai/api/utils/test_proto_pb.d.ts +81 -1
  18. package/lib/proto/clarifai/api/utils/test_proto_pb.js +385 -266
  19. package/lib/proto/clarifai/auth/scope/scope_pb.d.ts +92 -1
  20. package/lib/proto/clarifai/auth/scope/scope_pb.js +232 -163
  21. package/lib/proto/clarifai/auth/types/types_pb.d.ts +10 -1
  22. package/lib/proto/clarifai/auth/types/types_pb.js +9 -7
  23. package/lib/proto/clarifai/auth/util/extension_pb.d.ts +6 -1
  24. package/lib/proto/clarifai/auth/util/extension_pb.js +87 -16
  25. package/package.json +15 -24
  26. package/tests/basic.test.ts +4 -30
  27. package/tests/helpers.test.ts +25 -41
  28. package/tsconfig.json +5 -4
  29. package/dist/google/api/annotations_grpc_pb.d.ts +0 -0
  30. package/dist/google/api/annotations_grpc_pb.js +0 -2
  31. package/dist/google/api/annotations_pb.d.ts +0 -1
  32. package/dist/google/api/annotations_pb.js +0 -32
  33. package/dist/google/api/http_grpc_pb.d.ts +0 -0
  34. package/dist/google/api/http_grpc_pb.js +0 -2
  35. package/dist/google/api/http_pb.d.ts +0 -1
  36. package/dist/google/api/http_pb.js +0 -813
  37. package/dist/index.d.ts +0 -5
  38. package/dist/index.js +0 -11
  39. package/dist/proto/clarifai/api/resources_pb.d.ts +0 -1
  40. package/dist/proto/clarifai/api/resources_pb.js +0 -32957
  41. package/dist/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  42. package/dist/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  43. package/dist/proto/clarifai/api/service_pb.d.ts +0 -1
  44. package/dist/proto/clarifai/api/service_pb.js +0 -38791
  45. package/dist/proto/clarifai/api/status/status_code_pb.d.ts +0 -1
  46. package/dist/proto/clarifai/api/status/status_code_pb.js +0 -312
  47. package/dist/proto/clarifai/api/status/status_pb.d.ts +0 -1
  48. package/dist/proto/clarifai/api/status/status_pb.js +0 -473
  49. package/dist/proto/clarifai/api/utils/extensions_pb.d.ts +0 -1
  50. package/dist/proto/clarifai/api/utils/extensions_pb.js +0 -52
  51. package/dist/proto/clarifai/api/utils/test_proto_pb.d.ts +0 -1
  52. package/dist/proto/clarifai/api/utils/test_proto_pb.js +0 -521
  53. package/dist/proto/clarifai/auth/scope/scope_pb.d.ts +0 -1
  54. package/dist/proto/clarifai/auth/scope/scope_pb.js +0 -294
  55. package/dist/proto/clarifai/auth/types/types_pb.d.ts +0 -1
  56. package/dist/proto/clarifai/auth/types/types_pb.js +0 -26
  57. package/dist/proto/clarifai/auth/util/extension_pb.d.ts +0 -1
  58. package/dist/proto/clarifai/auth/util/extension_pb.js +0 -80
  59. package/dist/resources.d.ts +0 -12
  60. package/dist/resources.js +0 -47
  61. package/dist/service.d.ts +0 -1
  62. package/dist/service.js +0 -13
  63. package/tsconfig.cjs.json +0 -7
@@ -1 +1,4 @@
1
- export {};
1
+ import * as jspb from "google-protobuf"
2
+
3
+ import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb';
4
+
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // source: proto/clarifai/api/utils/extensions.proto
3
2
  /**
4
3
  * @fileoverview
@@ -8,45 +7,89 @@
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.api.utils.clDefaultFloat', null, global);
17
18
  goog.exportSymbol('proto.clarifai.api.utils.clMoretags', null, global);
18
19
  goog.exportSymbol('proto.clarifai.api.utils.clShowIfEmpty', null, global);
20
+
19
21
  /**
20
22
  * A tuple of {field number, class constructor} for the extension
21
23
  * field named `clShowIfEmpty`.
22
24
  * @type {!jspb.ExtensionFieldInfo<boolean>}
23
25
  */
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);
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);
27
41
  // This registers the extension field with the extended class, so that
28
42
  // toObject() will function correctly.
29
43
  google_protobuf_descriptor_pb.FieldOptions.extensions[50000] = proto.clarifai.api.utils.clShowIfEmpty;
44
+
45
+
30
46
  /**
31
47
  * A tuple of {field number, class constructor} for the extension
32
48
  * field named `clMoretags`.
33
49
  * @type {!jspb.ExtensionFieldInfo<string>}
34
50
  */
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);
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);
38
66
  // This registers the extension field with the extended class, so that
39
67
  // toObject() will function correctly.
40
68
  google_protobuf_descriptor_pb.FieldOptions.extensions[50001] = proto.clarifai.api.utils.clMoretags;
69
+
70
+
41
71
  /**
42
72
  * A tuple of {field number, class constructor} for the extension
43
73
  * field named `clDefaultFloat`.
44
74
  * @type {!jspb.ExtensionFieldInfo<number>}
45
75
  */
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);
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);
49
91
  // This registers the extension field with the extended class, so that
50
92
  // toObject() will function correctly.
51
93
  google_protobuf_descriptor_pb.FieldOptions.extensions[50010] = proto.clarifai.api.utils.clDefaultFloat;
94
+
52
95
  goog.object.extend(exports, proto.clarifai.api.utils);
@@ -1 +1,81 @@
1
- export {};
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
+