@vertesia/client 1.1.1-dev.20260505.163000Z → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/client",
3
- "version": "1.1.1-dev.20260505.163000Z",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "types": "./lib/types/index.d.ts",
6
6
  "files": [
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "eventsource": "^3.0.6",
28
- "@vertesia/common": "1.1.1-dev.20260505.163000Z",
29
- "@vertesia/api-fetch-client": "1.1.1-dev.20260505.163000Z",
30
- "@llumiverse/common": "1.1.1-dev.20260505.151157Z"
28
+ "@llumiverse/common": "1.3.0",
29
+ "@vertesia/common": "1.3.0",
30
+ "@vertesia/api-fetch-client": "1.3.0"
31
31
  },
32
32
  "ts_dual_module": {
33
33
  "outDir": "lib"
package/src/IamApi.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AccessControlEntry, ACECreatePayload, AcesQueryOptions, DeleteByIdResult, RoleDefinition } from "@vertesia/common";
1
+ import { AccessControlEntry, ACECreatePayload, ACEUpdatePayload, AcesQueryOptions, DeleteByIdResult, RoleDefinition } from "@vertesia/common";
2
2
  import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
3
3
  import { GroupsApi } from "./GroupsApi.js";
4
4
 
@@ -50,6 +50,14 @@ export class AcesApi extends ApiTopic {
50
50
  return this.get('/', { query: { ...options } });
51
51
  }
52
52
 
53
+ /**
54
+ * List all ACEs scoped to the current project.
55
+ * Returns both regular project ACEs and dynamic (content_set/principal_set) ACEs.
56
+ */
57
+ listProjectAces(): Promise<AccessControlEntry[]> {
58
+ return this.get('/project');
59
+ }
60
+
53
61
  /**
54
62
  * Get an ACE by its Id
55
63
  * @param id
@@ -63,6 +71,10 @@ export class AcesApi extends ApiTopic {
63
71
  return this.post('/', { payload })
64
72
  }
65
73
 
74
+ update(id: string, payload: ACEUpdatePayload): Promise<AccessControlEntry> {
75
+ return this.put('/' + id, { payload })
76
+ }
77
+
66
78
  delete(id: string): Promise<DeleteByIdResult> {
67
79
  return this.del('/' + id)
68
80
  }
@@ -286,6 +286,9 @@ export class IndexingApi extends ApiTopic {
286
286
  */
287
287
  private get zenoBulkBaseUrl(): string {
288
288
  const storeBaseUrl = this.client.baseUrl;
289
+ if (storeBaseUrl.includes('localhost:') || storeBaseUrl.includes('127.0.0.1:')) {
290
+ return 'https://zeno-bulk-dev-main.api.dev1.vertesia.io';
291
+ }
289
292
  if (storeBaseUrl.includes('zeno-server')) {
290
293
  return storeBaseUrl.replace(/zeno-server/, 'zeno-bulk');
291
294
  }