@t4h.framework/smtp 0.6.4 → 0.7.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.
@@ -95,7 +95,7 @@ input shapes:
95
95
 
96
96
  | Field | Type | Notes |
97
97
  |-------|------|-------|
98
- | `connectionString` | `string` | From `smtp.connectionString` |
98
+ | `connectionString` | `Secret` | From `smtp.connectionString`; the host reads the value when it sends |
99
99
  | `from` | `string?` | `content.from ?? smtp.options.from` |
100
100
  | `to` | `readonly string[]` | Always an array after `toInput` |
101
101
  | `cc` | `readonly string[]?` | Omitted if not set |
@@ -121,10 +121,10 @@ Use framework `Binary` instances (e.g. from an HTTP `response.body`).
121
121
 
122
122
  ## Smtp client
123
123
 
124
- High-level API: holds `connectionString` and optional default `from`, extends `SerializableClass` for workflow persistence.
124
+ High-level API: holds `connectionString` (a `Secret` from the `EnvDesign`, since the URL `smtp://user:pass@host:587` carries the password — a string is a `tsc` error) and optional default `from`, extends `SerializableClass` for workflow persistence.
125
125
 
126
126
  ```typescript
127
- const smtp = new Smtp('smtp://user:pass@smtp.example.com:587', {
127
+ const smtp = new Smtp(environments.SMTP_URL, {
128
128
  from: 'noreply@example.com',
129
129
  })
130
130
 
@@ -163,7 +163,7 @@ ready, replay-safe helper. Never define or extend your own activity:
163
163
  import { History } from '@t4h.framework/core'
164
164
  import { Smtp, SmtpSendEmailActivity } from '@t4h.framework/smtp'
165
165
 
166
- const smtp = new Smtp(connectionString)
166
+ const smtp = new Smtp(environments.SMTP_URL) // Secret
167
167
  const result = await History.reconciler(SmtpSendEmailActivity, smtp, {
168
168
  to: 'user@example.com',
169
169
  subject: 'Subject',
@@ -191,13 +191,13 @@ Activity and `Smtp.send` surface this type, not the raw `{ messageId }` object.
191
191
  ## Workflow example
192
192
 
193
193
  ```typescript
194
- import { App, EnvDesign, Workflow } from '@t4h.framework/core'
194
+ import { App, EnvDesign, Secret, Workflow } from '@t4h.framework/core'
195
195
  import { http } from '@t4h.framework/http'
196
196
  import { Smtp } from '@t4h.framework/smtp'
197
197
  import Type from 'typebox'
198
198
 
199
199
  const env = EnvDesign({
200
- SMTP_CONNECTION_STRING: { type: String },
200
+ SMTP_CONNECTION_STRING: { type: Secret }, // carries the password
201
201
  SMTP_FROM: { type: String },
202
202
  })
203
203
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @t4h.framework/smtp
2
2
 
