@twin.org/api-auth-entity-storage-models 0.0.3-next.7 → 0.0.3-next.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.
@@ -1,4 +1,2 @@
1
- // Copyright 2024 IOTA Stiftung.
2
- // SPDX-License-Identifier: Apache-2.0.
3
1
  export {};
4
2
  //# sourceMappingURL=ILoginResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ILoginResponse.js","sourceRoot":"","sources":["../../../../src/models/api/ILoginResponse.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Response from a login on the server.\n */\nexport interface ILoginResponse {\n\t/**\n\t * The login response details.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The access token, if it uses a mechanism with public access.\n\t\t */\n\t\ttoken?: string;\n\n\t\t/**\n\t\t * The expiry time of the token.\n\t\t */\n\t\texpiry: number;\n\t};\n}\n"]}
1
+ {"version":3,"file":"ILoginResponse.js","sourceRoot":"","sources":["../../../../src/models/api/ILoginResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes } from \"@twin.org/web\";\n\n/**\n * Response from a login on the server.\n */\nexport interface ILoginResponse {\n\t/**\n\t * Response headers.\n\t */\n\theaders?: {\n\t\t/**\n\t\t * The cookie containing the auth token.\n\t\t */\n\t\t[HeaderTypes.SetCookie]?: string;\n\t};\n\n\t/**\n\t * The login response details.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The expiry time of the token.\n\t\t */\n\t\texpiry: number;\n\t};\n}\n"]}
@@ -1,4 +1,2 @@
1
- // Copyright 2024 IOTA Stiftung.
2
- // SPDX-License-Identifier: Apache-2.0.
3
1
  export {};
4
2
  //# sourceMappingURL=IRefreshTokenResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IRefreshTokenResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IRefreshTokenResponse.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Response from a refresh on the auth token.\n */\nexport interface IRefreshTokenResponse {\n\t/**\n\t * The refresh token details.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The refreshed token, if it uses a mechanism with public access.\n\t\t */\n\t\ttoken?: string;\n\n\t\t/**\n\t\t * The expiry time of the token.\n\t\t */\n\t\texpiry: number;\n\t};\n}\n"]}
1
+ {"version":3,"file":"IRefreshTokenResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IRefreshTokenResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes } from \"@twin.org/web\";\n\n/**\n * Response from a refresh on the auth token.\n */\nexport interface IRefreshTokenResponse {\n\t/**\n\t * Response headers.\n\t */\n\theaders?: {\n\t\t/**\n\t\t * The cookie containing the auth token.\n\t\t */\n\t\t[HeaderTypes.SetCookie]?: string;\n\t};\n\n\t/**\n\t * The refresh token details.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The expiry time of the token.\n\t\t */\n\t\texpiry: number;\n\t};\n}\n"]}
@@ -1,15 +1,21 @@
1
+ import type { HeaderTypes } from "@twin.org/web";
1
2
  /**
2
3
  * Response from a login on the server.
3
4
  */
