Using js-genai with googleapis.com

TypeScript integration

✓ Official SDK
Install
npm install js-genai
Quick start
import Js_genai from 'js-genai';

const client = new Js_genai({ accessToken: "YOUR_ACCESS_TOKEN" });
Gets the current system policy in the specified location.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://binaryauthorization.googleapis.com/v1beta1/{name}
Lists attestors. Returns INVALID_ARGUMENT if the project does not exist.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://binaryauthorization.googleapis.com/v1beta1/{parent}/attestors
Gets the access control policy for a resource. Returns an empty policy if the…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://binaryauthorization.googleapis.com/v1beta1/{resource}:getIamPolicy
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:binaryauthorization
At a glance
Language TypeScript
Endpoints9
Base URLhttps://binaryauthorization.googleapis.com
✓ Official