@uipath/ixp-sdk 1.201.0-preview.115 → 1.201.0-preview.122

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 (2) hide show
  1. package/dist/index.js +29 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2194,6 +2194,8 @@ init_constants();
2194
2194
 
2195
2195
  // ../auth/src/interactive.ts
2196
2196
  init_src();
2197
+ // ../auth/src/tenantSelection.ts
2198
+ var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
2197
2199
 
2198
2200
  // ../auth/src/selectTenant.ts
2199
2201
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
@@ -2264,7 +2266,7 @@ function getSdkUserAgentToken(pkg) {
2264
2266
  var package_default = {
2265
2267
  name: "@uipath/ixp-sdk",
2266
2268
  license: "MIT",
2267
- version: "1.201.0-preview.115",
2269
+ version: "1.201.0-preview.122",
2268
2270
  description: "SDK for the UiPath IXP (Intelligent eXtraction Platform) API — projects, taxonomies, prompts, predictions, and model publishing.",
2269
2271
  repository: {
2270
2272
  type: "git",
@@ -2445,6 +2447,28 @@ async function getDeploymentTaxonomy(config, projectName, version) {
2445
2447
  }
2446
2448
  return designtimeGet(config, `/api/projects/${encodeURIComponent(projectName)}/models/${version}/taxonomy`, "Failed to get deployment taxonomy");
2447
2449
  }
2450
+ function deploymentsPath(projectName) {
2451
+ return `/api/projects/${encodeURIComponent(projectName)}/deployments`;
2452
+ }
2453
+ async function deployModel(config, projectName, options) {
2454
+ const body = {
2455
+ ModelVersion: options.modelVersion,
2456
+ FolderKey: options.folderKey
2457
+ };
2458
+ if (options.deploymentTitle !== undefined) {
2459
+ body.DeploymentTitle = options.deploymentTitle;
2460
+ }
2461
+ return designtimePost(config, deploymentsPath(projectName), body, "Failed to deploy model");
2462
+ }
2463
+ async function upgradeDeployment(config, projectName, deploymentName, options) {
2464
+ return designtimePut(config, `${deploymentsPath(projectName)}/${encodeURIComponent(deploymentName)}`, {
2465
+ ModelVersion: options.modelVersion,
2466
+ FolderKey: options.folderKey
2467
+ }, "Failed to upgrade deployment");
2468
+ }
2469
+ async function listDeployments(config, projectName) {
2470
+ return designtimeGet(config, deploymentsPath(projectName), "Failed to list deployments");
2471
+ }
2448
2472
  // src/documents-service.ts
2449
2473
  function documentsPath(projectName) {
2450
2474
  return `/api/projects/${encodeURIComponent(projectName)}/documents`;
@@ -2629,6 +2653,7 @@ async function updateFieldPrompts(config, projectName, updates) {
2629
2653
  }
2630
2654
  export {
2631
2655
  uploadDocument,
2656
+ upgradeDeployment,
2632
2657
  updateProjectTitle,
2633
2658
  updateProjectPrompt,
2634
2659
  updateGroupPrompts,
@@ -2647,6 +2672,7 @@ export {
2647
2672
  listModels,
2648
2673
  listIxpProjects,
2649
2674
  listDocuments,
2675
+ listDeployments,
2650
2676
  importTaxonomy,
2651
2677
  getProjectTaxonomy,
2652
2678
  getProject,
@@ -2654,6 +2680,7 @@ export {
2654
2680
  getDocumentPredictions,
2655
2681
  getDeploymentTaxonomy,
2656
2682
  downloadDocument,
2683
+ deployModel,
2657
2684
  deleteIxpProject,
2658
2685
  deleteGroup,
2659
2686
  deleteField,
@@ -2669,4 +2696,4 @@ export {
2669
2696
  addField
2670
2697
  };
2671
2698
 
2672
- //# debugId=F01311F0EB89BDE664756E2164756E21
2699
+ //# debugId=CB010E64EBF2C9F864756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/ixp-sdk",
3
3
  "license": "MIT",
4
- "version": "1.201.0-preview.115",
4
+ "version": "1.201.0-preview.122",
5
5
  "description": "SDK for the UiPath IXP (Intelligent eXtraction Platform) API — projects, taxonomies, prompts, predictions, and model publishing.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -24,5 +24,5 @@
24
24
  "files": [
25
25
  "dist"
26
26
  ],
27
- "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
27
+ "gitHead": "6c56f56100be96231fccbaa59e99d64d94808d58"
28
28
  }