@3sixty/api-auth-entity-storage-rest-client 0.0.0-stage → 0.20.0-next.0

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.
Files changed (26) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +24 -2
  3. package/dist/es/entityStorageAuthenticationAdminRestClient.js +115 -0
  4. package/dist/es/entityStorageAuthenticationAdminRestClient.js.map +1 -0
  5. package/dist/es/entityStorageAuthenticationAuditRestClient.js +111 -0
  6. package/dist/es/entityStorageAuthenticationAuditRestClient.js.map +1 -0
  7. package/dist/es/entityStorageAuthenticationRestClient.js +103 -0
  8. package/dist/es/entityStorageAuthenticationRestClient.js.map +1 -0
  9. package/dist/es/index.js +7 -0
  10. package/dist/es/index.js.map +1 -0
  11. package/dist/es/models/entityStorageAuthenticationRestClientConstructorOptions.js +2 -0
  12. package/dist/es/models/entityStorageAuthenticationRestClientConstructorOptions.js.map +1 -0
  13. package/dist/types/entityStorageAuthenticationAdminRestClient.d.ts +62 -0
  14. package/dist/types/entityStorageAuthenticationAuditRestClient.d.ts +73 -0
  15. package/dist/types/entityStorageAuthenticationRestClient.d.ts +54 -0
  16. package/dist/types/index.d.ts +4 -0
  17. package/dist/types/models/entityStorageAuthenticationRestClientConstructorOptions.d.ts +11 -0
  18. package/docs/changelog.md +0 -0
  19. package/docs/examples.md +111 -0
  20. package/docs/reference/classes/EntityStorageAuthenticationAdminRestClient.md +323 -0
  21. package/docs/reference/classes/EntityStorageAuthenticationAuditRestClient.md +343 -0
  22. package/docs/reference/classes/EntityStorageAuthenticationRestClient.md +271 -0
  23. package/docs/reference/index.md +11 -0
  24. package/docs/reference/interfaces/IEntityStorageAuthenticationRestClientConstructorOptions.md +153 -0
  25. package/locales/en.json +1 -0
  26. package/package.json +54 -5
