@malloydata/db-publisher 0.0.380 → 0.0.382

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.
@@ -16,7 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.WatchModeApi = exports.WatchModeApiFactory = exports.WatchModeApiFp = exports.WatchModeApiAxiosParamCreator = exports.PublisherApi = exports.PublisherApiFactory = exports.PublisherApiFp = exports.PublisherApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.PackagesApi = exports.PackagesApiFactory = exports.PackagesApiFp = exports.PackagesApiAxiosParamCreator = exports.NotebooksApi = exports.NotebooksApiFactory = exports.NotebooksApiFp = exports.NotebooksApiAxiosParamCreator = exports.ModelsApi = exports.ModelsApiFactory = exports.ModelsApiFp = exports.ModelsApiAxiosParamCreator = exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.ConnectionsTestApi = exports.ConnectionsTestApiFactory = exports.ConnectionsTestApiFp = exports.ConnectionsTestApiAxiosParamCreator = exports.ConnectionsApi = exports.ConnectionsApiFactory = exports.ConnectionsApiFp = exports.ConnectionsApiAxiosParamCreator = exports.NotebookCellTypeEnum = exports.DatabaseTypeEnum = exports.ConnectionStatusStatusEnum = exports.ConnectionTypeEnum = exports.AttachedDatabaseTypeEnum = void 0;
19
+ exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.PackagesApi = exports.PackagesApiFactory = exports.PackagesApiFp = exports.PackagesApiAxiosParamCreator = exports.ExecuteNotebookCellBypassFiltersEnum = exports.NotebooksApi = exports.NotebooksApiFactory = exports.NotebooksApiFp = exports.NotebooksApiAxiosParamCreator = exports.ModelsApi = exports.ModelsApiFactory = exports.ModelsApiFp = exports.ModelsApiAxiosParamCreator = exports.MaterializationActionActionEnum = exports.MaterializationsApi = exports.MaterializationsApiFactory = exports.MaterializationsApiFp = exports.MaterializationsApiAxiosParamCreator = exports.ManifestActionActionEnum = exports.ManifestsApi = exports.ManifestsApiFactory = exports.ManifestsApiFp = exports.ManifestsApiAxiosParamCreator = exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.ConnectionsTestApi = exports.ConnectionsTestApiFactory = exports.ConnectionsTestApiFp = exports.ConnectionsTestApiAxiosParamCreator = exports.ConnectionsApi = exports.ConnectionsApiFactory = exports.ConnectionsApiFp = exports.ConnectionsApiAxiosParamCreator = exports.ServerStatusOperationalStateEnum = exports.NotebookCellResultTypeEnum = exports.NotebookCellTypeEnum = exports.MaterializationStatusEnum = exports.LogMessageSeverityEnum = exports.FilterTypeEnum = exports.DatabaseTypeEnum = exports.ConnectionStatusStatusEnum = exports.ConnectionTypeEnum = exports.CompileResultStatusEnum = exports.CompileProblemSeverityEnum = exports.AzureConnectionAuthTypeEnum = exports.AttachedDatabaseTypeEnum = void 0;
20
+ exports.WatchModeApi = exports.WatchModeApiFactory = exports.WatchModeApiFp = exports.WatchModeApiAxiosParamCreator = exports.PublisherApi = exports.PublisherApiFactory = exports.PublisherApiFp = exports.PublisherApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = void 0;
20
21
  const axios_1 = __importDefault(require("axios"));
21
22
  // Some imports not used depending on template conditions
22
23
  // @ts-ignore
@@ -26,7 +27,23 @@ const base_1 = require("./base");
26
27
  exports.AttachedDatabaseTypeEnum = {
27
28
  Bigquery: 'bigquery',
28
29
  Snowflake: 'snowflake',
29
- Postgres: 'postgres'
30
+ Postgres: 'postgres',
31
+ Gcs: 'gcs',
32
+ S3: 's3',
33
+ Azure: 'azure'
34
+ };
35
+ exports.AzureConnectionAuthTypeEnum = {
36
+ ServicePrincipal: 'service_principal',
37
+ SasToken: 'sas_token'
38
+ };
39
+ exports.CompileProblemSeverityEnum = {
40
+ Error: 'error',
41
+ Warn: 'warn',
42
+ Debug: 'debug'
43
+ };
44
+ exports.CompileResultStatusEnum = {
45
+ Success: 'success',
46
+ Error: 'error'
30
47
  };
