@gooddata/api-client-tiger 10.33.0-alpha.8 → 10.33.0-alpha.81

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.
Files changed (38) hide show
  1. package/esm/__version.d.ts +1 -1
  2. package/esm/__version.d.ts.map +1 -1
  3. package/esm/__version.js +1 -1
  4. package/esm/__version.js.map +1 -1
  5. package/esm/api-client-tiger.d.ts +12630 -9311
  6. package/esm/client.d.ts +3 -3
  7. package/esm/client.d.ts.map +1 -1
  8. package/esm/client.js +2 -2
  9. package/esm/client.js.map +1 -1
  10. package/esm/export.d.ts +2 -4
  11. package/esm/export.d.ts.map +1 -1
  12. package/esm/export.js +2 -3
  13. package/esm/export.js.map +1 -1
  14. package/esm/generated/afm-rest-api/api.d.ts +376 -13
  15. package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
  16. package/esm/generated/afm-rest-api/api.js +305 -4
  17. package/esm/generated/afm-rest-api/api.js.map +1 -1
  18. package/esm/generated/afm-rest-api/openapi-spec.json +180 -2
  19. package/esm/generated/automation-json-api/api.d.ts +473 -1
  20. package/esm/generated/automation-json-api/api.d.ts.map +1 -1
  21. package/esm/generated/automation-json-api/api.js +74 -0
  22. package/esm/generated/automation-json-api/api.js.map +1 -1
  23. package/esm/generated/automation-json-api/openapi-spec.json +391 -2
  24. package/esm/generated/export-json-api/api.d.ts +1129 -1074
  25. package/esm/generated/export-json-api/api.d.ts.map +1 -1
  26. package/esm/generated/export-json-api/api.js +363 -342
  27. package/esm/generated/export-json-api/api.js.map +1 -1
  28. package/esm/generated/export-json-api/openapi-spec.json +50 -1
  29. package/esm/generated/metadata-json-api/api.d.ts +1874 -1222
  30. package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
  31. package/esm/generated/metadata-json-api/api.js +307 -46
  32. package/esm/generated/metadata-json-api/api.js.map +1 -1
  33. package/esm/generated/metadata-json-api/openapi-spec.json +8012 -7558
  34. package/esm/index.d.ts +5 -3
  35. package/esm/index.d.ts.map +1 -1
  36. package/esm/index.js +2 -1
  37. package/esm/index.js.map +1 -1
  38. package/package.json +3 -3
@@ -72,6 +72,23 @@ export const AttributeHeaderAttributeHeaderValueTypeEnum = {
72
72
  GEO_LATITUDE: "GEO_LATITUDE",
73
73
  IMAGE: "IMAGE",
74
74
  };
75
+ export const BoundedFilterGranularityEnum = {
76
+ MINUTE: "MINUTE",
77
+ HOUR: "HOUR",
78
+ DAY: "DAY",
79
+ WEEK: "WEEK",
80
+ MONTH: "MONTH",
81
+ QUARTER: "QUARTER",
82
+ YEAR: "YEAR",
83
+ MINUTE_OF_HOUR: "MINUTE_OF_HOUR",
84
+ HOUR_OF_DAY: "HOUR_OF_DAY",
85
+ DAY_OF_WEEK: "DAY_OF_WEEK",
86
+ DAY_OF_MONTH: "DAY_OF_MONTH",
87
+ DAY_OF_YEAR: "DAY_OF_YEAR",
88
+ WEEK_OF_YEAR: "WEEK_OF_YEAR",
89
+ MONTH_OF_YEAR: "MONTH_OF_YEAR",
90
+ QUARTER_OF_YEAR: "QUARTER_OF_YEAR",
91
+ };
75
92
  export const ChatHistoryInteractionUserFeedbackEnum = {
76
93
  POSITIVE: "POSITIVE",
77
94
  NEGATIVE: "NEGATIVE",
@@ -903,7 +920,7 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
903
920
  * @summary AFM explain resource.
904
921
  * @param {string} workspaceId Workspace identifier
905
922
  * @param {AfmExecution} afmExecution
906
- * @param {'MAQL' | 'GRPC_MODEL' | 'GRPC_MODEL_SVG' | 'WDF' | 'QT' | 'QT_SVG' | 'OPT_QT' | 'OPT_QT_SVG' | 'SQL' | 'SETTINGS'} [explainType] Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `SETTINGS` - Settings used to execute explain request
923
+ * @param {'MAQL' | 'GRPC_MODEL' | 'GRPC_MODEL_SVG' | 'WDF' | 'QT' | 'QT_SVG' | 'OPT_QT' | 'OPT_QT_SVG' | 'SQL' | 'SETTINGS' | 'COMPRESSED_SQL'} [explainType] Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `SETTINGS` - Settings used to execute explain request
907
924
  * @param {*} [options] Override http request option.
908
925
  * @throws {RequiredError}
909
926
  */
@@ -1128,6 +1145,38 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
1128
1145
  options: localVarRequestOptions,
1129
1146
  };
