@axiom-lattice/client-sdk 4.3.6 → 4.3.8
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/dist/abstract-client.d.ts +38 -1
- package/dist/abstract-client.d.ts.map +1 -1
- package/dist/abstract-client.js +56 -0
- package/dist/abstract-client.js.map +1 -1
- package/dist/index.d.ts +76 -6
- package/dist/index.js +59 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +59 -2
- package/dist/index.mjs.map +1 -1
- package/dist/project-room-hydrators.js +2 -2
- package/dist/project-room-hydrators.js.map +1 -1
- package/dist/project-rooms.d.ts +1 -0
- package/dist/project-rooms.d.ts.map +1 -1
- package/dist/types.d.ts +35 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/workspace-rooms.d.ts +2 -0
- package/dist/workspace-rooms.d.ts.map +1 -1
- package/dist/workspace-rooms.js +1 -0
- package/dist/workspace-rooms.js.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2132,6 +2132,52 @@ var AbstractClient = class {
|
|
|
2132
2132
|
/**
|
|
2133
2133
|
* A2A API keys namespace for managing A2A API keys
|
|
2134
2134
|
*/
|
|
2135
|
+
/** Open API surface helpers (capability catalog for the key picker). */
|
|
2136
|
+
this.open = {
|
|
2137
|
+
/**
|
|
2138
|
+
* Fetch the grantable capability catalog for the current tenant.
|
|
2139
|
+
* Drives the key-management grants picker.
|
|
2140
|
+
*/
|
|
2141
|
+
catalog: async () => {
|
|
2142
|
+
const response = await this.makeRequest("/api/open/catalog");
|
|
2143
|
+
return response.data;
|
|
2144
|
+
},
|
|
2145
|
+
/**
|
|
2146
|
+
* Fetch what a key exposes (MCP tools + A2A agent cards).
|
|
2147
|
+
* @param id - Key identifier
|
|
2148
|
+
*/
|
|
2149
|
+
exposure: async (id) => {
|
|
2150
|
+
const response = await this.makeRequest(`/api/keys/${id}/exposure`);
|
|
2151
|
+
return response.data;
|
|
2152
|
+
},
|
|
2153
|
+
/**
|
|
2154
|
+
* Query the tenant's Open audit log (newest first).
|
|
2155
|
+
* @param params - Optional credential/domain/status/time filters and pagination
|
|
2156
|
+
*/
|
|
2157
|
+
auditLogs: async (params) => {
|
|
2158
|
+
const searchParams = new URLSearchParams();
|
|
2159
|
+
if (params?.credentialId)
|
|
2160
|
+
searchParams.set("credentialId", params.credentialId);
|
|
2161
|
+
if (params?.domain)
|
|
2162
|
+
searchParams.set("domain", params.domain);
|
|
2163
|
+
if (params?.status)
|
|
2164
|
+
searchParams.set("status", params.status);
|
|
2165
|
+
if (params?.from)
|
|
2166
|
+
searchParams.set("from", params.from);
|
|
2167
|
+
if (params?.to)
|
|
2168
|
+
searchParams.set("to", params.to);
|
|
2169
|
+
if (params?.limit !== void 0)
|
|
2170
|
+
searchParams.set("limit", String(params.limit));
|
|
2171
|
+
if (params?.offset !== void 0)
|
|
2172
|
+
searchParams.set("offset", String(params.offset));
|
|
2173
|
+
const qs = searchParams.toString();
|
|
2174
|
+
const response = await this.makeRequest(`/api/open/audit${qs ? `?${qs}` : ""}`);
|
|
2175
|
+
return response.data.records;
|
|
2176
|
+
}
|
|
2177
|
+
};
|
|
2178
|
+
/**
|
|
2179
|
+
* @deprecated Use {@link open} / `/api/keys`; kept as a compatibility alias.
|
|
2180
|
+
*/
|
|
2135
2181
|
this.a2aKeys = {
|
|
2136
2182
|
/**
|
|
2137
2183
|
* Lists A2A API keys, optionally filtered by tenant
|
|
@@ -2161,6 +2207,16 @@ var AbstractClient = class {
|
|
|
2161
2207
|
const response = await this.makeRequest("/api/a2a/keys", { method: "POST", body: input });
|
|
2162
2208
|
return response.data;
|
|
2163
2209
|
},
|
|
2210
|
+
/**
|
|
2211
|
+
* Updates mutable fields (label, project, assistants, grants) of an existing key.
|
|
2212
|
+
* @param id - Key identifier
|
|
2213
|
+
* @param input - Fields to update (only provided fields change)
|
|
2214
|
+
* @returns A promise that resolves to the updated key record
|
|
2215
|
+
*/
|
|
2216
|
+
update: async (id, input) => {
|
|
2217
|
+
const response = await this.makeRequest(`/api/a2a/keys/${id}`, { method: "PATCH", body: input });
|
|
2218
|
+
return response.data;
|
|
2219
|
+
},
|
|
2164
2220
|
/**
|
|
2165
2221
|
* Permanently deletes an A2A API key
|
|
2166
2222
|
* @param id - Key identifier
|
|
@@ -3513,8 +3569,8 @@ var hydrateMessage = (value) => {
|
|
|
3513
3569
|
};
|
|
3514
3570
|
var hydrateMember = (value) => {
|
|
3515
3571
|
const row = record(value);
|
|
3516
|
-
exactKeys(row, ["id", "tenantId", "projectId", "userId", "role", "status", "joinedAt", "updatedAt"]);
|
|
3517
|
-
return { id: requiredString(row, "id"), tenantId: requiredString(row, "tenantId"), projectId: requiredString(row, "projectId"), userId: requiredString(row, "userId"), role: oneOf(row.role, humanRoles, "role"), status: oneOf(row.status, memberStatuses, "status"), joinedAt: date(row.joinedAt, "joinedAt"), updatedAt: date(row.updatedAt, "updatedAt") };
|
|
3572
|
+
exactKeys(row, ["id", "tenantId", "projectId", "userId", "role", "status", "joinedAt", "updatedAt"], ["name"]);
|
|
3573
|
+
return { id: requiredString(row, "id"), tenantId: requiredString(row, "tenantId"), projectId: requiredString(row, "projectId"), userId: requiredString(row, "userId"), ...row.name === void 0 ? {} : { name: requiredString(row, "name") }, role: oneOf(row.role, humanRoles, "role"), status: oneOf(row.status, memberStatuses, "status"), joinedAt: date(row.joinedAt, "joinedAt"), updatedAt: date(row.updatedAt, "updatedAt") };
|
|
3518
3574
|
};
|
|
3519
3575
|
var hydrateBot = (value) => {
|
|
3520
3576
|
const row = record(value);
|
|
@@ -3657,6 +3713,7 @@ var hydrateEntry = (value) => {
|
|
|
3657
3713
|
...row.lastMessage === void 0 ? {} : { lastMessage: hydrateMessage(row.lastMessage) },
|
|
3658
3714
|
participantCount: row.participantCount,
|
|
3659
3715
|
participantNames: names,
|
|
3716
|
+
...row.displayName === void 0 ? {} : { displayName: requiredString2(row, "displayName") },
|
|
3660
3717
|
...row.isPublic === void 0 ? {} : { isPublic: row.isPublic === true },
|
|
3661
3718
|
unreadCount: row.unreadCount
|
|
3662
3719
|
};
|