@uipath/vertical-solutions-tool 1.207.0-preview.309 → 1.207.0-preview.314

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.
@@ -30,8 +30,8 @@ import {
30
30
  } from "./tool-j2736nrm.js";
31
31
  import {
32
32
  resolveDeployTarget2
33
- } from "./tool-wk76nj7q.js";
34
- import"./tool-ssrx865d.js";
33
+ } from "./tool-6a1gqdbg.js";
34
+ import"./tool-927c0wrq.js";
35
35
  import {
36
36
  toDeployFailure2
37
37
  } from "./tool-t3jsnrrv.js";
@@ -44,7 +44,7 @@ import {
44
44
  rejectSeedWithoutWait,
45
45
  finalizeSucceededJob,
46
46
  stoppedWatching
47
- } from "./tool-5qj6p6zh.js";
47
+ } from "./tool-dj5v6haj.js";
48
48
  import {
49
49
  withCapacityRetry,
50
50
  watchOptionsFrom2,
@@ -55,7 +55,7 @@ import {
55
55
  readServiceUrl2,
56
56
  credentialsFailure2
57
57
  } from "./tool-jde2etnd.js";
58
- import"./tool-r20zj24f.js";
58
+ import"./tool-jq6e60p6.js";
59
59
  import {
60
60
  createVssConfig
61
61
  } from "./tool-nczkcf4d.js";
@@ -9,7 +9,7 @@ import {
9
9
  Configuration2,
10
10
  DeploymentSearchItemDto2FromJSON,
11
11
  SearchApi
12
- } from "./tool-n01wgb0g.js";
12
+ } from "./tool-qrkfw3dw.js";
13
13
  import {
14
14
  resolveSessionIdentity
15
15
  } from "./tool-4te3f5p3.js";
@@ -1,5 +1,5 @@
1
1
  import"./tool-w6twa5ga.js";
