@t4h.framework/webhook 0.2.6 → 0.2.8

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.
@@ -24,21 +24,22 @@ import type { AsyncActivityCallbackAuth } from '@t4h.framework/core'
24
24
  ## Workflow usage
25
25
 
26
26
  ```typescript
27
+ import { environments } from '../constants/environments.js'
28
+
27
29
  const callback = await webhook({
28
30
  request: {
29
31
  url: 'https://partner.example.com/jobs',
30
32
  body: { json: { notifyUrl: '<<callbackUrl>>' } },
31
33
  },
32
- auth: { type: 'hmac', secret: env.SECRET, header: 'x-signature' },
34
+ auth: { type: 'hmac', secret: environments.WEBHOOK_SECRET, header: 'x-signature' },
33
35
  schema: Type.Object({ status: Type.String() }),
34
36
  timeoutInMs: 86_400_000,
35
37
  })
36
38
  ```
37
39
 
38
- `auth.secret` (and `password`, `token`, `value` of the other auth types) is a
39
- `Secret`: declare the env entry with `type: Secret` and pass it whole. The host
40
- reads the value when it verifies a callback; the pending activity records the
41
- name, never the value.
40
+ The credential fields of `auth` are typed `Secret` (core
41
+ `AsyncActivityCallbackAuth.ts`). The host reads the value when it verifies a
42
+ callback; the pending activity records the name, never the value.
42
43
 
43
44
  ```typescript
44
45
  callback.dispatch?.body // the partner's answer to the request
@@ -60,7 +61,6 @@ callback.body.status // the callback body, typed by schema
60
61
  - The pending payload is only the partner's answer to the request. A workflow
61
62
  that needs its own callback URL puts `<<callbackUrl>>` in the request body
62
63
  and reads it back from `callback.dispatch`.
63
- - Secrets come from `env`, never literals.
64
64
 
65
65
  ## Auth cheat sheet
66
66
 
@@ -99,7 +99,7 @@ in this package.
99
99
  202 otherwise (repeats included).
100
100
  3. `authorizers` is `{ hmac, jwt }` with the default exports of
101
101
  `@t4h.framework/hmac/callback` and `@t4h.framework/jwks/callback`; `basic`,
102
- `header` and `bearer` are built into the core. A declared type without a
102
+ `header` and `bearer` are built into the core. A declared type without an
103
103
  authorizer throws `AsyncActivityCallbackAuthorizerMissingException`.
104
104
  4. Verification needs the **raw body**; parse JSON only after it.
105
105
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @t4h.framework/webhook
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#243](https://github.com/tech4humans-brasil/framework/pull/243) [`0ffd663`](https://github.com/tech4humans-brasil/framework/commit/0ffd663ce8369edd7b54206cb3216568ad1de471) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - The README examples read each value from `environments`, an `EnvDesign` in `src/constants/environments.ts`, and pass each credential as a `Secret`. They no longer use `process.env`, the raw `env` from the core or a literal in a `Secret` field. The jwks README describes the real context fields (`signature`, `rawPayload`) and says that a token that `jwt.verify` rejects throws.
8
+
9
+ - [#240](https://github.com/tech4humans-brasil/framework/pull/240) [`0606115`](https://github.com/tech4humans-brasil/framework/commit/0606115e2e0baa994e9f0ed3559ee54ecac88e44) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - The skills do not repeat a rule that a lint rule, `tsc` or a runtime error already enforces. Each such rule is now one line that names the gate. The examples that broke a gate (`process.env`, `as any`, an inline secret, an `EnvDesign` in a workflow file, `ref.output` before `wait()`) are correct now.
10
+
11
+ - [#228](https://github.com/tech4humans-brasil/framework/pull/228) [`d29e1ab`](https://github.com/tech4humans-brasil/framework/commit/d29e1ab29a039b13c3e4b075472bd615566ae75e) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - Uses exact types and `unknown` in place of `any`, and checks external data with guards.
12
+ - harness: the fix-issues prompt lists each sensor as `- checkTypes: PASS`. Before, it printed `- 0: [object Object]`.
13
+ - hmac: an algorithm name such as `constructor` throws `Unsupported algorithm`.
14
+ - oidc: a discovery response with no `introspection_endpoint`, or a null introspection body, throws a clear error.
15
+ - `HttpRequestActivity.toOutput` takes `HttpRequestActivityOutput` in place of `any`.
16
+
17
+ ## 0.2.7
18
+
3
19
  ## 0.2.6
4
20
 
5
21
  ## 0.2.5
package/README.md CHANGED
@@ -4,16 +4,29 @@ Suspend a workflow until a third party calls back over HTTP.
4
4
 
5
5
  ## Usage
6
6
 
7
+ Declare the callback secret with `type: Secret` in the `EnvDesign` in `src/constants/environments.ts`:
8
+
9
+ ```typescript
10
+ // src/constants/environments.ts
11
+ import { EnvDesign, Secret } from '@t4h.framework/core'
12
+
13
+ export const environments = EnvDesign({
14
+ PARTNER_SECRET: { type: Secret },
15
+ })
16
+ ```
17
+
7
18
  ```typescript
8
19
  import { webhook } from '@t4h.framework/webhook'
9
20
  import Type from 'typebox'
10
21
 
22
+ import { environments } from './constants/environments.js'
23
+
11
24
  const callback = await webhook({
12
25
  request: {
13
26
  url: 'https://partner.example.com/jobs',
14
27
  body: { json: { callback: '<<callbackUrl>>' } },
15
28
  },
16
- auth: { type: 'hmac', secret: env.PARTNER_SECRET, header: 'x-signature' },
29
+ auth: { type: 'hmac', secret: environments.PARTNER_SECRET, header: 'x-signature' },
17
30
  schema: Type.Object({ status: Type.String() }),
18
31
  timeoutInMs: 24 * 60 * 60 * 1000,
19
32
  })
