@aifabrix/miso-client 4.4.0 → 4.4.1

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/README.md CHANGED
@@ -210,7 +210,7 @@ const dataClientWithRefresh = new DataClient({
210
210
  ```
211
211
 
212
212
  → [DataClient Documentation](docs/data-client.md) - Includes security guide and Client Token Pattern
213
- → [DataClient API Reference](docs/api-reference.md#dataclient)
213
+ → [DataClient API Reference](docs/reference-dataclient.md)
214
214
 
215
215
  ---
216
216
 
@@ -218,7 +218,7 @@ const dataClientWithRefresh = new DataClient({
218
218
 
219
219
  **First time?** You'll need Keycloak and Miso Controller running.
220
220
 
221
- Use the [AI Fabrix Builder](https://github.com/esystemsdev/aifabrix-builder/blob/main/docs/QUICK-START.md):
221
+ Use the [AI Fabrix Builder](https://github.com/esystemsdev/aifabrix-builder) (see repository docs for Quick Start):
222
222
 
223
223
  ```bash
224
224
  # Start infrastructure (Postgres, Redis)
@@ -235,7 +235,7 @@ aifabrix build miso-controller
235
235
  aifabrix run miso-controller
236
236
  ```
237
237
 
238
- → [Infrastructure Guide](https://github.com/esystemsdev/aifabrix-builder/blob/main/docs/INFRASTRUCTURE.md)
238
+ → [Infrastructure Guide](https://github.com/esystemsdev/aifabrix-builder) (see repository docs)
239
239
 
240
240
  **Already have Keycloak and Controller?** Use the Quick Start above.
241
241
 
@@ -297,7 +297,7 @@ if (isAdmin) {
297
297
  **Pro tip:** Without Redis, checks go to the controller. Add Redis to cache role lookups (15-minute default TTL).
298
298
 
299
299
  → [Complete RBAC example](examples/step-4-rbac.ts)
300
- → [AI Fabrix Builder Quick Start](https://github.com/esystemsdev/aifabrix-builder/blob/main/docs/QUICK-START.md)
300
+ → [AI Fabrix Builder](https://github.com/esystemsdev/aifabrix-builder) (Quick Start in repository docs)
301
301
 
302
302
  ---
303
303
 
@@ -376,7 +376,7 @@ client.log.on('log', (logEntry: LogEntry) => {
376
376
 
377
377
  → [Complete logging example](examples/step-5-logging.ts)
378
378
  → [Event emission mode example](examples/event-emission-mode.example.ts)
379
- → [Logging Reference](docs/api-reference.md#logger-service)
379
+ → [Logging Reference](docs/reference-services.md#logging-methods)
380
380
  → [Event Emission Mode Guide](docs/configuration.md#event-emission-mode)
381
381
 
382
382
  ---
@@ -532,8 +532,8 @@ ENCRYPTION_KEY=your-32-byte-encryption-key
532
532
  ```
533
533
 
534
534
  → [Complete encryption & caching example](examples/step-7-encryption-cache.ts)
535
- → [API Reference](docs/api-reference.md#encryption-methods)
536
- → [Cache Methods](docs/api-reference.md#cache-methods)
535
+ → [API Reference](docs/reference-services.md#encryption-methods)
536
+ → [Cache Methods](docs/reference-services.md#cache-methods)
537
537
 
538
538
  ---
539
539
 
@@ -590,10 +590,10 @@ const response = createPaginatedListResponse(
590
590
 
591
591
  **Pro tip:** These utilities are business-logic-free and reusable across applications. Perfect for building query strings, parsing API responses, and testing with mocks. Designed following enterprise best practices for maintainability and compliance.
592
592
 
593
- → [Complete pagination example](docs/examples.md#pagination)
594
- → [Complete filter example](docs/examples.md#filtering)
595
- → [Complete sort example](docs/examples.md#sorting)
596
- → [API Reference](docs/api-reference.md#pagination-utilities)
593
+ → [Complete pagination example](docs/examples/utilities.md#pagination)
594
+ → [Complete filter example](docs/examples/utilities.md#filtering)
595
+ → [Complete sort example](docs/examples/utilities.md#sorting)
596
+ → [API Reference](docs/reference-utilities.md#pagination-utilities)
597
597
 
598
598
  ---
599
599
 
@@ -797,7 +797,7 @@ app.get('/users', (req, res) => {
797
797
  **Note:** For large datasets, always sort at the database level. Use `applySorting()` only for small in-memory datasets or client-side sorting.
798
798
 
799
799
  → [Complete Express examples](examples/)
800
- → [API Reference](docs/api-reference.md#express-utilities)
800
+ → [API Reference](docs/reference-utilities.md#express-utilities)
801
801
 
802
802
  ---
803
803
 
@@ -852,8 +852,8 @@ MISO_API_KEY=optional-api-key
852
852
 
853
853
  **Backward Compatibility:** All existing code continues to work without changes. If no strategy is specified, defaults to `['bearer', 'client-token']` (existing behavior).
854
854
 
855
- → [Complete authentication strategy example](docs/examples.md#authentication-strategy)
856
- → [API Reference](docs/api-reference.md#authentication-strategy)
855
+ → [Complete authentication strategy example](docs/reference-authentication.md#authentication-strategy)
856
+ → [API Reference](docs/reference-authentication.md#authentication-strategy)
857
857
 
858
858
  ---
859
859
 
@@ -896,7 +896,7 @@ interface AuthStrategy {
896
896
  - **[Getting Started](docs/getting-started.md)** - Detailed setup guide
897
897
  - **[API Reference](docs/api-reference.md)** - Complete API documentation
898
898
  - **[Configuration](docs/configuration.md)** - Configuration options
899
- - **[Examples](docs/examples.md)** - Framework-specific examples
899
+ - **[Examples](docs/examples/README.md)** - Framework-specific examples
900
900
  - **[Troubleshooting](docs/troubleshooting.md)** - Common issues and solutions
901
901
 
902
902
  ---
@@ -911,7 +911,7 @@ The SDK consists of five core services:
911
911
  - **LoggerService** - Centralized logging with API key authentication
912
912
  - **RedisService** - Caching and queue management (optional)
913
913
 
914
- → [Architecture Details](docs/api-reference.md#architecture)
914
+ → [Architecture Details](docs/api-reference.md#sdk-structure)
915
915
 
916
916
  ---
917
917
 
@@ -939,7 +939,7 @@ The SDK consists of five core services:
939
939
 
940
940
  4. **Start development** and then deploy to Docker or Azure.
941
941
 
942
- → [Full Quick Start Guide](https://github.com/esystemsdev/aifabrix-builder/blob/main/docs/QUICK-START.md)
942
+ → [Full Quick Start Guide](https://github.com/esystemsdev/aifabrix-builder) (see repository docs)
943
943
 
944
944
  ---
945
945
 
@@ -947,10 +947,10 @@ The SDK consists of five core services:
947
947
 
948
948
  ### Learn More
949
949
 
950
- - [Express.js Middleware](docs/examples.md#expressjs-middleware) - Protect API routes
951
- - [React Authentication](docs/examples.md#react-authentication) - Frontend auth
952
- - [NestJS Guards](docs/examples.md#nestjs-guards) - Decorator-based auth
953
- - [Error Handling](docs/examples.md#error-handling) - Best practices
950
+ - [Express.js Middleware](docs/examples/express-middleware.md) - Protect API routes
951
+ - [React Authentication](docs/examples/react-authentication.md) - Frontend auth
952
+ - [NestJS Guards](docs/reference-authentication.md#nestjs-guards) - Decorator-based auth
953
+ - [Error Handling](docs/examples/error-handling.md) - Best practices
954
954
 
955
955
  ### Common Tasks
956
956
 
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Applications API client
3
+ * Handles application status and URLs endpoints (server-side)
4
+ */
5
+ import { HttpClient } from '../utils/http-client';
6
+ import { AuthStrategy } from '../types/config.types';
7
+ import { UpdateSelfStatusRequest, UpdateSelfStatusResponse, ApplicationStatusResponse } from './types/applications.types';
8
+ /**
9
+ * Applications API class
10
+ * Handles application status update and fetch endpoints
11
+ */
12
+ export declare class ApplicationsApi {
13
+ private httpClient;
14
+ private static readonly SELF_STATUS_ENDPOINT;
15
+ private static readonly APPLICATION_STATUS_ENDPOINT;
16
+ constructor(httpClient: HttpClient);
17
+ /**
18
+ * Replace path parameters in endpoint template
19
+ */
20
+ private buildPath;
21
+ /**
22
+ * Update the current application's status and URLs
23
+ * Uses client credentials (x-client-token) when no authStrategy provided
24
+ *
25
+ * @param envKey - Environment key
26
+ * @param body - Update request body (status, url, internalUrl, port)
27
+ * @param authStrategy - Optional authentication strategy override
28
+ * @returns Update response with success and optional application data
29
+ */
30
+ updateSelfStatus(envKey: string, body: UpdateSelfStatusRequest, authStrategy?: AuthStrategy): Promise<UpdateSelfStatusResponse>;
31
+ /**
32
+ * Get any application's status and URLs (without configuration)
33
+ * Uses client credentials when no authStrategy provided
34
+ *
35
+ * @param envKey - Environment key
36
+ * @param appKey - Application key
37
+ * @param authStrategy - Optional authentication strategy override
38
+ * @returns Application status response with metadata
39
+ */
40
+ getApplicationStatus(envKey: string, appKey: string, authStrategy?: AuthStrategy): Promise<ApplicationStatusResponse>;
41
+ }
42
+ //# sourceMappingURL=applications.api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications.api.d.ts","sourceRoot":"","sources":["../../src/api/applications.api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,4BAA4B,CAAC;AAIpC;;;GAGG;AACH,qBAAa,eAAe;IAOd,OAAO,CAAC,UAAU;IAL9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CACc;IAC1D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,2BAA2B,CACU;gBAEzC,UAAU,EAAE,UAAU;IAE1C;;OAEG;IACH,OAAO,CAAC,SAAS;IAWjB;;;;;;;;OAQG;IACG,gBAAgB,CACpB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,uBAAuB,EAC7B,YAAY,CAAC,EAAE,YAAY,GAC1B,OAAO,CAAC,wBAAwB,CAAC;IAuCpC;;;;;;;;OAQG;IACG,oBAAoB,CACxB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,YAAY,CAAC,EAAE,YAAY,GAC1B,OAAO,CAAC,yBAAyB,CAAC;CAoCtC"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ /**
3
+ * Applications API client
4
+ * Handles application status and URLs endpoints (server-side)
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ApplicationsApi = void 0;
8
+ const error_extractor_1 = require("../utils/error-extractor");
9
+ const console_logger_1 = require("../utils/console-logger");
10
+ /**
11
+ * Applications API class
12
+ * Handles application status update and fetch endpoints
13
+ */
14
+ class ApplicationsApi {
15
+ constructor(httpClient) {
16
+ this.httpClient = httpClient;
17
+ }
18
+ /**
19
+ * Replace path parameters in endpoint template
20
+ */
21
+ buildPath(template, params) {
22
+ let path = template.replace(':envKey', params.envKey);
23
+ if (params.appKey !== undefined) {
24
+ path = path.replace(':appKey', params.appKey);
25
+ }
26
+ return path;
27
+ }
28
+ /**
29
+ * Update the current application's status and URLs
30
+ * Uses client credentials (x-client-token) when no authStrategy provided
31
+ *
32
+ * @param envKey - Environment key
33
+ * @param body - Update request body (status, url, internalUrl, port)
34
+ * @param authStrategy - Optional authentication strategy override
35
+ * @returns Update response with success and optional application data
36
+ */
37
+ async updateSelfStatus(envKey, body, authStrategy) {
38
+ const path = this.buildPath(ApplicationsApi.SELF_STATUS_ENDPOINT, { envKey });
39
+ try {
40
+ if (authStrategy?.bearerToken) {
41
+ return await this.httpClient.authenticatedRequest('POST', path, authStrategy.bearerToken, body, undefined, authStrategy);
42
+ }
43
+ if (authStrategy) {
44
+ return await this.httpClient.requestWithAuthStrategy('POST', path, authStrategy, body);
45
+ }
46
+ return await this.httpClient.request('POST', path, body);
47
+ }
48
+ catch (error) {
49
+ const errorInfo = (0, error_extractor_1.extractErrorInfo)(error, {
50
+ endpoint: path,
51
+ method: 'POST',
52
+ });
53
+ (0, console_logger_1.logErrorWithContext)(errorInfo, '[ApplicationsApi]');
54
+ throw error;
55
+ }
56
+ }
57
+ /**
58
+ * Get any application's status and URLs (without configuration)
59
+ * Uses client credentials when no authStrategy provided
60
+ *
61
+ * @param envKey - Environment key
62
+ * @param appKey - Application key
63
+ * @param authStrategy - Optional authentication strategy override
64
+ * @returns Application status response with metadata
65
+ */
66
+ async getApplicationStatus(envKey, appKey, authStrategy) {
67
+ const path = this.buildPath(ApplicationsApi.APPLICATION_STATUS_ENDPOINT, { envKey, appKey });
68
+ try {
69
+ if (authStrategy?.bearerToken) {
70
+ return await this.httpClient.authenticatedRequest('GET', path, authStrategy.bearerToken, undefined, undefined, authStrategy);
71
+ }
72
+ if (authStrategy) {
73
+ return await this.httpClient.requestWithAuthStrategy('GET', path, authStrategy);
74
+ }
75
+ return await this.httpClient.request('GET', path);
76
+ }
77
+ catch (error) {
78
+ const errorInfo = (0, error_extractor_1.extractErrorInfo)(error, {
79
+ endpoint: path,
80
+ method: 'GET',
81
+ });
82
+ (0, console_logger_1.logErrorWithContext)(errorInfo, '[ApplicationsApi]');
83
+ throw error;
84
+ }
85
+ }
86
+ }
87
+ exports.ApplicationsApi = ApplicationsApi;
88
+ // Centralize endpoint URLs as constants (align with controller plan 138)
89
+ ApplicationsApi.SELF_STATUS_ENDPOINT = '/api/v1/environments/:envKey/applications/self/status';
90
+ ApplicationsApi.APPLICATION_STATUS_ENDPOINT = '/api/v1/environments/:envKey/applications/:appKey/status';
91
+ //# sourceMappingURL=applications.api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications.api.js","sourceRoot":"","sources":["../../src/api/applications.api.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH,8DAA4D;AAC5D,4DAA8D;AAE9D;;;GAGG;AACH,MAAa,eAAe;IAO1B,YAAoB,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAE9C;;OAEG;IACK,SAAS,CACf,QAAgB,EAChB,MAA2C;QAE3C,IAAI,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAChC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,gBAAgB,CACpB,MAAc,EACd,IAA6B,EAC7B,YAA2B;QAE3B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CACzB,eAAe,CAAC,oBAAoB,EACpC,EAAE,MAAM,EAAE,CACX,CAAC;QACF,IAAI,CAAC;YACH,IAAI,YAAY,EAAE,WAAW,EAAE,CAAC;gBAC9B,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAC/C,MAAM,EACN,IAAI,EACJ,YAAY,CAAC,WAAW,EACxB,IAAI,EACJ,SAAS,EACT,YAAY,CACb,CAAC;YACJ,CAAC;YACD,IAAI,YAAY,EAAE,C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EAAE,IAAI;gBACd,MAAM,EAAE,KAAK;aACd,CAAC,CAAC;YACH,IAAA,oCAAmB,EAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;YACpD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;;AA3HH,0CA4HC;AA3HC,yEAAyE;AACjD,oCAAoB,GAC1C,uDAAuD,CAAC;AAClC,2CAA2B,GACjD,0DAA0D,CAAC"}
@@ -9,6 +9,7 @@ import { RolesApi } from './roles.api';
9
9
  import { PermissionsApi } from './permissions.api';
10
10
  import { LogsApi } from './logs.api';
11
11
  import { EncryptionApi } from './encryption.api';
12
+ import { ApplicationsApi } from './applications.api';
12
13
  /**
13
14
  * API Client class
14
15
  * Wraps HttpClient and provides domain-specific API interfaces
@@ -35,6 +36,10 @@ export declare class ApiClient {
35
36
  * Encryption API - Security parameter encryption/decryption
36
37
  */
37
38
  readonly encryption: EncryptionApi;
39
+ /**
40
+ * Applications API - Application status and URLs (server-side)
41
+ */
42
+ readonly applications: ApplicationsApi;
38
43
  /**
39
44
  * Create API client instance
40
45
  * @param httpClient - HttpClient instance to wrap
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAEnC;;;OAGG;gBACS,UAAU,EAAE,UAAU;CAOnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;GAIG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAC;IAEvC;;;OAGG;gBACS,UAAU,EAAE,UAAU;CAQnC"}
package/dist/api/index.js CHANGED
@@ -11,6 +11,7 @@ const roles_api_1 = require("./roles.api");
11
11
  const permissions_api_1 = require("./permissions.api");
12
12
  const logs_api_1 = require("./logs.api");
13
13
  const encryption_api_1 = require("./encryption.api");
14
+ const applications_api_1 = require("./applications.api");
14
15
  /**
15
16
  * API Client class
16
17
  * Wraps HttpClient and provides domain-specific API interfaces
@@ -27,6 +28,7 @@ class ApiClient {
27
28
  this.permissions = new permissions_api_1.PermissionsApi(httpClient);
28
29
  this.logs = new logs_api_1.LogsApi(httpClient);
29
30
  this.encryption = new encryption_api_1.EncryptionApi(httpClient);
31
+ this.applications = new applications_api_1.ApplicationsApi(httpClient);
30
32
  }
31
33
  }
32
34
  exports.ApiClient = ApiClient;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,yCAAqC;AACrC,2CAAuC;AACvC,uDAAmD;AACnD,yCAAqC;AACrC,qDAAiD;AAEjD;;;;GAIG;AACH,MAAa,SAAS;IA0BpB;;;OAGG;IACH,YAAY,UAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,kBAAO,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,oBAAQ,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG,IAAI,gCAAc,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,kBAAO,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,IAAI,8BAAa,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;CACF;AArCD,8BAqCC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,yCAAqC;AACrC,2CAAuC;AACvC,uDAAmD;AACnD,yCAAqC;AACrC,qDAAiD;AACjD,yDAAqD;AAErD;;;;GAIG;AACH,MAAa,SAAS;IA+BpB;;;OAGG;IACH,YAAY,UAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,kBAAO,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,oBAAQ,CAAC,UAAU,CAAC,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG,IAAI,gCAAc,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,kBAAO,CAAC,UAAU,CAAC,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,IAAI,8BAAa,CAAC,UAAU,CAAC,CAAC;QAChD,IAAI,CAAC,YAAY,GAAG,IAAI,kCAAe,CAAC,UAAU,CAAC,CAAC;IACtD,CAAC;CACF;AA3CD,8BA2CC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Application status and URLs API types
3
+ * Server-side interfaces for updating and fetching application status
4
+ */
5
+ /**
6
+ * Request body for updating the current application's status and URLs
7
+ * All fields optional; at least one typically sent
8
+ */
9
+ export interface UpdateSelfStatusRequest {
10
+ /** Application status (e.g. active, inactive) */
11
+ status?: string;
12
+ /** Public URL of the application */
13
+ url?: string;
14
+ /** Internal URL of the application */
15
+ internalUrl?: string;
16
+ /** Port number (1-65535) */
17
+ port?: number;
18
+ }
19
+ /**
20
+ * Response from updating the current application's status
21
+ */
22
+ export interface UpdateSelfStatusResponse {
23
+ /** Whether the update succeeded */
24
+ success?: boolean;
25
+ /** Updated application data (when returned by controller) */
26
+ application?: ApplicationStatusResponse;
27
+ /** Optional message */
28
+ message?: string;
29
+ }
30
+ /**
31
+ * Application status and metadata (without configuration)
32
+ * Used for both update response and get status response
33
+ */
34
+ export interface ApplicationStatusResponse {
35
+ /** Application ID */
36
+ id?: string;
37
+ /** Application key */
38
+ key?: string;
39
+ /** Display name */
40
+ displayName?: string;
41
+ /** Public URL */
42
+ url?: string;
43
+ /** Internal URL */
44
+ internalUrl?: string;
45
+ /** Port number */
46
+ port?: number;
47
+ /** Application status */
48
+ status?: string;
49
+ /** Runtime status */
50
+ runtimeStatus?: string;
51
+ /** Environment ID or reference */
52
+ environmentId?: string;
53
+ /** Creation timestamp */
54
+ createdAt?: string;
55
+ /** Last update timestamp */
56
+ updatedAt?: string;
57
+ }
58
+ //# sourceMappingURL=applications.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications.types.d.ts","sourceRoot":"","sources":["../../../src/api/types/applications.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,qBAAqB;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sBAAsB;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Application status and URLs API types
4
+ * Server-side interfaces for updating and fetching application status
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=applications.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications.types.js","sourceRoot":"","sources":["../../../src/api/types/applications.types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -14,7 +14,7 @@ export interface EncryptRequest {
14
14
  plaintext: string;
15
15
  /** Name identifier for the parameter (alphanumeric, dots, underscores, hyphens, 1-128 chars) */
16
16
  parameterName: string;
17
- /** Encryption key for server-side validation (from MISO_ENCRYPTION_KEY) */
17
+ /** Encryption key for server-side validation (from ENCRYPTION_KEY) */
18
18
  encryptionKey: string;
19
19
  }
20
20
  /**
@@ -34,7 +34,7 @@ export interface DecryptRequest {
34
34
  value: string;
35
35
  /** Name identifier for the parameter (must match encryption) */
36
36
  parameterName: string;
37
- /** Encryption key for server-side validation (from MISO_ENCRYPTION_KEY) */
37
+ /** Encryption key for server-side validation (from ENCRYPTION_KEY) */
38
38
  encryptionKey: string;
39
39
  }
40
40
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"encryption.types.d.ts","sourceRoot":"","sources":["../../../src/api/types/encryption.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,gGAAgG;IAChG,aAAa,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,aAAa,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"encryption.types.d.ts","sourceRoot":"","sources":["../../../src/api/types/encryption.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,gGAAgG;IAChG,aAAa,EAAE,MAAM,CAAC;IACtB,sEAAsE;IACtE,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,aAAa,EAAE,MAAM,CAAC;IACtB,sEAAsE;IACtE,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB"}
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { OriginValidationResult } from "./utils/origin-validator";
8
8
  import { Request } from "express";
9
9
  import { EncryptionService } from "./services/encryption.service";
10
10
  import { TokenValidationOptions, TokenValidationResult, KeycloakConfig } from "./types/token-validation.types";
11
+ import type { UpdateSelfStatusRequest, UpdateSelfStatusResponse, ApplicationStatusResponse } from "./api/types/applications.types";
11
12
  export declare class MisoClient {
12
13
  private config;
13
14
  private httpClient;
@@ -232,6 +233,41 @@ export declare class MisoClient {
232
233
  * Get cache service for generic caching
233
234
  */
234
235
  get cache(): CacheService;
236
+ /**
237
+ * Update the current application's status and URLs (server-side only).
238
+ * Uses client credentials or provided authStrategy.
239
+ * When envKey is omitted, resolves from application context (client token / clientId).
240
+ *
241
+ * @param body - Update request (status, url, internalUrl, port)
242
+ * @param options - Optional envKey and authStrategy; if envKey omitted, uses context (throws if context missing)
243
+ * @returns Update response with success and optional application data
244
+ */
245
+ updateMyApplicationStatus(body: UpdateSelfStatusRequest, options?: {
246
+ envKey?: string;
247
+ authStrategy?: AuthStrategy;
248
+ }): Promise<UpdateSelfStatusResponse>;
249
+ /**
250
+ * Get any application's status and URLs (without configuration).
251
+ * Uses client credentials or provided authStrategy.
252
+ *
253
+ * @param envKey - Environment key
254
+ * @param appKey - Application key
255
+ * @param authStrategy - Optional authentication strategy override
256
+ * @returns Application status response with metadata
257
+ */
258
+ getApplicationStatus(envKey: string, appKey: string, authStrategy?: AuthStrategy): Promise<ApplicationStatusResponse>;
259
+ /**
260
+ * Get the current application's status and URLs (server-side only).
261
+ * Uses envKey and appKey from application context when not provided.
262
+ *
263
+ * @param options - Optional envKey and appKey; if omitted, uses context
264
+ * @param authStrategy - Optional authentication strategy override
265
+ * @returns Application status response with metadata
266
+ */
267
+ getMyApplicationStatus(options?: {
268
+ envKey?: string;
269
+ appKey?: string;
270
+ }, authStrategy?: AuthStrategy): Promise<ApplicationStatusResponse>;
235
271
  /**
236
272
  * Get current configuration
237
273
  */
@@ -283,6 +319,7 @@ export { RedisService } from "./services/redis.service";
283
319
  export { CacheService } from "./services/cache.service";
284
320
  export { HttpClient } from "./utils/http-client";
285
321
  export { getLogger } from "./services/logger/unified-logger.factory";
322
+ export { LoggerContextStorage } from "./services/logger";
286
323
  export type { UnifiedLogger, } from "./services/logger/unified-logger.service";
287
324
  export { loadConfig } from "./utils/config-loader";
288
325
  export { validateOrigin } from "./utils/origin-validator";
@@ -305,6 +342,7 @@ export type { EncryptResult } from "./services/encryption.service";
305
342
  export { EncryptionError } from "./utils/encryption-error";
306
343
  export type { EncryptionErrorCode } from "./utils/encryption-error";
307
344
  export type { EncryptRequest, EncryptResponse, DecryptRequest, DecryptResponse, EncryptionStorage, } from "./api/types/encryption.types";
345
+ export type { UpdateSelfStatusRequest, UpdateSelfStatusResponse, ApplicationStatusResponse, } from "./api/types/applications.types";
308
346
  export { ResponseHelper, injectResponseHelpers, asyncHandler, asyncHandlerNamed, ValidationHelper, AppError, createSuccessResponse, createErrorResponse, setErrorLogger, handleRouteError, getErrorTypeUri, getErrorTitle, sendErrorResponse, createClientTokenEndpoint, hasConfig, loggerContextMiddleware, } from "./express";
309
347
  export type { PaginationMeta, ApiError, ValidationError, ApiResponse, ErrorLogger, RBACErrorExtensions, } from "./express";
310
348
  export type { ClientTokenEndpointOptions, ClientTokenResponse, DataClientConfigResponse, } from "./express";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMxD,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAwC,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,cAAc,EACf,MAAM,gCAAgC,CAAC;AAExC,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,KA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AAC;AAGtC,YAAY,EACV,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,gCAAgC,CAAC;AAIxC,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,yBAAyB,EACzB,SAAS,EACT,uBAAuB,GACxB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,cAAc,EACd,QAAQ,EACR,eAAe,EACf,WAAW,EACX,WAAW,EACX,mBAAmB,GACpB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,WAAW,CAAC;AAGnB,YAAY,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGtF,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,WAAW,IAAI,qBAAqB,EACpC,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,QAAQ,IAAI,kBAAkB,GAC/B,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACpG,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGrE,YAAY,EACV,SAAS,EACT,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC"}
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
17
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.TokenValidationService = exports.getCachedDataClientConfig = exports.autoInitializeDataClient = exports.dataClient = exports.DataClient = exports.loggerContextMiddleware = exports.hasConfig = exports.createClientTokenEndpoint = exports.sendErrorResponse = exports.getErrorTitle = exports.getErrorTypeUri = exports.handleRouteError = exports.setErrorLogger = exports.createErrorResponse = exports.createSuccessResponse = exports.AppError = exports.ValidationHelper = exports.asyncHandlerNamed = exports.asyncHandler = exports.injectResponseHelpers = exports.ResponseHelper = exports.EncryptionError = exports.EncryptionService = exports.handleApiError = exports.transformError = exports.ApiErrorException = exports.MisoClientError = exports.extractRequestContext = exports.extractLoggingContext = exports.validateUrl = exports.isBrowser = exports.resolveKeycloakUrl = exports.resolveControllerUrl = exports.extractClientTokenInfo = exports.getEnvironmentToken = exports.validateOrigin = exports.loadConfig = exports.getLogger = exports.HttpClient = exports.CacheService = exports.RedisService = exports.LoggerService = exports.BrowserRoleService = exports.BrowserPermissionService = exports.PermissionService = exports.RoleService = exports.AuthService = exports.detectAuthMethodFromHeaders = exports.MisoClient = void 0;
20
+ exports.TokenValidationService = exports.getCachedDataClientConfig = exports.autoInitializeDataClient = exports.dataClient = exports.DataClient = exports.loggerContextMiddleware = exports.hasConfig = exports.createClientTokenEndpoint = exports.sendErrorResponse = exports.getErrorTitle = exports.getErrorTypeUri = exports.handleRouteError = exports.setErrorLogger = exports.createErrorResponse = exports.createSuccessResponse = exports.AppError = exports.ValidationHelper = exports.asyncHandlerNamed = exports.asyncHandler = exports.injectResponseHelpers = exports.ResponseHelper = exports.EncryptionError = exports.EncryptionService = exports.handleApiError = exports.transformError = exports.ApiErrorException = exports.MisoClientError = exports.extractRequestContext = exports.extractLoggingContext = exports.validateUrl = exports.isBrowser = exports.resolveKeycloakUrl = exports.resolveControllerUrl = exports.extractClientTokenInfo = exports.getEnvironmentToken = exports.validateOrigin = exports.loadConfig = exports.LoggerContextStorage = exports.getLogger = exports.HttpClient = exports.CacheService = exports.RedisService = exports.LoggerService = exports.BrowserRoleService = exports.BrowserPermissionService = exports.PermissionService = exports.RoleService = exports.AuthService = exports.detectAuthMethodFromHeaders = exports.MisoClient = void 0;
21
21
  const auth_service_1 = require("./services/auth.service");
22
22
  const role_service_1 = require("./services/role.service");
23
23
  const permission_service_1 = require("./services/permission.service");
@@ -366,6 +366,54 @@ class MisoClient {
366
366
  get cache() {
367
367
  return this.cacheService;
368
368
  }
369
+ // ==================== APPLICATION STATUS METHODS (server-side) ====================
370
+ /**
371
+ * Update the current application's status and URLs (server-side only).
372
+ * Uses client credentials or provided authStrategy.
373
+ * When envKey is omitted, resolves from application context (client token / clientId).
374
+ *
375
+ * @param body - Update request (status, url, internalUrl, port)
376
+ * @param options - Optional envKey and authStrategy; if envKey omitted, uses context (throws if context missing)
377
+ * @returns Update response with success and optional application data
378
+ */
379
+ async updateMyApplicationStatus(body, options) {
380
+ const envKey = options?.envKey ??
381
+ this.logger.getApplicationContextService().getApplicationContext()
382
+ .environment;
383
+ if (!envKey) {
384
+ throw new Error('updateMyApplicationStatus requires envKey or application context (client token/clientId with environment). Neither was available.');
385
+ }
386
+ return this.apiClient.applications.updateSelfStatus(envKey, body, options?.authStrategy);
387
+ }
388
+ /**
389
+ * Get any application's status and URLs (without configuration).
390
+ * Uses client credentials or provided authStrategy.
391
+ *
392
+ * @param envKey - Environment key
393
+ * @param appKey - Application key
394
+ * @param authStrategy - Optional authentication strategy override
395
+ * @returns Application status response with metadata
396
+ */
397
+ async getApplicationStatus(envKey, appKey, authStrategy) {
398
+ return this.apiClient.applications.getApplicationStatus(envKey, appKey, authStrategy);
399
+ }
400
+ /**
401
+ * Get the current application's status and URLs (server-side only).
402
+ * Uses envKey and appKey from application context when not provided.
403
+ *
404
+ * @param options - Optional envKey and appKey; if omitted, uses context
405
+ * @param authStrategy - Optional authentication strategy override
406
+ * @returns Application status response with metadata
407
+ */
408
+ async getMyApplicationStatus(options, authStrategy) {
409
+ const context = this.logger.getApplicationContextService().getApplicationContext();
410
+ const envKey = options?.envKey ?? context.environment;
411
+ const appKey = options?.appKey ?? context.application;
412
+ if (!envKey || !appKey) {
413
+ throw new Error('getMyApplicationStatus requires envKey and appKey or application context (client token/clientId). Neither was fully available.');
414
+ }
415
+ return this.apiClient.applications.getApplicationStatus(envKey, appKey, authStrategy);
416
+ }
369
417
  // ==================== UTILITY METHODS ====================
370
418
  /**
371
419
  * Get current configuration
@@ -441,6 +489,8 @@ Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function (
441
489
  // Export unified logging interface
442
490
  var unified_logger_factory_1 = require("./services/logger/unified-logger.factory");
443
491
  Object.defineProperty(exports, "getLogger", { enumerable: true, get: function () { return unified_logger_factory_1.getLogger; } });
492
+ var logger_3 = require("./services/logger");
493
+ Object.defineProperty(exports, "LoggerContextStorage", { enumerable: true, get: function () { return logger_3.LoggerContextStorage; } });
444
494
  // Export utilities
445
495
  var config_loader_1 = require("./utils/config-loader");
446
496
  Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return config_loader_1.loadConfig; } });