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.
- package/.github/workflows/ci.yml +0 -2
- package/CHANGELOG.md +4 -6
- package/README.md +2 -2
- package/VERSION +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +5 -4
- package/dist/cjs/proto/clarifai/api/resources_pb.js +3595 -302
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
- package/dist/cjs/proto/clarifai/api/service_grpc_web_pb.js +6663 -0
- package/dist/cjs/proto/clarifai/api/service_pb.js +16838 -7904
- package/dist/cjs/proto/clarifai/api/status/status_code_pb.js +23 -1
- package/dist/cjs/proto/clarifai/api/status/status_pb.js +18 -1
- package/dist/cjs/proto/clarifai/api/utils/extensions_pb.js +18 -1
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
- package/dist/cjs/proto/clarifai/api/utils/matrix_pb.js +206 -0
- package/dist/cjs/proto/clarifai/api/utils/test_proto_pb.js +18 -1
- package/dist/cjs/proto/clarifai/auth/scope/scope_pb.js +37 -5
- package/dist/cjs/proto/clarifai/auth/types/types_pb.js +18 -1
- package/dist/cjs/proto/clarifai/auth/util/extension_pb.js +18 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/proto/clarifai/api/resources_pb.js +3595 -302
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.d.ts +5 -0
- package/dist/esm/proto/clarifai/api/service_grpc_web_pb.js +6663 -0
- package/dist/esm/proto/clarifai/api/service_pb.js +16838 -7904
- package/dist/esm/proto/clarifai/api/status/status_code_pb.js +23 -1
- package/dist/esm/proto/clarifai/api/status/status_pb.js +18 -1
- package/dist/esm/proto/clarifai/api/utils/extensions_pb.js +18 -1
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.d.ts +1 -0
- package/dist/esm/proto/clarifai/api/utils/matrix_pb.js +206 -0
- package/dist/esm/proto/clarifai/api/utils/test_proto_pb.js +18 -1
- package/dist/esm/proto/clarifai/auth/scope/scope_pb.js +37 -5
- package/dist/esm/proto/clarifai/auth/types/types_pb.js +18 -1
- package/dist/esm/proto/clarifai/auth/util/extension_pb.js +18 -1
- package/index.ts +2 -2
- package/package.json +3 -8
- package/proto/clarifai/api/resources_pb.d.ts +1522 -1014
- package/proto/clarifai/api/resources_pb.js +7122 -2949
- package/proto/clarifai/api/service_grpc_web_pb.d.ts +1904 -0
- package/proto/clarifai/api/service_grpc_web_pb.js +9672 -0
- package/proto/clarifai/api/service_pb.d.ts +2235 -962
- package/proto/clarifai/api/service_pb.js +20033 -9036
- package/proto/clarifai/api/status/status_code_pb.d.ts +8 -1
- package/proto/clarifai/api/status/status_code_pb.js +15 -1
- package/proto/clarifai/api/status/status_pb.d.ts +14 -13
- package/proto/clarifai/api/status/status_pb.js +10 -1
- package/proto/clarifai/api/utils/extensions_pb.d.ts +2 -1
- package/proto/clarifai/api/utils/extensions_pb.js +10 -1
- package/proto/clarifai/api/utils/matrix_pb.d.ts +28 -0
- package/proto/clarifai/api/utils/matrix_pb.js +234 -0
- package/proto/clarifai/api/utils/test_proto_pb.d.ts +12 -11
- package/proto/clarifai/api/utils/test_proto_pb.js +10 -1
- package/proto/clarifai/auth/scope/scope_pb.d.ts +22 -8
- package/proto/clarifai/auth/scope/scope_pb.js +29 -5
- package/proto/clarifai/auth/types/types_pb.d.ts +3 -1
- package/proto/clarifai/auth/types/types_pb.js +10 -1
- package/proto/clarifai/auth/util/extension_pb.d.ts +2 -1
- package/proto/clarifai/auth/util/extension_pb.js +10 -1
- package/.husky/pre-commit +0 -4
- package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/dist/cjs/proto/clarifai/api/serviceServiceClientPb.js +0 -908
- package/dist/esm/proto/clarifai/api/serviceServiceClientPb.d.ts +0 -275
- package/dist/esm/proto/clarifai/api/serviceServiceClientPb.js +0 -904
- package/proto/clarifai/api/serviceServiceClientPb.ts +0 -3002
- package/tests/basic.test.ts +0 -41
- package/tests/package.test.ts +0 -0
package/.github/workflows/ci.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
# [
|
|
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
|
-
###
|
|
4
|
+
### Documentation
|
|
5
5
|
|
|
6
|
-
*
|
|
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
|
-
*
|
|
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/
|
|
18
|
-
import { PostAppsRequest } 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
20
|
const client = ClarifaiStub.grpc()
|
|
21
21
|
// use client to create an App
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
8.1.0
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { V2Client } from './proto/clarifai/api/
|
|
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 {
|
|
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
|
|
5
|
-
Object.defineProperty(exports, "V2Client", { enumerable: true, get: function () { return
|
|
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
|
|
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; } });
|