clarifai-web-grpc 5.1.0 → 9.10.4

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 (30) hide show
  1. package/.github/workflows/ci.yml +29 -14
  2. package/README.md +6 -0
  3. package/VERSION +1 -1
  4. package/dist/cjs/index.js +2 -1
  5. package/dist/cjs/proto/clarifai/api/resources_pb.js +10169 -4212
  6. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +1046 -160
  7. package/dist/cjs/proto/clarifai/api/service_pb.js +19084 -10295
  8. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +24 -2
  9. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +6 -1
  10. package/dist/esm/index.js +2 -1
  11. package/dist/esm/proto/clarifai/api/resources_pb.js +10169 -4212
  12. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +1046 -160
  13. package/dist/esm/proto/clarifai/api/service_pb.js +19084 -10295
  14. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +24 -2
  15. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +6 -1
  16. package/index.ts +2 -1
  17. package/package.json +2 -23
  18. package/proto/clarifai/api/resources_pb.d.ts +987 -61
  19. package/proto/clarifai/api/resources_pb.js +12059 -4632
  20. package/proto/clarifai/api/service_grpc_web_pb.d.ts +264 -12
  21. package/proto/clarifai/api/service_grpc_web_pb.js +3434 -2149
  22. package/proto/clarifai/api/service_pb.d.ts +1376 -100
  23. package/proto/clarifai/api/service_pb.js +32635 -21703
  24. package/proto/clarifai/api/status/status_code_pb.d.ts +24 -2
  25. package/proto/clarifai/api/status/status_code_pb.js +24 -2
  26. package/proto/clarifai/auth/scope/scope_pb.d.ts +5 -0
  27. package/proto/clarifai/auth/scope/scope_pb.js +6 -1
  28. package/.husky/commit-msg +0 -4
  29. package/CHANGELOG.md +0 -7
  30. package/package.json-E +0 -52
@@ -2,18 +2,21 @@ name: CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ master ]
5
+ branches:
6
+ - master
7
+ tags:
8
+ - '**'
6
9
  pull_request:
7
- branches: [ master ]
8
- workflow_dispatch:
10
+ branches:
11
+ - master
9
12
 
10
13
  jobs:
11
14
  build:
12
- runs-on: ubuntu-20.04
15
+ runs-on: ubuntu-22.04
13
16
  steps:
14
17
  # Setup steps
15
- - uses: actions/checkout@v2
16
- - uses: actions/setup-node@v2
18
+ - uses: actions/checkout@v3
19
+ - uses: actions/setup-node@v3
17
20
  with:
18
21
  node-version: 16
19
22
  - name: Install deps
@@ -24,18 +27,30 @@ jobs:
24
27
  run: yarn build
25
28
 
26
29
  release:
30
+ if: github.ref_type == 'tag'
27
31
  needs: build
28
- runs-on: ubuntu-20.04
32
+ runs-on: ubuntu-22.04
29
33
  steps:
30
34
  # Setup steps
31
- - uses: actions/checkout@v2
32
- - uses: actions/setup-node@v2
35
+ - uses: actions/checkout@v3
36
+ - uses: actions/setup-node@v3
33
37
  with:
34
38
  node-version: 16
39
+ registry-url: https://registry.npmjs.org/
35
40
  - name: Install deps
36
- run: yarn install
37
- - name: Release it
41
+ run: npm install
42
+ - run: npm ci
43
+ - run: npm publish
44
+ env:
45
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
46
+ - name: Slack Notify
47
+ if: ${{ failure() }}
48
+ uses: rtCamp/action-slack-notify@v2
38
49
  env:
39
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41
- run: yarn release
50
+ SLACK_ICON: "https://raw.githubusercontent.com/github/explore/2c7e603b797535e5ad8b4beb575ab3b7354666e1/topics/actions/actions.png"
51
+ SLACK_USERNAME: "GitHub Alerts"
52
+ SLACK_CHANNEL: "#grpc-client-repo-alerts"
53
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
54
+ SLACK_COLOR: ${{ job.status }}
55
+ SLACK_MESSAGE: "Publish failure"
56
+ SLACK_FOOTER: "Clarifai Web GRPC Repo"
package/README.md CHANGED
@@ -40,3 +40,9 @@ client.postApps(req, auth, (err, resp) => {
40
40
  }
41
41
  });
42
42
  ```
43
+
44
+ ## Publishing to NPM
45
+
46
+ Publishing the client to NPM involves merging a PR with 2 things:
47
+ 1. Updates the `version` field in `package.json` to the appropriate version.
48
+ 2. Commit message should begin with `"GRPC clients version"` eg `"GRPC clients version 9.4.0"`.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 9.0.0
1
+ 9.10.4
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "V2Client", { enumerable: true, get: function ()
6
6
  Object.defineProperty(exports, "V2PromiseClient", { enumerable: true, get: function () { return service_grpc_web_pb_1.V2PromiseClient; } });
7
7
  class ClarifaiStub {
8
8
  static grpc(hostname = 'api.clarifai.com') {
9
- return new service_grpc_web_pb_1.V2Client(hostname);
9
+ const options = { 'grpc.max_receive_message_length': 128 * 1024 * 1024 }; // 128 MB
10
+ return new service_grpc_web_pb_1.V2Client(hostname, null, options);
10
11
  }
11
12
  }
12
13
  exports.ClarifaiStub = ClarifaiStub;