@attlaz/client 1.116.0 → 1.117.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.
@@ -19,6 +19,16 @@ export declare class McpAccess implements StateAware {
19
19
  * interrupted rotation leaves behind, which the UI has to be able to show rather than assume away.
20
20
  */
21
21
  url: string | null;
22
+ /**
23
+ * Build the `target` for a connection or a bundle.
24
+ *
25
+ * The API addresses a target by one type-prefixed id, while every other client model carries the
26
+ * bare one — so the prefix is added here rather than at each call site. Each literal is Core's
27
+ * `PREFIX` (`adc`, `cbl`) plus the `_` separator its `toPrefixedString()` uses, duplicated the way
28
+ * this package already duplicates enums; keep them in step.
29
+ */
30
+ static targetForConnection(connectionId: string): string;
31
+ static targetForBundle(bundleId: string): string;
22
32
  /** Paused is reversible and keeps its tokens; revoked is final and sweeps them. */
23
33
  isUsable(): boolean;
24
34
  static parse(raw: ApiRecord): McpAccess;
@@ -18,6 +18,20 @@ export class McpAccess {
18
18
  * interrupted rotation leaves behind, which the UI has to be able to show rather than assume away.
19
19
  */
20
20
  url = null;
21
+ /**
22
+ * Build the `target` for a connection or a bundle.
23
+ *
24
+ * The API addresses a target by one type-prefixed id, while every other client model carries the
25
+ * bare one — so the prefix is added here rather than at each call site. Each literal is Core's
26
+ * `PREFIX` (`adc`, `cbl`) plus the `_` separator its `toPrefixedString()` uses, duplicated the way
27
+ * this package already duplicates enums; keep them in step.
28
+ */
29
+ static targetForConnection(connectionId) {
30
+ return 'adc_' + connectionId;
31
+ }
32
+ static targetForBundle(bundleId) {
33
+ return 'cbl_' + bundleId;
34
+ }
21
35
  /** Paused is reversible and keeps its tokens; revoked is final and sweeps them. */
22
36
  isUsable() {
23
37
  return this.revokedAt === null && this.state === State.Active && this.url !== null;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.115.3";
1
+ export declare const VERSION = "1.116.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.115.3";
1
+ export const VERSION = "1.116.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attlaz/client",
3
- "version": "1.116.0",
3
+ "version": "1.117.0",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",