@t4h.framework/dev 0.20.0 → 0.20.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @t4h.framework/dev
2
2
 
3
+ ## 0.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#170](https://github.com/tech4humans-brasil/framework/pull/170) [`aa72268`](https://github.com/tech4humans-brasil/framework/commit/aa72268d040a743743cac31cc14e26b8620b0e3f) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Adds the `jwks` callback auth: a detached signature over the callback body,
8
+ verified with the public key the `kid` resolves to at a JWKS URL — the way Amber
9
+ signs its webhooks.
10
+
11
+ **core**: `AsyncActivityCallbackAuthJwks` joins `AsyncActivityCallbackAuth`
12
+ (`jwksUri`, `header`, `kid`/`kidHeader`, `algorithm`/`algorithmHeader`,
13
+ `signatureFormat`/`signatureFormatHeader`, `timestampHeader`,
14
+ `toleranceInSeconds`, `signedPayload` as a template over `{timestamp}` and
15
+ `{body}`).
16
+
17
+ **jwks**: `jwksCallback` (default of `@t4h.framework/jwks/callback`) now serves
18
+ both `jwt` and `jwks`. Hosts pass it as `{ jwt: jwksCallback, jwks: jwksCallback }`.
19
+
20
+ **dev**: loads `@t4h.framework/jwks` for the `jwks` type as well.
21
+
22
+ **webhook**: documents the new type.
23
+
24
+ - Updated dependencies [[`aa72268`](https://github.com/tech4humans-brasil/framework/commit/aa72268d040a743743cac31cc14e26b8620b0e3f)]:
25
+ - @t4h.framework/core@0.14.0
26
+ - @t4h.framework/jwks@0.7.0
27
+ - @t4h.framework/webhook@0.2.1
28
+ - @t4h.framework/cache@0.6.4
29
+ - @t4h.framework/fs@0.9.4
30
+ - @t4h.framework/hmac@0.3.1
31
+ - @t4h.framework/http@0.6.3
32
+ - @t4h.framework/oidc@0.6.4
33
+ - @t4h.framework/orm@0.7.5
34
+ - @t4h.framework/sftp@0.7.4
35
+ - @t4h.framework/smtp@0.6.4
36
+
3
37
  ## 0.20.0
4
38
 
5
39
  ### Minor Changes
@@ -8,6 +8,7 @@ import { Injectable } from 'pleroma';
8
8
  export const CALLBACK_AUTHORIZER_PACKAGES = {
9
9
  hmac: '@t4h.framework/hmac',
10
10
  jwt: '@t4h.framework/jwks',
11
+ jwks: '@t4h.framework/jwks',
11
12
  };
12
13
  function isModuleNotFound(error, packageName) {
13
14
  if (!(error instanceof Error))
@@ -1 +1 @@
1
- {"version":3,"file":"CallbackAuthorizers.service.js","sourceRoot":"","sources":["../../src/services/CallbackAuthorizers.service.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpC,MAAM,CAAC,MAAM,4BAA4B,GAErC;IACF,IAAI,EAAE,qBAAqB;IAC3B,GAAG,EAAE,qBAAqB;CAC3B,CAAA;AAED,SAAS,gBAAgB,CAAC,KAAc,EAAE,WAAmB;IAC3D,IAAI,CAAC,CAAC,KAAK,YAAY,KAAK,CAAC;QAAE,OAAO,KAAK,CAAA;IAE3C,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,sBAAsB;QAAE,OAAO,KAAK,CAAA;IAE7E,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;AAC5C,CAAC;AAED,KAAK,UAAU,eAAe,CAC5B,WAAmB;IAEnB,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,WAAW,WAAW,CAAC,CAAmB,CAAA;QAE1E,OAAO,MAAM,CAAC,OAAO,CAAA;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC;YAAE,MAAM,KAAK,CAAA;QAEtD,OAAO,SAAS,CAAA;IAClB,CAAC;AACH,CAAC;AAGM,IAAM,0BAA0B,GAAhC,M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AAU,eAAe,CAC5B,WAAmB;IAEnB,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,WAAW,WAAW,CAAC,CAAmB,CAAA;QAE1E,OAAO,MAAM,CAAC,OAAO,CAAA;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC;YAAE,MAAM,KAAK,CAAA;QAEtD,OAAO,SAAS,CAAA;IAClB,CAAC;AACH,CAAC;AAGM,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAC7B,WAAW,CAAwD;IAEpE,GAAG;QACR,OAAO,CAAC,IAAI,CAAC,WAAW,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IAC3C,CAAC;IAEO,KAAK,CAAC,IAAI;QAChB,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAC/B,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAC9C,KAAK,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,EAAE,CAC5B,CAAC,IAAI,EAAE,MAAM,eAAe,CAAC,WAAW,CAAC,CAAU,CACtD,CACF,CAAA;QAED,OAAO,MAAM,CAAC,WAAW,CACvB,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC,UAAU,KAAK,SAAS,CAAC,CACxB,CAAA;IACxC,CAAC;CACF,CAAA;AAnBY,0BAA0B;IADtC,UAAU,EAAE;GACA,0BAA0B,CAmBtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t4h.framework/dev",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Dev server for the T4H Framework",
5
5
  "homepage": "https://github.com/tech4humans-brasil/framework/tree/main/packages/dev",
6
6
  "bugs": "https://github.com/tech4humans-brasil/framework/issues",
@@ -59,18 +59,18 @@
59
59
  "vite": "^8.0.3"
60
60
  },
61
61
  "devDependencies": {
62
- "@t4h.framework/cache": "^0.6.3",
63
- "@t4h.framework/core": "^0.13.0",
64
- "@t4h.framework/fs": "^0.9.3",
65
- "@t4h.framework/hmac": "^0.3.0",
66
- "@t4h.framework/http": "^0.6.2",
67
- "@t4h.framework/jwks": "^0.6.0",
68
- "@t4h.framework/oidc": "^0.6.3",
69
- "@t4h.framework/orm": "^0.7.4",
62
+ "@t4h.framework/cache": "^0.6.4",
63
+ "@t4h.framework/core": "^0.14.0",
64
+ "@t4h.framework/fs": "^0.9.4",
65
+ "@t4h.framework/hmac": "^0.3.1",
66
+ "@t4h.framework/http": "^0.6.3",
67
+ "@t4h.framework/jwks": "^0.7.0",
68
+ "@t4h.framework/oidc": "^0.6.4",
69
+ "@t4h.framework/orm": "^0.7.5",
70
70
  "@t4h.framework/runtime-claims": "^0.1.0",
71
- "@t4h.framework/sftp": "^0.7.3",
72
- "@t4h.framework/smtp": "^0.6.3",
73
- "@t4h.framework/webhook": "^0.2.0",
71
+ "@t4h.framework/sftp": "^0.7.4",
72
+ "@t4h.framework/smtp": "^0.6.4",
73
+ "@t4h.framework/webhook": "^0.2.1",
74
74
  "@types/dot-object": "^2.1.6",
75
75
  "@types/json-schema": "^7.0.15",
76
76
  "@types/mime-types": "^3",
@@ -81,18 +81,18 @@
81
81
  "vitest": "^4.0.18"
82
82
  },
83
83
  "peerDependencies": {
84
- "@t4h.framework/cache": "^0.6.3",
85
- "@t4h.framework/core": "^0.13.0",
86
- "@t4h.framework/fs": "^0.9.3",
87
- "@t4h.framework/hmac": "^0.3.0",
88
- "@t4h.framework/http": "^0.6.2",
89
- "@t4h.framework/jwks": "^0.6.0",
90
- "@t4h.framework/oidc": "^0.6.3",
91
- "@t4h.framework/orm": "^0.7.4",
84
+ "@t4h.framework/cache": "^0.6.4",
85
+ "@t4h.framework/core": "^0.14.0",
86
+ "@t4h.framework/fs": "^0.9.4",
87
+ "@t4h.framework/hmac": "^0.3.1",
88
+ "@t4h.framework/http": "^0.6.3",
89
+ "@t4h.framework/jwks": "^0.7.0",
90
+ "@t4h.framework/oidc": "^0.6.4",
91
+ "@t4h.framework/orm": "^0.7.5",
92
92
  "@t4h.framework/runtime-claims": "^0.1.0",
93
- "@t4h.framework/sftp": "^0.7.3",
94
- "@t4h.framework/smtp": "^0.6.3",
95
- "@t4h.framework/webhook": "^0.2.0",
93
+ "@t4h.framework/sftp": "^0.7.4",
94
+ "@t4h.framework/smtp": "^0.6.4",
95
+ "@t4h.framework/webhook": "^0.2.1",
96
96
  "typescript": "^5.9.3"
97
97
  },
98
98
  "peerDependenciesMeta": {