sos-sdk-node-ts 0.1.8 → 0.1.9
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
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- Send authorized-subject directory submit and poll envelopes with the
|
|
6
|
+
canonical `application/didcomm-plain+json` media type so compat-mode SOS
|
|
7
|
+
gateways do not reject card discovery as legacy JSON.
|
|
5
8
|
- Add the shared trusted-BFF authorized-subject directory client with canonical
|
|
6
9
|
SOS GW Organization/License routes, real submit/poll HTTP coverage,
|
|
7
10
|
independent `sameAs` alias matching and fail-closed animal-card DID
|
|
@@ -27,8 +27,11 @@ export class SosGatewaySubjectDirectoryClient {
|
|
|
27
27
|
this.requestTimeoutMs = positiveInteger(options.requestTimeoutMs ?? 15_000, 'request_timeout_invalid');
|
|
28
28
|
this.fetchImpl = options.fetchImpl ?? fetch;
|
|
29
29
|
this.headers = Object.freeze({
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
// The shared GW contract identifies this existing thid/body envelope as
|
|
31
|
+
// DIDComm plaintext. Compat and strict deployments must never receive it
|
|
32
|
+
// under the ambiguous legacy application/json media type.
|
|
33
|
+
'Content-Type': 'application/didcomm-plain+json',
|
|
34
|
+
Accept: 'application/didcomm-plain+json',
|
|
32
35
|
...(requiredOptional(options.bearerToken) ? { Authorization: `Bearer ${requiredOptional(options.bearerToken)}` } : {}),
|
|
33
36
|
...(requiredOptional(options.appId)
|
|
34
37
|
? buildGatewayApplicationHeaders({
|
package/package.json
CHANGED