unnbound-logger-sdk 3.1.0-beta.0 → 3.1.0-beta.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 (2) hide show
  1. package/dist/types.d.ts +8 -3
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -67,9 +67,10 @@ export interface EdiPayload {
67
67
  export type As2Operation = 'send' | 'deliver' | 'receive' | 'acknowledge' | 'mdn-generate' | 'mdn-deliver' | 'mdn-verify';
68
68
  export type As2Outcome = 'confirmed' | 'failed' | 'pending' | 'received' | 'duplicate' | 'inFlight' | 'parked' | 'delivered' | 'generated' | 'verified';
69
69
  /**
70
- * Customer-visible AS2 protocol milestone. Metadata only, by contract: AS2 transport
71
- * bodies are plaintext business documents, sealed envelopes, and signed MDNs, so this
72
- * payload must never carry bodies, full URLs, tokens, or certificate material.
70
+ * Customer-visible AS2 protocol milestone. `payload` carries the cleartext business
71
+ * document (send/receive) and `mdn` the complete receipt (mdn-generate/mdn-verify) —
72
+ * the same user-queryable content contract as http/sftp body logging (T-3258). Sealed
73
+ * envelopes, full URLs, delivery tokens, and certificate material stay excluded.
73
74
  */
74
75
  export interface As2Payload {
75
76
  operation: As2Operation;
@@ -96,6 +97,10 @@ export interface As2Payload {
96
97
  micMatched?: boolean;
97
98
  /** Normalized safe error code (As2SdkError.code), never a stack trace. */
98
99
  errorCode?: string;
100
+ /** Complete cleartext business document (send/receive milestones). */
101
+ payload?: string;
102
+ /** Complete MDN receipt as MIME text (mdn-generate/mdn-verify milestones). */
103
+ mdn?: string;
99
104
  }
100
105
  export interface HttpOptions<G extends Function> {
101
106
  ignoreTraceRoutes?: string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unnbound-logger-sdk",
3
3
  "description": "A structured logging library with TypeScript support using Pino. Provides consistent, well-typed logging with automatic logId, workflowId, traceId, and deploymentId tracking across operational contexts.",
4
- "version": "3.1.0-beta.0",
4
+ "version": "3.1.0-beta.1",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "keywords": [