clarifai-web-grpc 3.0.0 → 4.0.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 (66) hide show
  1. package/.github/workflows/ci.yml +0 -2
  2. package/CHANGELOG.md +4 -6
  3. package/README.md +2 -2
  4. package/VERSION +1 -1
  5. package/dist/cjs/index.d.ts +2 -2
  6. package/dist/cjs/index.js +5 -4
  7. package/dist/cjs/proto/clarifai/api/resources_pb.js +3595 -302
  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 +6663 -0
  10. package/dist/cjs/proto/clarifai/api/service_pb.js +16838 -7904
  11. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +23 -1
  12. package/dist/cjs/proto/clarifai/api/status/status_pb.js +18 -1
  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 +37 -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 +2 -2
  21. package/dist/esm/index.js +2 -2
  22. package/dist/esm/proto/clarifai/api/resources_pb.js +3595 -302
  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 +6663 -0
  25. package/dist/esm/proto/clarifai/api/service_pb.js +16838 -7904
  26. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +23 -1
  27. package/dist/esm/proto/clarifai/api/status/status_pb.js +18 -1
  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 +37 -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 +2 -2
  36. package/package.json +3 -8
  37. package/proto/clarifai/api/resources_pb.d.ts +1522 -1014
  38. package/proto/clarifai/api/resources_pb.js +7122 -2949
  39. package/proto/clarifai/api/service_grpc_web_pb.d.ts +1904 -0
  40. package/proto/clarifai/api/service_grpc_web_pb.js +9672 -0
  41. package/proto/clarifai/api/service_pb.d.ts +2235 -962
  42. package/proto/clarifai/api/service_pb.js +20033 -9036
  43. package/proto/clarifai/api/status/status_code_pb.d.ts +8 -1
  44. package/proto/clarifai/api/status/status_code_pb.js +15 -1
  45. package/proto/clarifai/api/status/status_pb.d.ts +14 -13
  46. package/proto/clarifai/api/status/status_pb.js +10 -1
  47. package/proto/clarifai/api/utils/extensions_pb.d.ts +2 -1
  48. package/proto/clarifai/api/utils/extensions_pb.js +10 -1
  49. package/proto/clarifai/api/utils/matrix_pb.d.ts +28 -0
  50. package/proto/clarifai/api/utils/matrix_pb.js +234 -0
  51. package/proto/clarifai/api/utils/test_proto_pb.d.ts +12 -11
  52. package/proto/clarifai/api/utils/test_proto_pb.js +10 -1
  53. package/proto/clarifai/auth/scope/scope_pb.d.ts +22 -8
  54. package/proto/clarifai/auth/scope/scope_pb.js +29 -5
  55. package/proto/clarifai/auth/types/types_pb.d.ts +3 -1
  56. package/proto/clarifai/auth/types/types_pb.js +10 -1
  57. package/proto/clarifai/auth/util/extension_pb.d.ts +2 -1
  58. package/proto/clarifai/auth/util/extension_pb.js +10 -1
  59. package/.husky/pre-commit +0 -4
  60. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  61. package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
  62. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
  63. package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
  64. package/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
  65. package/tests/basic.test.ts +0 -41
  66. 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,11 @@
1
- # [3.0.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v2.0.2...v3.0.0) (2022-03-08)
1
+ # [4.0.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v3.0.0...v4.0.0) (2022-03-28)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Documentation
5
5
 
6
- * broken package ([7030339](https://github.com/Clarifai/clarifai-web-grpc/commit/7030339944e334d24a5189d95363228531dac685))
6
+ * update docs to show correct module paths ([a0a8116](https://github.com/Clarifai/clarifai-web-grpc/commit/a0a8116cf7e2e07ca37432574b2ea83594c22eb8))
7
7
 
8
8
 
9
9
  ### BREAKING CHANGES
10
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.
11
+ * trigger a release
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
+ 8.1.0
@@ -1,7 +1,7 @@
1
- import { V2Client } from './proto/clarifai/api/serviceServiceClientPb';
1
+ import { V2Client } from './proto/clarifai/api/service_grpc_web_pb';
2
2
  export declare class ClarifaiStub {
3
3
  static grpc(hostname?: string): V2Client;
4
4
  }
5
5
  export { V2Client };
6
- export { Error, Metadata, ClientReadableStream } from 'grpc-web';
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,16 @@
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.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
6
  class ClarifaiStub {
7
7
  static grpc(hostname = 'api.clarifai.com') {
8
- return new serviceServiceClientPb_1.V2Client(hostname);
8
+ return new service_grpc_web_pb_1.V2Client(hostname);
9
9
  }
10
10
  }
11
11
  exports.ClarifaiStub = ClarifaiStub;
12
12
  var grpc_web_1 = require("grpc-web");
13
+ Object.defineProperty(exports, "RpcError", { enumerable: true, get: function () { return grpc_web_1.RpcError; } });
13
14
  Object.defineProperty(exports, "ClientReadableStream", { enumerable: true, get: function () { return grpc_web_1.ClientReadableStream; } });
14
15
  var status_pb_1 = require("./proto/clarifai/api/status/status_pb");
15
16
  Object.defineProperty(exports, "BaseResponse", { enumerable: true, get: function () { return status_pb_1.BaseResponse; } });