@bpmsoftwaresolutions/ai-engine-client 1.1.92 → 1.1.95

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": "@bpmsoftwaresolutions/ai-engine-client",
3
- "version": "1.1.92",
3
+ "version": "1.1.95",
4
4
  "description": "Thin npm client for the AI Engine operator and retrieval APIs",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/client.js CHANGED
@@ -2691,6 +2691,93 @@ export class AIEngineClient {
2691
2691
  });
2692
2692
  }
2693
2693
 
2694
+ async getPortfolioClosureReadiness(...args) {
2695
+ return this.portfolio.getPortfolioClosureReadiness(...args);
2696
+ }
2697
+
2698
+ async getPortfolioStatus(...args) {
2699
+ return this.portfolio.getPortfolioStatus(...args);
2700
+ }
2701
+
2702
+ async describeDatabaseCatalog({ includeSystemSchemas, limit } = {}) {
2703
+ return this._request('/api/operator/database/schema', {
2704
+ query: {
2705
+ view: 'overview',
2706
+ include_system_schemas: includeSystemSchemas,
2707
+ limit,
2708
+ },
2709
+ });
2710
+ }
2711
+
2712
+ async listDatabaseSchemas({ includeSystemSchemas, limit } = {}) {
2713
+ return this._request('/api/operator/database/schema', {
2714
+ query: {
2715
+ view: 'schemas',
2716
+ include_system_schemas: includeSystemSchemas,
2717
+ limit,
2718
+ },
2719
+ });
2720
+ }
2721
+
2722
+ async listDatabaseTables({ schemaName, includeSystemSchemas, limit } = {}) {
2723
+ return this._request('/api/operator/database/schema', {
2724
+ query: {
2725
+ view: 'tables',
2726
+ schema_name: schemaName,
2727
+ include_system_schemas: includeSystemSchemas,
2728
+ limit,
2729
+ },
2730
+ });
2731
+ }
2732
+
2733
+ async listDatabaseColumns({ schemaName, tableName } = {}) {
2734
+ return this._request('/api/operator/database/schema', {
2735
+ query: {
2736
+ view: 'columns',
2737
+ schema_name: schemaName,
2738
+ table_name: tableName,
2739
+ },
2740
+ });
2741
+ }
2742
+
2743
+ async listDatabaseIndexes({ schemaName, tableName, includeSystemSchemas, limit } = {}) {
2744
+ return this._request('/api/operator/database/schema', {
2745
+ query: {
2746
+ view: 'indexes',
2747
+ schema_name: schemaName,
2748
+ table_name: tableName,
2749
+ include_system_schemas: includeSystemSchemas,
2750
+ limit,
2751
+ },
2752
+ });
2753
+ }
2754
+
2755
+ async describeDatabaseTable({ schemaName, tableName, includeSystemSchemas } = {}) {
2756
+ return this._request('/api/operator/database/schema', {
2757
+ query: {
2758
+ view: 'table',
2759
+ schema_name: schemaName,
2760
+ table_name: tableName,
2761
+ include_system_schemas: includeSystemSchemas,
2762
+ },
2763
+ });
2764
+ }
2765
+
2766
+ async createDatabaseBackup({ databaseName, outputName, noWait } = {}) {
2767
+ return this._request('/api/operator/database/backups', {
2768
+ method: 'POST',
2769
+ body: {
2770
+ database_name: databaseName,
2771
+ output_name: outputName,
2772
+ no_wait: noWait,
2773
+ },
2774
+ });
2775
+ }
2776
+
2777
+ async getPortfolioBundle() {
2778
+ return this.portfolio.getPortfolioBundle();
2779
+ }
2780
+
2694
2781
  async getExternalProjectStatus(projectId) {
2695
2782
  return this._request(`/api/v1/projects/${projectId}/status`);
2696
2783
  }
@@ -0,0 +1,10 @@
1
+ export function createDatabaseSchemaDomain(client) {
2
+ return {
3
+ getOverview: (request) => client.describeDatabaseCatalog(request),
4
+ listSchemas: (request) => client.listDatabaseSchemas(request),
5
+ listTables: (request) => client.listDatabaseTables(request),
6
+ listColumns: (request) => client.listDatabaseColumns(request),
7
+ listIndexes: (request) => client.listDatabaseIndexes(request),
8
+ describeTable: (request) => client.describeDatabaseTable(request),
9
+ };
10
+ }
@@ -1,5 +1,6 @@
1
1
  import { cleanList, cleanText, isPlainObject } from '../utils/text.js';
2
2
  import { createDatabaseBackupsDomain } from './database/backups.js';
3
+ import { createDatabaseSchemaDomain } from './database/schema.js';
3
4
 
4
5
  export function createDatabaseDomain(client) {
5
6
  return {
@@ -139,5 +140,6 @@ export function createDatabaseDomain(client) {
139
140
  },
140
141
  }),
141
142
  backups: createDatabaseBackupsDomain(client),
143
+ schema: createDatabaseSchemaDomain(client),
142
144
  };
143
145
  }
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { AIEngineClient, createAIEngineClient } from './client.js';
2
- export const AI_ENGINE_CLIENT_VERSION = '1.1.92';
2
+ export const AI_ENGINE_CLIENT_VERSION = '1.1.95';
3
3
  export { GOVERNED_MUTATION_REQUIRED_CAPABILITIES, AI_ENGINE_CLIENT_CAPABILITIES, TASK_BOUND_SUBSTRATE_EXECUTION_POLICY } from './constants/governance.js';
4
4
  export { LOGA_CONTRACT, LOGA_INTERACTION_CONTRACT, LOGA_NAVIGATION_CONTRACT, LOGA_PROJECTION_WORKFLOW } from './constants/loga.js';
5
5
  export {