4
5
  export interface ILoginResponse {
5
6
  /**
6
- * The login response details.
7
+ * Response headers.
7
8
  */
8
- body: {
9
+ headers?: {
9
10
  /**
10
- * The access token, if it uses a mechanism with public access.
11
+ * The cookie containing the auth token.
11
12
  */
12
- token?: string;
13
+ [HeaderTypes.SetCookie]?: string;
14
+ };
15
+ /**
16
+ * The login response details.
17
+ */
18
+ body: {
13
19
  /**
14
20
  * The expiry time of the token.
15
21
  */
@@ -1,15 +1,21 @@
1
+ import type { HeaderTypes } from "@twin.org/web";
1
2
  /**
2
3
  * Response from a refresh on the auth token.
3
4
  */
4
5
  export interface IRefreshTokenResponse {
5
6
  /**
6
- * The refresh token details.
7
+ * Response headers.
7
8
  */
8
- body: {
9
+ headers?: {
9
10
  /**
10
- * The refreshed token, if it uses a mechanism with public access.
11
+ * The cookie containing the auth token.
11
12
  */
12
- token?: string;
13
+ [HeaderTypes.SetCookie]?: string;
14
+ };
15
+ /**
16
+ * The refresh token details.
17
+ */
18
+ body: {
13
19
  /**
14
20
  * The expiry time of the token.
15
21
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @twin.org/api-auth-entity-storage-models - Changelog
2
2
 
3
+ ## [0.0.3-next.9](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-models-v0.0.3-next.8...api-auth-entity-storage-models-v0.0.3-next.9) (2026-01-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * add context id features ([#42](https://github.com/twinfoundation/api/issues/42)) ([0186055](https://github.com/twinfoundation/api/commit/0186055c48afde842a4254b4df9ac9249c40fe40))
9
+ * add json-ld mime type processor and auth admin component ([8861791](https://github.com/twinfoundation/api/commit/88617916e23bfbca023dbae1976fe421983a02ff))
10
+ * add validate-locales ([cdba610](https://github.com/twinfoundation/api/commit/cdba610a0acb5022d2e3ce729732e6646a297e5e))
11
+ * eslint migration to flat config ([0dd5820](https://github.com/twinfoundation/api/commit/0dd5820e3af97350fd08b8d226f4a6c1a9246805))
12
+ * improve description ([d28185c](https://github.com/twinfoundation/api/commit/d28185c799a97455fee72fb23c744c8e71325f0b))
13
+ * improve socket route logging ([b8d9519](https://github.com/twinfoundation/api/commit/b8d95199f838ac6ba9f45c30ef7c4e613201ff53))
14
+ * modify authHeaderProcessor to retain token in response body ([#53](https://github.com/twinfoundation/api/issues/53)) ([5d9ae76](https://github.com/twinfoundation/api/commit/5d9ae76b5b52a8e10dac391b2d5784638a186583))
15
+ * remove unused namespace ([08478f2](https://github.com/twinfoundation/api/commit/08478f27efda9beb0271fdb22f6972e918361965))
16
+ * update dependencies ([1171dc4](https://github.com/twinfoundation/api/commit/1171dc416a9481737f6a640e3cf30145768f37e9))
17
+ * update framework core ([d8eebf2](https://github.com/twinfoundation/api/commit/d8eebf267fa2a0abaa84e58590496e9d20490cfa))
18
+ * update IComponent signatures ([915ce37](https://github.com/twinfoundation/api/commit/915ce37712326ab4aa6869c350eabaa4622e8430))
19
+ * use shared store mechanism ([#19](https://github.com/twinfoundation/api/issues/19)) ([32116df](https://github.com/twinfoundation/api/commit/32116df3b4380a30137f5056f242a5c99afa2df9))
20
+
21
+ ## [0.0.3-next.8](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-models-v0.0.3-next.7...api-auth-entity-storage-models-v0.0.3-next.8) (2025-12-17)
22
+
23
+
24
+ ### Miscellaneous Chores
25
+
26
+ * **api-auth-entity-storage-models:** Synchronize repo versions
27
+
3
28
  ## [0.0.3-next.7](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-models-v0.0.3-next.6...api-auth-entity-storage-models-v0.0.3-next.7) (2025-11-26)
4
29
 
5
30
 
@@ -4,17 +4,25 @@ Response from a login on the server.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### body
7
+ ### headers?
8
8
 
9
- > **body**: `object`
9
+ > `optional` **headers**: `object`
10
10
 
11
- The login response details.
11
+ Response headers.
12
+
13
+ #### set-cookie?
14
+
15
+ > `optional` **set-cookie**: `string`
12
16
 
13
- #### token?
17
+ The cookie containing the auth token.
14
18
 
15
- > `optional` **token**: `string`
19
+ ***
16
20
 
17
- The access token, if it uses a mechanism with public access.
21
+ ### body
22
+
23
+ > **body**: `object`
24
+
25
+ The login response details.
18
26
 
19
27
  #### expiry
20
28
 
@@ -4,17 +4,25 @@ Response from a refresh on the auth token.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### body
7
+ ### headers?
8
8
 
9
- > **body**: `object`
9
+ > `optional` **headers**: `object`
10
10
 
11
- The refresh token details.
11
+ Response headers.
12
+
13
+ #### set-cookie?
14
+
15
+ > `optional` **set-cookie**: `string`
12
16
 
13
- #### token?
17
+ The cookie containing the auth token.
14
18
 
15
- > `optional` **token**: `string`
19
+ ***
16
20
 
17
- The refreshed token, if it uses a mechanism with public access.
21
+ ### body
22
+
23
+ > **body**: `object`
24
+
25
+ The refresh token details.
18
26
 
19
27
  #### expiry
20
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/api-auth-entity-storage-models",
3
- "version": "0.0.3-next.7",
3
+ "version": "0.0.3-next.9",
4
4
  "description": "Models which define the structure of the Auth Entity Storage contracts.",
5
5
  "repository": {
6
6
  "type": "git",