clarifai-web-grpc 5.0.0 → 5.1.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.
- package/CHANGELOG.md +4 -9
- package/README.md +15 -18
- package/VERSION +1 -1
- package/dist/cjs/proto/clarifai/api/resources_pb.js +1644 -34
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +126 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +1034 -48
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -21
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +6 -15
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/types/types_pb.js +6 -15
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/resources_pb.js +1644 -34
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +126 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +1034 -48
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -21
- package/dist/esm/proto/clarifai/api/status/status_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +6 -15
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +6 -15
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +6 -15
- package/package.json +2 -2
- package/package.json-E +1 -1
- package/proto/clarifai/api/resources_pb.d.ts +251 -6
- package/proto/clarifai/api/resources_pb.js +2246 -230
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +36 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +183 -0
- package/proto/clarifai/api/service_pb.d.ts +150 -8
- package/proto/clarifai/api/service_pb.js +1278 -62
- package/proto/clarifai/api/status/status_code_pb.d.ts +2 -6
- package/proto/clarifai/api/status/status_code_pb.js +9 -13
- package/proto/clarifai/api/status/status_pb.js +7 -7
- package/proto/clarifai/api/utils/extensions_pb.js +7 -7
- package/proto/clarifai/api/utils/matrix_pb.js +7 -7
- package/proto/clarifai/api/utils/test_proto_pb.js +7 -7
- package/proto/clarifai/auth/scope/scope_pb.js +7 -7
- package/proto/clarifai/auth/types/types_pb.js +7 -7
- package/proto/clarifai/auth/util/extension_pb.js +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
# [5.
|
|
1
|
+
# [5.1.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v5.0.0...v5.1.0) (2023-01-31)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### BREAKING CHANGES
|
|
10
|
-
|
|
11
|
-
* Marking this breaking so we can be on the safe side,
|
|
12
|
-
idk if there's actually breaking changes here.
|
|
6
|
+
* release ([4eaf6ab](https://github.com/Clarifai/clarifai-web-grpc/commit/4eaf6ab9543b827a83df8e9db9f992ff12f609be))
|
|
7
|
+
* release ([35a475a](https://github.com/Clarifai/clarifai-web-grpc/commit/35a475a551936de69161efcbeb96c712c05cf4ef))
|
package/README.md
CHANGED
|
@@ -13,33 +13,30 @@ yarn add clarifai-web-grpc
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
|
-
import { ClarifaiStub } from
|
|
17
|
-
import { App } from
|
|
18
|
-
import { PostAppsRequest } from
|
|
16
|
+
import { ClarifaiStub } from "clarifai-web-grpc";
|
|
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
|
-
const client = ClarifaiStub.grpc()
|
|
20
|
+
const client = ClarifaiStub.grpc();
|
|
21
21
|
// use client to create an App
|
|
22
22
|
|
|
23
|
-
const app = new App()
|
|
24
|
-
app.setId(
|
|
25
|
-
app.setDefaultWorkflowId(
|
|
26
|
-
app.setDescription(
|
|
23
|
+
const app = new App();
|
|
24
|
+
app.setId("cat-app");
|
|
25
|
+
app.setDefaultWorkflowId("General-Detection");
|
|
26
|
+
app.setDescription("An app for some cats");
|
|
27
27
|
|
|
28
|
-
const req = new PostAppsRequest()
|
|
29
|
-
req.setAppsList([
|
|
30
|
-
app
|
|
31
|
-
])
|
|
28
|
+
const req = new PostAppsRequest();
|
|
29
|
+
req.setAppsList([app]);
|
|
32
30
|
|
|
33
31
|
const auth = {
|
|
34
|
-
|
|
35
|
-
}
|
|
32
|
+
"X-Clarifai-Session-Token": "MY-CLARIFAI-PERSONAL-ACCESS-TOKEN",
|
|
33
|
+
};
|
|
36
34
|
|
|
37
35
|
client.postApps(req, auth, (err, resp) => {
|
|
38
36
|
if (err) {
|
|
39
|
-
console.error(err)
|
|
37
|
+
console.error(err);
|
|
40
38
|
} else {
|
|
41
|
-
console.log(resp.getAppsList()[0].getId()) // logs "cat-app"
|
|
39
|
+
console.log(resp.getAppsList()[0].getId()); // logs "cat-app"
|
|
42
40
|
}
|
|
43
|
-
})
|
|
44
|
-
|
|
41
|
+
});
|
|
45
42
|
```
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9.0.0
|