2
- import"./tool-n01wgb0g.js";
2
+ import"./tool-qrkfw3dw.js";
3
3
  import {
4
4
  __toESM,
5
5
  __commonJS
@@ -758,7 +758,7 @@ var package_default = {
758
758
  name: "@uipath/integrationservice-sdk",
759
759
  author: "UiPath",
760
760
  license: "SEE LICENSE IN LICENSE.txt",
761
- version: "1.207.0-preview.309",
761
+ version: "1.207.0-preview.314",
762
762
  repository: {
763
763
  type: "git",
764
764
  url: "https://github.com/UiPath/cli.git",
@@ -6631,4 +6631,4 @@ export {
6631
6631
  normalizeConnectionStatus
6632
6632
  };
6633
6633
 
6634
- //# debugId=40F67E78E0C9576464756E2164756E21
6634
+ //# debugId=9324CFFF43FD0D7764756E2164756E21
@@ -22648,6 +22648,94 @@ class WebhooksApi extends BaseAPI {
22648
22648
  return await response.value();
22649
22649
  }
22650
22650
  }
22651
+ // ../orchestrator-sdk/src/attachment-file.ts
22652
+ class AttachmentFileApi extends BaseAPI {
22653
+ async getReadAccess(attachmentId) {
22654
+ const headers = {};
22655
+ if (this.configuration?.accessToken) {
22656
+ headers.Authorization = await this.configuration.accessToken("OAuth2", []);
22657
+ }
22658
+ const response = await this.request({
22659
+ path: `/odata/Attachments(${encodeURIComponent(attachmentId)})`,
22660
+ method: "GET",
22661
+ headers,
22662
+ query: {}
22663
+ });
22664
+ const attachment = await response.json();
22665
+ const access = BlobFileAccessDtoFromJSON(attachment?.BlobFileAccess);
22666
+ if (!access?.uri) {
22667
+ throw new Error(`Orchestrator returned no download URL for attachment '${attachmentId}'. It may have been deleted.`);
22668
+ }
22669
+ return { ...access, uri: access.uri };
22670
+ }
22671
+ }
22672
+ // ../orchestrator-sdk/src/blob-access.ts
22673
+ var ORCHESTRATOR_AUTH_HEADERS = new Set([
22674
+ "Authorization",
22675
+ "X-UIPATH-OrganizationUnitId",
22676
+ "X-UIPATH-FolderKey",
22677
+ "X-UIPATH-FolderPath",
22678
+ "X-UIPATH-FolderPath-Encoded",
22679
+ "X-UIPATH-TenantId"
22680
+ ].map((name) => name.toLowerCase()));
22681
+ async function blobAccessRequest(access, api) {
22682
+ return {
22683
+ headers: await blobAccessHeaders(access, api),
22684
+ redirect: access.requiresAuth ? "error" : "follow"
22685
+ };
22686
+ }
22687
+ async function blobAccessHeaders(access, api) {
22688
+ const headers = {};
22689
+ const { keys, values } = access.headers ?? {};
22690
+ if (keys && values) {
22691
+ for (let i = 0;i < keys.length; i++) {
22692
+ headers[keys[i]] = values[i];
22693
+ }
22694
+ }
22695
+ if (access.requiresAuth) {
22696
+ const configuration = configurationOf(api);
22697
+ requireOrchestratorOrigin(access.uri, configuration);
22698
+ for (const [name, value] of Object.entries(configuration?.headers ?? {})) {
22699
+ if (ORCHESTRATOR_AUTH_HEADERS.has(name.toLowerCase())) {
22700
+ headers[name] = value;
22701
+ }
22702
+ }
22703
+ if (configuration?.accessToken) {
22704
+ headers.Authorization = await configuration.accessToken("OAuth2", []);
22705
+ }
22706
+ if (!Object.entries(headers).some(([name, value]) => name.toLowerCase() === "authorization" && value)) {
22707
+ throw Object.assign(new Error("Orchestrator requires credentials for this file, and the client has no Orchestrator access token."), {
22708
+ errorCode: "authentication_required",
22709
+ retry: "RetryWillNotFix"
22710
+ });
22711
+ }
22712
+ }
22713
+ return headers;
22714
+ }
22715
+ function requireOrchestratorOrigin(uri, configuration) {
22716
+ const blob = parseUrl(uri);
22717
+ const orchestrator = parseUrl(configuration?.basePath);
22718
+ if (blob && orchestrator && blob.origin === orchestrator.origin) {
22719
+ return;
22720
+ }
22721
+ const blobHost = blob?.host ?? "an unknown host";
22722
+ const orchestratorHost = orchestrator?.host ?? "an unknown host";
22723
+ throw Object.assign(new Error(`Orchestrator requires credentials for this file, but its URL is on ${blobHost}, not on ${orchestratorHost} where this client is signed in. The access token was not sent.`), { errorCode: "configuration_error", retry: "RetryWillNotFix" });
22724
+ }
22725
+ function parseUrl(value) {
22726
+ if (!value) {
22727
+ return;
22728
+ }
22729
+ const page = globalThis.location?.href;
22730
+ try {
22731
+ return new URL(value, page);
22732
+ } catch {
22733
+ return;
22734
+ }
22735
+ }
22736
+ function configurationOf(api) {
22737
+ return api.configuration;
22738
+ }
22651
22739
  // ../common/src/session-kind.ts
22652
22740
  var SESSION_KIND_KEY = Symbol.for("@uipath/common/SessionKind");
22653
22741
  function attachSessionKind(carrier, kind) {
@@ -23000,9 +23088,17 @@ async function uploadJobAttachment(bytes, name, options = {}) {
23000
23088
  if (!writeUri) {
23001
23089
  throw new Error("API returned no blob URI.");
23002
23090
  }
23091
+ const requiresAuth = rawJson?.BlobFileAccess?.RequiresAuth ?? rawJson?.blobFileAccess?.requiresAuth;
23092
+ const storageHeaders = rawJson?.BlobFileAccess?.Headers ? {
23093
+ keys: rawJson.BlobFileAccess.Headers.Keys,
23094
+ values: rawJson.BlobFileAccess.Headers.Values
23095
+ } : rawJson?.blobFileAccess?.headers;
23096
+ const blobRequest = await blobAccessRequest({ uri: writeUri, headers: storageHeaders, requiresAuth }, api);
23003
23097
  const uploadResponse = await fetch(writeUri, {
23098
+ ...blobRequest,
23004
23099
  method: "PUT",
23005
23100
  headers: {
23101
+ ...blobRequest.headers,
23006
23102
  "Content-Type": mimeType,
23007
23103
  "x-ms-blob-type": "BlockBlob"
23008
23104
  },
@@ -23677,6 +23773,7 @@ export {
23677
23773
  AttachmentDtoFromJSONTyped,
23678
23774
  AttachmentDtoToJSON,
23679
23775
  AttachmentDtoToJSONTyped,
23776
+ AttachmentFileApi,
23680
23777
  AttachmentsApi,
23681
23778
  AttendedRobotDtoFromJSON,
23682
23779
  AttendedRobotDtoFromJSONTyped,
@@ -24990,6 +25087,7 @@ export {
24990
25087
  WebhookEventTypeDtoToJSON,
24991
25088
  WebhookEventTypeDtoToJSONTyped,
24992
25089
  WebhooksApi,
25090
+ blobAccessRequest,
24993
25091
  canConsumeForm,
24994
25092
  createApiClient,
24995
25093
  createKnowledgeBundleProposalWithObjects,
@@ -25288,4 +25386,4 @@ export {
25288
25386
  usableFolderRuntimes
25289
25387
  };
25290
25388
 
25291
- //# debugId=B7C22BF80D050AF464756E2164756E21
25389
+ //# debugId=64732C09942FFE2D64756E2164756E21
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import"./tool-4g168x1b.js";
6
6
  import {
7
7
  metadata2,
8
8
  registerCommands2
9
- } from "./tool-bhv12x5b.js";
9
+ } from "./tool-qaxq87yd.js";
10
10
  import"./tool-4te3f5p3.js";
11
11
  import"./tool-6n8z2dm7.js";
12
12
  import"./tool-m148vv6j.js";
@@ -342,7 +342,7 @@ function stampManifest(manifest, packageName, packageVersion, solutionZipName) {
342
342
  }
343
343
  async function writeZip(fs, path, entries) {
344
344
  const { zipSync } = await import("./index-8wqbe0tq.js");
345
- const { finalizeZip64 } = await import("./index-yedvhfba.js");
345
+ const { finalizeZip64 } = await import("./index-sgyr4nhd.js");
346
346
  const zippable = {};
347
347
  for (const key of [...entries.keys()].sort(compareText)) {
348
348
  zippable[key] = entries.get(key);
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  DEFAULT_STAGE2,
3
3
  resolveDeployTarget2
4
- } from "./tool-wk76nj7q.js";
5
- import"./tool-ssrx865d.js";
6
- import"./tool-r20zj24f.js";
4
+ } from "./tool-6a1gqdbg.js";
5
+ import"./tool-927c0wrq.js";
6
+ import"./tool-jq6e60p6.js";
7
7
  import"./tool-n8brc19c.js";
8
8
  import"./tool-j2736nrm.js";
9
9
  import"./tool-j8ahrygt.js";
@@ -48,7 +48,7 @@ import {
48
48
  prepareWorkspaceWithoutManifest,
49
49
  finalizeSucceededJob,
50
50
  stoppedWatching
51
- } from "./tool-5qj6p6zh.js";
51
+ } from "./tool-dj5v6haj.js";
52
52
  import {
53
53
  finishedJobConflict2,
54
54
  knownJobStatus2,
@@ -59,7 +59,7 @@ import {
59
59
  watchOptionsFrom2,
60
60
  watchDeployJob2
61
61
  } from "./tool-xvdam87g.js";
62
- import"./tool-r20zj24f.js";
62
+ import"./tool-jq6e60p6.js";
63
63
  import {
64
64
  createVssConfig
65
65
  } from "./tool-nczkcf4d.js";
@@ -64,7 +64,7 @@ import {
64
64
  solutionNameFromManifest2,
65
65
  resolveInstalledFolder2,
66
66
  listDeploymentsOfSolution2
67
- } from "./tool-ssrx865d.js";
67
+ } from "./tool-927c0wrq.js";
68
68
  import {
69
69
  rejectBlankOptions,
70
70
  readServiceUrl2
@@ -79,7 +79,7 @@ import {
79
79
  listAllFolders,
80
80
  listFolderDtos,
81
81
  readAllPages
82
- } from "./tool-r20zj24f.js";
82
+ } from "./tool-jq6e60p6.js";
83
83
  import {
84
84
  isLoopbackHost,
85
85
  createVssConfig
@@ -516,7 +516,7 @@ async function readConnections(config, folderKey, signal) {
516
516
  createConnectionsConfig,
517
517
  folderOverride,
518
518
  normalizeConnectionStatus
519
- } = await import("./index-nx70wm4z.js");
519
+ } = await import("./index-ww5rngmz.js");
520
520
  const api = new ConnectionsApi(await createConnectionsConfig({ tenant: config.tenantName }));
521
521
  const scoped = folderOverride(folderKey);
522
522
  const connections = [];
@@ -7,7 +7,7 @@ import {
7
7
  solutionNameFromManifest2,
8
8
  resolveInstalledFolder2,
9
9
  listDeploymentsOfSolution2
10
- } from "./tool-ssrx865d.js";
10
+ } from "./tool-927c0wrq.js";
11
11
  import"./tool-w6twa5ga.js";
12
12
  export {
13
13
  SolutionDeploymentsError2 as SolutionDeploymentsError,
@@ -20,7 +20,7 @@ import {
20
20
  isInstalledDeployment2,
21
21
  listDeploymentsNamed2,
22
22
  solutionNameFromManifest2
23
- } from "./tool-ssrx865d.js";
23
+ } from "./tool-927c0wrq.js";
24
24
  import {
25
25
  DEPLOY_ACTIONS
26
26
  } from "./tool-m148vv6j.js";
@@ -40,7 +40,7 @@ import {
40
40
  } from "./tool-n8brc19c.js";
41
41
  import {
42
42
  listAllFolders
43
- } from "./tool-r20zj24f.js";
43
+ } from "./tool-jq6e60p6.js";
44
44
  import {
45
45
  string,
46
46
  array,
@@ -63,7 +63,7 @@ var DEPLOYMENT_PAGE_SIZE = 100;
63
63
  var MAX_DEPLOYMENT_PAGES = 100;
64
64
  async function listSolutionDeployments(config, signal, packageName) {
65
65
  const auth = await solutionAuth(config);
66
- const { searchDeployments } = await import("./deployment-search-xhb08rzd.js");
66
+ const { searchDeployments } = await import("./deployment-search-bjq6vx3x.js");
67
67
  const [error, raw] = await catchError(searchDeployments(auth, {
68
68
  orderByColumn: "startTime",
69
69
  orderByDirection: "Descending",
@@ -79,7 +79,7 @@ async function listSolutionDeployments(config, signal, packageName) {
79
79
  var NAMED_DEPLOYMENT_PAGE_SIZE = 50;
80
80
  async function listDeploymentsNamed2(config, name, signal) {
81
81
  const auth = await solutionAuth(config);
82
- const { searchDeploymentsPage } = await import("./deployment-search-xhb08rzd.js");
82
+ const { searchDeploymentsPage } = await import("./deployment-search-bjq6vx3x.js");
83
83
  const wanted = name.toLowerCase();
84
84
  const readAll = async (filter) => {
85
85
  const rows = [];
@@ -120,7 +120,7 @@ async function toSolutionDeploymentsError(error) {
120
120
  const {
121
121
  DeploymentSearchNeedsUserSessionError,
122
122
  DeploymentSearchTruncatedError
123
- } = await import("./deployment-search-xhb08rzd.js");
123
+ } = await import("./deployment-search-bjq6vx3x.js");
124
124
  if (error instanceof DeploymentSearchNeedsUserSessionError) {
125
125
  return new SolutionDeploymentsError2("Could not list solution deployments: this tenant's Automation Solutions search reads user logins only, and this login is an application.", "permission_denied", { refusal: "needs-user-session" });
126
126
  }
@@ -28,7 +28,7 @@ import {
28
28
  } from "./tool-3pt20zyc.js";
29
29
  import {
30
30
  findFolderPath
31
- } from "./tool-r20zj24f.js";
31
+ } from "./tool-jq6e60p6.js";
32
32
  import {
33
33
  shellQuote,
34
34
  routingFlags
@@ -231,7 +231,7 @@ async function linkedOutWorkspace(packageName) {
231
231
  }
232
232
  async function recordDeployContext(input, installedFolderKey, workspaceDir, command) {
233
233
  const { job, config } = input;
234
- const { recordSeedContext } = await import("./seed-service-he7pqr2v.js");
234
+ const { recordSeedContext } = await import("./seed-service-arwvvvfm.js");
235
235
  const [contextError] = await catchError(recordSeedContext({
236
236
  packageName: job.packageName,
237
237
  packageVersion: job.packageVersion,
@@ -264,7 +264,7 @@ async function resolveInstalledFolder(input, tenantLevel = false) {
264
264
  listDeploymentsOfSolution,
265
265
  resolveInstalledFolder: resolveFromDeployments,
266
266
  solutionNameFromManifest
267
- } = await import("./solution-deployments-p7wb430h.js");
267
+ } = await import("./solution-deployments-9vzn7exn.js");
268
268
  const solutionName = solutionNameFromManifest(input.manifest);
269
269
  if (!solutionName)
270
270
  return;
@@ -331,7 +331,7 @@ async function runOfferedSeed(input, folderKey, workspaceDir, hint, templatesAre
331
331
  const { job, options, deps } = input;
332
332
  const yes = options.seed === true ? options.yes : undefined;
333
333
  const retry = seedCommandFor(job, folderKey, options) + (templatesAreCurrent ? " --refresh" : "") + (yes ? " --yes" : "");
334
- const { runSeed } = await import("./seed-service-he7pqr2v.js");
334
+ const { runSeed } = await import("./seed-service-arwvvvfm.js");
335
335
  const [seedError, seeded] = await catchError(runSeed({
336
336
  packageName: job.packageName,
337
337
  packageVersion: job.packageVersion,
@@ -27,7 +27,7 @@ async function orchestratorApi(config, pick, folderKey) {
27
27
  if (!config.organizationId) {
28
28
  throw new Error("The login carries no organization id, which the Orchestrator route needs — " + "run 'uip login' again.");
29
29
  }
30
- const sdk = await import("./index-pw8fgsfr.js");
30
+ const sdk = await import("./index-ykm2s6pt.js");
31
31
  return sdk.createApiClient(pick(sdk), {
32
32
  tenant: config.tenantName,
33
33
  ...folderKey ? { folderKey } : {}
@@ -173,7 +173,7 @@ var package_default = {
173
173
  name: "@uipath/vertical-solutions-tool",
174
174
  author: "UiPath",
175
175
  license: "SEE LICENSE IN LICENSE.txt",
176
- version: "1.207.0-preview.309",
176
+ version: "1.207.0-preview.314",
177
177
  description: "Scaffold, generate and deploy Vertical Solution projects.",
178
178
  private: false,
179
179
  repository: {
@@ -5579,7 +5579,7 @@ var packages = async (options) => {
5579
5579
  return;
5580
5580
  const { listPackages, listVerticals } = await import("./packages-5c2q0gf3.js");
5581
5581
  const { toDeployFailure } = await import("./service-errors-6ktx1fhk.js");
5582
- const { DEFAULT_STAGE } = await import("./resolve-target-246j6a6y.js");
5582
+ const { DEFAULT_STAGE } = await import("./resolve-target-a3zjhf8d.js");
5583
5583
  const { matchVertical } = await import("./package-name-bkwxfe36.js");
5584
5584
  const signal = processContext.pollSignal;
5585
5585
  const stage = options.stage ?? DEFAULT_STAGE;
@@ -5657,7 +5657,7 @@ var RESUME_EXAMPLES = [
5657
5657
  }
5658
5658
  ];
5659
5659
  var resume = async (jobId, options) => {
5660
- const { runResume } = await import("./resume-service-x90j4q7v.js");
5660
+ const { runResume } = await import("./resume-service-c58r0xx0.js");
5661
5661
  const { confirmSeed, createWatchPrompts, seedPrompts } = await import("./prompts-p3csv27m.js");
5662
5662
  const { emitFailure } = await import("./job-commands-4cyjk35d.js");
5663
5663
  const result = await runResume(jobId, { ...options, signal: processContext.pollSignal }, { watch: createWatchPrompts(), seed: seedPrompts, confirmSeed });
@@ -5744,7 +5744,7 @@ var SEED_EXAMPLES = [
5744
5744
  }
5745
5745
  ];
5746
5746
  var seed = async (options) => {
5747
- const { runSeed } = await import("./seed-service-he7pqr2v.js");
5747
+ const { runSeed } = await import("./seed-service-arwvvvfm.js");
5748
5748
  const { emitFailure, exitIfCallerAborted } = await import("./job-commands-4cyjk35d.js");
5749
5749
  const { seedPrompts } = await import("./prompts-p3csv27m.js");
5750
5750
  const [error, result] = await catchError(runSeed({ ...options, signal: processContext.pollSignal }, seedPrompts));
@@ -5928,7 +5928,7 @@ var DEPLOY_EXAMPLES = [
5928
5928
  }
5929
5929
  ];
5930
5930
  var deploy = async (options) => {
5931
- const { runDeploy } = await import("./deploy-service-tvc15e0b.js");
5931
+ const { runDeploy } = await import("./deploy-service-7e8qx6vt.js");
5932
5932
  const {
5933
5933
  configurationPrompts,
5934
5934
  confirmProceed,
@@ -6076,7 +6076,7 @@ var PACK_EXAMPLES = [
6076
6076
  }
6077
6077
  ];
6078
6078
  var pack = async (manifest, options) => {
6079
- const { packVerticalSolution, PackError } = await import("./pack-service-8j79ffrk.js");
6079
+ const { packVerticalSolution, PackError } = await import("./pack-service-n8g9bpdv.js");
6080
6080
  const [error, result] = await catchError(packVerticalSolution({ manifest, ...options }));
6081
6081
  if (error) {
6082
6082
  if (!(error instanceof PackError))
@@ -6218,4 +6218,4 @@ var registerCommands2 = async (program) => {
6218
6218
 
6219
6219
  export { metadata2, registerCommands2 };
6220
6220
 
6221
- //# debugId=BA033BA585E70B0764756E2164756E21
6221
+ //# debugId=FCB2F80AB4A05EB264756E2164756E21
@@ -512,7 +512,7 @@ var package_default = {
512
512
  name: "@uipath/solution-sdk",
513
513
  author: "UiPath",
514
514
  license: "SEE LICENSE IN LICENSE.txt",
515
- version: "1.207.0-preview.309",
515
+ version: "1.207.0-preview.314",
516
516
  repository: {
517
517
  type: "git",
518
518
  url: "https://github.com/UiPath/cli.git",
@@ -597,4 +597,4 @@ installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
597
597
 
598
598
  export { Configuration2, DeploymentSearchItemDto2FromJSON, SearchApi };
599
599
 
600
- //# debugId=6F90FCBFBCFF5F1364756E2164756E21
600
+ //# debugId=06669BFCED374DE564756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata2,
3
3
  registerCommands2
4
- } from "./tool-bhv12x5b.js";
4
+ } from "./tool-qaxq87yd.js";
5
5
  import"./tool-6n8z2dm7.js";
6
6
  import"./tool-4g168x1b.js";
7
7
  import"./tool-4te3f5p3.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/vertical-solutions-tool",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.207.0-preview.309",
5
+ "version": "1.207.0-preview.314",
6
6
  "description": "Scaffold, generate and deploy Vertical Solution projects.",
7
7
  "private": false,
8
8
  "repository": {
@@ -35,5 +35,5 @@
35
35
  "files": [
36
36
  "dist"
37
37
  ],
38
- "gitHead": "774a444bdf3a34422d4b1425da0935653e2e5ca9"
38
+ "gitHead": "9aee7acc666f8511e30cd28417fa5f24d5ae716c"
39
39
  }