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.
Files changed (42) hide show
  1. package/CHANGELOG.md +4 -9
  2. package/README.md +15 -18
  3. package/VERSION +1 -1
  4. package/dist/cjs/proto/clarifai/api/resources_pb.js +1644 -34
  5. package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +126 -0
  6. package/dist/cjs/proto/clarifai/api/service_pb.js +1034 -48
  7. package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +8 -21
  8. package/dist/cjs/proto/clarifai/api/status/status_pb.js +6 -15
  9. package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +6 -15
  10. package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +6 -15
  11. package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +6 -15
  12. package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +6 -15
  13. package/dist/cjs/proto/clarifai/auth/types/types_pb.js +6 -15
  14. package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +6 -15
  15. package/dist/esm/proto/clarifai/api/resources_pb.js +1644 -34
  16. package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +126 -0
  17. package/dist/esm/proto/clarifai/api/service_pb.js +1034 -48
  18. package/dist/esm/proto/clarifai/api/status/status_code_pb.js +8 -21
  19. package/dist/esm/proto/clarifai/api/status/status_pb.js +6 -15
  20. package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +6 -15
  21. package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +6 -15
  22. package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +6 -15
  23. package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +6 -15
  24. package/dist/esm/proto/clarifai/auth/types/types_pb.js +6 -15
  25. package/dist/esm/proto/clarifai/auth/util/extension_pb.js +6 -15
  26. package/package.json +2 -2
  27. package/package.json-E +1 -1
  28. package/proto/clarifai/api/resources_pb.d.ts +251 -6
  29. package/proto/clarifai/api/resources_pb.js +2246 -230
  30. package/proto/clarifai/api/service_grpc_web_pb.d.ts +36 -0
  31. package/proto/clarifai/api/service_grpc_web_pb.js +183 -0
  32. package/proto/clarifai/api/service_pb.d.ts +150 -8
  33. package/proto/clarifai/api/service_pb.js +1278 -62
  34. package/proto/clarifai/api/status/status_code_pb.d.ts +2 -6
  35. package/proto/clarifai/api/status/status_code_pb.js +9 -13
  36. package/proto/clarifai/api/status/status_pb.js +7 -7
  37. package/proto/clarifai/api/utils/extensions_pb.js +7 -7
  38. package/proto/clarifai/api/utils/matrix_pb.js +7 -7
  39. package/proto/clarifai/api/utils/test_proto_pb.js +7 -7
  40. package/proto/clarifai/auth/scope/scope_pb.js +7 -7
  41. package/proto/clarifai/auth/types/types_pb.js +7 -7
  42. package/proto/clarifai/auth/util/extension_pb.js +7 -7
package/CHANGELOG.md CHANGED
@@ -1,12 +1,7 @@
1
- # [5.0.0](https://github.com/Clarifai/clarifai-web-grpc/compare/v4.2.0...v5.0.0) (2022-11-08)
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
- ### Continuous Integration
4
+ ### Features
5
5
 
6
- * trigger workflow ([0f39579](https://github.com/Clarifai/clarifai-web-grpc/commit/0f39579bc6849421da2afb6f1da8ea7bd5d8664b))
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 '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'
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('cat-app')
25
- app.setDefaultWorkflowId('General-Detection')
26
- app.setDescription('An app for cats')
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
- 'X-Clarifai-Session-Token': 'MY-CLARIFAI-PERSONAL-ACCESS-TOKEN',
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
- 8.10.0
1
+ 9.0.0