@twin.org/api-auth-entity-storage-rest-client 0.0.3-next.25 → 0.0.3-next.27

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/docs/changelog.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.27](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-rest-client-v0.0.3-next.26...api-auth-entity-storage-rest-client-v0.0.3-next.27) (2026-04-23)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **api-auth-entity-storage-rest-client:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/api-auth-entity-storage-models bumped from 0.0.3-next.26 to 0.0.3-next.27
16
+ * @twin.org/api-core bumped from 0.0.3-next.26 to 0.0.3-next.27
17
+ * @twin.org/api-models bumped from 0.0.3-next.26 to 0.0.3-next.27
18
+
19
+ ## [0.0.3-next.26](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-rest-client-v0.0.3-next.25...api-auth-entity-storage-rest-client-v0.0.3-next.26) (2026-04-22)
20
+
21
+
22
+ ### Miscellaneous Chores
23
+
24
+ * **api-auth-entity-storage-rest-client:** Synchronize repo versions
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * The following workspace dependencies were updated
30
+ * dependencies
31
+ * @twin.org/api-auth-entity-storage-models bumped from 0.0.3-next.25 to 0.0.3-next.26
32
+ * @twin.org/api-core bumped from 0.0.3-next.25 to 0.0.3-next.26
33
+ * @twin.org/api-models bumped from 0.0.3-next.25 to 0.0.3-next.26
34
+
3
35
  ## [0.0.3-next.25](https://github.com/twinfoundation/api/compare/api-auth-entity-storage-rest-client-v0.0.3-next.24...api-auth-entity-storage-rest-client-v0.0.3-next.25) (2026-04-14)
4
36
 
5
37
 
package/docs/examples.md CHANGED
@@ -71,3 +71,41 @@ const refreshResponse = await authClient.refresh(loginResponse.token);
71
71
  await authClient.logout(refreshResponse.token);
72
72
  console.log(refreshResponse.expiry > 0); // true
73
73
  ```
74
+
75
+ ## EntityStorageAuthenticationAuditRestClient
76
+
77
+ ```typescript
78
+ import { EntityStorageAuthenticationAuditRestClient } from '@twin.org/api-auth-entity-storage-rest-client';
79
+
80
+ const auditClient = new EntityStorageAuthenticationAuditRestClient({
81
+ endpoint: 'https://api.example.org',
82
+ pathPrefix: 'v1'
83
+ });
84
+
85
+ console.log(auditClient.className()); // EntityStorageAuthenticationAuditRestClient
86
+
87
+ const auditEntryId = await auditClient.create({
88
+ event: 'login-success',
89
+ actorId: 'did:example:user:alice',
90
+ organizationId: 'did:example:org:core',
91
+ tenantId: 'did:example:tenant:alpha',
92
+ data: {
93
+ channel: 'web'
94
+ }
95
+ });
96
+
97
+ const auditResult = await auditClient.query(
98
+ {
99
+ actorId: 'did:example:user:alice',
100
+ event: 'login-success',
101
+ startDate: '2026-04-01T00:00:00.000Z',
102
+ endDate: '2026-04-30T23:59:59.999Z'
103
+ },
104
+ undefined,
105
+ 25
106
+ );
107
+
108
+ console.log(auditEntryId); // /authentication/audit/018f2f67bb9d4a0caad8386f56df85ce
109
+ console.log(auditResult.entries.length); // 1
110
+ console.log(auditResult.cursor); // eyJpZCI6IjAxOGYyZjY3YmI5ZDRhMGNhYWQ4Mzg2ZjU2ZGY4NWNlIn0=
111
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/api-auth-entity-storage-rest-client",
3
- "version": "0.0.3-next.25",
3
+ "version": "0.0.3-next.27",
4
4
  "description": "REST clients for authentication and admin operations against entity storage endpoints.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,9 +14,9 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/api-auth-entity-storage-models": "0.0.3-next.25",
18
- "@twin.org/api-core": "0.0.3-next.25",
19
- "@twin.org/api-models": "0.0.3-next.25",
17
+ "@twin.org/api-auth-entity-storage-models": "0.0.3-next.27",
18
+ "@twin.org/api-core": "0.0.3-next.27",
19
+ "@twin.org/api-models": "0.0.3-next.27",
20
20
  "@twin.org/core": "next",
21
21
  "@twin.org/nameof": "next",
22
22
  "@twin.org/web": "next"