31
48
  exports.ConnectionTypeEnum = {
32
49
  Postgres: 'postgres',
@@ -35,7 +52,8 @@ exports.ConnectionTypeEnum = {
35
52
  Trino: 'trino',
36
53
  Mysql: 'mysql',
37
54
  Duckdb: 'duckdb',
38
- Motherduck: 'motherduck'
55
+ Motherduck: 'motherduck',
56
+ Ducklake: 'ducklake'
39
57
  };
40
58
  exports.ConnectionStatusStatusEnum = {
41
59
  Ok: 'ok',
@@ -45,16 +63,116 @@ exports.DatabaseTypeEnum = {
45
63
  Embedded: 'embedded',
46
64
  Materialized: 'materialized'
47
65
  };
66
+ exports.FilterTypeEnum = {
67
+ Equal: 'equal',
68
+ In: 'in',
69
+ Like: 'like',
70
+ GreaterThan: 'greater_than',
71
+ LessThan: 'less_than'
72
+ };
73
+ exports.LogMessageSeverityEnum = {
74
+ Debug: 'debug',
75
+ Info: 'info',
76
+ Warn: 'warn',
77
+ Error: 'error'
78
+ };
79
+ exports.MaterializationStatusEnum = {
80
+ Pending: 'PENDING',
81
+ Running: 'RUNNING',
82
+ Success: 'SUCCESS',
83
+ Failed: 'FAILED',
84
+ Cancelled: 'CANCELLED'
85
+ };
48
86
  exports.NotebookCellTypeEnum = {
49
87
  Markdown: 'markdown',
50
88
  Code: 'code'
51
89
  };
90
+ exports.NotebookCellResultTypeEnum = {
91
+ Markdown: 'markdown',
92
+ Code: 'code'
93
+ };
94
+ exports.ServerStatusOperationalStateEnum = {
95
+ Initializing: 'initializing',
96
+ Serving: 'serving',
97
+ Draining: 'draining'
98
+ };
52
99
  /**
53
100
  * ConnectionsApi - axios parameter creator
54
101
  * @export
55
102
  */
56
103
  const ConnectionsApiAxiosParamCreator = function (configuration) {
57
104
  return {
105
+ /**
106
+ * Creates a new database connection in the specified project.
107
+ * @summary Create a new database connection
108
+ * @param {string} projectName Name of the project
109
+ * @param {string} connectionName Name of the connection
110
+ * @param {Connection} connection
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ createConnection: async (projectName, connectionName, connection, options = {}) => {
115
+ // verify required parameter 'projectName' is not null or undefined
116
+ (0, common_1.assertParamExists)('createConnection', 'projectName', projectName);
117
+ // verify required parameter 'connectionName' is not null or undefined
118
+ (0, common_1.assertParamExists)('createConnection', 'connectionName', connectionName);
119
+ // verify required parameter 'connection' is not null or undefined
120
+ (0, common_1.assertParamExists)('createConnection', 'connection', connection);
121
+ const localVarPath = `/projects/{projectName}/connections/{connectionName}`
122
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
123
+ .replace(`{${"connectionName"}}`, encodeURIComponent(String(connectionName)));
124
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
125
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
126
+ let baseOptions;
127
+ if (configuration) {
128
+ baseOptions = configuration.baseOptions;
129
+ }
130
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
131
+ const localVarHeaderParameter = {};
132
+ const localVarQueryParameter = {};
133
+ localVarHeaderParameter['Content-Type'] = 'application/json';
134
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
137
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(connection, localVarRequestOptions, configuration);
138
+ return {
139
+ url: (0, common_1.toPathString)(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ },
143
+ /**
144
+ * Permanently deletes a database connection from the project.
145
+ * @summary Delete a database connection
146
+ * @param {string} projectName Name of the project
147
+ * @param {string} connectionName Name of the connection to delete
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ deleteConnection: async (projectName, connectionName, options = {}) => {
152
+ // verify required parameter 'projectName' is not null or undefined
153
+ (0, common_1.assertParamExists)('deleteConnection', 'projectName', projectName);
154
+ // verify required parameter 'connectionName' is not null or undefined
155
+ (0, common_1.assertParamExists)('deleteConnection', 'connectionName', connectionName);
156
+ const localVarPath = `/projects/{projectName}/connections/{connectionName}`
157
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
158
+ .replace(`{${"connectionName"}}`, encodeURIComponent(String(connectionName)));
159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
161
+ let baseOptions;
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ }
165
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
166
+ const localVarHeaderParameter = {};
167
+ const localVarQueryParameter = {};
168
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
171
+ return {
172
+ url: (0, common_1.toPathString)(localVarUrlObj),
173
+ options: localVarRequestOptions,
174
+ };
175
+ },
58
176
  /**
59
177
  * Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
60
178
  * @summary Get connection details
@@ -209,48 +327,6 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
209
327
  options: localVarRequestOptions,
210
328
  };
211
329
  },
212
- /**
213
- * Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
214
- * @summary Get table source information
215
- * @param {string} projectName Name of the project
216
- * @param {string} connectionName Name of the connection
217
- * @param {string} [tableKey] Table key
218
- * @param {string} [tablePath] Table path
219
- * @param {*} [options] Override http request option.
220
- * @deprecated
221
- * @throws {RequiredError}
222
- */
223
- getTablesource: async (projectName, connectionName, tableKey, tablePath, options = {}) => {
224
- // verify required parameter 'projectName' is not null or undefined
225
- (0, common_1.assertParamExists)('getTablesource', 'projectName', projectName);
226
- // verify required parameter 'connectionName' is not null or undefined
227
- (0, common_1.assertParamExists)('getTablesource', 'connectionName', connectionName);
228
- const localVarPath = `/projects/{projectName}/connections/{connectionName}/tableSource`
229
- .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
230
- .replace(`{${"connectionName"}}`, encodeURIComponent(String(connectionName)));
231
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
232
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
233
- let baseOptions;
234
- if (configuration) {
235
- baseOptions = configuration.baseOptions;
236
- }
237
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
238
- const localVarHeaderParameter = {};
239
- const localVarQueryParameter = {};
240
- if (tableKey !== undefined) {
241
- localVarQueryParameter['tableKey'] = tableKey;
242
- }
243
- if (tablePath !== undefined) {
244
- localVarQueryParameter['tablePath'] = tablePath;
245
- }
246
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
247
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
248
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
249
- return {
250
- url: (0, common_1.toPathString)(localVarUrlObj),
251
- options: localVarRequestOptions,
252
- };
253
- },
254
330
  /**
255
331
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
256
332
  * @summary Create temporary table (deprecated)
@@ -357,10 +433,11 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
357
433
  * @param {string} projectName Name of the project
358
434
  * @param {string} connectionName Name of the connection
359
435
  * @param {string} schemaName Name of the schema
436
+ * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
360
437
  * @param {*} [options] Override http request option.
361
438
  * @throws {RequiredError}
362
439
  */
363
- listTables: async (projectName, connectionName, schemaName, options = {}) => {
440
+ listTables: async (projectName, connectionName, schemaName, tableNames, options = {}) => {
364
441
  // verify required parameter 'projectName' is not null or undefined
365
442
  (0, common_1.assertParamExists)('listTables', 'projectName', projectName);
366
443
  // verify required parameter 'connectionName' is not null or undefined
@@ -380,6 +457,9 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
380
457
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
381
458
  const localVarHeaderParameter = {};
382
459
  const localVarQueryParameter = {};
460
+ if (tableNames) {
461
+ localVarQueryParameter['tableNames'] = tableNames;
462
+ }
383
463
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
384
464
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
465
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -393,18 +473,17 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
393
473
  * @summary Execute SQL query
394
474
  * @param {string} projectName Name of the project
395
475
  * @param {string} connectionName Name of the connection
396
- * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to execute
397
- * @param {string} [_options] Options
476
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
398
477
  * @param {*} [options] Override http request option.
399
478
  * @throws {RequiredError}
400
479
  */
401
- postQuerydata: async (projectName, connectionName, postSqlsourceRequest, _options, options = {}) => {
480
+ postQuerydata: async (projectName, connectionName, postQuerydataRequest, options = {}) => {
402
481
  // verify required parameter 'projectName' is not null or undefined
403
482
  (0, common_1.assertParamExists)('postQuerydata', 'projectName', projectName);
404
483
  // verify required parameter 'connectionName' is not null or undefined
405
484
  (0, common_1.assertParamExists)('postQuerydata', 'connectionName', connectionName);
406
- // verify required parameter 'postSqlsourceRequest' is not null or undefined
407
- (0, common_1.assertParamExists)('postQuerydata', 'postSqlsourceRequest', postSqlsourceRequest);
485
+ // verify required parameter 'postQuerydataRequest' is not null or undefined
486
+ (0, common_1.assertParamExists)('postQuerydata', 'postQuerydataRequest', postQuerydataRequest);
408
487
  const localVarPath = `/projects/{projectName}/connections/{connectionName}/sqlQuery`
409
488
  .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
410
489
  .replace(`{${"connectionName"}}`, encodeURIComponent(String(connectionName)));
@@ -417,14 +496,11 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
417
496
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
418
497
  const localVarHeaderParameter = {};
419
498
  const localVarQueryParameter = {};
420
- if (_options !== undefined) {
421
- localVarQueryParameter['options'] = _options;
422
- }
423
499
  localVarHeaderParameter['Content-Type'] = 'application/json';
424
500
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
425
501
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
426
502
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
427
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSqlsourceRequest, localVarRequestOptions, configuration);
503
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postQuerydataRequest, localVarRequestOptions, configuration);
428
504
  return {
429
505
  url: (0, common_1.toPathString)(localVarUrlObj),
430
506
  options: localVarRequestOptions,
@@ -506,6 +582,44 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
506
582
  options: localVarRequestOptions,
507
583
  };
508
584
  },
585
+ /**
586
+ * Updates the configuration of an existing database connection.
587
+ * @summary Update an existing database connection
588
+ * @param {string} projectName Name of the project
589
+ * @param {string} connectionName Name of the connection to update
590
+ * @param {UpdateConnectionRequest} updateConnectionRequest
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ updateConnection: async (projectName, connectionName, updateConnectionRequest, options = {}) => {
595
+ // verify required parameter 'projectName' is not null or undefined
596
+ (0, common_1.assertParamExists)('updateConnection', 'projectName', projectName);
597
+ // verify required parameter 'connectionName' is not null or undefined
598
+ (0, common_1.assertParamExists)('updateConnection', 'connectionName', connectionName);
599
+ // verify required parameter 'updateConnectionRequest' is not null or undefined
600
+ (0, common_1.assertParamExists)('updateConnection', 'updateConnectionRequest', updateConnectionRequest);
601
+ const localVarPath = `/projects/{projectName}/connections/{connectionName}`
602
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
603
+ .replace(`{${"connectionName"}}`, encodeURIComponent(String(connectionName)));
604
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
605
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
606
+ let baseOptions;
607
+ if (configuration) {
608
+ baseOptions = configuration.baseOptions;
609
+ }
610
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
611
+ const localVarHeaderParameter = {};
612
+ const localVarQueryParameter = {};
613
+ localVarHeaderParameter['Content-Type'] = 'application/json';
614
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
615
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
616
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
617
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConnectionRequest, localVarRequestOptions, configuration);
618
+ return {
619
+ url: (0, common_1.toPathString)(localVarUrlObj),
620
+ options: localVarRequestOptions,
621
+ };
622
+ },
509
623
  };
510
624
  };
511
625
  exports.ConnectionsApiAxiosParamCreator = ConnectionsApiAxiosParamCreator;
@@ -516,6 +630,37 @@ exports.ConnectionsApiAxiosParamCreator = ConnectionsApiAxiosParamCreator;
516
630
  const ConnectionsApiFp = function (configuration) {
517
631
  const localVarAxiosParamCreator = (0, exports.ConnectionsApiAxiosParamCreator)(configuration);
518
632
  return {
633
+ /**
634
+ * Creates a new database connection in the specified project.
635
+ * @summary Create a new database connection
636
+ * @param {string} projectName Name of the project
637
+ * @param {string} connectionName Name of the connection
638
+ * @param {Connection} connection
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ */
642
+ async createConnection(projectName, connectionName, connection, options) {
643
+ var _a, _b, _c;
644
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createConnection(projectName, connectionName, connection, options);
645
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
646
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.createConnection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
647
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
648
+ },
649
+ /**
650
+ * Permanently deletes a database connection from the project.
651
+ * @summary Delete a database connection
652
+ * @param {string} projectName Name of the project
653
+ * @param {string} connectionName Name of the connection to delete
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ async deleteConnection(projectName, connectionName, options) {
658
+ var _a, _b, _c;
659
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConnection(projectName, connectionName, options);
660
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
661
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.deleteConnection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
662
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
663
+ },
519
664
  /**
520
665
  * Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
521
666
  * @summary Get connection details
@@ -583,24 +728,6 @@ const ConnectionsApiFp = function (configuration) {
583
728
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.getTable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
584
729
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
585
730
  },
586
- /**
587
- * Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
588
- * @summary Get table source information
589
- * @param {string} projectName Name of the project
590
- * @param {string} connectionName Name of the connection
591
- * @param {string} [tableKey] Table key
592
- * @param {string} [tablePath] Table path
593
- * @param {*} [options] Override http request option.
594
- * @deprecated
595
- * @throws {RequiredError}
596
- */
597
- async getTablesource(projectName, connectionName, tableKey, tablePath, options) {
598
- var _a, _b, _c;
599
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTablesource(projectName, connectionName, tableKey, tablePath, options);
600
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
601
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.getTablesource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
602
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
603
- },
604
731
  /**
605
732
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
606
733
  * @summary Create temporary table (deprecated)
@@ -653,12 +780,13 @@ const ConnectionsApiFp = function (configuration) {
653
780
  * @param {string} projectName Name of the project
654
781
  * @param {string} connectionName Name of the connection
655
782
  * @param {string} schemaName Name of the schema
783
+ * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
656
784
  * @param {*} [options] Override http request option.
657
785
  * @throws {RequiredError}
658
786
  */
659
- async listTables(projectName, connectionName, schemaName, options) {
787
+ async listTables(projectName, connectionName, schemaName, tableNames, options) {
660
788
  var _a, _b, _c;
661
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTables(projectName, connectionName, schemaName, options);
789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTables(projectName, connectionName, schemaName, tableNames, options);
662
790
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
663
791
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.listTables']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
664
792
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -668,14 +796,13 @@ const ConnectionsApiFp = function (configuration) {
668
796
  * @summary Execute SQL query
669
797
  * @param {string} projectName Name of the project
670
798
  * @param {string} connectionName Name of the connection
671
- * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to execute
672
- * @param {string} [_options] Options
799
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
673
800
  * @param {*} [options] Override http request option.
674
801
  * @throws {RequiredError}
675
802
  */
676
- async postQuerydata(projectName, connectionName, postSqlsourceRequest, _options, options) {
803
+ async postQuerydata(projectName, connectionName, postQuerydataRequest, options) {
677
804
  var _a, _b, _c;
678
- const localVarAxiosArgs = await localVarAxiosParamCreator.postQuerydata(projectName, connectionName, postSqlsourceRequest, _options, options);
805
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postQuerydata(projectName, connectionName, postQuerydataRequest, options);
679
806
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
680
807
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.postQuerydata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
681
808
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -712,6 +839,22 @@ const ConnectionsApiFp = function (configuration) {
712
839
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.postTemporarytable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
713
840
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
714
841
  },
842
+ /**
843
+ * Updates the configuration of an existing database connection.
844
+ * @summary Update an existing database connection
845
+ * @param {string} projectName Name of the project
846
+ * @param {string} connectionName Name of the connection to update
847
+ * @param {UpdateConnectionRequest} updateConnectionRequest
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ */
851
+ async updateConnection(projectName, connectionName, updateConnectionRequest, options) {
852
+ var _a, _b, _c;
853
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateConnection(projectName, connectionName, updateConnectionRequest, options);
854
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
855
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectionsApi.updateConnection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
856
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
857
+ },
715
858
  };
716
859
  };
717
860
  exports.ConnectionsApiFp = ConnectionsApiFp;
@@ -722,6 +865,29 @@ exports.ConnectionsApiFp = ConnectionsApiFp;
722
865
  const ConnectionsApiFactory = function (configuration, basePath, axios) {
723
866
  const localVarFp = (0, exports.ConnectionsApiFp)(configuration);
724
867
  return {
868
+ /**
869
+ * Creates a new database connection in the specified project.
870
+ * @summary Create a new database connection
871
+ * @param {string} projectName Name of the project
872
+ * @param {string} connectionName Name of the connection
873
+ * @param {Connection} connection
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ */
877
+ createConnection(projectName, connectionName, connection, options) {
878
+ return localVarFp.createConnection(projectName, connectionName, connection, options).then((request) => request(axios, basePath));
879
+ },
880
+ /**
881
+ * Permanently deletes a database connection from the project.
882
+ * @summary Delete a database connection
883
+ * @param {string} projectName Name of the project
884
+ * @param {string} connectionName Name of the connection to delete
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ */
888
+ deleteConnection(projectName, connectionName, options) {
889
+ return localVarFp.deleteConnection(projectName, connectionName, options).then((request) => request(axios, basePath));
890
+ },
725
891
  /**
726
892
  * Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
727
893
  * @summary Get connection details
@@ -773,20 +939,6 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
773
939
  getTable(projectName, connectionName, schemaName, tablePath, options) {
774
940
  return localVarFp.getTable(projectName, connectionName, schemaName, tablePath, options).then((request) => request(axios, basePath));
775
941
  },
776
- /**
777
- * Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
778
- * @summary Get table source information
779
- * @param {string} projectName Name of the project
780
- * @param {string} connectionName Name of the connection
781
- * @param {string} [tableKey] Table key
782
- * @param {string} [tablePath] Table path
783
- * @param {*} [options] Override http request option.
784
- * @deprecated
785
- * @throws {RequiredError}
786
- */
787
- getTablesource(projectName, connectionName, tableKey, tablePath, options) {
788
- return localVarFp.getTablesource(projectName, connectionName, tableKey, tablePath, options).then((request) => request(axios, basePath));
789
- },
790
942
  /**
791
943
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
792
944
  * @summary Create temporary table (deprecated)
@@ -827,24 +979,24 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
827
979
  * @param {string} projectName Name of the project
828
980
  * @param {string} connectionName Name of the connection
829
981
  * @param {string} schemaName Name of the schema
982
+ * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
830
983
  * @param {*} [options] Override http request option.
831
984
  * @throws {RequiredError}
832
985
  */
833
- listTables(projectName, connectionName, schemaName, options) {
834
- return localVarFp.listTables(projectName, connectionName, schemaName, options).then((request) => request(axios, basePath));
986
+ listTables(projectName, connectionName, schemaName, tableNames, options) {
987
+ return localVarFp.listTables(projectName, connectionName, schemaName, tableNames, options).then((request) => request(axios, basePath));
835
988
  },
836
989
  /**
837
990
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
838
991
  * @summary Execute SQL query
839
992
  * @param {string} projectName Name of the project
840
993
  * @param {string} connectionName Name of the connection
841
- * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to execute
842
- * @param {string} [_options] Options
994
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
843
995
  * @param {*} [options] Override http request option.
844
996
  * @throws {RequiredError}
845
997
  */
846
- postQuerydata(projectName, connectionName, postSqlsourceRequest, _options, options) {
847
- return localVarFp.postQuerydata(projectName, connectionName, postSqlsourceRequest, _options, options).then((request) => request(axios, basePath));
998
+ postQuerydata(projectName, connectionName, postQuerydataRequest, options) {
999
+ return localVarFp.postQuerydata(projectName, connectionName, postQuerydataRequest, options).then((request) => request(axios, basePath));
848
1000
  },
849
1001
  /**
850
1002
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -870,6 +1022,18 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
870
1022
  postTemporarytable(projectName, connectionName, postSqlsourceRequest, options) {
871
1023
  return localVarFp.postTemporarytable(projectName, connectionName, postSqlsourceRequest, options).then((request) => request(axios, basePath));
872
1024
  },
1025
+ /**
1026
+ * Updates the configuration of an existing database connection.
1027
+ * @summary Update an existing database connection
1028
+ * @param {string} projectName Name of the project
1029
+ * @param {string} connectionName Name of the connection to update
1030
+ * @param {UpdateConnectionRequest} updateConnectionRequest
1031
+ * @param {*} [options] Override http request option.
1032
+ * @throws {RequiredError}
1033
+ */
1034
+ updateConnection(projectName, connectionName, updateConnectionRequest, options) {
1035
+ return localVarFp.updateConnection(projectName, connectionName, updateConnectionRequest, options).then((request) => request(axios, basePath));
1036
+ },
873
1037
  };
874
1038
  };
875
1039
  exports.ConnectionsApiFactory = ConnectionsApiFactory;
@@ -880,6 +1044,31 @@ exports.ConnectionsApiFactory = ConnectionsApiFactory;
880
1044
  * @extends {BaseAPI}
881
1045
  */
882
1046
  class ConnectionsApi extends base_1.BaseAPI {
1047
+ /**
1048
+ * Creates a new database connection in the specified project.
1049
+ * @summary Create a new database connection
1050
+ * @param {string} projectName Name of the project
1051
+ * @param {string} connectionName Name of the connection
1052
+ * @param {Connection} connection
1053
+ * @param {*} [options] Override http request option.
1054
+ * @throws {RequiredError}
1055
+ * @memberof ConnectionsApi
1056
+ */
1057
+ createConnection(projectName, connectionName, connection, options) {
1058
+ return (0, exports.ConnectionsApiFp)(this.configuration).createConnection(projectName, connectionName, connection, options).then((request) => request(this.axios, this.basePath));
1059
+ }
1060
+ /**
1061
+ * Permanently deletes a database connection from the project.
1062
+ * @summary Delete a database connection
1063
+ * @param {string} projectName Name of the project
1064
+ * @param {string} connectionName Name of the connection to delete
1065
+ * @param {*} [options] Override http request option.
1066
+ * @throws {RequiredError}
1067
+ * @memberof ConnectionsApi
1068
+ */
1069
+ deleteConnection(projectName, connectionName, options) {
1070
+ return (0, exports.ConnectionsApiFp)(this.configuration).deleteConnection(projectName, connectionName, options).then((request) => request(this.axios, this.basePath));
1071
+ }
883
1072
  /**
884
1073
  * Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
885
1074
  * @summary Get connection details
@@ -935,21 +1124,6 @@ class ConnectionsApi extends base_1.BaseAPI {
935
1124
  getTable(projectName, connectionName, schemaName, tablePath, options) {
936
1125
  return (0, exports.ConnectionsApiFp)(this.configuration).getTable(projectName, connectionName, schemaName, tablePath, options).then((request) => request(this.axios, this.basePath));
937
1126
  }
938
- /**
939
- * Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
940
- * @summary Get table source information
941
- * @param {string} projectName Name of the project
942
- * @param {string} connectionName Name of the connection
943
- * @param {string} [tableKey] Table key
944
- * @param {string} [tablePath] Table path
945
- * @param {*} [options] Override http request option.
946
- * @deprecated
947
- * @throws {RequiredError}
948
- * @memberof ConnectionsApi
949
- */
950
- getTablesource(projectName, connectionName, tableKey, tablePath, options) {
951
- return (0, exports.ConnectionsApiFp)(this.configuration).getTablesource(projectName, connectionName, tableKey, tablePath, options).then((request) => request(this.axios, this.basePath));
952
- }
953
1127
  /**
954
1128
  * **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
955
1129
  * @summary Create temporary table (deprecated)
@@ -993,26 +1167,26 @@ class ConnectionsApi extends base_1.BaseAPI {
993
1167
  * @param {string} projectName Name of the project
994
1168
  * @param {string} connectionName Name of the connection
995
1169
  * @param {string} schemaName Name of the schema
1170
+ * @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
996
1171
  * @param {*} [options] Override http request option.
997
1172
  * @throws {RequiredError}
998
1173
  * @memberof ConnectionsApi
999
1174
  */
1000
- listTables(projectName, connectionName, schemaName, options) {
1001
- return (0, exports.ConnectionsApiFp)(this.configuration).listTables(projectName, connectionName, schemaName, options).then((request) => request(this.axios, this.basePath));
1175
+ listTables(projectName, connectionName, schemaName, tableNames, options) {
1176
+ return (0, exports.ConnectionsApiFp)(this.configuration).listTables(projectName, connectionName, schemaName, tableNames, options).then((request) => request(this.axios, this.basePath));
1002
1177
  }
1003
1178
  /**
1004
1179
  * Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
1005
1180
  * @summary Execute SQL query
1006
1181
  * @param {string} projectName Name of the project
1007
1182
  * @param {string} connectionName Name of the connection
1008
- * @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to execute
1009
- * @param {string} [_options] Options
1183
+ * @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
1010
1184
  * @param {*} [options] Override http request option.
1011
1185
  * @throws {RequiredError}
1012
1186
  * @memberof ConnectionsApi
1013
1187
  */
1014
- postQuerydata(projectName, connectionName, postSqlsourceRequest, _options, options) {
1015
- return (0, exports.ConnectionsApiFp)(this.configuration).postQuerydata(projectName, connectionName, postSqlsourceRequest, _options, options).then((request) => request(this.axios, this.basePath));
1188
+ postQuerydata(projectName, connectionName, postQuerydataRequest, options) {
1189
+ return (0, exports.ConnectionsApiFp)(this.configuration).postQuerydata(projectName, connectionName, postQuerydataRequest, options).then((request) => request(this.axios, this.basePath));
1016
1190
  }
1017
1191
  /**
1018
1192
  * Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
@@ -1040,6 +1214,19 @@ class ConnectionsApi extends base_1.BaseAPI {
1040
1214
  postTemporarytable(projectName, connectionName, postSqlsourceRequest, options) {
1041
1215
  return (0, exports.ConnectionsApiFp)(this.configuration).postTemporarytable(projectName, connectionName, postSqlsourceRequest, options).then((request) => request(this.axios, this.basePath));
1042
1216
  }
1217
+ /**
1218
+ * Updates the configuration of an existing database connection.
1219
+ * @summary Update an existing database connection
1220
+ * @param {string} projectName Name of the project
1221
+ * @param {string} connectionName Name of the connection to update
1222
+ * @param {UpdateConnectionRequest} updateConnectionRequest
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ * @memberof ConnectionsApi
1226
+ */
1227
+ updateConnection(projectName, connectionName, updateConnectionRequest, options) {
1228
+ return (0, exports.ConnectionsApiFp)(this.configuration).updateConnection(projectName, connectionName, updateConnectionRequest, options).then((request) => request(this.axios, this.basePath));
1229
+ }
1043
1230
  }
1044
1231
  exports.ConnectionsApi = ConnectionsApi;
1045
1232
  /**
@@ -1262,41 +1449,728 @@ class DatabasesApi extends base_1.BaseAPI {
1262
1449
  }
1263
1450
  exports.DatabasesApi = DatabasesApi;
1264
1451
  /**
1265
- * ModelsApi - axios parameter creator
1452
+ * ManifestsApi - axios parameter creator
1266
1453
  * @export
1267
1454
  */
1268
- const ModelsApiAxiosParamCreator = function (configuration) {
1455
+ const ManifestsApiAxiosParamCreator = function (configuration) {
1269
1456
  return {
1270
1457
  /**
1271
- * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
1272
- * @summary Execute Malloy query
1458
+ * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1459
+ * @summary Get the build manifest for a package
1273
1460
  * @param {string} projectName Name of the project
1274
1461
  * @param {string} packageName Name of the package
1275
- * @param {string} path Path to the model within the package
1276
- * @param {QueryRequest} queryRequest
1277
1462
  * @param {*} [options] Override http request option.
1278
1463
  * @throws {RequiredError}
1279
1464
  */
1280
- executeQueryModel: async (projectName, packageName, path, queryRequest, options = {}) => {
1465
+ getManifest: async (projectName, packageName, options = {}) => {
1281
1466
  // verify required parameter 'projectName' is not null or undefined
1282
- (0, common_1.assertParamExists)('executeQueryModel', 'projectName', projectName);
1467
+ (0, common_1.assertParamExists)('getManifest', 'projectName', projectName);
1283
1468
  // verify required parameter 'packageName' is not null or undefined
1284
- (0, common_1.assertParamExists)('executeQueryModel', 'packageName', packageName);
1285
- // verify required parameter 'path' is not null or undefined
1286
- (0, common_1.assertParamExists)('executeQueryModel', 'path', path);
1287
- // verify required parameter 'queryRequest' is not null or undefined
1288
- (0, common_1.assertParamExists)('executeQueryModel', 'queryRequest', queryRequest);
1289
- const localVarPath = `/projects/{projectName}/packages/{packageName}/models/{path}/query`
1469
+ (0, common_1.assertParamExists)('getManifest', 'packageName', packageName);
1470
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/manifest`
1290
1471
  .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
1291
- .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)))
1292
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
1472
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)));
1293
1473
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1294
1474
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1295
1475
  let baseOptions;
1296
1476
  if (configuration) {
1297
1477
  baseOptions = configuration.baseOptions;
1298
1478
  }
1299
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1479
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1480
+ const localVarHeaderParameter = {};
1481
+ const localVarQueryParameter = {};
1482
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1484
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1485
+ return {
1486
+ url: (0, common_1.toPathString)(localVarUrlObj),
1487
+ options: localVarRequestOptions,
1488
+ };
1489
+ },
1490
+ /**
1491
+ * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
1492
+ * @summary Perform an action on the package manifest
1493
+ * @param {string} projectName Name of the project
1494
+ * @param {string} packageName Name of the package
1495
+ * @param {ManifestActionActionEnum} action Action to perform on the manifest
1496
+ * @param {*} [options] Override http request option.
1497
+ * @throws {RequiredError}
1498
+ */
1499
+ manifestAction: async (projectName, packageName, action, options = {}) => {
1500
+ // verify required parameter 'projectName' is not null or undefined
1501
+ (0, common_1.assertParamExists)('manifestAction', 'projectName', projectName);
1502
+ // verify required parameter 'packageName' is not null or undefined
1503
+ (0, common_1.assertParamExists)('manifestAction', 'packageName', packageName);
1504
+ // verify required parameter 'action' is not null or undefined
1505
+ (0, common_1.assertParamExists)('manifestAction', 'action', action);
1506
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/manifest`
1507
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
1508
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)));
1509
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1510
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1511
+ let baseOptions;
1512
+ if (configuration) {
1513
+ baseOptions = configuration.baseOptions;
1514
+ }
1515
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1516
+ const localVarHeaderParameter = {};
1517
+ const localVarQueryParameter = {};
1518
+ if (action !== undefined) {
1519
+ localVarQueryParameter['action'] = action;
1520
+ }
1521
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1522
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1523
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1524
+ return {
1525
+ url: (0, common_1.toPathString)(localVarUrlObj),
1526
+ options: localVarRequestOptions,
1527
+ };
1528
+ },
1529
+ };
1530
+ };
1531
+ exports.ManifestsApiAxiosParamCreator = ManifestsApiAxiosParamCreator;
1532
+ /**
1533
+ * ManifestsApi - functional programming interface
1534
+ * @export
1535
+ */
1536
+ const ManifestsApiFp = function (configuration) {
1537
+ const localVarAxiosParamCreator = (0, exports.ManifestsApiAxiosParamCreator)(configuration);
1538
+ return {
1539
+ /**
1540
+ * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1541
+ * @summary Get the build manifest for a package
1542
+ * @param {string} projectName Name of the project
1543
+ * @param {string} packageName Name of the package
1544
+ * @param {*} [options] Override http request option.
1545
+ * @throws {RequiredError}
1546
+ */
1547
+ async getManifest(projectName, packageName, options) {
1548
+ var _a, _b, _c;
1549
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getManifest(projectName, packageName, options);
1550
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1551
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManifestsApi.getManifest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1552
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1553
+ },
1554
+ /**
1555
+ * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
1556
+ * @summary Perform an action on the package manifest
1557
+ * @param {string} projectName Name of the project
1558
+ * @param {string} packageName Name of the package
1559
+ * @param {ManifestActionActionEnum} action Action to perform on the manifest
1560
+ * @param {*} [options] Override http request option.
1561
+ * @throws {RequiredError}
1562
+ */
1563
+ async manifestAction(projectName, packageName, action, options) {
1564
+ var _a, _b, _c;
1565
+ const localVarAxiosArgs = await localVarAxiosParamCreator.manifestAction(projectName, packageName, action, options);
1566
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1567
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManifestsApi.manifestAction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1568
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1569
+ },
1570
+ };
1571
+ };
1572
+ exports.ManifestsApiFp = ManifestsApiFp;
1573
+ /**
1574
+ * ManifestsApi - factory interface
1575
+ * @export
1576
+ */
1577
+ const ManifestsApiFactory = function (configuration, basePath, axios) {
1578
+ const localVarFp = (0, exports.ManifestsApiFp)(configuration);
1579
+ return {
1580
+ /**
1581
+ * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1582
+ * @summary Get the build manifest for a package
1583
+ * @param {string} projectName Name of the project
1584
+ * @param {string} packageName Name of the package
1585
+ * @param {*} [options] Override http request option.
1586
+ * @throws {RequiredError}
1587
+ */
1588
+ getManifest(projectName, packageName, options) {
1589
+ return localVarFp.getManifest(projectName, packageName, options).then((request) => request(axios, basePath));
1590
+ },
1591
+ /**
1592
+ * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
1593
+ * @summary Perform an action on the package manifest
1594
+ * @param {string} projectName Name of the project
1595
+ * @param {string} packageName Name of the package
1596
+ * @param {ManifestActionActionEnum} action Action to perform on the manifest
1597
+ * @param {*} [options] Override http request option.
1598
+ * @throws {RequiredError}
1599
+ */
1600
+ manifestAction(projectName, packageName, action, options) {
1601
+ return localVarFp.manifestAction(projectName, packageName, action, options).then((request) => request(axios, basePath));
1602
+ },
1603
+ };
1604
+ };
1605
+ exports.ManifestsApiFactory = ManifestsApiFactory;
1606
+ /**
1607
+ * ManifestsApi - object-oriented interface
1608
+ * @export
1609
+ * @class ManifestsApi
1610
+ * @extends {BaseAPI}
1611
+ */
1612
+ class ManifestsApi extends base_1.BaseAPI {
1613
+ /**
1614
+ * Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
1615
+ * @summary Get the build manifest for a package
1616
+ * @param {string} projectName Name of the project
1617
+ * @param {string} packageName Name of the package
1618
+ * @param {*} [options] Override http request option.
1619
+ * @throws {RequiredError}
1620
+ * @memberof ManifestsApi
1621
+ */
1622
+ getManifest(projectName, packageName, options) {
1623
+ return (0, exports.ManifestsApiFp)(this.configuration).getManifest(projectName, packageName, options).then((request) => request(this.axios, this.basePath));
1624
+ }
1625
+ /**
1626
+ * Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
1627
+ * @summary Perform an action on the package manifest
1628
+ * @param {string} projectName Name of the project
1629
+ * @param {string} packageName Name of the package
1630
+ * @param {ManifestActionActionEnum} action Action to perform on the manifest
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ * @memberof ManifestsApi
1634
+ */
1635
+ manifestAction(projectName, packageName, action, options) {
1636
+ return (0, exports.ManifestsApiFp)(this.configuration).manifestAction(projectName, packageName, action, options).then((request) => request(this.axios, this.basePath));
1637
+ }
1638
+ }
1639
+ exports.ManifestsApi = ManifestsApi;
1640
+ /**
1641
+ * @export
1642
+ */
1643
+ exports.ManifestActionActionEnum = {
1644
+ Reload: 'reload'
1645
+ };
1646
+ /**
1647
+ * MaterializationsApi - axios parameter creator
1648
+ * @export
1649
+ */
1650
+ const MaterializationsApiAxiosParamCreator = function (configuration) {
1651
+ return {
1652
+ /**
1653
+ * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
1654
+ * @summary Create a materialization
1655
+ * @param {string} projectName Name of the project
1656
+ * @param {string} packageName Name of the package
1657
+ * @param {CreateMaterializationRequest} [createMaterializationRequest]
1658
+ * @param {*} [options] Override http request option.
1659
+ * @throws {RequiredError}
1660
+ */
1661
+ createMaterialization: async (projectName, packageName, createMaterializationRequest, options = {}) => {
1662
+ // verify required parameter 'projectName' is not null or undefined
1663
+ (0, common_1.assertParamExists)('createMaterialization', 'projectName', projectName);
1664
+ // verify required parameter 'packageName' is not null or undefined
1665
+ (0, common_1.assertParamExists)('createMaterialization', 'packageName', packageName);
1666
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/materializations`
1667
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
1668
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)));
1669
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1670
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1671
+ let baseOptions;
1672
+ if (configuration) {
1673
+ baseOptions = configuration.baseOptions;
1674
+ }
1675
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1676
+ const localVarHeaderParameter = {};
1677
+ const localVarQueryParameter = {};
1678
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1679
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1681
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1682
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createMaterializationRequest, localVarRequestOptions, configuration);
1683
+ return {
1684
+ url: (0, common_1.toPathString)(localVarUrlObj),
1685
+ options: localVarRequestOptions,
1686
+ };
1687
+ },
1688
+ /**
1689
+ * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
1690
+ * @summary Delete a materialization
1691
+ * @param {string} projectName Name of the project
1692
+ * @param {string} packageName Name of the package
1693
+ * @param {string} materializationId ID of the materialization
1694
+ * @param {*} [options] Override http request option.
1695
+ * @throws {RequiredError}
1696
+ */
1697
+ deleteMaterialization: async (projectName, packageName, materializationId, options = {}) => {
1698
+ // verify required parameter 'projectName' is not null or undefined
1699
+ (0, common_1.assertParamExists)('deleteMaterialization', 'projectName', projectName);
1700
+ // verify required parameter 'packageName' is not null or undefined
1701
+ (0, common_1.assertParamExists)('deleteMaterialization', 'packageName', packageName);
1702
+ // verify required parameter 'materializationId' is not null or undefined
1703
+ (0, common_1.assertParamExists)('deleteMaterialization', 'materializationId', materializationId);
1704
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/materializations/{materializationId}`
1705
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
1706
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)))
1707
+ .replace(`{${"materializationId"}}`, encodeURIComponent(String(materializationId)));
1708
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1709
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1710
+ let baseOptions;
1711
+ if (configuration) {
1712
+ baseOptions = configuration.baseOptions;
1713
+ }
1714
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1715
+ const localVarHeaderParameter = {};
1716
+ const localVarQueryParameter = {};
1717
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1718
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1719
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1720
+ return {
1721
+ url: (0, common_1.toPathString)(localVarUrlObj),
1722
+ options: localVarRequestOptions,
1723
+ };
1724
+ },
1725
+ /**
1726
+ *
1727
+ * @summary Get a specific materialization
1728
+ * @param {string} projectName Name of the project
1729
+ * @param {string} packageName Name of the package
1730
+ * @param {string} materializationId ID of the materialization
1731
+ * @param {*} [options] Override http request option.
1732
+ * @throws {RequiredError}
1733
+ */
1734
+ getMaterialization: async (projectName, packageName, materializationId, options = {}) => {
1735
+ // verify required parameter 'projectName' is not null or undefined
1736
+ (0, common_1.assertParamExists)('getMaterialization', 'projectName', projectName);
1737
+ // verify required parameter 'packageName' is not null or undefined
1738
+ (0, common_1.assertParamExists)('getMaterialization', 'packageName', packageName);
1739
+ // verify required parameter 'materializationId' is not null or undefined
1740
+ (0, common_1.assertParamExists)('getMaterialization', 'materializationId', materializationId);
1741
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/materializations/{materializationId}`
1742
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
1743
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)))
1744
+ .replace(`{${"materializationId"}}`, encodeURIComponent(String(materializationId)));
1745
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1746
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1747
+ let baseOptions;
1748
+ if (configuration) {
1749
+ baseOptions = configuration.baseOptions;
1750
+ }
1751
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1752
+ const localVarHeaderParameter = {};
1753
+ const localVarQueryParameter = {};
1754
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1755
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1756
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1757
+ return {
1758
+ url: (0, common_1.toPathString)(localVarUrlObj),
1759
+ options: localVarRequestOptions,
1760
+ };
1761
+ },
1762
+ /**
1763
+ * Returns the materialization history for the package, ordered by most recent first.
1764
+ * @summary List materializations for a package
1765
+ * @param {string} projectName Name of the project
1766
+ * @param {string} packageName Name of the package
1767
+ * @param {number} [limit] Maximum number of materializations to return
1768
+ * @param {number} [offset] Number of materializations to skip
1769
+ * @param {*} [options] Override http request option.
1770
+ * @throws {RequiredError}
1771
+ */
1772
+ listMaterializations: async (projectName, packageName, limit, offset, options = {}) => {
1773
+ // verify required parameter 'projectName' is not null or undefined
1774
+ (0, common_1.assertParamExists)('listMaterializations', 'projectName', projectName);
1775
+ // verify required parameter 'packageName' is not null or undefined
1776
+ (0, common_1.assertParamExists)('listMaterializations', 'packageName', packageName);
1777
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/materializations`
1778
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
1779
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)));
1780
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1781
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1782
+ let baseOptions;
1783
+ if (configuration) {
1784
+ baseOptions = configuration.baseOptions;
1785
+ }
1786
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1787
+ const localVarHeaderParameter = {};
1788
+ const localVarQueryParameter = {};
1789
+ if (limit !== undefined) {
1790
+ localVarQueryParameter['limit'] = limit;
1791
+ }
1792
+ if (offset !== undefined) {
1793
+ localVarQueryParameter['offset'] = offset;
1794
+ }
1795
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1796
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1797
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1798
+ return {
1799
+ url: (0, common_1.toPathString)(localVarUrlObj),
1800
+ options: localVarRequestOptions,
1801
+ };
1802
+ },
1803
+ /**
1804
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
1805
+ * @summary Perform an action on a materialization
1806
+ * @param {string} projectName Name of the project
1807
+ * @param {string} packageName Name of the package
1808
+ * @param {string} materializationId ID of the materialization
1809
+ * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1810
+ * @param {*} [options] Override http request option.
1811
+ * @throws {RequiredError}
1812
+ */
1813
+ materializationAction: async (projectName, packageName, materializationId, action, options = {}) => {
1814
+ // verify required parameter 'projectName' is not null or undefined
1815
+ (0, common_1.assertParamExists)('materializationAction', 'projectName', projectName);
1816
+ // verify required parameter 'packageName' is not null or undefined
1817
+ (0, common_1.assertParamExists)('materializationAction', 'packageName', packageName);
1818
+ // verify required parameter 'materializationId' is not null or undefined
1819
+ (0, common_1.assertParamExists)('materializationAction', 'materializationId', materializationId);
1820
+ // verify required parameter 'action' is not null or undefined
1821
+ (0, common_1.assertParamExists)('materializationAction', 'action', action);
1822
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/materializations/{materializationId}`
1823
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
1824
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)))
1825
+ .replace(`{${"materializationId"}}`, encodeURIComponent(String(materializationId)));
1826
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1827
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1828
+ let baseOptions;
1829
+ if (configuration) {
1830
+ baseOptions = configuration.baseOptions;
1831
+ }
1832
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1833
+ const localVarHeaderParameter = {};
1834
+ const localVarQueryParameter = {};
1835
+ if (action !== undefined) {
1836
+ localVarQueryParameter['action'] = action;
1837
+ }
1838
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1839
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1840
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1841
+ return {
1842
+ url: (0, common_1.toPathString)(localVarUrlObj),
1843
+ options: localVarRequestOptions,
1844
+ };
1845
+ },
1846
+ };
1847
+ };
1848
+ exports.MaterializationsApiAxiosParamCreator = MaterializationsApiAxiosParamCreator;
1849
+ /**
1850
+ * MaterializationsApi - functional programming interface
1851
+ * @export
1852
+ */
1853
+ const MaterializationsApiFp = function (configuration) {
1854
+ const localVarAxiosParamCreator = (0, exports.MaterializationsApiAxiosParamCreator)(configuration);
1855
+ return {
1856
+ /**
1857
+ * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
1858
+ * @summary Create a materialization
1859
+ * @param {string} projectName Name of the project
1860
+ * @param {string} packageName Name of the package
1861
+ * @param {CreateMaterializationRequest} [createMaterializationRequest]
1862
+ * @param {*} [options] Override http request option.
1863
+ * @throws {RequiredError}
1864
+ */
1865
+ async createMaterialization(projectName, packageName, createMaterializationRequest, options) {
1866
+ var _a, _b, _c;
1867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMaterialization(projectName, packageName, createMaterializationRequest, options);
1868
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1869
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MaterializationsApi.createMaterialization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1870
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1871
+ },
1872
+ /**
1873
+ * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
1874
+ * @summary Delete a materialization
1875
+ * @param {string} projectName Name of the project
1876
+ * @param {string} packageName Name of the package
1877
+ * @param {string} materializationId ID of the materialization
1878
+ * @param {*} [options] Override http request option.
1879
+ * @throws {RequiredError}
1880
+ */
1881
+ async deleteMaterialization(projectName, packageName, materializationId, options) {
1882
+ var _a, _b, _c;
1883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMaterialization(projectName, packageName, materializationId, options);
1884
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1885
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MaterializationsApi.deleteMaterialization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1886
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1887
+ },
1888
+ /**
1889
+ *
1890
+ * @summary Get a specific materialization
1891
+ * @param {string} projectName Name of the project
1892
+ * @param {string} packageName Name of the package
1893
+ * @param {string} materializationId ID of the materialization
1894
+ * @param {*} [options] Override http request option.
1895
+ * @throws {RequiredError}
1896
+ */
1897
+ async getMaterialization(projectName, packageName, materializationId, options) {
1898
+ var _a, _b, _c;
1899
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMaterialization(projectName, packageName, materializationId, options);
1900
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1901
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MaterializationsApi.getMaterialization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1902
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1903
+ },
1904
+ /**
1905
+ * Returns the materialization history for the package, ordered by most recent first.
1906
+ * @summary List materializations for a package
1907
+ * @param {string} projectName Name of the project
1908
+ * @param {string} packageName Name of the package
1909
+ * @param {number} [limit] Maximum number of materializations to return
1910
+ * @param {number} [offset] Number of materializations to skip
1911
+ * @param {*} [options] Override http request option.
1912
+ * @throws {RequiredError}
1913
+ */
1914
+ async listMaterializations(projectName, packageName, limit, offset, options) {
1915
+ var _a, _b, _c;
1916
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMaterializations(projectName, packageName, limit, offset, options);
1917
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1918
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MaterializationsApi.listMaterializations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1919
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1920
+ },
1921
+ /**
1922
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
1923
+ * @summary Perform an action on a materialization
1924
+ * @param {string} projectName Name of the project
1925
+ * @param {string} packageName Name of the package
1926
+ * @param {string} materializationId ID of the materialization
1927
+ * @param {MaterializationActionActionEnum} action Action to perform on the materialization
1928
+ * @param {*} [options] Override http request option.
1929
+ * @throws {RequiredError}
1930
+ */
1931
+ async materializationAction(projectName, packageName, materializationId, action, options) {
1932
+ var _a, _b, _c;
1933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.materializationAction(projectName, packageName, materializationId, action, options);
1934
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1935
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MaterializationsApi.materializationAction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1936
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1937
+ },
1938
+ };
1939
+ };
1940
+ exports.MaterializationsApiFp = MaterializationsApiFp;
1941
+ /**
1942
+ * MaterializationsApi - factory interface
1943
+ * @export
1944
+ */
1945
+ const MaterializationsApiFactory = function (configuration, basePath, axios) {
1946
+ const localVarFp = (0, exports.MaterializationsApiFp)(configuration);
1947
+ return {
1948
+ /**
1949
+ * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
1950
+ * @summary Create a materialization
1951
+ * @param {string} projectName Name of the project
1952
+ * @param {string} packageName Name of the package
1953
+ * @param {CreateMaterializationRequest} [createMaterializationRequest]
1954
+ * @param {*} [options] Override http request option.
1955
+ * @throws {RequiredError}
1956
+ */
1957
+ createMaterialization(projectName, packageName, createMaterializationRequest, options) {
1958
+ return localVarFp.createMaterialization(projectName, packageName, createMaterializationRequest, options).then((request) => request(axios, basePath));
1959
+ },
1960
+ /**
1961
+ * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
1962
+ * @summary Delete a materialization
1963
+ * @param {string} projectName Name of the project
1964
+ * @param {string} packageName Name of the package
1965
+ * @param {string} materializationId ID of the materialization
1966
+ * @param {*} [options] Override http request option.
1967
+ * @throws {RequiredError}
1968
+ */
1969
+ deleteMaterialization(projectName, packageName, materializationId, options) {
1970
+ return localVarFp.deleteMaterialization(projectName, packageName, materializationId, options).then((request) => request(axios, basePath));
1971
+ },
1972
+ /**
1973
+ *
1974
+ * @summary Get a specific materialization
1975
+ * @param {string} projectName Name of the project
1976
+ * @param {string} packageName Name of the package
1977
+ * @param {string} materializationId ID of the materialization
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ */
1981
+ getMaterialization(projectName, packageName, materializationId, options) {
1982
+ return localVarFp.getMaterialization(projectName, packageName, materializationId, options).then((request) => request(axios, basePath));
1983
+ },
1984
+ /**
1985
+ * Returns the materialization history for the package, ordered by most recent first.
1986
+ * @summary List materializations for a package
1987
+ * @param {string} projectName Name of the project
1988
+ * @param {string} packageName Name of the package
1989
+ * @param {number} [limit] Maximum number of materializations to return
1990
+ * @param {number} [offset] Number of materializations to skip
1991
+ * @param {*} [options] Override http request option.
1992
+ * @throws {RequiredError}
1993
+ */
1994
+ listMaterializations(projectName, packageName, limit, offset, options) {
1995
+ return localVarFp.listMaterializations(projectName, packageName, limit, offset, options).then((request) => request(axios, basePath));
1996
+ },
1997
+ /**
1998
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
1999
+ * @summary Perform an action on a materialization
2000
+ * @param {string} projectName Name of the project
2001
+ * @param {string} packageName Name of the package
2002
+ * @param {string} materializationId ID of the materialization
2003
+ * @param {MaterializationActionActionEnum} action Action to perform on the materialization
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ */
2007
+ materializationAction(projectName, packageName, materializationId, action, options) {
2008
+ return localVarFp.materializationAction(projectName, packageName, materializationId, action, options).then((request) => request(axios, basePath));
2009
+ },
2010
+ };
2011
+ };
2012
+ exports.MaterializationsApiFactory = MaterializationsApiFactory;
2013
+ /**
2014
+ * MaterializationsApi - object-oriented interface
2015
+ * @export
2016
+ * @class MaterializationsApi
2017
+ * @extends {BaseAPI}
2018
+ */
2019
+ class MaterializationsApi extends base_1.BaseAPI {
2020
+ /**
2021
+ * Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
2022
+ * @summary Create a materialization
2023
+ * @param {string} projectName Name of the project
2024
+ * @param {string} packageName Name of the package
2025
+ * @param {CreateMaterializationRequest} [createMaterializationRequest]
2026
+ * @param {*} [options] Override http request option.
2027
+ * @throws {RequiredError}
2028
+ * @memberof MaterializationsApi
2029
+ */
2030
+ createMaterialization(projectName, packageName, createMaterializationRequest, options) {
2031
+ return (0, exports.MaterializationsApiFp)(this.configuration).createMaterialization(projectName, packageName, createMaterializationRequest, options).then((request) => request(this.axios, this.basePath));
2032
+ }
2033
+ /**
2034
+ * Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
2035
+ * @summary Delete a materialization
2036
+ * @param {string} projectName Name of the project
2037
+ * @param {string} packageName Name of the package
2038
+ * @param {string} materializationId ID of the materialization
2039
+ * @param {*} [options] Override http request option.
2040
+ * @throws {RequiredError}
2041
+ * @memberof MaterializationsApi
2042
+ */
2043
+ deleteMaterialization(projectName, packageName, materializationId, options) {
2044
+ return (0, exports.MaterializationsApiFp)(this.configuration).deleteMaterialization(projectName, packageName, materializationId, options).then((request) => request(this.axios, this.basePath));
2045
+ }
2046
+ /**
2047
+ *
2048
+ * @summary Get a specific materialization
2049
+ * @param {string} projectName Name of the project
2050
+ * @param {string} packageName Name of the package
2051
+ * @param {string} materializationId ID of the materialization
2052
+ * @param {*} [options] Override http request option.
2053
+ * @throws {RequiredError}
2054
+ * @memberof MaterializationsApi
2055
+ */
2056
+ getMaterialization(projectName, packageName, materializationId, options) {
2057
+ return (0, exports.MaterializationsApiFp)(this.configuration).getMaterialization(projectName, packageName, materializationId, options).then((request) => request(this.axios, this.basePath));
2058
+ }
2059
+ /**
2060
+ * Returns the materialization history for the package, ordered by most recent first.
2061
+ * @summary List materializations for a package
2062
+ * @param {string} projectName Name of the project
2063
+ * @param {string} packageName Name of the package
2064
+ * @param {number} [limit] Maximum number of materializations to return
2065
+ * @param {number} [offset] Number of materializations to skip
2066
+ * @param {*} [options] Override http request option.
2067
+ * @throws {RequiredError}
2068
+ * @memberof MaterializationsApi
2069
+ */
2070
+ listMaterializations(projectName, packageName, limit, offset, options) {
2071
+ return (0, exports.MaterializationsApiFp)(this.configuration).listMaterializations(projectName, packageName, limit, offset, options).then((request) => request(this.axios, this.basePath));
2072
+ }
2073
+ /**
2074
+ * Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
2075
+ * @summary Perform an action on a materialization
2076
+ * @param {string} projectName Name of the project
2077
+ * @param {string} packageName Name of the package
2078
+ * @param {string} materializationId ID of the materialization
2079
+ * @param {MaterializationActionActionEnum} action Action to perform on the materialization
2080
+ * @param {*} [options] Override http request option.
2081
+ * @throws {RequiredError}
2082
+ * @memberof MaterializationsApi
2083
+ */
2084
+ materializationAction(projectName, packageName, materializationId, action, options) {
2085
+ return (0, exports.MaterializationsApiFp)(this.configuration).materializationAction(projectName, packageName, materializationId, action, options).then((request) => request(this.axios, this.basePath));
2086
+ }
2087
+ }
2088
+ exports.MaterializationsApi = MaterializationsApi;
2089
+ /**
2090
+ * @export
2091
+ */
2092
+ exports.MaterializationActionActionEnum = {
2093
+ Start: 'start',
2094
+ Stop: 'stop'
2095
+ };
2096
+ /**
2097
+ * ModelsApi - axios parameter creator
2098
+ * @export
2099
+ */
2100
+ const ModelsApiAxiosParamCreator = function (configuration) {
2101
+ return {
2102
+ /**
2103
+ * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
2104
+ * @summary Compile Malloy source code
2105
+ * @param {string} projectName Name of the project
2106
+ * @param {string} packageName Name of the package
2107
+ * @param {string} path Path to the model within the package (used to resolve relative imports)
2108
+ * @param {CompileRequest} compileRequest
2109
+ * @param {*} [options] Override http request option.
2110
+ * @throws {RequiredError}
2111
+ */
2112
+ compileModelSource: async (projectName, packageName, path, compileRequest, options = {}) => {
2113
+ // verify required parameter 'projectName' is not null or undefined
2114
+ (0, common_1.assertParamExists)('compileModelSource', 'projectName', projectName);
2115
+ // verify required parameter 'packageName' is not null or undefined
2116
+ (0, common_1.assertParamExists)('compileModelSource', 'packageName', packageName);
2117
+ // verify required parameter 'path' is not null or undefined
2118
+ (0, common_1.assertParamExists)('compileModelSource', 'path', path);
2119
+ // verify required parameter 'compileRequest' is not null or undefined
2120
+ (0, common_1.assertParamExists)('compileModelSource', 'compileRequest', compileRequest);
2121
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/models/{path}/compile`
2122
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
2123
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)))
2124
+ .replace(`{${"path"}}`, encodeURIComponent(String(path)));
2125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2126
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2127
+ let baseOptions;
2128
+ if (configuration) {
2129
+ baseOptions = configuration.baseOptions;
2130
+ }
2131
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2132
+ const localVarHeaderParameter = {};
2133
+ const localVarQueryParameter = {};
2134
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2136
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2137
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2138
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(compileRequest, localVarRequestOptions, configuration);
2139
+ return {
2140
+ url: (0, common_1.toPathString)(localVarUrlObj),
2141
+ options: localVarRequestOptions,
2142
+ };
2143
+ },
2144
+ /**
2145
+ * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
2146
+ * @summary Execute Malloy query
2147
+ * @param {string} projectName Name of the project
2148
+ * @param {string} packageName Name of the package
2149
+ * @param {string} path Path to the model within the package
2150
+ * @param {QueryRequest} queryRequest
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ executeQueryModel: async (projectName, packageName, path, queryRequest, options = {}) => {
2155
+ // verify required parameter 'projectName' is not null or undefined
2156
+ (0, common_1.assertParamExists)('executeQueryModel', 'projectName', projectName);
2157
+ // verify required parameter 'packageName' is not null or undefined
2158
+ (0, common_1.assertParamExists)('executeQueryModel', 'packageName', packageName);
2159
+ // verify required parameter 'path' is not null or undefined
2160
+ (0, common_1.assertParamExists)('executeQueryModel', 'path', path);
2161
+ // verify required parameter 'queryRequest' is not null or undefined
2162
+ (0, common_1.assertParamExists)('executeQueryModel', 'queryRequest', queryRequest);
2163
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/models/{path}/query`
2164
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
2165
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)))
2166
+ .replace(`{${"path"}}`, encodeURIComponent(String(path)));
2167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2168
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2169
+ let baseOptions;
2170
+ if (configuration) {
2171
+ baseOptions = configuration.baseOptions;
2172
+ }
2173
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1300
2174
  const localVarHeaderParameter = {};
1301
2175
  const localVarQueryParameter = {};
1302
2176
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1397,6 +2271,23 @@ exports.ModelsApiAxiosParamCreator = ModelsApiAxiosParamCreator;
1397
2271
  const ModelsApiFp = function (configuration) {
1398
2272
  const localVarAxiosParamCreator = (0, exports.ModelsApiAxiosParamCreator)(configuration);
1399
2273
  return {
2274
+ /**
2275
+ * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
2276
+ * @summary Compile Malloy source code
2277
+ * @param {string} projectName Name of the project
2278
+ * @param {string} packageName Name of the package
2279
+ * @param {string} path Path to the model within the package (used to resolve relative imports)
2280
+ * @param {CompileRequest} compileRequest
2281
+ * @param {*} [options] Override http request option.
2282
+ * @throws {RequiredError}
2283
+ */
2284
+ async compileModelSource(projectName, packageName, path, compileRequest, options) {
2285
+ var _a, _b, _c;
2286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.compileModelSource(projectName, packageName, path, compileRequest, options);
2287
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2288
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ModelsApi.compileModelSource']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2289
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2290
+ },
1400
2291
  /**
1401
2292
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
1402
2293
  * @summary Execute Malloy query
@@ -1457,6 +2348,19 @@ exports.ModelsApiFp = ModelsApiFp;
1457
2348
  const ModelsApiFactory = function (configuration, basePath, axios) {
1458
2349
  const localVarFp = (0, exports.ModelsApiFp)(configuration);
1459
2350
  return {
2351
+ /**
2352
+ * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
2353
+ * @summary Compile Malloy source code
2354
+ * @param {string} projectName Name of the project
2355
+ * @param {string} packageName Name of the package
2356
+ * @param {string} path Path to the model within the package (used to resolve relative imports)
2357
+ * @param {CompileRequest} compileRequest
2358
+ * @param {*} [options] Override http request option.
2359
+ * @throws {RequiredError}
2360
+ */
2361
+ compileModelSource(projectName, packageName, path, compileRequest, options) {
2362
+ return localVarFp.compileModelSource(projectName, packageName, path, compileRequest, options).then((request) => request(axios, basePath));
2363
+ },
1460
2364
  /**
1461
2365
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
1462
2366
  * @summary Execute Malloy query
@@ -1505,6 +2409,20 @@ exports.ModelsApiFactory = ModelsApiFactory;
1505
2409
  * @extends {BaseAPI}
1506
2410
  */
1507
2411
  class ModelsApi extends base_1.BaseAPI {
2412
+ /**
2413
+ * Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
2414
+ * @summary Compile Malloy source code
2415
+ * @param {string} projectName Name of the project
2416
+ * @param {string} packageName Name of the package
2417
+ * @param {string} path Path to the model within the package (used to resolve relative imports)
2418
+ * @param {CompileRequest} compileRequest
2419
+ * @param {*} [options] Override http request option.
2420
+ * @throws {RequiredError}
2421
+ * @memberof ModelsApi
2422
+ */
2423
+ compileModelSource(projectName, packageName, path, compileRequest, options) {
2424
+ return (0, exports.ModelsApiFp)(this.configuration).compileModelSource(projectName, packageName, path, compileRequest, options).then((request) => request(this.axios, this.basePath));
2425
+ }
1508
2426
  /**
1509
2427
  * Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
1510
2428
  * @summary Execute Malloy query
@@ -1555,8 +2473,61 @@ exports.ModelsApi = ModelsApi;
1555
2473
  const NotebooksApiAxiosParamCreator = function (configuration) {
1556
2474
  return {
1557
2475
  /**
1558
- * Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
1559
- * @summary Get compiled Malloy notebook
2476
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2477
+ * @summary Execute a specific notebook cell
2478
+ * @param {string} projectName Name of the project
2479
+ * @param {string} packageName Name of the package
2480
+ * @param {string} path Path to notebook within the package
2481
+ * @param {number} cellIndex Index of the cell to execute (0-based)
2482
+ * @param {string} [versionId] Version identifier for the package
2483
+ * @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
2484
+ * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
2485
+ * @param {*} [options] Override http request option.
2486
+ * @throws {RequiredError}
2487
+ */
2488
+ executeNotebookCell: async (projectName, packageName, path, cellIndex, versionId, filterParams, bypassFilters, options = {}) => {
2489
+ // verify required parameter 'projectName' is not null or undefined
2490
+ (0, common_1.assertParamExists)('executeNotebookCell', 'projectName', projectName);
2491
+ // verify required parameter 'packageName' is not null or undefined
2492
+ (0, common_1.assertParamExists)('executeNotebookCell', 'packageName', packageName);
2493
+ // verify required parameter 'path' is not null or undefined
2494
+ (0, common_1.assertParamExists)('executeNotebookCell', 'path', path);
2495
+ // verify required parameter 'cellIndex' is not null or undefined
2496
+ (0, common_1.assertParamExists)('executeNotebookCell', 'cellIndex', cellIndex);
2497
+ const localVarPath = `/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}`
2498
+ .replace(`{${"projectName"}}`, encodeURIComponent(String(projectName)))
2499
+ .replace(`{${"packageName"}}`, encodeURIComponent(String(packageName)))
2500
+ .replace(`{${"path"}}`, encodeURIComponent(String(path)))
2501
+ .replace(`{${"cellIndex"}}`, encodeURIComponent(String(cellIndex)));
2502
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2503
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2504
+ let baseOptions;
2505
+ if (configuration) {
2506
+ baseOptions = configuration.baseOptions;
2507
+ }
2508
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2509
+ const localVarHeaderParameter = {};
2510
+ const localVarQueryParameter = {};
2511
+ if (versionId !== undefined) {
2512
+ localVarQueryParameter['versionId'] = versionId;
2513
+ }
2514
+ if (filterParams !== undefined) {
2515
+ localVarQueryParameter['filter_params'] = filterParams;
2516
+ }
2517
+ if (bypassFilters !== undefined) {
2518
+ localVarQueryParameter['bypass_filters'] = bypassFilters;
2519
+ }
2520
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2521
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2522
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2523
+ return {
2524
+ url: (0, common_1.toPathString)(localVarUrlObj),
2525
+ options: localVarRequestOptions,
2526
+ };
2527
+ },
2528
+ /**
2529
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
2530
+ * @summary Get Malloy notebook cells
1560
2531
  * @param {string} projectName Name of the project
1561
2532
  * @param {string} packageName Name of the package
1562
2533
  * @param {string} path Path to notebook within the package.
@@ -1643,8 +2614,28 @@ const NotebooksApiFp = function (configuration) {
1643
2614
  const localVarAxiosParamCreator = (0, exports.NotebooksApiAxiosParamCreator)(configuration);
1644
2615
  return {
1645
2616
  /**
1646
- * Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
1647
- * @summary Get compiled Malloy notebook
2617
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2618
+ * @summary Execute a specific notebook cell
2619
+ * @param {string} projectName Name of the project
2620
+ * @param {string} packageName Name of the package
2621
+ * @param {string} path Path to notebook within the package
2622
+ * @param {number} cellIndex Index of the cell to execute (0-based)
2623
+ * @param {string} [versionId] Version identifier for the package
2624
+ * @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
2625
+ * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
2626
+ * @param {*} [options] Override http request option.
2627
+ * @throws {RequiredError}
2628
+ */
2629
+ async executeNotebookCell(projectName, packageName, path, cellIndex, versionId, filterParams, bypassFilters, options) {
2630
+ var _a, _b, _c;
2631
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeNotebookCell(projectName, packageName, path, cellIndex, versionId, filterParams, bypassFilters, options);
2632
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2633
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NotebooksApi.executeNotebookCell']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2634
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2635
+ },
2636
+ /**
2637
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
2638
+ * @summary Get Malloy notebook cells
1648
2639
  * @param {string} projectName Name of the project
1649
2640
  * @param {string} packageName Name of the package
1650
2641
  * @param {string} path Path to notebook within the package.
@@ -1686,8 +2677,24 @@ const NotebooksApiFactory = function (configuration, basePath, axios) {
1686
2677
  const localVarFp = (0, exports.NotebooksApiFp)(configuration);
1687
2678
  return {
1688
2679
  /**
1689
- * Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
1690
- * @summary Get compiled Malloy notebook
2680
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2681
+ * @summary Execute a specific notebook cell
2682
+ * @param {string} projectName Name of the project
2683
+ * @param {string} packageName Name of the package
2684
+ * @param {string} path Path to notebook within the package
2685
+ * @param {number} cellIndex Index of the cell to execute (0-based)
2686
+ * @param {string} [versionId] Version identifier for the package
2687
+ * @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
2688
+ * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
2689
+ * @param {*} [options] Override http request option.
2690
+ * @throws {RequiredError}
2691
+ */
2692
+ executeNotebookCell(projectName, packageName, path, cellIndex, versionId, filterParams, bypassFilters, options) {
2693
+ return localVarFp.executeNotebookCell(projectName, packageName, path, cellIndex, versionId, filterParams, bypassFilters, options).then((request) => request(axios, basePath));
2694
+ },
2695
+ /**
2696
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
2697
+ * @summary Get Malloy notebook cells
1691
2698
  * @param {string} projectName Name of the project
1692
2699
  * @param {string} packageName Name of the package
1693
2700
  * @param {string} path Path to notebook within the package.
@@ -1721,8 +2728,25 @@ exports.NotebooksApiFactory = NotebooksApiFactory;
1721
2728
  */
1722
2729
  class NotebooksApi extends base_1.BaseAPI {
1723
2730
  /**
1724
- * Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
1725
- * @summary Get compiled Malloy notebook
2731
+ * Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
2732
+ * @summary Execute a specific notebook cell
2733
+ * @param {string} projectName Name of the project
2734
+ * @param {string} packageName Name of the package
2735
+ * @param {string} path Path to notebook within the package
2736
+ * @param {number} cellIndex Index of the cell to execute (0-based)
2737
+ * @param {string} [versionId] Version identifier for the package
2738
+ * @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
2739
+ * @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
2740
+ * @param {*} [options] Override http request option.
2741
+ * @throws {RequiredError}
2742
+ * @memberof NotebooksApi
2743
+ */
2744
+ executeNotebookCell(projectName, packageName, path, cellIndex, versionId, filterParams, bypassFilters, options) {
2745
+ return (0, exports.NotebooksApiFp)(this.configuration).executeNotebookCell(projectName, packageName, path, cellIndex, versionId, filterParams, bypassFilters, options).then((request) => request(this.axios, this.basePath));
2746
+ }
2747
+ /**
2748
+ * Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
2749
+ * @summary Get Malloy notebook cells
1726
2750
  * @param {string} projectName Name of the project
1727
2751
  * @param {string} packageName Name of the package
1728
2752
  * @param {string} path Path to notebook within the package.
@@ -1749,6 +2773,13 @@ class NotebooksApi extends base_1.BaseAPI {
1749
2773
  }
1750
2774
  }
1751
2775
  exports.NotebooksApi = NotebooksApi;
2776
+ /**
2777
+ * @export
2778
+ */
2779
+ exports.ExecuteNotebookCellBypassFiltersEnum = {
2780
+ True: 'true',
2781
+ False: 'false'
2782
+ };
1752
2783
  /**
1753
2784
  * PackagesApi - axios parameter creator
1754
2785
  * @export
@@ -1760,10 +2791,11 @@ const PackagesApiAxiosParamCreator = function (configuration) {
1760
2791
  * @summary Create a new package
1761
2792
  * @param {string} projectName Name of the project
1762
2793
  * @param {Package} _package
2794
+ * @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
1763
2795
  * @param {*} [options] Override http request option.
1764
2796
  * @throws {RequiredError}
1765
2797
  */
1766
- createPackage: async (projectName, _package, options = {}) => {
2798
+ createPackage: async (projectName, _package, autoLoadManifest, options = {}) => {
1767
2799
  // verify required parameter 'projectName' is not null or undefined
1768
2800
  (0, common_1.assertParamExists)('createPackage', 'projectName', projectName);
1769
2801
  // verify required parameter '_package' is not null or undefined
@@ -1779,6 +2811,9 @@ const PackagesApiAxiosParamCreator = function (configuration) {
1779
2811
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1780
2812
  const localVarHeaderParameter = {};
1781
2813
  const localVarQueryParameter = {};
2814
+ if (autoLoadManifest !== undefined) {
2815
+ localVarQueryParameter['autoLoadManifest'] = autoLoadManifest;
2816
+ }
1782
2817
  localVarHeaderParameter['Content-Type'] = 'application/json';
1783
2818
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1784
2819
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1945,12 +2980,13 @@ const PackagesApiFp = function (configuration) {
1945
2980
  * @summary Create a new package
1946
2981
  * @param {string} projectName Name of the project
1947
2982
  * @param {Package} _package
2983
+ * @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
1948
2984
  * @param {*} [options] Override http request option.
1949
2985
  * @throws {RequiredError}
1950
2986
  */
1951
- async createPackage(projectName, _package, options) {
2987
+ async createPackage(projectName, _package, autoLoadManifest, options) {
1952
2988
  var _a, _b, _c;
1953
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPackage(projectName, _package, options);
2989
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPackage(projectName, _package, autoLoadManifest, options);
1954
2990
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1955
2991
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PackagesApi.createPackage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1956
2992
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2032,11 +3068,12 @@ const PackagesApiFactory = function (configuration, basePath, axios) {
2032
3068
  * @summary Create a new package
2033
3069
  * @param {string} projectName Name of the project
2034
3070
  * @param {Package} _package
3071
+ * @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
2035
3072
  * @param {*} [options] Override http request option.
2036
3073
  * @throws {RequiredError}
2037
3074
  */
2038
- createPackage(projectName, _package, options) {
2039
- return localVarFp.createPackage(projectName, _package, options).then((request) => request(axios, basePath));
3075
+ createPackage(projectName, _package, autoLoadManifest, options) {
3076
+ return localVarFp.createPackage(projectName, _package, autoLoadManifest, options).then((request) => request(axios, basePath));
2040
3077
  },
2041
3078
  /**
2042
3079
  * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
@@ -2099,12 +3136,13 @@ class PackagesApi extends base_1.BaseAPI {
2099
3136
  * @summary Create a new package
2100
3137
  * @param {string} projectName Name of the project
2101
3138
  * @param {Package} _package
3139
+ * @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
2102
3140
  * @param {*} [options] Override http request option.
2103
3141
  * @throws {RequiredError}
2104
3142
  * @memberof PackagesApi
2105
3143
  */
2106
- createPackage(projectName, _package, options) {
2107
- return (0, exports.PackagesApiFp)(this.configuration).createPackage(projectName, _package, options).then((request) => request(this.axios, this.basePath));
3144
+ createPackage(projectName, _package, autoLoadManifest, options) {
3145
+ return (0, exports.PackagesApiFp)(this.configuration).createPackage(projectName, _package, autoLoadManifest, options).then((request) => request(this.axios, this.basePath));
2108
3146
  }
2109
3147
  /**
2110
3148
  * Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.