open-index/open-npm huggingface dataset:
npm package: @maxim_mazurok/gapi.client.searchads360-v0
Description: TypeScript typings for Search Ads 360 Reporting API v0
Author: Maxim Mazurok
Latest version: 0.2.20260307

# TypeScript typings for Search Ads 360 Reporting API v0

The Search Ads 360 API allows developers to automate downloading reports from Search Ads 360.
For detailed description please check [documentation](https://developers.google.com/search-ads/reporting).

## Installing

Install typings for Search Ads 360 Reporting API:

```
npm install @types/gapi.client.searchads360-v0 --save-dev
```

## 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://searchads360.googleapis.com/$discovery/rest?version=v0',
  () => {
    // now we can use:
    // gapi.client.searchads360
  },
);
```

```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('searchads360', 'v0', () => {
  // now we can use:
  // gapi.client.searchads360
});
```

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 = [
    // View and manage your advertising data in DoubleClick Search
    'https://www.googleapis.com/auth/doubleclicksearch',
  ],
  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 Search Ads 360 Reporting API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
/*
Returns resource names of customers directly accessible by the user authenticating the call. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
*/
await gapi.client.searchads360.customers.listAccessibleCustomers({});

/*
Returns just the requested field. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
*/
await gapi.client.searchads360.searchAds360Fields.get({
  resourceName: 'resourceName',
});

/*
Returns all fields that match the search [query](/search-ads/reporting/concepts/field-service#use_a_query_to_get_field_details). List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QueryError]() [QuotaError]() [RequestError]()
*/
await gapi.client.searchads360.searchAds360Fields.search({});
```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.searchads360-v0#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.secretmanager
Description: TypeScript typings for Secret Manager API v1
Author: Maxim Mazurok
Latest version: 1.0.20220729

# TypeScript typings for Secret Manager API v1

Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. 
For detailed description please check [documentation](https://cloud.google.com/secret-manager/).

## Installing

Install typings for Secret Manager API:

```
npm install @types/gapi.client.secretmanager@v1 --save-dev
```

## 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('secretmanager', 'v1', () => {
  // now we can use gapi.client.secretmanager
  // ...
});
```

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 Secret Manager API resources:

```typescript
```
npm package: @maxim_mazurok/gapi.client.secretmanager-v1
Description: TypeScript typings for Secret Manager API v1
Author: Maxim Mazurok
Latest version: 0.1.20260306

# TypeScript typings for Secret Manager API v1

Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security.
For detailed description please check [documentation](https://cloud.google.com/secret-manager/).

## Installing

Install typings for Secret Manager API:

```
npm install @types/gapi.client.secretmanager-v1 --save-dev
```

## 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://secretmanager.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.secretmanager
  },
);
```

```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('secretmanager', 'v1', () => {
  // now we can use:
  // gapi.client.secretmanager
});
```

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 Secret Manager API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.secretmanager-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.secretmanager-v1beta1
Description: TypeScript typings for Secret Manager API v1beta1
Author: Maxim Mazurok
Latest version: 0.1.20260306

# TypeScript typings for Secret Manager API v1beta1

Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security.
For detailed description please check [documentation](https://cloud.google.com/secret-manager/).

## Installing

Install typings for Secret Manager API:

```
npm install @types/gapi.client.secretmanager-v1beta1 --save-dev
```

## 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://secretmanager.googleapis.com/$discovery/rest?version=v1beta1',
  () => {
    // now we can use:
    // gapi.client.secretmanager
  },
);
```

```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('secretmanager', 'v1beta1', () => {
  // now we can use:
  // gapi.client.secretmanager
});
```

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 Secret Manager API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.secretmanager-v1beta1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.secretmanager-v1beta2
Description: TypeScript typings for Secret Manager API v1beta2
Author: Maxim Mazurok
Latest version: 0.1.20260306

# TypeScript typings for Secret Manager API v1beta2

Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security.
For detailed description please check [documentation](https://cloud.google.com/secret-manager/).

## Installing

Install typings for Secret Manager API:

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

## 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://secretmanager.googleapis.com/$discovery/rest?version=v1beta2',
  () => {
    // now we can use:
    // gapi.client.secretmanager
  },
);
```

