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.
Files changed (67) hide show
  1. package/.github/workflows/ci.yml +0 -2
  2. package/CHANGELOG.md +3 -10
  3. package/README.md +2 -2
  4. package/VERSION +1 -1
  5. package/dist/cjs/index.d.ts +3 -3
  6. package/dist/cjs/index.js +6 -4
  7. package/dist/cjs/proto/clarifai/api/resources_pb.js +8300 -1715
  8. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  9. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +6999 -0
  10. package/dist/cjs/proto/clarifai/api/service_pb.js +20160 -8780
  11. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +37 -1
  12. package/dist/cjs/proto/clarifai/api/status/status_pb.js +255 -2
  13. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +18 -1
  14. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  15. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +206 -0
  16. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +18 -1
  17. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +38 -5
  18. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +18 -1
  19. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +18 -1
  20. package/dist/esm/index.d.ts +3 -3
  21. package/dist/esm/index.js +3 -3
  22. package/dist/esm/proto/clarifai/api/resources_pb.js +8300 -1715
  23. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
  24. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +6999 -0
  25. package/dist/esm/proto/clarifai/api/service_pb.js +20160 -8780
  26. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +37 -1
  27. package/dist/esm/proto/clarifai/api/status/status_pb.js +255 -2
  28. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +18 -1
  29. package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
  30. package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +206 -0
  31. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +18 -1
  32. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +38 -5
  33. package/dist/esm/proto/clarifai/auth/types/types_pb.js +18 -1
  34. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +18 -1
  35. package/index.ts +3 -3
  36. package/package.json +3 -8
  37. package/package.json-E +52 -0
  38. package/proto/clarifai/api/resources_pb.d.ts +2022 -1020
  39. package/proto/clarifai/api/resources_pb.js +21288 -13035
  40. package/proto/clarifai/api/service_grpc_web_pb.d.ts +2000 -0
  41. package/proto/clarifai/api/service_grpc_web_pb.js +10160 -0
  42. package/proto/clarifai/api/service_pb.d.ts +2788 -1161
  43. package/proto/clarifai/api/service_pb.js +23741 -9706
  44. package/proto/clarifai/api/status/status_code_pb.d.ts +22 -1
  45. package/proto/clarifai/api/status/status_code_pb.js +29 -1
  46. package/proto/clarifai/api/status/status_pb.d.ts +50 -13
  47. package/proto/clarifai/api/status/status_pb.js +304 -2
  48. package/proto/clarifai/api/utils/extensions_pb.d.ts +2 -1
  49. package/proto/clarifai/api/utils/extensions_pb.js +10 -1
  50. package/proto/clarifai/api/utils/matrix_pb.d.ts +28 -0
  51. package/proto/clarifai/api/utils/matrix_pb.js +234 -0
  52. package/proto/clarifai/api/utils/test_proto_pb.d.ts +12 -11
  53. package/proto/clarifai/api/utils/test_proto_pb.js +10 -1
  54. package/proto/clarifai/auth/scope/scope_pb.d.ts +23 -8
  55. package/proto/clarifai/auth/scope/scope_pb.js +30 -5
  56. package/proto/clarifai/auth/types/types_pb.d.ts +3 -1
  57. package/proto/clarifai/auth/types/types_pb.js +10 -1
  58. package/proto/clarifai/auth/util/extension_pb.d.ts +2 -1
  59. package/proto/clarifai/auth/util/extension_pb.js +10 -1
  60. package/.husky/pre-commit +0 -4
  61. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  62. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  63. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  64. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
  65. package/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
  66. package/tests/basic.test.ts +0 -41
  67. package/tests/package.test.ts +0 -0
@@ -22,8 +22,6 @@ jobs:
22
22
  run: yarn lint
23
23
  - name: Build package
24
24
  run: yarn build
25
- - name: Run tests
26
- run: yarn test
27
25
 
28
26
  release:
29
27
  needs: build
package/CHANGELOG.md CHANGED
@@ -1,13 +1,6 @@
1
- # [3.0.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v2.0.2...v3.0.0) (2022-03-08)
1
+ # [4.2.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v4.1.0...v4.2.0) (2022-06-28)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * broken package ([7030339](https://github.com/Clarifai/clarifai-web-grpc/commit/7030339944e334d24a5189d95363228531dac685))
7
-
8
-
9
- ### BREAKING CHANGES
10
-
11
- * Completely reverts several versions of the package that were broken/attempting
12
- to provide a lean package. This is hopefully a known good state that fixes
13
- those issues.
6
+ * release ([2621754](https://github.com/Clarifai/clarifai-web-grpc/commit/2621754d8c500890975ecb06300d8351dd46cec7))
package/README.md CHANGED
@@ -14,8 +14,8 @@ yarn add clarifai-web-grpc
14
14
 
15
15
  ```ts
16
16
  import { ClarifaiStub } from 'clarifai-web-grpc'
17
- import { App } from 'clarifai-web-grpc/resources'
18
- import { PostAppsRequest } from 'clarifai-web-grpc/service'
17
+ import { App } from 'clarifai-web-grpc/proto/clarifai/api/resources_pb'
18
+ import { PostAppsRequest } from 'clarifai-web-grpc/proto/clarifai/api/service_pb'
19
19
 
20
20
  const client = ClarifaiStub.grpc()
21
21
  // use client to create an App
package/VERSION CHANGED
@@ -1 +1 @@
1
- 7.10.0
1
+ 4.2.0
@@ -1,7 +1,7 @@
1
- import { V2Client } from './proto/clarifai/api/serviceServiceClientPb';
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 { Error, Metadata, ClientReadableStream } from 'grpc-web';
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/cjs/index.js CHANGED
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseResponse = exports.ClientReadableStream = exports.V2Client = exports.ClarifaiStub = void 0;
4
- const serviceServiceClientPb_1 = require("./proto/clarifai/api/serviceServiceClientPb");
5
- Object.defineProperty(exports, "V2Client", { enumerable: true, get: function () { return serviceServiceClientPb_1.V2Client; } });
3
+ exports.BaseResponse = exports.ClientReadableStream = exports.RpcError = exports.V2PromiseClient = exports.V2Client = exports.ClarifaiStub = void 0;
4
+ const service_grpc_web_pb_1 = require("./proto/clarifai/api/service_grpc_web_pb");
5
+ Object.defineProperty(exports, "V2Client", { enumerable: true, get: function () { return service_grpc_web_pb_1.V2Client; } });
6
+ Object.defineProperty(exports, "V2PromiseClient", { enumerable: true, get: function () { return service_grpc_web_pb_1.V2PromiseClient; } });
6
7
  class ClarifaiStub {
7
8
  static grpc(hostname = 'api.clarifai.com') {
8
- return new serviceServiceClientPb_1.V2Client(hostname);
9
+ return new service_grpc_web_pb_1.V2Client(hostname);
9
10
  }
10
11
  }
11
12
  exports.ClarifaiStub = ClarifaiStub;
12
13
  var grpc_web_1 = require("grpc-web");
14
+ Object.defineProperty(exports, "RpcError", { enumerable: true, get: function () { return grpc_web_1.RpcError; } });
13
15
  Object.defineProperty(exports, "ClientReadableStream", { enumerable: true, get: function () { return grpc_web_1.ClientReadableStream; } });
14
16
  var status_pb_1 = require("./proto/clarifai/api/status/status_pb");
15
17
  Object.defineProperty(exports, "BaseResponse", { enumerable: true, get: function () { return status_pb_1.BaseResponse; } });