@particle-academy/google-slides-js 0.2.0 → 0.3.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +48 -0
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -8,6 +8,65 @@ The four packages share one version, because they are generated from one
8
8
  `provider/` definition and a version that meant something different in each
9
9
  would be a version nobody could reason about.
10
10
 
11
+ ## [0.3.1] — 2026-08-24
12
+
13
+ ### Fixed
14
+
15
+ - **`@particle-academy/google-slides-js` now accepts a RANGE of `@particle-academy/google-slides-ui`, not one exact version.**
16
+
17
+ It peer-depended on `@particle-academy/google-slides-ui` at exactly the release it shipped with. That is the
18
+ strict form of the thing the kit's own rule forbids — a first-party sibling gets
19
+ a range — and the same block applied the rule correctly to its other two
20
+ dependencies. It was this one pair that slipped.
21
+
22
+ What it cost: ship `@particle-academy/google-slides-ui` with a fixed help string and every consumer on the
23
+ previous `@particle-academy/google-slides-js` had an **unmet peer**, which npm 7+ errors on. A documentation
24
+ patch could not be delivered without a matching runtime release, and a routine
25
+ `npm update` that moved the ui package alone broke the install.
26
+
27
+ The coupling is real and is not being loosened away. The ui package emits the
28
+ config schema and the js package implements against it, so a ui that adds a
29
+ field to a js that ignores it is silently wrong. But a PATCH is non-additive by
30
+ definition and a MINOR is where a field can appear — so `>=0.3.1 <0.4.0` is the
31
+ coupling that actually exists rather than the strictest one expressible.
32
+
33
+ Nothing else changed. `particle-academy/google-slides-php` and `fancy-google-slides` are unaffected; neither has an
34
+ equivalent edge.
35
+
36
+ ## [0.3.0] — 2026-08-24
37
+
38
+ ### Added
39
+
40
+ - **The README now says how to SET THIS CONNECTOR UP**, in the package itself.
41
+
42
+ Until now it explained what the four packages are, what they cost and why the
43
+ repo is generated — and said nothing about credentials, scopes, sandboxes or
44
+ operations. Somebody who installed it could not learn from it which credentials
45
+ a connection needs, where a human GETS them, which scopes to request, or what
46
+ the connector can actually do. All of that was already in the definition; the
47
+ one document a consumer reads was the one that omitted everything actionable.
48
+
49
+ The new **Setting it up** section carries:
50
+
51
+ - every credential, with the text saying where the value comes from, whether it
52
+ is **per installation** or **per connected account**, and whether it is secret;
53
+ - the OAuth authorize and token URLs and the exact scopes, verbatim;
54
+ - the access-token lifetime, and where refresh tokens ROTATE, the two things a
55
+ host must not do — retry a failed refresh, or refresh concurrently — because a
56
+ replay revokes the entire grant and nothing in the failure says why;
57
+ - the estate in this provider's own terms, including the cases where a
58
+ successful-looking run reaches nobody, or reaches the real one;
59
+ - every action and trigger with its method, path, inputs, and whether it is safe
60
+ to replay;
61
+ - a trigger's provider-side setup, which nobody can derive from anything else.
62
+
63
+ It is **generated from `provider/manifest.json`**, so it cannot drift from what
64
+ the packages do — which is the point at a few hundred providers, where a
65
+ hand-written setup section is a few hundred documents going quietly stale.
66
+
67
+ No code changed. This release exists because a registry and an installing agent
68
+ read the PUBLISHED artifact, and the artifact carried the old README.
69
+
11
70
  ## [0.2.0] — 2026-08-24
12
71
 
13
72
  ### Changed
@@ -59,3 +118,5 @@ can create a second presentation and the action is honestly
59
118
 
60
119
  [0.1.0]: https://github.com/Fancy-Friends/google-slides/releases/tag/v0.1.0
61
120
  [0.2.0]: https://github.com/Fancy-Friends/google-slides/releases/tag/v0.2.0
121
+ [0.3.0]: https://github.com/Fancy-Friends/google-slides/releases/tag/v0.3.0
122
+ [0.3.1]: https://github.com/Fancy-Friends/google-slides/releases/tag/v0.3.1
package/README.md CHANGED
@@ -27,6 +27,54 @@ dependencies.
27
27
  subject to the kit's full approval bar, and one per provider is hundreds of
28
28
  dependencies nobody is tracking.
29
29
 
30
+ ## Setting it up
31
+
32
+ Everything below is generated from `provider/manifest.json`, so it cannot disagree with what the packages do.
33
+
34
+ ### Credentials
35
+
36
+ A Google Slides connection holds 4 values.
37
+
38
+ **Two kinds of value, and mixing them up matters.** A `provider` credential is ONE value for the whole installation — an OAuth app's client secret serves every connected account. An `account` credential is one per connected account. A host that stores the second where it stores the first lets one account's credentials reach another's.
39
+
40
+ | Field | Scope | Secret | Where it comes from |
41
+ |---|---|---|---|
42
+ | **OAuth client ID** | per installation | not secret | From Google Cloud Console -> APIs & Services -> Credentials. ONE value for the whole installation, not per connected account. |
43
+ | **OAuth client secret** | per installation | **secret** | The client secret for the same OAuth app. One value for the whole installation. |
44
+ | **Access token** | per connected account | **secret** | Per connected Google account, and it expires after ONE HOUR. The host refreshes it with the refresh token. |
45
+ | **Refresh token** | per connected account | **secret** | Per connected Google account. Google issues one only when the consent request asks for offline access; without it the connection dies within the hour. |
46
+
47
+ ### Authorising
48
+
49
+ Google Slides uses OAuth2 (authorization_code). The package DECLARES the exchange; the HOST performs it — a consent screen needs a browser, a redirect URI and somewhere to persist the result, and all three belong to the host.
50
+
51
+ - **Authorize URL** — https://accounts.google.com/o/oauth2/v2/auth
52
+ - **Token URL** — https://oauth2.googleapis.com/token
53
+ - **Scopes** — `https://www.googleapis.com/auth/presentations`
54
+ - **Access token lifetime** — 3600 seconds (1 hours). A host that never refreshes works all afternoon and is broken by morning.
55
+
56
+ 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.
57
+
58
+ ### The estate
59
+
60
+ **Google Slides has no test estate, and somebody checked.** Everything this connector does is real. Use the faker to build against it.
61
+
62
+ > Google has no sandbox for Slides. A test presentation is a real one in a real Drive, so every create is real -- use the faker while developing and clean up any live test presentations.
63
+
64
+ ## What it can do
65
+
66
+ ### Actions
67
+
68
+ #### `presentation_create` — Google Slides presentation
69
+
70
+ Create a blank Google Slides presentation.
71
+
72
+ `POST /v1/presentations` · **unsafe to replay** — a retried durable run does it TWICE
73
+
74
+ | Input | Required | What it is |
75
+ |---|---|---|
76
+ | `title` | yes | The title of the new blank presentation. |
77
+
30
78
  ## Run it before you have credentials
31
79
 
32
80
  Every operation ships a **faker**, whether or not Google Slides has a sandbox. Set a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-academy/google-slides-js",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Google Slides 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",
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@particle-academy/fancy-flow": ">=0.47.1 <2.0",
55
- "@particle-academy/google-slides-ui": "0.2.0"
55
+ "@particle-academy/google-slides-ui": ">=0.3.0 <0.4.0"
56
56
  },
57
57
  "peerDependenciesMeta": {
58
58
  "@particle-academy/fancy-flow": {