```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('secretmanager', 'v1beta2', () => {
  // now we can use:
  // gapi.client.secretmanager
});
```

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 Secret Manager API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.secretmanager-v1beta2#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.securesourcemanager-v1
Description: TypeScript typings for Secure Source Manager API v1
Author: Maxim Mazurok
Latest version: 0.31.0

# TypeScript typings for Secure Source Manager API v1

Regionally deployed, single-tenant managed source code repository hosted on Google Cloud.
For detailed description please check [documentation](https://cloud.google.com/secure-source-manager).

## Installing

Install typings for Secure Source Manager API:

```
npm install @types/gapi.client.securesourcemanager-v1 --save-dev
```

## 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://securesourcemanager.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.securesourcemanager
  },
);
```

```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('securesourcemanager', 'v1', () => {
  // now we can use:
  // gapi.client.securesourcemanager
});
```

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 Secure Source Manager API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.securesourcemanager-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.securitycenter
Description: TypeScript typings for Security Command Center API v1
Author: Maxim Mazurok
Latest version: 1.0.20220809

# TypeScript typings for Security Command Center API v1

Security Command Center API provides access to temporal views of assets and findings within an organization.
For detailed description please check [documentation](https://cloud.google.com/security-command-center).

## Installing

Install typings for Security Command Center API:

```
npm install @types/gapi.client.securitycenter@v1 --save-dev
```

## 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('securitycenter', 'v1', () => {
  // now we can use gapi.client.securitycenter
  // ...
});
```

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 Security Command Center API resources:

```typescript

/*
Gets the settings for an organization.
*/
await gapi.client.securitycenter.organizations.getOrganizationSettings({ name: "name",  });

/*
Updates an organization's settings.
*/
await gapi.client.securitycenter.organizations.updateOrganizationSettings({ name: "name",  });
```
npm package: @maxim_mazurok/gapi.client.securitycenter-v1
Description: TypeScript typings for Security Command Center API v1
Author: Maxim Mazurok
Latest version: 0.3.20260309

# TypeScript typings for Security Command Center API v1

Security Command Center API provides access to temporal views of assets and findings within an organization.
For detailed description please check [documentation](https://cloud.google.com/security-command-center).

## Installing

Install typings for Security Command Center API:

```
npm install @types/gapi.client.securitycenter-v1 --save-dev
```

## 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://securitycenter.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.securitycenter
  },
);
```

```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('securitycenter', 'v1', () => {
  // now we can use:
  // gapi.client.securitycenter
});
```

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 Security Command Center API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
/*
Gets the settings for an organization.
*/
await gapi.client.securitycenter.organizations.getOrganizationSettings({
  name: 'name',
});

/*
Updates an organization's settings.
*/
await gapi.client.securitycenter.organizations.updateOrganizationSettings({
  name: 'name',
});
```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.securitycenter-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.securitycenter-v1beta1
Description: TypeScript typings for Security Command Center API v1beta1
Author: Maxim Mazurok
Latest version: 0.3.20260309

# TypeScript typings for Security Command Center API v1beta1

Security Command Center API provides access to temporal views of assets and findings within an organization.
For detailed description please check [documentation](https://cloud.google.com/security-command-center).

## Installing

Install typings for Security Command Center API:

```
npm install @types/gapi.client.securitycenter-v1beta1 --save-dev
```

## 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://securitycenter.googleapis.com/$discovery/rest?version=v1beta1',
  () => {
    // now we can use:
    // gapi.client.securitycenter
  },
);
```

```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('securitycenter', 'v1beta1', () => {
  // now we can use:
  // gapi.client.securitycenter
});
```

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 Security Command Center API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
/*
Gets the settings for an organization.
*/
await gapi.client.securitycenter.organizations.getOrganizationSettings({
  name: 'name',
});

/*
Updates an organization's settings.
*/
await gapi.client.securitycenter.organizations.updateOrganizationSettings({
  name: 'name',
});
```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.securitycenter-v1beta1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.securityposture-v1
Description: TypeScript typings for Security Posture API v1
Author: Maxim Mazurok
Latest version: 0.2.20260317

