@hogsend/client 0.17.0 → 0.18.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.
package/dist/index.d.cts CHANGED
@@ -81,6 +81,15 @@ interface ExitResult {
81
81
  interface IngestResult {
82
82
  stored: boolean;
83
83
  exits: ExitResult[];
84
+ /**
85
+ * The contact's canonical key (`external_id ?? anonymous_id ?? id`) after
86
+ * this ingest's identity resolve — the same key outbound destinations emit
87
+ * as `userId` and `hs_t` identity tokens resolve to. Hand it to your
88
+ * analytics `identify()` so the session joins the person the contact's
89
+ * email events land on, with no PII round-trip. Optional: servers on engine
90
+ * <0.18 don't return it.
91
+ */
92
+ contactKey?: string;
84
93
  /**
85
94
  * Present only when the event was ingested but the (non-atomic, post-ingest)
86
95
  * list-membership write failed. The event itself is durably stored.
package/dist/index.d.ts CHANGED
@@ -81,6 +81,15 @@ interface ExitResult {
81
81
  interface IngestResult {
82
82
  stored: boolean;
83
83
  exits: ExitResult[];
84
+ /**
85
+ * The contact's canonical key (`external_id ?? anonymous_id ?? id`) after
86
+ * this ingest's identity resolve — the same key outbound destinations emit
87
+ * as `userId` and `hs_t` identity tokens resolve to. Hand it to your
88
+ * analytics `identify()` so the session joins the person the contact's
89
+ * email events land on, with no PII round-trip. Optional: servers on engine
90
+ * <0.18 don't return it.
91
+ */
92
+ contactKey?: string;
84
93
  /**
85
94
  * Present only when the event was ingested but the (non-atomic, post-ingest)
86
95
  * list-membership write failed. The event itself is durably stored.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hogsend/client",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Typed HTTP client for the Hogsend data plane (contacts, events, emails, lists).",
@@ -31,7 +31,7 @@
31
31
  "@types/node": "^22.15.3",
32
32
  "tsup": "^8.5.1",
33
33
  "vitest": "^4.1.7",
34
- "@hogsend/email": "^0.17.0",
34
+ "@hogsend/email": "^0.18.0",
35
35
  "@repo/typescript-config": "0.0.0"
36
36
  },
37
37
  "engines": {