@vectorize-io/hindsight-client 0.4.19 → 0.4.21

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
@@ -857,6 +857,7 @@ var createClient = (config = {}) => {
857
857
  var sdk_gen_exports = {};
858
858
  __export(sdk_gen_exports, {
859
859
  addBankBackground: () => addBankBackground,
860
+ auditLogStats: () => auditLogStats,
860
861
  cancelOperation: () => cancelOperation,
861
862
  clearBankMemories: () => clearBankMemories,
862
863
  clearMemoryObservations: () => clearMemoryObservations,
@@ -886,6 +887,7 @@ __export(sdk_gen_exports, {
886
887
  getOperationStatus: () => getOperationStatus,
887
888
  getVersion: () => getVersion,
888
889
  healthEndpointHealthGet: () => healthEndpointHealthGet,
890
+ listAuditLogs: () => listAuditLogs,
889
891
  listBanks: () => listBanks,
890
892
  listDirectives: () => listDirectives,
891
893
  listDocuments: () => listDocuments,
@@ -1131,6 +1133,8 @@ var fileRetain = (options) => (options.client ?? client).post({
1131
1133
  ...options.headers
1132
1134
  }
1133
1135
  });
1136
+ var listAuditLogs = (options) => (options.client ?? client).get({ url: "/v1/default/banks/{bank_id}/audit-logs", ...options });
1137
+ var auditLogStats = (options) => (options.client ?? client).get({ url: "/v1/default/banks/{bank_id}/audit-logs/stats", ...options });
1134
1138
 
1135
1139
  // src/index.ts
1136
1140
  var HindsightError = class extends Error {
@@ -1492,6 +1496,7 @@ var HindsightClient = class {
1492
1496
  client: this.client,
1493
1497
  path: { bank_id: bankId },
1494
1498
  body: {
1499
+ id: options?.id,
1495
1500
  name,
1496
1501
  source_query: sourceQuery,
1497
1502
  tags: options?.tags,
@@ -1561,6 +1566,16 @@ var HindsightClient = class {
1561
1566
  throw new Error(`deleteMentalModel failed: ${JSON.stringify(response.error)}`);
1562
1567
  }
1563
1568
  }
1569
+ /**
1570
+ * Get the change history of a mental model.
1571
+ */
1572
+ async getMentalModelHistory(bankId, mentalModelId) {
1573
+ const response = await getMentalModelHistory({
1574
+ client: this.client,
1575
+ path: { bank_id: bankId, mental_model_id: mentalModelId }
1576
+ });
1577
+ return this.validateResponse(response, "getMentalModelHistory");
1578
+ }
1564
1579
  };
1565
1580
  export {
1566
1581
  HindsightClient,