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.
- package/.github/workflows/ci.yml +29 -14
- package/README.md +6 -0
- package/VERSION +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +10169 -4212
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +1046 -160
- package/dist/cjs/proto/clarifai/api/service_pb.js +19084 -10295
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +24 -2
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +6 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/proto/clarifai/api/resources_pb.js +10169 -4212
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +1046 -160
- package/dist/esm/proto/clarifai/api/service_pb.js +19084 -10295
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +24 -2
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +6 -1
- package/index.ts +2 -1
- package/package.json +2 -23
- package/proto/clarifai/api/resources_pb.d.ts +987 -61
- package/proto/clarifai/api/resources_pb.js +12059 -4632
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +264 -12
- package/proto/clarifai/api/service_grpc_web_pb.js +3434 -2149
- package/proto/clarifai/api/service_pb.d.ts +1376 -100
- package/proto/clarifai/api/service_pb.js +32635 -21703
- package/proto/clarifai/api/status/status_code_pb.d.ts +24 -2
- package/proto/clarifai/api/status/status_code_pb.js +24 -2
- package/proto/clarifai/auth/scope/scope_pb.d.ts +5 -0
- package/proto/clarifai/auth/scope/scope_pb.js +6 -1
- package/.husky/commit-msg +0 -4
- package/CHANGELOG.md +0 -7
- package/package.json-E +0 -52
package/.github/workflows/ci.yml
CHANGED
|
@@ -2,18 +2,21 @@ name: CI
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
tags:
|
|
8
|
+
- '**'
|
|
6
9
|
pull_request:
|
|
7
|
-
branches:
|
|
8
|
-
|
|
10
|
+
branches:
|
|
11
|
+
- master
|
|
9
12
|
|
|
10
13
|
jobs:
|
|
11
14
|
build:
|
|
12
|
-
runs-on: ubuntu-
|
|
15
|
+
runs-on: ubuntu-22.04
|
|
13
16
|
steps:
|
|
14
17
|
# Setup steps
|
|
15
|
-
- uses: actions/checkout@
|
|
16
|
-
- uses: actions/setup-node@
|
|
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-
|
|
32
|
+
runs-on: ubuntu-22.04
|
|
29
33
|
steps:
|
|
30
34
|
# Setup steps
|
|
31
|
-
- uses: actions/checkout@
|
|
32
|
-
- uses: actions/setup-node@
|
|
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:
|
|
37
|
-
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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.
|
|
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
|
-
|
|
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;
|