@particle-academy/google-meet-js 0.2.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -12,6 +12,31 @@ derived — somebody has to write what changed — but writing it in the
12
12
  provider repo would be a hand-edit that `.weaver.json` flags and the next
13
13
  sync destroys.
14
14
 
15
+ ## [0.3.0] — 2026-11-08
16
+
17
+ ### Added
18
+
19
+ - **One Google consent grant, shared by every Google connector** (`oauth.grant:
20
+ "google"`), for an org-level Google connection: one OAuth client, one consent
21
+ and one refresh token per person, with each feature's scopes asked for when it
22
+ is first used. Declared in the manifest, the `-ui` package's OAuth constant,
23
+ the README and the registry index:
24
+ - `authorizeParams`: `access_type=offline` and `include_granted_scopes=true`.
25
+ A refresh token comes back only on the FIRST code exchange, so keep the stored
26
+ one when an exchange returns none.
27
+ - `revoke`: POST `https://oauth2.googleapis.com/revoke` with `token`, and
28
+ `scope: "grant"`. **Revoking removes the person's WHOLE Google grant, every
29
+ Google connector**, so a per-feature disconnect stops using that feature's
30
+ scopes locally and only a full Google disconnect revokes.
31
+ - `identity`: identify the account by the id_token's `sub` (request `openid`;
32
+ issuer `https://accounts.google.com` or `accounts.google.com`; audience is
33
+ the `clientId`), never by email, which Google says is neither unique nor
34
+ permanent.
35
+ `restrictedScopes` is empty: none of this connector's scopes is restricted.
36
+
37
+ Nothing a request sends has changed; this is what a host needs to run the
38
+ connection.
39
+
15
40
  ## [0.2.0] — 2026-11-08
16
41
 
17
42
  ### Added
package/README.md CHANGED
@@ -55,6 +55,13 @@ Google Meet uses OAuth2 (authorization_code). The package DECLARES the exchange;
55
55
  - **Scopes** — `https://www.googleapis.com/auth/meetings.space.created`, `https://www.googleapis.com/auth/meetings.space.readonly`
56
56
  - **Access token lifetime** — 3600 seconds (1 hours). A host that never refreshes works all afternoon and is broken by morning.
57
57
 
58
+ **One consent grant, shared** (`grant: "google"`). Every connector declaring the same grant can run on ONE OAuth client, with one consent and one refresh token per person.
59
+
60
+ - **Authorize with** `access_type=offline`, `include_granted_scopes=true`. Ask for a feature's scopes when it is first used; the new token covers every scope granted before. A refresh token comes back only on the FIRST exchange, so keep the stored one when an exchange returns none.
61
+ - **Revoke** — POST https://oauth2.googleapis.com/revoke with `token`. **It removes the WHOLE grant**: every connector sharing it, not only this one. A per-feature disconnect stops using that feature's scopes locally; only a full disconnect revokes.
62
+ - **Identify the account by `sub`**: request `openid`, then verify the token response's id_token (issuer `https://accounts.google.com` or `accounts.google.com`, keys at https://www.googleapis.com/oauth2/v3/certs, audience = `clientId`). Never key a connection by email.
63
+ - **No restricted scopes** in this connector.
64
+
58
65
  The refresh tokens do **not** rotate: the same one is reusable, so a refresh may safely be retried and may run concurrently. Stated rather than assumed, because the opposite — a provider that spends the token and revokes the grant on a replay — looks identical until it happens.
59
66
 
60
67
  ### The estate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-academy/google-meet-js",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Google Meet for Node — the service descriptor, its faker, its webhook verification, and one function per operation. Plain HTTP on @particle-academy/fancy-connector-core; no vendor SDK.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@particle-academy/fancy-flow": ">=0.47.1 <2.0",
57
- "@particle-academy/google-meet-ui": ">=0.2.0 <0.3.0"
57
+ "@particle-academy/google-meet-ui": ">=0.3.0 <0.4.0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "@particle-academy/fancy-flow": {