1130
1147
  },
1148
+ /**
1149
+ * Returns a list of available LLM Endpoints
1150
+ * @summary Get Active LLM Endpoints for this workspace
1151
+ * @param {string} workspaceId Workspace identifier
1152
+ * @param {*} [options] Override http request option.
1153
+ * @throws {RequiredError}
1154
+ */
1155
+ resolveLlmEndpoints: async (workspaceId, options = {}) => {
1156
+ // verify required parameter 'workspaceId' is not null or undefined
1157
+ assertParamExists("resolveLlmEndpoints", "workspaceId", workspaceId);
1158
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/ai/resolveLlmEndpoints`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1161
+ let baseOptions;
1162
+ if (configuration) {
1163
+ baseOptions = configuration.baseOptions;
1164
+ }
1165
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1166
+ const localVarHeaderParameter = {};
1167
+ const localVarQueryParameter = {};
1168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1170
+ localVarRequestOptions.headers = {
1171
+ ...localVarHeaderParameter,
1172
+ ...headersFromBaseOptions,
1173
+ ...options.headers,
1174
+ };
1175
+ return {
1176
+ url: toPathString(localVarUrlObj),
1177
+ options: localVarRequestOptions,
1178
+ };
1179
+ },
1131
1180
  /**
1132
1181
  * The resource provides execution result\'s metadata as AFM and resultSpec used in execution request and an executionResponse
1133
1182
  * @summary Get a single execution result\'s metadata.
@@ -1218,6 +1267,44 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
1218
1267
  options: localVarRequestOptions,
1219
1268
  };
1220
1269
  },
1270
+ /**
1271
+ * Validates LLM endpointw with provided parameters.
1272
+ * @summary Validate LLM Endpoint
1273
+ * @param {ValidateLLMEndpointRequest} validateLLMEndpointRequest
1274
+ * @param {*} [options] Override http request option.
1275
+ * @throws {RequiredError}
1276
+ */
1277
+ validateLLMEndpoint: async (validateLLMEndpointRequest, options = {}) => {
1278
+ // verify required parameter 'validateLLMEndpointRequest' is not null or undefined
1279
+ assertParamExists("validateLLMEndpoint", "validateLLMEndpointRequest", validateLLMEndpointRequest);
1280
+ const localVarPath = `/api/v1/actions/ai/validateLlmEndpoint`;
1281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1283
+ let baseOptions;
1284
+ if (configuration) {
1285
+ baseOptions = configuration.baseOptions;
1286
+ }
1287
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1288
+ const localVarHeaderParameter = {};
1289
+ const localVarQueryParameter = {};
1290
+ localVarHeaderParameter["Content-Type"] = "application/json";
1291
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1292
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1293
+ localVarRequestOptions.headers = {
1294
+ ...localVarHeaderParameter,
1295
+ ...headersFromBaseOptions,
1296
+ ...options.headers,
1297
+ };
1298
+ const needsSerialization = typeof validateLLMEndpointRequest !== "string" ||
1299
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
1300
+ localVarRequestOptions.data = needsSerialization
1301
+ ? JSON.stringify(validateLLMEndpointRequest !== undefined ? validateLLMEndpointRequest : {})
1302
+ : validateLLMEndpointRequest || "";
1303
+ return {
1304
+ url: toPathString(localVarUrlObj),
1305
+ options: localVarRequestOptions,
1306
+ };
1307
+ },
1221
1308
  };
1222
1309
  };
1223
1310
  /**
@@ -1412,7 +1499,7 @@ export const ActionsApiFp = function (configuration) {
1412
1499
  * @summary AFM explain resource.
1413
1500
  * @param {string} workspaceId Workspace identifier
1414
1501
  * @param {AfmExecution} afmExecution
1415
- * @param {'MAQL' | 'GRPC_MODEL' | 'GRPC_MODEL_SVG' | 'WDF' | 'QT' | 'QT_SVG' | 'OPT_QT' | 'OPT_QT_SVG' | 'SQL' | 'SETTINGS'} [explainType] Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `SETTINGS` - Settings used to execute explain request
1502
+ * @param {'MAQL' | 'GRPC_MODEL' | 'GRPC_MODEL_SVG' | 'WDF' | 'QT' | 'QT_SVG' | 'OPT_QT' | 'OPT_QT_SVG' | 'SQL' | 'SETTINGS' | 'COMPRESSED_SQL'} [explainType] Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `SETTINGS` - Settings used to execute explain request
1416
1503
  * @param {*} [options] Override http request option.
1417
1504
  * @throws {RequiredError}
1418
1505
  */
@@ -1475,6 +1562,17 @@ export const ActionsApiFp = function (configuration) {
1475
1562
  const localVarAxiosArgs = await localVarAxiosParamCreator.keyDriverAnalysisResult(workspaceId, resultId, offset, limit, options);
1476
1563
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1477
1564
  },
1565
+ /**
1566
+ * Returns a list of available LLM Endpoints
1567
+ * @summary Get Active LLM Endpoints for this workspace
1568
+ * @param {string} workspaceId Workspace identifier
1569
+ * @param {*} [options] Override http request option.
1570
+ * @throws {RequiredError}
1571
+ */
1572
+ async resolveLlmEndpoints(workspaceId, options) {
1573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resolveLlmEndpoints(workspaceId, options);
1574
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1575
+ },
1478
1576
  /**
1479
1577
  * The resource provides execution result\'s metadata as AFM and resultSpec used in execution request and an executionResponse
1480
1578
  * @summary Get a single execution result\'s metadata.
@@ -1503,6 +1601,17 @@ export const ActionsApiFp = function (configuration) {
1503
1601
  const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveResult(workspaceId, resultId, offset, limit, excludedTotalDimensions, xGDCCANCELTOKEN, options);
1504
1602
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1505
1603
  },
1604
+ /**
1605
+ * Validates LLM endpointw with provided parameters.
1606
+ * @summary Validate LLM Endpoint
1607
+ * @param {ValidateLLMEndpointRequest} validateLLMEndpointRequest
1608
+ * @param {*} [options] Override http request option.
1609
+ * @throws {RequiredError}
1610
+ */
1611
+ async validateLLMEndpoint(validateLLMEndpointRequest, options) {
1612
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateLLMEndpoint(validateLLMEndpointRequest, options);
1613
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1614
+ },
1506
1615
  };
1507
1616
  };
1508
1617
  /**
@@ -1740,6 +1849,18 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
1740
1849
  .keyDriverAnalysisResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
1741
1850
  .then((request) => request(axios, basePath));
1742
1851
  },
1852
+ /**
1853
+ * Returns a list of available LLM Endpoints
1854
+ * @summary Get Active LLM Endpoints for this workspace
1855
+ * @param {ActionsApiResolveLlmEndpointsRequest} requestParameters Request parameters.
1856
+ * @param {*} [options] Override http request option.
1857
+ * @throws {RequiredError}
1858
+ */
1859
+ resolveLlmEndpoints(requestParameters, options) {
1860
+ return localVarFp
1861
+ .resolveLlmEndpoints(requestParameters.workspaceId, options)
1862
+ .then((request) => request(axios, basePath));
1863
+ },
1743
1864
  /**
1744
1865
  * The resource provides execution result\'s metadata as AFM and resultSpec used in execution request and an executionResponse
1745
1866
  * @summary Get a single execution result\'s metadata.
@@ -1764,6 +1885,18 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
1764
1885
  .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, requestParameters.xGDCCANCELTOKEN, options)
1765
1886
  .then((request) => request(axios, basePath));
1766
1887
  },
1888
+ /**
1889
+ * Validates LLM endpointw with provided parameters.
1890
+ * @summary Validate LLM Endpoint
1891
+ * @param {ActionsApiValidateLLMEndpointRequest} requestParameters Request parameters.
1892
+ * @param {*} [options] Override http request option.
1893
+ * @throws {RequiredError}
1894
+ */
1895
+ validateLLMEndpoint(requestParameters, options) {
1896
+ return localVarFp
1897
+ .validateLLMEndpoint(requestParameters.validateLLMEndpointRequest, options)
1898
+ .then((request) => request(axios, basePath));
1899
+ },
1767
1900
  };
1768
1901
  };
1769
1902
  /**
@@ -2020,6 +2153,19 @@ export class ActionsApi extends BaseAPI {
2020
2153
  .keyDriverAnalysisResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
2021
2154
  .then((request) => request(this.axios, this.basePath));
2022
2155
  }
2156
+ /**
2157
+ * Returns a list of available LLM Endpoints
2158
+ * @summary Get Active LLM Endpoints for this workspace
2159
+ * @param {ActionsApiResolveLlmEndpointsRequest} requestParameters Request parameters.
2160
+ * @param {*} [options] Override http request option.
2161
+ * @throws {RequiredError}
2162
+ * @memberof ActionsApi
2163
+ */
2164
+ resolveLlmEndpoints(requestParameters, options) {
2165
+ return ActionsApiFp(this.configuration)
2166
+ .resolveLlmEndpoints(requestParameters.workspaceId, options)
2167
+ .then((request) => request(this.axios, this.basePath));
2168
+ }
2023
2169
  /**
2024
2170
  * The resource provides execution result\'s metadata as AFM and resultSpec used in execution request and an executionResponse
2025
2171
  * @summary Get a single execution result\'s metadata.
@@ -2046,6 +2192,19 @@ export class ActionsApi extends BaseAPI {
2046
2192
  .retrieveResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, requestParameters.excludedTotalDimensions, requestParameters.xGDCCANCELTOKEN, options)
2047
2193
  .then((request) => request(this.axios, this.basePath));
2048
2194
  }
2195
+ /**
2196
+ * Validates LLM endpointw with provided parameters.
2197
+ * @summary Validate LLM Endpoint
2198
+ * @param {ActionsApiValidateLLMEndpointRequest} requestParameters Request parameters.
2199
+ * @param {*} [options] Override http request option.
2200
+ * @throws {RequiredError}
2201
+ * @memberof ActionsApi
2202
+ */
2203
+ validateLLMEndpoint(requestParameters, options) {
2204
+ return ActionsApiFp(this.configuration)
2205
+ .validateLLMEndpoint(requestParameters.validateLLMEndpointRequest, options)
2206
+ .then((request) => request(this.axios, this.basePath));
2207
+ }
2049
2208
  }
2050
2209
  /**
2051
2210
  * ComputationApi - axios parameter creator
@@ -2242,7 +2401,7 @@ export const ComputationApiAxiosParamCreator = function (configuration) {
2242
2401
  * @summary AFM explain resource.
2243
2402
  * @param {string} workspaceId Workspace identifier
2244
2403
  * @param {AfmExecution} afmExecution
2245
- * @param {'MAQL' | 'GRPC_MODEL' | 'GRPC_MODEL_SVG' | 'WDF' | 'QT' | 'QT_SVG' | 'OPT_QT' | 'OPT_QT_SVG' | 'SQL' | 'SETTINGS'} [explainType] Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `SETTINGS` - Settings used to execute explain request
2404
+ * @param {'MAQL' | 'GRPC_MODEL' | 'GRPC_MODEL_SVG' | 'WDF' | 'QT' | 'QT_SVG' | 'OPT_QT' | 'OPT_QT_SVG' | 'SQL' | 'SETTINGS' | 'COMPRESSED_SQL'} [explainType] Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `SETTINGS` - Settings used to execute explain request
2246
2405
  * @param {*} [options] Override http request option.
2247
2406
  * @throws {RequiredError}
2248
2407
  */
@@ -2529,7 +2688,7 @@ export const ComputationApiFp = function (configuration) {
2529
2688
  * @summary AFM explain resource.
2530
2689
  * @param {string} workspaceId Workspace identifier
2531
2690
  * @param {AfmExecution} afmExecution
2532
- * @param {'MAQL' | 'GRPC_MODEL' | 'GRPC_MODEL_SVG' | 'WDF' | 'QT' | 'QT_SVG' | 'OPT_QT' | 'OPT_QT_SVG' | 'SQL' | 'SETTINGS'} [explainType] Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `SETTINGS` - Settings used to execute explain request
2691
+ * @param {'MAQL' | 'GRPC_MODEL' | 'GRPC_MODEL_SVG' | 'WDF' | 'QT' | 'QT_SVG' | 'OPT_QT' | 'OPT_QT_SVG' | 'SQL' | 'SETTINGS' | 'COMPRESSED_SQL'} [explainType] Requested explain type. If not specified all types are bundled in a ZIP archive. `MAQL` - MAQL Abstract Syntax Tree, execution dimensions and related info `GRPC_MODEL` - Datasets used in execution `GRPC_MODEL_SVG` - Generated SVG image of the datasets `WDF` - Workspace data filters in execution workspace context `QT` - Query Tree, created from MAQL AST using Logical Data Model, contains all information needed to generate SQL `QT_SVG` - Generated SVG image of the Query Tree `OPT_QT` - Optimized Query Tree `OPT_QT_SVG` - Generated SVG image of the Optimized Query Tree `SQL` - Final SQL to be executed `SETTINGS` - Settings used to execute explain request
2533
2692
  * @param {*} [options] Override http request option.
2534
2693
  * @throws {RequiredError}
2535
2694
  */
@@ -3323,6 +3482,76 @@ export const SmartFunctionsApiAxiosParamCreator = function (configuration) {
3323
3482
  options: localVarRequestOptions,
3324
3483
  };
3325
3484
  },
3485
+ /**
3486
+ * Returns a list of available LLM Endpoints
3487
+ * @summary Get Active LLM Endpoints for this workspace
3488
+ * @param {string} workspaceId Workspace identifier
3489
+ * @param {*} [options] Override http request option.
3490
+ * @throws {RequiredError}
3491
+ */
3492
+ resolveLlmEndpoints: async (workspaceId, options = {}) => {
3493
+ // verify required parameter 'workspaceId' is not null or undefined
3494
+ assertParamExists("resolveLlmEndpoints", "workspaceId", workspaceId);
3495
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/ai/resolveLlmEndpoints`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
3496
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3497
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3498
+ let baseOptions;
3499
+ if (configuration) {
3500
+ baseOptions = configuration.baseOptions;
3501
+ }
3502
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3503
+ const localVarHeaderParameter = {};
3504
+ const localVarQueryParameter = {};
3505
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3506
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3507
+ localVarRequestOptions.headers = {
3508
+ ...localVarHeaderParameter,
3509
+ ...headersFromBaseOptions,
3510
+ ...options.headers,
3511
+ };
3512
+ return {
3513
+ url: toPathString(localVarUrlObj),
3514
+ options: localVarRequestOptions,
3515
+ };
3516
+ },
3517
+ /**
3518
+ * Validates LLM endpointw with provided parameters.
3519
+ * @summary Validate LLM Endpoint
3520
+ * @param {ValidateLLMEndpointRequest} validateLLMEndpointRequest
3521
+ * @param {*} [options] Override http request option.
3522
+ * @throws {RequiredError}
3523
+ */
3524
+ validateLLMEndpoint: async (validateLLMEndpointRequest, options = {}) => {
3525
+ // verify required parameter 'validateLLMEndpointRequest' is not null or undefined
3526
+ assertParamExists("validateLLMEndpoint", "validateLLMEndpointRequest", validateLLMEndpointRequest);
3527
+ const localVarPath = `/api/v1/actions/ai/validateLlmEndpoint`;
3528
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3529
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3530
+ let baseOptions;
3531
+ if (configuration) {
3532
+ baseOptions = configuration.baseOptions;
3533
+ }
3534
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
3535
+ const localVarHeaderParameter = {};
3536
+ const localVarQueryParameter = {};
3537
+ localVarHeaderParameter["Content-Type"] = "application/json";
3538
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3539
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3540
+ localVarRequestOptions.headers = {
3541
+ ...localVarHeaderParameter,
3542
+ ...headersFromBaseOptions,
3543
+ ...options.headers,
3544
+ };
3545
+ const needsSerialization = typeof validateLLMEndpointRequest !== "string" ||
3546
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
3547
+ localVarRequestOptions.data = needsSerialization
3548
+ ? JSON.stringify(validateLLMEndpointRequest !== undefined ? validateLLMEndpointRequest : {})
3549
+ : validateLLMEndpointRequest || "";
3550
+ return {
3551
+ url: toPathString(localVarUrlObj),
3552
+ options: localVarRequestOptions,
3553
+ };
3554
+ },
3326
3555
  };