@@ -0,0 +1,153 @@
1
+ # Interface: IEntityStorageAuthenticationRestClientConstructorOptions
2
+
3
+ Options for the Entity Storage Authentication REST client constructor.
4
+
5
+ ## Extends
6
+
7
+ - `IBaseRestClientConfig`
8
+
9
+ ## Properties
10
+
11
+ ### cookieName? {#cookiename}
12
+
13
+ > `optional` **cookieName?**: `string`
14
+
15
+ The name of the cookie to use for storing the auth token.
16
+
17
+ #### Default
18
+
19
+ ```ts
20
+ access_token
21
+ ```
22
+
23
+ ***
24
+
25
+ ### endpoint {#endpoint}
26
+
27
+ > **endpoint**: `string`
28
+
29
+ The endpoint where the api is hosted.
30
+
31
+ #### Inherited from
32
+
33
+ `IBaseRestClientConfig.endpoint`
34
+
35
+ ***
36
+
37
+ ### pathPrefix? {#pathprefix}
38
+
39
+ > `optional` **pathPrefix?**: `string`
40
+
41
+ The prefix to the routes.
42
+
43
+ #### Inherited from
44
+
45
+ `IBaseRestClientConfig.pathPrefix`
46
+
47
+ ***
48
+
49
+ ### headers? {#headers}
50
+
51
+ > `optional` **headers?**: `IHttpHeaders`
52
+
53
+ The headers to include in requests.
54
+
55
+ #### Inherited from
56
+
57
+ `IBaseRestClientConfig.headers`
58
+
59
+ ***
60
+
61
+ ### timeout? {#timeout}
62
+
63
+ > `optional` **timeout?**: `number`
64
+
65
+ Timeout for requests in ms.
66
+
67
+ #### Inherited from
68
+
69
+ `IBaseRestClientConfig.timeout`
70
+
71
+ ***
72
+
73
+ ### includeCredentials? {#includecredentials}
74
+
75
+ > `optional` **includeCredentials?**: `boolean`
76
+
77
+ Include credentials in the request, defaults to true.
78
+
79
+ #### Inherited from
80
+
81
+ `IBaseRestClientConfig.includeCredentials`
82
+
83
+ ***
84
+
85
+ ### processorTypes? {#processortypes}
86
+
87
+ > `optional` **processorTypes?**: `string`[]
88
+
89
+ The types of the processors to run around each request, resolved from the `RestClientProcessorFactory`.
90
+
91
+ #### Inherited from
92
+
93
+ `IBaseRestClientConfig.processorTypes`
94
+
95
+ ***
96
+
97
+ ### customHeaders? {#customheaders}
98
+
99
+ > `optional` **customHeaders?**: () => `Promise`\<`IHttpHeaders`\>
100
+
101
+ Hook to provide headers asynchronously.
102
+
103
+ #### Returns
104
+
105
+ `Promise`\<`IHttpHeaders`\>
106
+
107
+ A promise that resolves to the headers.
108
+
109
+ #### Inherited from
110
+
111
+ `IBaseRestClientConfig.customHeaders`
112
+
113
+ ***
114
+
115
+ ### customAuthHeader? {#customauthheader}
116
+
117
+ > `optional` **customAuthHeader?**: () => `Promise`\<`string`\>
118
+
119
+ Hook to provide an authorization header value asynchronously.
120
+
121
+ #### Returns
122
+
123
+ `Promise`\<`string`\>
124
+
125
+ A promise that resolves to the authorization header value.
126
+
127
+ #### Inherited from
128
+
129
+ `IBaseRestClientConfig.customAuthHeader`
130
+
131
+ ***
132
+
133
+ ### onAuthFailure? {#onauthfailure}
134
+
135
+ > `optional` **onAuthFailure?**: (`err`) => `Promise`\<`void`\>
136
+
137
+ Hook to handle authorization failures asynchronously.
138
+
139
+ #### Parameters
140
+
141
+ ##### err
142
+
143
+ `IError`
144
+
145
+ #### Returns
146
+
147
+ `Promise`\<`void`\>
148
+
149
+ A promise that resolves when the auth failure handling is complete.
150
+
151
+ #### Inherited from
152
+
153
+ `IBaseRestClientConfig.onAuthFailure`
@@ -0,0 +1 @@
1
+ {}
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
- "name": "@3sixty/api-auth-entity-storage-rest-client",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@3sixty/api-auth-entity-storage-rest-client",
3
+ "version": "0.20.0-next.0",
4
+ "description": "REST clients for authentication and admin operations against entity storage endpoints.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/3sixtyglobal/api.git",
8
+ "directory": "packages/api-auth-entity-storage-rest-client"
9
+ },
10
+ "author": "martyn.janes@iota.org",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "engines": {
14
+ "node": ">=24.0.0"
15
+ },
16
+ "dependencies": {
17
+ "@3sixty/api-auth-entity-storage-models": "0.20.0-next.0",
18
+ "@3sixty/api-core": "0.20.0-next.0",
19
+ "@3sixty/api-models": "0.20.0-next.0",
20
+ "@3sixty/core": "next",
21
+ "@3sixty/nameof": "next",
22
+ "@3sixty/web": "next"
23
+ },
24
+ "main": "./dist/es/index.js",
25
+ "types": "./dist/types/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/types/index.d.ts",
29
+ "import": "./dist/es/index.js",
30
+ "default": "./dist/es/index.js"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist/es",
35
+ "dist/types",
36
+ "locales",
37
+ "docs"
38
+ ],
39
+ "keywords": [
40
+ "twin",
41
+ "trade",
42
+ "iota",
43
+ "framework",
44
+ "blockchain",
45
+ "api",
46
+ "entity",
47
+ "storage",
48
+ "persistence",
49
+ "database"
50
+ ],
51
+ "bugs": {
52
+ "url": "git+https://github.com/3sixtyglobal/api/issues"
53
+ },
54
+ "homepage": "https://3sixty.global"
55
+ }