@frontera-sdk/functions 1.52.47 → 1.53.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/types.ts +13 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontera-sdk/functions",
3
- "version": "1.52.47",
3
+ "version": "1.53.0",
4
4
  "description": "Author Frontera functions: manifest, triggers and the typed handler contract.",
5
5
  "keywords": [
6
6
  "frontera",
@@ -42,7 +42,7 @@
42
42
  "typescript": "^5.9.3"
43
43
  },
44
44
  "dependencies": {
45
- "@frontera-sdk/blueprint": "1.52.47",
45
+ "@frontera-sdk/blueprint": "1.53.0",
46
46
  "cron-parser": "^5.0.6"
47
47
  }
48
48
  }
package/src/types.ts CHANGED
@@ -712,8 +712,19 @@ export interface HttpRequest {
712
712
  headers?: Record<string, string>
713
713
  /** String only — no streaming, no binary. */
714
714
  body?: string
715
- /** Inject a workspace secret into one header. Needs a `secret:<name>` grant. */
716
- auth?: { header: string; secret: string; prefix?: string }
715
+ /**
716
+ * A credential the platform adds, which this process never sees. Needs a
717
+ * `secret:<name>` grant either way.
718
+ *
719
+ * - `{ header, secret, prefix? }` puts the secret's value in one header.
720
+ * - `{ githubApp: { secret, installationId } }` calls GitHub as a GitHub App
721
+ * installation: the platform signs a JWT with the App's private key from
722
+ * the secret (JSON `{ "appId": 123, "privateKey": "-----BEGIN …" }`), trades
723
+ * it for the installation's one-hour token, reuses that until five minutes
724
+ * before it expires, and sends `Authorization: Bearer <token>`. An event
725
+ * GitHub sends to the App carries the id as `payload.installation.id`.
726
+ */
727
+ auth?: { header: string; secret: string; prefix?: string } | { githubApp: { secret: string; installationId: number | string } }
717
728
  }
718
729
 
719
730
  export interface HttpResponse {