@axiom-lattice/client-sdk 8.4.0 → 8.5.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/dist/index.mjs CHANGED
@@ -2250,7 +2250,9 @@ var AbstractClient = class {
2250
2250
  auditLogs: async (params) => {
2251
2251
  const searchParams = new URLSearchParams();
2252
2252
  if (params?.credentialId) searchParams.set("credentialId", params.credentialId);
2253
+ if (params?.projectId) searchParams.set("projectId", params.projectId);
2253
2254
  if (params?.domain) searchParams.set("domain", params.domain);
2255
+ if (params?.action) searchParams.set("action", params.action);
2254
2256
  if (params?.status) searchParams.set("status", params.status);
2255
2257
  if (params?.from) searchParams.set("from", params.from);
2256
2258
  if (params?.to) searchParams.set("to", params.to);
@@ -2259,6 +2261,11 @@ var AbstractClient = class {
2259
2261
  const qs = searchParams.toString();
2260
2262
  const response = await this.makeRequest(`/api/open/audit${qs ? `?${qs}` : ""}`);
2261
2263
  return response.data.records;
2264
+ },
2265
+ /** Read one tenant-scoped Open audit record by id. */
2266
+ auditLog: async (id) => {
2267
+ const response = await this.makeRequest(`/api/open/audit/${encodeURIComponent(id)}`);
2268
+ return response.data.record;
2262
2269
  }
2263
2270
  };
2264
2271
  /**
@@ -3174,6 +3181,47 @@ var AbstractClient = class {
3174
3181
  );
3175
3182
  }
3176
3183
  };
3184
+ /**
3185
+ * Read-only tenant monitor surface (owner/admin only on the server).
3186
+ */
3187
+ this.monitor = {
3188
+ overview: async (options) => {
3189
+ const params = new URLSearchParams();
3190
+ if (options?.sinceHours !== void 0) {
3191
+ params.set("sinceHours", String(options.sinceHours));
3192
+ }
3193
+ const query = params.toString();
3194
+ const response = await this.makeRequest(`/api/tenant-monitor/overview${query ? `?${query}` : ""}`);
3195
+ return response.data;
3196
+ },
3197
+ threads: {
3198
+ list: async (query = {}) => {
3199
+ const params = new URLSearchParams();
3200
+ if (query.limit !== void 0) params.set("limit", String(query.limit));
3201
+ if (query.offset !== void 0) params.set("offset", String(query.offset));
3202
+ if (query.kind) params.set("kind", query.kind);
3203
+ if (query.assistantId) params.set("assistantId", query.assistantId);
3204
+ if (query.createdAfter) params.set("createdAfter", query.createdAfter);
3205
+ const suffix = params.toString();
3206
+ const response = await this.makeRequest(`/api/tenant-monitor/threads${suffix ? `?${suffix}` : ""}`);
3207
+ return response.data;
3208
+ }
3209
+ },
3210
+ runs: {
3211
+ list: async (query = {}) => {
3212
+ const params = new URLSearchParams();
3213
+ if (query.limit !== void 0) params.set("limit", String(query.limit));
3214
+ if (query.offset !== void 0) params.set("offset", String(query.offset));
3215
+ if (query.status) params.set("status", query.status);
3216
+ if (query.source) params.set("source", query.source);
3217
+ if (query.assistantId) params.set("assistantId", query.assistantId);
3218
+ if (query.createdAfter) params.set("createdAfter", query.createdAfter);
3219
+ const suffix = params.toString();
3220
+ const response = await this.makeRequest(`/api/tenant-monitor/runs${suffix ? `?${suffix}` : ""}`);
3221
+ return response.data;
3222
+ }
3223
+ }
3224
+ };
3177
3225
  /**
3178
3226
  * Tenant-scoped namespaced key-value store (viewer/editor surface).
3179
3227
  */