# TypeScript typings for Security Posture API v1

Defines, assesses, and monitors the overall status of your security in Google Cloud. You can use security postures to evaluate your current cloud security against defined benchmarks and help maintain the level of security that your organization requires.
For detailed description please check [documentation](https://cloud.google.com/security-command-center).

## Installing

Install typings for Security Posture API:

```
npm install @types/gapi.client.securityposture-v1 --save-dev
```

## 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://securityposture.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.securityposture
  },
);
```

```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('securityposture', 'v1', () => {
  // now we can use:
  // gapi.client.securityposture
});
```

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 Security Posture API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.securityposture-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.serviceconsumermanagement-v1beta1
Description: TypeScript typings for Service Consumer Management API v1beta1
Author: Maxim Mazurok
Latest version: 0.2.20260227

# TypeScript typings for Service Consumer Management API v1beta1

Manages the service consumers of a Service Infrastructure service.
For detailed description please check [documentation](https://cloud.google.com/service-consumer-management/docs/overview).

## Installing

Install typings for Service Consumer Management API:

```
npm install @types/gapi.client.serviceconsumermanagement-v1beta1 --save-dev
```

## 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://serviceconsumermanagement.googleapis.com/$discovery/rest?version=v1beta1',
  () => {
    // now we can use:
    // gapi.client.serviceconsumermanagement
  },
);
```

```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('serviceconsumermanagement', 'v1beta1', () => {
  // now we can use:
  // gapi.client.serviceconsumermanagement
});
```

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 Service Consumer Management API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
/*
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
*/
await gapi.client.serviceconsumermanagement.operations.get({name: 'name'});
```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.serviceconsumermanagement-v1beta1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.servicedirectory
Description: TypeScript typings for Service Directory API v1
Author: Maxim Mazurok
Latest version: 1.0.20220804

# TypeScript typings for Service Directory API v1

Service Directory is a platform for discovering, publishing, and connecting services. 
For detailed description please check [documentation](https://cloud.google.com/service-directory).

## Installing

Install typings for Service Directory API:

```
npm install @types/gapi.client.servicedirectory@v1 --save-dev
```

## 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('servicedirectory', 'v1', () => {
  // now we can use gapi.client.servicedirectory
  // ...
});
```

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 Service Directory API resources:

```typescript
```
npm package: @maxim_mazurok/gapi.client.servicedirectory-v1
Description: TypeScript typings for Service Directory API v1
Author: Maxim Mazurok
Latest version: 0.1.20260225

# TypeScript typings for Service Directory API v1

Service Directory is a platform for discovering, publishing, and connecting services.
For detailed description please check [documentation](https://cloud.google.com/service-directory).

## Installing

Install typings for Service Directory API:

```
npm install @types/gapi.client.servicedirectory-v1 --save-dev
```

## 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://servicedirectory.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.servicedirectory
  },
);
```

```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('servicedirectory', 'v1', () => {
  // now we can use:
  // gapi.client.servicedirectory
});
```

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 Service Directory API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.servicedirectory-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.servicedirectory-v1beta1
Description: TypeScript typings for Service Directory API v1beta1
Author: Maxim Mazurok
Latest version: 0.1.20260225

# TypeScript typings for Service Directory API v1beta1

Service Directory is a platform for discovering, publishing, and connecting services.
For detailed description please check [documentation](https://cloud.google.com/service-directory).

## Installing

Install typings for Service Directory API:

```
npm install @types/gapi.client.servicedirectory-v1beta1 --save-dev
```

## 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://servicedirectory.googleapis.com/$discovery/rest?version=v1beta1',
  () => {
    // now we can use:
    // gapi.client.servicedirectory
  },
);
```

```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('servicedirectory', 'v1beta1', () => {
  // now we can use:
  // gapi.client.servicedirectory
});
```

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 Service Directory API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.servicedirectory-v1beta1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.siteverification
Description: TypeScript typings for Google Site Verification API v1
Author: Maxim Mazurok
Latest version: 1.0.20191119

# TypeScript typings for Google Site Verification API v1