3327
3556
  };
3328
3557
  /**
@@ -3475,6 +3704,28 @@ export const SmartFunctionsApiFp = function (configuration) {
3475
3704
  const localVarAxiosArgs = await localVarAxiosParamCreator.forecastResult(workspaceId, resultId, offset, limit, options);
3476
3705
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3477
3706
  },
3707
+ /**
3708
+ * Returns a list of available LLM Endpoints
3709
+ * @summary Get Active LLM Endpoints for this workspace
3710
+ * @param {string} workspaceId Workspace identifier
3711
+ * @param {*} [options] Override http request option.
3712
+ * @throws {RequiredError}
3713
+ */
3714
+ async resolveLlmEndpoints(workspaceId, options) {
3715
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resolveLlmEndpoints(workspaceId, options);
3716
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3717
+ },
3718
+ /**
3719
+ * Validates LLM endpointw with provided parameters.
3720
+ * @summary Validate LLM Endpoint
3721
+ * @param {ValidateLLMEndpointRequest} validateLLMEndpointRequest
3722
+ * @param {*} [options] Override http request option.
3723
+ * @throws {RequiredError}
3724
+ */
3725
+ async validateLLMEndpoint(validateLLMEndpointRequest, options) {
3726
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateLLMEndpoint(validateLLMEndpointRequest, options);
3727
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3728
+ },
3478
3729
  };
