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/tests/basic.test.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ClarifaiStub as StubSRC } from '../index'
|
|
2
|
-
import { ClarifaiStub as StubCJS } from '../dist/cjs/index'
|
|
3
|
-
import { ClarifaiStub as StubESM } from '../dist/esm/index'
|
|
4
|
-
import { describe, it } from 'mocha'
|
|
5
|
-
import { expect } from 'chai'
|
|
6
|
-
|
|
7
|
-
describe('Client Stub (src)', () => {
|
|
8
|
-
it('works', () => {
|
|
9
|
-
const client = StubSRC.grpc()
|
|
10
|
-
expect(client.hostname_).to.equal('api.clarifai.com')
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
it('allows custom hostname', () => {
|
|
14
|
-
const client = StubSRC.grpc('api-dev.clarifai.com')
|
|
15
|
-
expect(client.hostname_).to.equal('api-dev.clarifai.com')
|
|
16
|
-
})
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
describe('Client Stub (cjs)', () => {
|
|
20
|
-
it('works', () => {
|
|
21
|
-
const client = StubCJS.grpc()
|
|
22
|
-
expect(client.hostname_).to.equal('api.clarifai.com')
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
it('allows custom hostname', () => {
|
|
26
|
-
const client = StubCJS.grpc('api-dev.clarifai.com')
|
|
27
|
-
expect(client.hostname_).to.equal('api-dev.clarifai.com')
|
|
28
|
-
})
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
describe('Client Stub (esm)', () => {
|
|
32
|
-
it('works', () => {
|
|
33
|
-
const client = StubESM.grpc()
|
|
34
|
-
expect(client.hostname_).to.equal('api.clarifai.com')
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
it('allows custom hostname', () => {
|
|
38
|
-
const client = StubESM.grpc('api-dev.clarifai.com')
|
|
39
|
-
expect(client.hostname_).to.equal('api-dev.clarifai.com')
|
|
40
|
-
})
|
|
41
|
-
})
|
package/tests/package.test.ts
DELETED
|
File without changes
|