Verifies ownership of websites or domains with Google.
For detailed description please check [documentation](https://developers.google.com/site-verification/).

## Installing

Install typings for Google Site Verification API:

```
npm install @types/gapi.client.siteverification@v1 --save-dev
```

## 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('siteverification', 'v1', () => {
  // now we can use gapi.client.siteverification
  // ...
});
```

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 = [ 
      // Manage the list of sites and domains you control
      'https://www.googleapis.com/auth/siteverification',

      // Manage your new site verifications with Google
      'https://www.googleapis.com/auth/siteverification.verify_only',
    ],
    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 Google Site Verification API resources:

```typescript

/*
Relinquish ownership of a website or domain.
*/
await gapi.client.siteverification.webResource.delete({ id: "id",  });

/*
Get the most current data for a website or domain.
*/
await gapi.client.siteverification.webResource.get({ id: "id",  });

/*
Get a verification token for placing on a website or domain.
*/
await gapi.client.siteverification.webResource.getToken({  });

/*
Attempt verification of a website or domain.
*/
await gapi.client.siteverification.webResource.insert({ verificationMethod: "verificationMethod",  });

/*
Get the list of your verified websites and domains.
*/
await gapi.client.siteverification.webResource.list({  });

/*
Modify the list of owners for your website or domain. This method supports patch semantics.
*/
await gapi.client.siteverification.webResource.patch({ id: "id",  });

/*
Modify the list of owners for your website or domain.
*/
await gapi.client.siteverification.webResource.update({ id: "id",  });
```
npm package: @maxim_mazurok/gapi.client.smartdevicemanagement
Description: TypeScript typings for Smart Device Management API v1
Author: Maxim Mazurok
Latest version: 1.0.20220730

# TypeScript typings for Smart Device Management API v1

Allow select enterprise partners to access, control, and manage Google and Nest devices programmatically.
For detailed description please check [documentation](https://developers.google.com/nest/device-access).

## Installing

Install typings for Smart Device Management API:

```
npm install @types/gapi.client.smartdevicemanagement@v1 --save-dev
```

## 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('smartdevicemanagement', 'v1', () => {
  // now we can use gapi.client.smartdevicemanagement
  // ...
});
```

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 and/or control the devices that you selected
      'https://www.googleapis.com/auth/sdm.service',

      // See and control the Nest thermostats that you select
      'https://www.googleapis.com/auth/sdm.thermostat.service',
    ],
    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 Smart Device Management API resources:

```typescript
```
npm package: @maxim_mazurok/gapi.client.smartdevicemanagement-v1
Description: TypeScript typings for Smart Device Management API v1
Author: Maxim Mazurok
Latest version: 0.2.20260303

# TypeScript typings for Smart Device Management API v1

Allow select enterprise partners to access, control, and manage Google and Nest devices programmatically.
For detailed description please check [documentation](https://developers.google.com/nest/device-access).

## Installing

Install typings for Smart Device Management API:

```
npm install @types/gapi.client.smartdevicemanagement-v1 --save-dev
```

## 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://smartdevicemanagement.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.smartdevicemanagement
  },
);
```

```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('smartdevicemanagement', 'v1', () => {
  // now we can use:
  // gapi.client.smartdevicemanagement
});
```

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 and/or control the devices that you selected
    'https://www.googleapis.com/auth/sdm.service',
  ],
  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 Smart Device Management API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript

```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.smartdevicemanagement-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.solar-v1
Description: TypeScript typings for Solar API v1
Author: Maxim Mazurok
Latest version: 0.2.20260317

# TypeScript typings for Solar API v1

Solar API.
For detailed description please check [documentation](https://developers.google.com/maps/documentation/solar).

## Installing

Install typings for Solar API:

```
npm install @types/gapi.client.solar-v1 --save-dev
```

## 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://solar.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.solar
  },
);
```

```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('solar', 'v1', () => {
  // now we can use:
  // gapi.client.solar
});
```

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 Solar API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
/*
Locates the building whose centroid is closest to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point.
*/
await gapi.client.solar.buildingInsights.findClosest({});

/*
Gets solar information for a region surrounding a location. Returns an error with code `NOT_FOUND` if the location is outside the coverage area.
*/
await gapi.client.solar.dataLayers.get({});

/*
Returns an image by its ID.
*/
await gapi.client.solar.geoTiff.get({});
```