3479
3730
  };
3480
3731
  /**
@@ -3616,6 +3867,30 @@ export const SmartFunctionsApiFactory = function (configuration, basePath, axios
3616
3867
  .forecastResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
3617
3868
  .then((request) => request(axios, basePath));
3618
3869
  },
3870
+ /**
3871
+ * Returns a list of available LLM Endpoints
3872
+ * @summary Get Active LLM Endpoints for this workspace
3873
+ * @param {SmartFunctionsApiResolveLlmEndpointsRequest} requestParameters Request parameters.
3874
+ * @param {*} [options] Override http request option.
3875
+ * @throws {RequiredError}
3876
+ */
3877
+ resolveLlmEndpoints(requestParameters, options) {
3878
+ return localVarFp
3879
+ .resolveLlmEndpoints(requestParameters.workspaceId, options)
3880
+ .then((request) => request(axios, basePath));
3881
+ },
3882
+ /**
3883
+ * Validates LLM endpointw with provided parameters.
3884
+ * @summary Validate LLM Endpoint
3885
+ * @param {SmartFunctionsApiValidateLLMEndpointRequest} requestParameters Request parameters.
3886
+ * @param {*} [options] Override http request option.
3887
+ * @throws {RequiredError}
3888
+ */
3889
+ validateLLMEndpoint(requestParameters, options) {
3890
+ return localVarFp
3891
+ .validateLLMEndpoint(requestParameters.validateLLMEndpointRequest, options)
3892
+ .then((request) => request(axios, basePath));
3893
+ },
3619
3894
  };
