# @maxim_mazurok/gapi.client.videointelligence-v1beta2

> TypeScript typings for Cloud Video Intelligence API v1beta2

Latest version **0.3.20261106** (published 2026-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @maxim_mazurok/gapi.client.videointelligence-v1beta2
pnpm add @maxim_mazurok/gapi.client.videointelligence-v1beta2
yarn add @maxim_mazurok/gapi.client.videointelligence-v1beta2
bun add @maxim_mazurok/gapi.client.videointelligence-v1beta2
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.20261106 |
| Published | 2026-11-19 |
| First published | 2022-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 118.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 59 |
| Author | Maxim Mazurok |
| Maintainers | maxim_mazurok |

## Links

- npm: https://www.npmjs.com/package/@maxim_mazurok/gapi.client.videointelligence-v1beta2
- Repository: https://github.com/Maxim-Mazurok/google-api-typings-generator
- Homepage: https://github.com/Maxim-Mazurok/google-api-typings-generator#readme
- Issues: https://github.com/Maxim-Mazurok/google-api-typings-generator/issues
- npm.io page: https://npm.io/package/@maxim_mazurok/gapi.client.videointelligence-v1beta2

## Dependencies (2)

- [@types/gapi.client](https://npm.io/package/@types/gapi.client.md) *
- [@types/gapi.client.discovery-v1](https://npm.io/package/@types/gapi.client.discovery-v1.md) *

## Recent versions

- 0.3.20261106 (latest) — 2026-11-19
- 0.2.20261106 — 2026-11-10
- 0.2.20260428 — 2026-06-07
- 0.2.20260304 — 2026-03-18
- 0.1.20260304 — 2026-03-04
- 0.1.20260302 — 2026-03-04
- 0.1.20250724 — 2025-08-21
- 0.0.20250724 — 2025-07-26
- 0.0.20250710 — 2025-07-15
- 0.0.20250521 — 2025-05-29
- 0.0.20250502 — 2025-05-06
- 0.0.20250210 — 2025-02-11
- 0.0.20250130 — 2025-02-04
- 0.0.20241108 — 2024-11-12
- 0.0.20240719 — 2024-07-30
- … 31 more at https://npm.io/package/@maxim_mazurok/gapi.client.videointelligence-v1beta2/versions

## README

# TypeScript typings for Cloud Video Intelligence API v1beta2

Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.
For detailed description please check [documentation](https://cloud.google.com/video-intelligence/docs/).

## Installing

Install typings for Cloud Video Intelligence API:

```
npm install @types/gapi.client.videointelligence-v1beta2 --save-dev
```

## TypeScript 6.0+

TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:

```json
{
  "compilerOptions": {
    "types": [
      "gapi",
      "gapi.auth2",
      "gapi.client",
      "gapi.client.videointelligence-v1beta2"
    ]
  }
}
```

## Usage

You need to initialize Google API client in your code:

```typescript
gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});
```

Then load api client wrapper:

```typescript
gapi.client.load(
  'https://videointelligence.googleapis.com/$discovery/rest?version=v1beta2',
  () => {
    // now we can use:
    // gapi.client.videointelligence
  },
);
```

```typescript
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('videointelligence', 'v1beta2', () => {
  // now we can use:
  // gapi.client.videointelligence
});
```

Don't forget to authenticate your client before sending any request to resources:

```typescript
// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [
    // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
    'https://www.googleapis.com/auth/cloud-platform',
  ],
  immediate = true;
// ...

gapi.auth.authorize(
  {client_id: client_id, scope: scope, immediate: immediate},
  authResult => {
    if (authResult && !authResult.error) {
      /* handle successful authorization */
    } else {
      /* handle authorization error */
    }
  },
);
```

After that you can use Cloud Video Intelligence API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
/*
Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).
*/
await gapi.client.videointelligence.videos.annotate({});
```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.videointelligence-v1beta2#Provenance:~:text=none-,Provenance,-Built%20and%20signed)

---
_Source: https://npm.io/package/@maxim_mazurok/gapi.client.videointelligence-v1beta2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