For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.solar-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
npm package: @maxim_mazurok/gapi.client.sourcerepo
Description: TypeScript typings for Cloud Source Repositories API v1
Author: Maxim Mazurok
Latest version: 1.0.20220810

# TypeScript typings for Cloud Source Repositories API v1

Accesses source code repositories hosted by Google.
For detailed description please check [documentation](https://cloud.google.com/source-repositories/docs/apis).

## Installing

Install typings for Cloud Source Repositories API:

```
npm install @types/gapi.client.sourcerepo@v1 --save-dev
```

## 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('sourcerepo', 'v1', () => {
  // now we can use gapi.client.sourcerepo
  // ...
});
```

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',

      // Manage your source code repositories
      'https://www.googleapis.com/auth/source.full_control',

      // View the contents of your source code repositories
      'https://www.googleapis.com/auth/source.read_only',

      // Manage the contents of your source code repositories
      'https://www.googleapis.com/auth/source.read_write',
    ],
    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 Source Repositories API resources:

```typescript

/*
Returns the Cloud Source Repositories configuration of the project.
*/
await gapi.client.sourcerepo.projects.getConfig({ name: "name",  });

/*
Updates the Cloud Source Repositories configuration of the project.
*/
await gapi.client.sourcerepo.projects.updateConfig({ name: "name",  });
```
npm package: @maxim_mazurok/gapi.client.sourcerepo-v1
Description: TypeScript typings for Cloud Source Repositories API v1
Author: Maxim Mazurok
Latest version: 0.0.20240623

# TypeScript typings for Cloud Source Repositories API v1

Accesses source code repositories hosted by Google. Important: Cloud Source Repositories is scheduled for end of sales starting June 17, 2024. Customers who have enabled the API prior to this date will not be affected and can continue to use Cloud Source Repositories. Organizations or projects who have not previously enabled the API cannot use Cloud Source Repositories after this date. View Cloud Source Repositories documentation for more info.
For detailed description please check [documentation](https://cloud.google.com/source-repositories/docs).

## Installing

Install typings for Cloud Source Repositories API:

```
npm install @types/gapi.client.sourcerepo-v1 --save-dev
```

## 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://sourcerepo.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.sourcerepo
  }
);
```

```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('sourcerepo', 'v1', () => {
  // now we can use:
  // gapi.client.sourcerepo
});
```

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',

    // Manage your source code repositories
    'https://www.googleapis.com/auth/source.full_control',

    // View the contents of your source code repositories
    'https://www.googleapis.com/auth/source.read_only',

    // Manage the contents of your source code repositories
    'https://www.googleapis.com/auth/source.read_write',
  ],
  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 Source Repositories API resources: <!-- TODO: make this work for multiple namespaces -->

```typescript
/*
Returns the Cloud Source Repositories configuration of the project.
*/
await gapi.client.sourcerepo.projects.getConfig({name: 'name'});

/*
Updates the Cloud Source Repositories configuration of the project.
*/
await gapi.client.sourcerepo.projects.updateConfig({name: 'name'});
```
npm package: @maxim_mazurok/gapi.client.spanner
Description: TypeScript typings for Cloud Spanner API v1
Author: Maxim Mazurok
Latest version: 1.0.20220726

# TypeScript typings for Cloud Spanner API v1

Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.
For detailed description please check [documentation](https://cloud.google.com/spanner/).

## Installing

Install typings for Cloud Spanner API:

```
npm install @types/gapi.client.spanner@v1 --save-dev
```

## 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('spanner', 'v1', () => {
  // now we can use gapi.client.spanner
  // ...
});
```

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',

      // Administer your Spanner databases
      'https://www.googleapis.com/auth/spanner.admin',

      // View and manage the contents of your Spanner databases
      'https://www.googleapis.com/auth/spanner.data',
    ],
    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 Spanner API resources:

```typescript

/*
Return available scans given a Database-specific resource name.
*/
await gapi.client.spanner.scans.list({ parent: "parent",  });
```