@oneaddress/partner-sdk 2.4.0 → 2.4.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 +26 -0
- package/README.md +25 -4
- package/dist/index.d.mts +21 -3
- package/dist/index.d.ts +21 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.4.1] - 2026-10-06
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **The retry table told partners that a `401` is retried, and that every 4xx is
|
|
15
|
+
filed as an authentication failure. Neither was true of the relay.** Both
|
|
16
|
+
sentences described an earlier version of the dispatch classifier and had
|
|
17
|
+
survived it, so a partner reading the published table built their handler
|
|
18
|
+
against behaviour the relay does not have.
|
|
19
|
+
|
|
20
|
+
What the relay actually does: a `401` or a `403` is **not retried** - the
|
|
21
|
+
dispatch is marked `auth_failed` and stops, because retrying a rejected
|
|
22
|
+
signature only repeats the rejection. A `400` or a `422` is classified
|
|
23
|
+
`partner_error`, not `auth_failed`, so the consumer's dashboard does not blame
|
|
24
|
+
the signature for a malformed body or an undeclared update kind. `403` was
|
|
25
|
+
absent from the table entirely.
|
|
26
|
+
|
|
27
|
+
Documentation only. No runtime code, no exported type and no wire format
|
|
28
|
+
changes in this release; `dist/index.js` is byte-identical to 2.4.0.
|
|
29
|
+
|
|
30
|
+
- **`verified: true` read as an assurance signal, and it is only a presence
|
|
31
|
+
marker.** It is `true` on a `mock` dispatch as well, so a recipient treating it
|
|
32
|
+
as "an identity check stands behind this" is wrong for sandbox runs, product
|
|
33
|
+
demonstrations and internal tests. The doc comments on `method` and `verified`
|
|
34
|
+
now say so, and name `method === 'identity_document'` as the field to route on.
|
|
35
|
+
|
|
10
36
|
## [2.4.0] - 2026-10-01
|
|
11
37
|
|
|
12
38
|
### Added
|
package/README.md
CHANGED
|
@@ -463,13 +463,34 @@ What each response status means to us:
|
|
|
463
463
|
| You answer | We record | We do |
|
|
464
464
|
|---|---|---|
|
|
465
465
|
| `2xx` (and no `ok: false`) | delivered, awaiting your confirm | Wait for `confirmUpdate`. |
|
|
466
|
-
| `400` |
|
|
467
|
-
| `401` | auth failed
|
|
468
|
-
| `422` |
|
|
466
|
+
| `400` | partner error | Retry on the backoff. A malformed request cannot be fixed by retrying, but the class of problem (a stale timestamp, a body that is not JSON) usually clears on the next attempt. |
|
|
467
|
+
| `401` or `403` | **auth failed** | **Not retried.** See the warning below. |
|
|
468
|
+
| `422` | partner error | Retry. The handler sends this for a kind you have not declared in `acceptedUpdateTypes`; once you widen the declaration the retry is processed. |
|
|
469
469
|
| `500` | partner error | Retry. This is what the handler answers for a decrypt failure, a missing or invalid consent proof, or a throwing `onUpdate`, and it is the right answer for anything you want retried. |
|
|
470
470
|
| no response / timeout | unreachable | Retry. |
|
|
471
471
|
|
|
472
|
-
|
|
472
|
+
> **A 401 or 403 ends the delivery. It is not retried, and this README said the
|
|
473
|
+
> opposite until 5 October 2026.**
|
|
474
|
+
>
|
|
475
|
+
> Those two statuses are the only ones we read as a **rejected signature**, and
|
|
476
|
+
> a rejected signature does not fix itself: nothing about waiting and sending
|
|
477
|
+
> the same bytes again makes them verify. So the dispatch is parked in the
|
|
478
|
+
> `auth_failed` state and the retry cron excludes it from its candidate set.
|
|
479
|
+
> Once a dispatch is parked there, nothing moves it except a fresh address
|
|
480
|
+
> change, and the consumer has already paid for this one. Recovery is a support
|
|
481
|
+
> request to OneAddress.
|
|
482
|
+
>
|
|
483
|
+
> This is why the staged rotation exists (see **Rotating your webhook secret**
|
|
484
|
+
> below): stage the new secret, deploy it alongside the current one so your
|
|
485
|
+
> receiver accepts BOTH, verify, and only then press Switch over. Done in that
|
|
486
|
+
> order a 401 never happens. Deploying the new secret before switching over is
|
|
487
|
+
> the sequence that produces one, and it costs the consumer their update.
|
|
488
|
+
>
|
|
489
|
+
> A run of 401s across several partners at once is an alert on OUR side - a
|
|
490
|
+
> broken signing deploy or an unsynced secret - and worth telling us about
|
|
491
|
+
> rather than waiting out.
|
|
492
|
+
|
|
493
|
+
Every 4xx EXCEPT 401 and 403 is filed as "partner error" and retried; 401 and 403 are filed as "auth failed" and are not. Either way a 4xx you send deliberately reads, to the consumer, as a problem between you and OneAddress. Prefer a 500 for "try again" and a confirm of `no_match` for "not my customer".
|
|
473
494
|
|
|
474
495
|
---
|
|
475
496
|
|
package/dist/index.d.mts
CHANGED
|
@@ -493,12 +493,30 @@ interface OneAddressLOA {
|
|
|
493
493
|
* consumed. Production dispatches always include it.
|
|
494
494
|
*/
|
|
495
495
|
interface OneAddressIdVerification {
|
|
496
|
-
/**
|
|
497
|
-
*
|
|
496
|
+
/**
|
|
497
|
+
* Verification method, and the field to route on.
|
|
498
|
+
*
|
|
499
|
+
* `identity_document`: a completed document plus biometric check ran at the
|
|
500
|
+
* identity provider and a government Document Verification Service
|
|
501
|
+
* cross-check was performed. This is what every production dispatch carries.
|
|
502
|
+
*
|
|
503
|
+
* `mock` - NO such verification stands behind this dispatch. It was
|
|
504
|
+
* authorised by a simulated credit, from a sandbox run, a product
|
|
505
|
+
* demonstration, or an internal test. A recipient treating an update as
|
|
506
|
+
* identity-assured should check for `identity_document` here rather than
|
|
507
|
+
* relying on `verified`.
|
|
508
|
+
*
|
|
509
|
+
* Carries no provider identity.
|
|
510
|
+
*/
|
|
498
511
|
method: string;
|
|
499
512
|
/** ISO-8601 timestamp the verification was completed */
|
|
500
513
|
verified_at: string;
|
|
501
|
-
/**
|
|
514
|
+
/**
|
|
515
|
+
* Always `true` on dispatches, so partners can rely on the field's presence.
|
|
516
|
+
*
|
|
517
|
+
* It is a presence marker and carries no assurance information: it is `true`
|
|
518
|
+
* for a `mock` dispatch too. `method` is the field that distinguishes them.
|
|
519
|
+
*/
|
|
502
520
|
verified: true;
|
|
503
521
|
/** Format tag — currently `oneaddress/v1` */
|
|
504
522
|
platform: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -493,12 +493,30 @@ interface OneAddressLOA {
|
|
|
493
493
|
* consumed. Production dispatches always include it.
|
|
494
494
|
*/
|
|
495
495
|
interface OneAddressIdVerification {
|
|
496
|
-
/**
|
|
497
|
-
*
|
|
496
|
+
/**
|
|
497
|
+
* Verification method, and the field to route on.
|
|
498
|
+
*
|
|
499
|
+
* `identity_document`: a completed document plus biometric check ran at the
|
|
500
|
+
* identity provider and a government Document Verification Service
|
|
501
|
+
* cross-check was performed. This is what every production dispatch carries.
|
|
502
|
+
*
|
|
503
|
+
* `mock` - NO such verification stands behind this dispatch. It was
|
|
504
|
+
* authorised by a simulated credit, from a sandbox run, a product
|
|
505
|
+
* demonstration, or an internal test. A recipient treating an update as
|
|
506
|
+
* identity-assured should check for `identity_document` here rather than
|
|
507
|
+
* relying on `verified`.
|
|
508
|
+
*
|
|
509
|
+
* Carries no provider identity.
|
|
510
|
+
*/
|
|
498
511
|
method: string;
|
|
499
512
|
/** ISO-8601 timestamp the verification was completed */
|
|
500
513
|
verified_at: string;
|
|
501
|
-
/**
|
|
514
|
+
/**
|
|
515
|
+
* Always `true` on dispatches, so partners can rely on the field's presence.
|
|
516
|
+
*
|
|
517
|
+
* It is a presence marker and carries no assurance information: it is `true`
|
|
518
|
+
* for a `mock` dispatch too. `method` is the field that distinguishes them.
|
|
519
|
+
*/
|
|
502
520
|
verified: true;
|
|
503
521
|
/** Format tag — currently `oneaddress/v1` */
|
|
504
522
|
platform: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Official OneAddress partner integration SDK — webhook verification, address decryption (legacy + D5 session-envelope), LOA validation",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|