3
+ ## 0.7.1
4
+
5
+ ## 0.7.0
6
+
7
+ ### Minor Changes
8
+
9
+ - [#181](https://github.com/tech4humans-brasil/framework/pull/181) [`9449e4e`](https://github.com/tech4humans-brasil/framework/commit/9449e4e9889f42dea1d52418140f47d25dff0535) Thanks [@gusteycamargo](https://github.com/gusteycamargo)! - A credential is a `Secret`, never a string. An env entry declared with
10
+ `type: Secret` hands the workflow the name of the variable; the host binds the
11
+ value where the activity runs, so no input, output or history record holds it.
12
+
13
+ **Breaking**: every field that carries a credential now accepts only a
14
+ `Secret`. Declare the entry with `type: Secret` in your `EnvDesign` and pass it
15
+ whole; `tsc` points at each remaining string.
16
+
17
+ **core**: `Secret` (a `SerializableClass` whose `toString`, `valueOf` and
18
+ `toJSON` throw), `Secret.resolve` and `Secret.read` for hosts, `Secret.FORMAT`
19
+ for the manifest. `EnvDesign` accepts `type: Secret`, refuses a `defaultValue`
20
+ on a secret entry and throws when a `String` entry receives a secret.
21
+ `AsyncActivityCallbackAuth` carries a `Secret` in `secret`, `password`, `token`
22
+ and `value`.
23
+
24
+ **http**: `auth` accepts `{ username, password }`, `{ bearer }` or
25
+ `{ header, value }` besides an `HttpAuth`, all with a `Secret`, and the
26
+ activity writes the header on the host. `clientSecret` and `password` of the
27
+ OAuth2 grants are a `Secret`.
28
+
29
+ **smtp**, **sftp**, **orm**: `connectionString` is a `Secret`. The
30
+ `SftpConnectionString` and `ORMConnectionString` aliases are gone.
31
+
32
+ **hmac**: the callback authorizer reads the secret through `Secret.read`.
33
+
34
+ **dev**: the codec writes a `Secret` by name and binds the env value only where
35
+ an activity runs, reading the input back from the database as the runtime does.
36
+ The SFTP and SMTP claims read the value on connect.
37
+
38
+ **webhook**: documents the `Secret` in `auth`.
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [[`9449e4e`](https://github.com/tech4humans-brasil/framework/commit/9449e4e9889f42dea1d52418140f47d25dff0535), [`9449e4e`](https://github.com/tech4humans-brasil/framework/commit/9449e4e9889f42dea1d52418140f47d25dff0535)]:
43
+ - @t4h.framework/core@0.15.0
44
+
3
45
  ## 0.6.4
4
46
 
5
47
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { Binary, SyncActivity } from '@t4h.framework/core';
1
+ import { Binary, SyncActivity, type Secret } from '@t4h.framework/core';
2
2
  import type { Smtp } from '../models/Smtp.js';
3
3
  import { SmtpSendEmailOutput, type ISmtpSendEmailOutput } from '../models/SmtpSendEmailOutput.js';
4
4
  export type SmtpSendEmailActivityAttachment = {
@@ -15,7 +15,7 @@ export type SmtpSendEmailActivityOptions = {
15
15
  attachments?: readonly SmtpSendEmailActivityAttachment[];
16
16
  };
17
17
  export type SmtpSendEmailActivityInput = {
18
- connectionString: string;
18
+ connectionString: Secret;
19
19
  from?: string;
20
20
  subject: string;
21
21
  html: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SmtpSendEmailActivity.d.ts","sourceRoot":"","sources":["../../src/activities/SmtpSendEmailActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAE7C,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,EAC1B,MAAM,kCAAkC,CAAA;AAEzC,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,CA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M,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAEhE,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE;YACnB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBACzB,CAAC,CAAC,OAAO,CAAC,EAAE;gBACZ,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;YAChB,CAAC,CAAC,SAAS,CAAA;QAEb,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG;YACrB,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC;gBAC1B,CAAC,CAAC,OAAO,CAAC,GAAG;gBACb,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;YACjB,CAAC,CAAC,SAAS,CAAA;QAEb,OAAO;YACL,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,IAAI;YACJ,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,EAAE;YACF,EAAE;YACF,GAAG;YACH,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAA;IACH,CAAC;IAEM,GAAG,CAAC,OAAmC;QAC5C,OAAO,IAAI,CAAC,+BAA+B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACjE,CAAC;IAEM,QAAQ,CAAC,MAA4B;QAC1C,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;CACF"}
@@ -1,17 +1,17 @@
1
- import { SerializableClass, type PromiseLikeType } from '@t4h.framework/core';
1
+ import { SerializableClass, type PromiseLikeType, type Secret } from '@t4h.framework/core';
2
2
  import { type SmtpSendEmailActivityOptions } from '../activities/SmtpSendEmailActivity.js';
3
3
  export type SmtpOptions = {
4
4
  from?: string;
5
5
  };
6
6
  export declare class Smtp extends SerializableClass {
7
- readonly connectionString: string;
7
+ readonly connectionString: Secret;
8
8
  readonly options: SmtpOptions;
9
9
  toSerializable(): {
10
- connectionString: string;
10
+ connectionString: Secret;
11
11
  options: SmtpOptions;
12
12
  };
13
13
  protected fromSerializable(serializable: PromiseLikeType<ReturnType<this['toSerializable']>>): void;
14
- constructor(connectionString: string, options?: SmtpOptions);
14
+ constructor(connectionString: Secret, options?: SmtpOptions);
15
15
  send(options: SmtpSendEmailActivityOptions): Promise<import("./SmtpSendEmailOutput.js").SmtpSendEmailOutput>;
16
16
  }
17
17
  //# sourceMappingURL=Smtp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Smtp.d.ts","sourceRoot":"","sources":["../../src/models/Smtp.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EACjB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,wCAAwC,CAAA;AAI/C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,qBAAa,IAAK,SAAQ,iBAAiB;aAmBvB,gBAAgB,EAAE,MAAM;aACxB,OAAO,EAAE,WAAW;IAnB/B,cAAc;;;;IAOrB,SAAS,CAAC,gBAAgB,CACxB,YAAY,EAAE,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,GAChE,IAAI;gBASW,gBAAgB,EAAE,MAAM,EACxB,OAAO,GAAE,WAAgB;IAKpC,IAAI,CAAC,OAAO,EAAE,4BAA4B;CAGlD"}
1
+ {"version":3,"file":"Smtp.d.ts","sourceRoot":"","sources":["../../src/models/Smtp.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,MAAM,EACZ,MAAM,qBAAqB,CAAA;AAE5B,OAA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HS,qBAAgB,GAAhB,gBAAgB,CAAQ;QACxB,YAAO,GAAP,OAAO,CAAkB;IAG3C,CAAC;IAEM,IAAI,CAAC,OAAqC;QAC/C,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC5B,CAAC;CACF"}
1
+ {"version":3,"file":"Smtp.js","sourceRoot":"","sources":["../../src/models/Smtp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,iBAAiB,GAGlB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,qBAAqB,GAEtB,MAAM,wCAAwC,CAAA;AAE/C,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAMhD,MAAM,OAAO,IAAK,SAAQ,iBAAiB;IAmBvB;IACA;IAnBX,cAAc;QACnB,OAAO;YACL,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAA;IACH,CAAC;IAES,gBAAgB,CACxB,YAAiE;QAEjE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,EAAE;YAC9C,KAAK,EAAE,YAAY,CAAC,gBAAgB;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC,CAAA;IACzE,CAAC;IAED,YACkB,gBAAwB,EACxB,UAAuB,EAAE;QAEzC,KAAK,EAAE,CAAA;QAHS,qBAAgB,GAAhB,gBAAgB,CAAQ;QACxB,YAAO,GAAP,OAAO,CAAkB;IAG3C,CAAC;IAEM,IAAI,CAAC,OAAqC;QAC/C,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC5B,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t4h.framework/smtp",
3
- "version": "0.6.4",
3
+ "version": "0.7.1",
4
4
  "description": "SMTP module for the T4H Framework",
5
5
  "homepage": "https://github.com/tech4humans-brasil/framework/tree/main/packages/smtp",
6
6
  "bugs": "https://github.com/tech4humans-brasil/framework/issues",
@@ -31,12 +31,12 @@
31
31
  "test:watch": "vitest"
32
32
  },
33
33
  "devDependencies": {
34
- "@t4h.framework/core": "^0.14.0",
34
+ "@t4h.framework/core": "^0.16.0",
35
35
  "typescript": "^5.9.3",
36
36
  "vitest": "^4.0.18"
37
37
  },
38
38
  "peerDependencies": {
39
- "@t4h.framework/core": "^0.14.0"
39
+ "@t4h.framework/core": ">=0.15.0 <1.0.0"
40
40
  },
41
41
  "packageManager": "yarn@4.12.0",
42
42
  "engines": {