AbsoluteJS

@absolutejs/agent-exchange-google

@absolutejs/agent-exchange-googlev0.2.0betaAI

Capability-declared BYO Google Gmail OAuth adapter for Agent Exchange.

#Installation

BASH
bun add @absolutejs/agent-exchange-google

#Capabilities

Overview

Capability-declared Google/Gmail OAuth configuration for BYO deployments.

Google supports authorization-code flows, S256 PKCE, RFC 9207 issuer responses, and a DPoP mode that binds refresh tokens in confidential BFFs. Its documented access tokens remain bearer tokens and the flow does not expose the complete PAR/RAR/resource-indicator profile required by AbsoluteJS.

Consequently this adapter intentionally fails the phishing-resistant provider conformance check. Use it only behind a trusted token-confined broker or PaaS boundary, and do not expose Gmail tokens to an agent model.

Outcomes

What you can build

Build on the supported package contract

Use @absolutejs/agent-exchange-google through its supported public entry points.

Hardening checklist

Production guidance

Make every external boundary explicitPin the deployed @absolutejs/agent-exchange-google version, replace example or memory-backed dependencies with durable implementations, bound external calls, protect credentials, and emit enough evidence to retry or recover safely.

Follow in order

Troubleshooting path

1
Trace from the first failed boundary
Reproduce the smallest canonical @absolutejs/agent-exchange-google example, confirm the supported entry point and version in the API explorer, then inspect the first boundary that did not produce its documented result.

#Public entry points

Supported entry points declared by this package manifest.

@absolutejs/agent-exchange-googlePackage entry point declared in package.json.

#Package commands

Scripts declared by this package manifest.

bun run buildrm -rf dist && bun build src/index.ts --outdir dist --root src --sourcemap --target=browser --external @absolutejs/agent-exchange-provider-conformance && tsc --project tsconfig.build.json
bun run formatprettier --write "./**/*.{ts,json,md}"
bun run format:checkprettier --check "./**/*.{ts,json,md}"
bun run testbun test tests/
bun run typechecktsc --noEmit

#API reference

Search the declarations exported by the current package type files. Expand a symbol to inspect its source-backed signature.

2 symbols
GOOGLE_GMAIL_READONLY_SCOPEvaluePermalinkSource
TS
const GOOGLE_GMAIL_READONLY_SCOPE = "https://www.googleapis.com/auth/gmail.readonly";
Exported from @absolutejs/agent-exchange-google