3620
3895
  };
3621
3896
  /**
@@ -3768,5 +4043,31 @@ export class SmartFunctionsApi extends BaseAPI {
3768
4043
  .forecastResult(requestParameters.workspaceId, requestParameters.resultId, requestParameters.offset, requestParameters.limit, options)
3769
4044
  .then((request) => request(this.axios, this.basePath));
3770
4045
  }
4046
+ /**
4047
+ * Returns a list of available LLM Endpoints
4048
+ * @summary Get Active LLM Endpoints for this workspace
4049
+ * @param {SmartFunctionsApiResolveLlmEndpointsRequest} requestParameters Request parameters.
4050
+ * @param {*} [options] Override http request option.
4051
+ * @throws {RequiredError}
4052
+ * @memberof SmartFunctionsApi
4053
+ */
4054
+ resolveLlmEndpoints(requestParameters, options) {
4055
+ return SmartFunctionsApiFp(this.configuration)
4056
+ .resolveLlmEndpoints(requestParameters.workspaceId, options)
4057
+ .then((request) => request(this.axios, this.basePath));
4058
+ }
4059
+ /**
4060
+ * Validates LLM endpointw with provided parameters.
4061
+ * @summary Validate LLM Endpoint
4062
+ * @param {SmartFunctionsApiValidateLLMEndpointRequest} requestParameters Request parameters.
4063
+ * @param {*} [options] Override http request option.
4064
+ * @throws {RequiredError}
4065
+ * @memberof SmartFunctionsApi
4066
+ */
4067
+ validateLLMEndpoint(requestParameters, options) {
4068
+ return SmartFunctionsApiFp(this.configuration)
4069
+ .validateLLMEndpoint(requestParameters.validateLLMEndpointRequest, options)
4070
+ .then((request) => request(this.axios, this.basePath));
4071
+ }
3771
4072
  }
3772
4073
  //# sourceMappingURL=api.js.map