@@ -19,7 +19,7 @@ export declare const WEBHOOK_DISPATCH_TIMEOUT_IN_MS = 60000;
19
19
  export declare class WebhookActivity<TSchema extends Type.TSchema = Type.TSchema> extends AsyncActivity<readonly [options: WebhookOptions<TSchema>], WebhookActivityInput, WebhookCallbackOutput | WebhookRejectedOutput, WebhookCallback<Type.Static<TSchema>>, WebhookDispatchResponse | undefined, TSchema> {
20
20
  private readonly [WEBHOOK_ACTIVITY_CLAIMS];
21
21
  toInput(options: WebhookOptions<TSchema>): WebhookActivityInput;
22
- bootstrap(input: WebhookActivityInput): Promise<AsyncActivityResultPending<WebhookDispatchResponse | undefined, TSchema> | import("@t4h.framework/core").AsyncActivityResultRejected<void | import("@t4h.framework/core").Serializable>>;
22
+ bootstrap(input: WebhookActivityInput): Promise<AsyncActivityResultPending<WebhookDispatchResponse | undefined, TSchema> | import("@t4h.framework/core").AsyncActivityResultRejected<import("@t4h.framework/core").SerializableOrVoid>>;
23
23
  private dispatch;
24
24
  advance(payload: Type.Static<TSchema>, bootstrap: AsyncActivityResultPending<WebhookDispatchResponse | undefined>, context?: AsyncActivityAdvanceContext): import("@t4h.framework/core").AsyncActivityResultFulfilled<WebhookRejectedOutput | WebhookCallbackOutput | undefined>;
25
25
  toOutput(output: WebhookCallbackOutput | WebhookRejectedOutput): WebhookCallback<Type.Static<TSchema>>;
@@ -69,7 +69,7 @@ export class WebhookActivity extends AsyncActivity {
69
69
  return {
70
70
  reason: 'dispatch_failed',
71
71
  status: response.status,
72
- message: `Dispatch to ${dispatch.url} answered ${response.status}`,
72
+ message: `Dispatch to ${dispatch.url} answered ${String(response.status)}`,
73
73
  };
74
74
  return {
75
75
  status: response.status,
@@ -1 +1 @@
1
- {"version":3,"file":"WebhookActivity.js","sourceRoot":"","sources":["../../src/activities/WebhookActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAE5C,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,KAAK,EACL,2BAA2B,EAC3B,OAAO,GAMR,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAG5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAQ1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAA;AAgBzE,MAAM,uBAAuB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAA;AAEjE,MAAM,CAAC,MAAM,8BAA8B,GAAG,MAAM,CAAA;AAEpD,SAAS,aAAa,CAAC,WAAoB;IACzC,IAAI,OAAO,WAAW,KAAK,QAAQ,IAAI,CAAC,WAAW,CAAC,MAAM;QACxD,MAAM,IAAI,uBAAuB,CAC/B,wDAAwD,EACxD,WAAW,CACZ,CAAA;IAEH,IAAI,GAAQ,CAAA;IAEZ,IAAI,CAA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AK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;aAChE,CAAA;QACH,CAAC;IACH,CAAC;IAEM,OAAO,CACZ,OAA6B,EAC7B,SAA0E,EAC1E,OAAqC;QAErC,OAAO,IAAI,CAAC,IAAI,CAAC;YACf,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,MAAM;YACjC,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,EAAE;YAC/B,IAAI,EAAE,OAAkC;YACxC,QAAQ,EAAE,SAAS,CAAC,OAAO;SAC5B,CAAC,CAAA;IACJ,CAAC;IAEM,QAAQ,CACb,MAAqD;QAErD,IAAI,QAAQ,IAAI,MAAM;YAAE,MAAM,sBAAsB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QAErE,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,IAAI,EAAE,MAAM,CAAC,IAA4B;YACzC,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B,CAAA;IACH,CAAC;CACF;AAoBD,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,OAAgC,EAChC,EAAE,IAAI,GAAG,IAAI,KAAyB,EAAE;IAExC,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,CACrC,eAAqD,EACrD,OAAO,CACR,CAAA;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAA;AACtC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t4h.framework/webhook",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Webhook module for the T4H Framework",
5
5
  "homepage": "https://github.com/tech4humans-brasil/framework/tree/main/packages/webhook",
6
6
  "bugs": "https://github.com/tech4humans-brasil/framework/issues",
@@ -26,6 +26,8 @@
26
26
  "scripts": {
27
27
  "build": "tsc --project tsconfig.build.json",
28
28
  "check-types": "tsc --noEmit",
29
+ "check-package": "publint --strict && attw --pack . --profile esm-only",
30
+ "lint": "eslint . --max-warnings 0",
29
31
  "prepublishOnly": "yarn build",
30
32
  "test": "vitest run",
31
33
  "test:watch": "vitest"
@@ -34,8 +36,8 @@
34
36
  "typebox": "^1.1.6"
35
37
  },
36
38
  "devDependencies": {
37
- "@t4h.framework/core": "^0.18.0",
38
- "@t4h.framework/http": "^0.7.4",
39
+ "@t4h.framework/core": "^0.20.0",
40
+ "@t4h.framework/http": "^0.8.0",
39
41
  "typescript": "^5.9.3",
40
42
  "vitest": "^4.0.18"
41
43
  },