@twin.org/api-models 0.0.3-next.50 → 0.0.3-next.51
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.
|
@@ -17,6 +17,10 @@ export const HttpContextIdKeys = {
|
|
|
17
17
|
* Correlation ID of the request.
|
|
18
18
|
*/
|
|
19
19
|
CorrelationId: "correlationId",
|
|
20
|
+
/**
|
|
21
|
+
* Is this a remote request, will be a random UUID if request arrived through a REST endpoint, otherwise undefined.
|
|
22
|
+
*/
|
|
23
|
+
RemoteRequest: "remoteRequest",
|
|
20
24
|
/**
|
|
21
25
|
* Public Origin of the request.
|
|
22
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpContextIdKeys.js","sourceRoot":"","sources":["../../../src/models/httpContextIdKeys.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,WAAW,EAAE,aAAa;CACjB,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * HTTP definition of some context keys.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HttpContextIdKeys = {\n\t/**\n\t * IP address of the client.\n\t */\n\tIpAddress: \"ipAddress\",\n\n\t/**\n\t * User agent of the client.\n\t */\n\tUserAgent: \"userAgent\",\n\n\t/**\n\t * Correlation ID of the request.\n\t */\n\tCorrelationId: \"correlationId\",\n\n\t/**\n\t * Public Origin of the request.\n\t */\n\tPublicOrigin: \"publicOrigin\",\n\n\t/**\n\t * Local Origin of the request.\n\t */\n\tLocalOrigin: \"localOrigin\"\n} as const;\n\n/**\n * HTTP definition of some context keys.\n */\nexport type HttpContextIdKeys = (typeof HttpContextIdKeys)[keyof typeof HttpContextIdKeys];\n"]}
|
|
1
|
+
{"version":3,"file":"httpContextIdKeys.js","sourceRoot":"","sources":["../../../src/models/httpContextIdKeys.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,aAAa,EAAE,eAAe;IAE9B;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,WAAW,EAAE,aAAa;CACjB,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * HTTP definition of some context keys.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HttpContextIdKeys = {\n\t/**\n\t * IP address of the client.\n\t */\n\tIpAddress: \"ipAddress\",\n\n\t/**\n\t * User agent of the client.\n\t */\n\tUserAgent: \"userAgent\",\n\n\t/**\n\t * Correlation ID of the request.\n\t */\n\tCorrelationId: \"correlationId\",\n\n\t/**\n\t * Is this a remote request, will be a random UUID if request arrived through a REST endpoint, otherwise undefined.\n\t */\n\tRemoteRequest: \"remoteRequest\",\n\n\t/**\n\t * Public Origin of the request.\n\t */\n\tPublicOrigin: \"publicOrigin\",\n\n\t/**\n\t * Local Origin of the request.\n\t */\n\tLocalOrigin: \"localOrigin\"\n} as const;\n\n/**\n * HTTP definition of some context keys.\n */\nexport type HttpContextIdKeys = (typeof HttpContextIdKeys)[keyof typeof HttpContextIdKeys];\n"]}
|
|
@@ -14,6 +14,10 @@ export declare const HttpContextIdKeys: {
|
|
|
14
14
|
* Correlation ID of the request.
|
|
15
15
|
*/
|
|
16
16
|
readonly CorrelationId: "correlationId";
|
|
17
|
+
/**
|
|
18
|
+
* Is this a remote request, will be a random UUID if request arrived through a REST endpoint, otherwise undefined.
|
|
19
|
+
*/
|
|
20
|
+
readonly RemoteRequest: "remoteRequest";
|
|
17
21
|
/**
|
|
18
22
|
* Public Origin of the request.
|
|
19
23
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.51](https://github.com/iotaledger/twin-api/compare/api-models-v0.0.3-next.50...api-models-v0.0.3-next.51) (2026-06-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* resolve local origin context by organization routing param ([#180](https://github.com/iotaledger/twin-api/issues/180)) ([bceb9f1](https://github.com/iotaledger/twin-api/commit/bceb9f1b5b68382b7e2f9743ee7b4ea0e3a33f55))
|
|
9
|
+
|
|
3
10
|
## [0.0.3-next.50](https://github.com/iotaledger/twin-api/compare/api-models-v0.0.3-next.49...api-models-v0.0.3-next.50) (2026-06-19)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -24,6 +24,12 @@ User agent of the client.
|
|
|
24
24
|
|
|
25
25
|
Correlation ID of the request.
|
|
26
26
|
|
|
27
|
+
### RemoteRequest {#remoterequest}
|
|
28
|
+
|
|
29
|
+
> `readonly` **RemoteRequest**: `"remoteRequest"` = `"remoteRequest"`
|
|
30
|
+
|
|
31
|
+
Is this a remote request, will be a random UUID if request arrived through a REST endpoint, otherwise undefined.
|
|
32
|
+
|
|
27
33
|
### PublicOrigin {#publicorigin}
|
|
28
34
|
|
|
29
35
|
> `readonly` **PublicOrigin**: `"publicOrigin"` = `"publicOrigin"`
|
package/package.json
CHANGED