@uipath/uipath-typescript 1.3.1 → 1.3.2

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.
@@ -1672,7 +1672,7 @@ const AssetMap = {
1672
1672
  // Connection string placeholder that will be replaced during build
1673
1673
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1674
1674
  // SDK Version placeholder
1675
- const SDK_VERSION = "1.3.1";
1675
+ const SDK_VERSION = "1.3.2";
1676
1676
  const VERSION = "Version";
1677
1677
  const SERVICE = "Service";
1678
1678
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1670,7 +1670,7 @@ const AssetMap = {
1670
1670
  // Connection string placeholder that will be replaced during build
1671
1671
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1672
1672
  // SDK Version placeholder
1673
- const SDK_VERSION = "1.3.1";
1673
+ const SDK_VERSION = "1.3.2";
1674
1674
  const VERSION = "Version";
1675
1675
  const SERVICE = "Service";
1676
1676
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -476,7 +476,7 @@ const BUCKET_TOKEN_PARAMS = {
476
476
  // Connection string placeholder that will be replaced during build
477
477
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
478
478
  // SDK Version placeholder
479
- const SDK_VERSION = "1.3.1";
479
+ const SDK_VERSION = "1.3.2";
480
480
  const VERSION = "Version";
481
481
  const SERVICE = "Service";
482
482
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -474,7 +474,7 @@ const BUCKET_TOKEN_PARAMS = {
474
474
  // Connection string placeholder that will be replaced during build
475
475
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
476
476
  // SDK Version placeholder
477
- const SDK_VERSION = "1.3.1";
477
+ const SDK_VERSION = "1.3.2";
478
478
  const VERSION = "Version";
479
479
  const SERVICE = "Service";
480
480
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1719,7 +1719,7 @@ const BucketMap = {
1719
1719
  // Connection string placeholder that will be replaced during build
1720
1720
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1721
1721
  // SDK Version placeholder
1722
- const SDK_VERSION = "1.3.1";
1722
+ const SDK_VERSION = "1.3.2";
1723
1723
  const VERSION = "Version";
1724
1724
  const SERVICE = "Service";
1725
1725
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1717,7 +1717,7 @@ const BucketMap = {
1717
1717
  // Connection string placeholder that will be replaced during build
1718
1718
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1719
1719
  // SDK Version placeholder
1720
- const SDK_VERSION = "1.3.1";
1720
+ const SDK_VERSION = "1.3.2";
1721
1721
  const VERSION = "Version";
1722
1722
  const SERVICE = "Service";
1723
1723
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1829,7 +1829,7 @@ const MAESTRO_ENDPOINTS = {
1829
1829
  // Connection string placeholder that will be replaced during build
1830
1830
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1831
1831
  // SDK Version placeholder
1832
- const SDK_VERSION = "1.3.1";
1832
+ const SDK_VERSION = "1.3.2";
1833
1833
  const VERSION = "Version";
1834
1834
  const SERVICE = "Service";
1835
1835
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1827,7 +1827,7 @@ const MAESTRO_ENDPOINTS = {
1827
1827
  // Connection string placeholder that will be replaced during build
1828
1828
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1829
1829
  // SDK Version placeholder
1830
- const SDK_VERSION = "1.3.1";
1830
+ const SDK_VERSION = "1.3.2";
1831
1831
  const VERSION = "Version";
1832
1832
  const SERVICE = "Service";
1833
1833
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -51,7 +51,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
51
51
  // Connection string placeholder that will be replaced during build
52
52
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
53
53
  // SDK Version placeholder
54
- const SDK_VERSION = "1.3.1";
54
+ const SDK_VERSION = "1.3.2";
55
55
  const VERSION = "Version";
56
56
  const SERVICE = "Service";
57
57
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -49,7 +49,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
49
49
  // Connection string placeholder that will be replaced during build
50
50
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
51
51
  // SDK Version placeholder
52
- const SDK_VERSION = "1.3.1";
52
+ const SDK_VERSION = "1.3.2";
53
53
  const VERSION = "Version";
54
54
  const SERVICE = "Service";
55
55
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -4851,6 +4851,7 @@ class TokenManager {
4851
4851
  }
4852
4852
  }
4853
4853
 
4854
+ const GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
4854
4855
  class AuthService {
4855
4856
  constructor(config, executionContext) {
4856
4857
  // Only use stored OAuth context when completing an active callback (URL has ?code=).
@@ -5134,6 +5135,8 @@ class AuthService {
5134
5135
  */
5135
5136
  getAuthorizationUrl(params) {
5136
5137
  const orgName = this.config.orgName;
5138
+ const isGuid = GUID_REGEX.test(orgName);
5139
+ const acrValues = isGuid ? `tenant:${orgName}` : `tenantName:${orgName}`;
5137
5140
  const queryParams = new URLSearchParams({
5138
5141
  response_type: 'code',
5139
5142
  client_id: params.clientId,
@@ -5143,13 +5146,12 @@ class AuthService {
5143
5146
  scope: params.scope + ' offline_access',
5144
5147
  state: params.state || this.generateCodeVerifier().slice(0, 16)
5145
5148
  });
5146
- return `${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}`;
5149
+ return `${this.config.baseUrl}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}&acr_values=${acrValues}`;
5147
5150
  }
5148
5151
  /**
5149
5152
  * Exchanges the authorization code for an access token and automatically updates the current token
5150
5153
  */
5151
5154
  async _getAccessToken(params) {
5152
- const orgName = this.config.orgName;
5153
5155
  const body = new URLSearchParams({
5154
5156
  grant_type: 'authorization_code',
5155
5157
  client_id: params.clientId,
@@ -5157,7 +5159,7 @@ class AuthService {
5157
5159
  redirect_uri: params.redirectUri,
5158
5160
  code_verifier: params.codeVerifier
5159
5161
  });
5160
- const response = await fetch(`${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5162
+ const response = await fetch(`${this.config.baseUrl}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5161
5163
  method: 'POST',
5162
5164
  headers: {
5163
5165
  'Content-Type': 'application/x-www-form-urlencoded'
@@ -5278,7 +5280,7 @@ function normalizeBaseUrl(url) {
5278
5280
  // Connection string placeholder that will be replaced during build
5279
5281
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
5280
5282
  // SDK Version placeholder
5281
- const SDK_VERSION = "1.3.1";
5283
+ const SDK_VERSION = "1.3.2";
5282
5284
  const VERSION = "Version";
5283
5285
  const SERVICE = "Service";
5284
5286
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -519,7 +519,7 @@ declare const telemetryClient: TelemetryClient;
519
519
  * SDK Telemetry constants
520
520
  */
521
521
  declare const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
522
- declare const SDK_VERSION = "1.3.1";
522
+ declare const SDK_VERSION = "1.3.2";
523
523
  declare const VERSION = "Version";
524
524
  declare const SERVICE = "Service";
525
525
  declare const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -4849,6 +4849,7 @@ class TokenManager {
4849
4849
  }
4850
4850
  }
4851
4851
 
4852
+ const GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
4852
4853
  class AuthService {
4853
4854
  constructor(config, executionContext) {
4854
4855
  // Only use stored OAuth context when completing an active callback (URL has ?code=).
@@ -5132,6 +5133,8 @@ class AuthService {
5132
5133
  */
5133
5134
  getAuthorizationUrl(params) {
5134
5135
  const orgName = this.config.orgName;
5136
+ const isGuid = GUID_REGEX.test(orgName);
5137
+ const acrValues = isGuid ? `tenant:${orgName}` : `tenantName:${orgName}`;
5135
5138
  const queryParams = new URLSearchParams({
5136
5139
  response_type: 'code',
5137
5140
  client_id: params.clientId,
@@ -5141,13 +5144,12 @@ class AuthService {
5141
5144
  scope: params.scope + ' offline_access',
5142
5145
  state: params.state || this.generateCodeVerifier().slice(0, 16)
5143
5146
  });
5144
- return `${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}`;
5147
+ return `${this.config.baseUrl}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}&acr_values=${acrValues}`;
5145
5148
  }
5146
5149
  /**
5147
5150
  * Exchanges the authorization code for an access token and automatically updates the current token
5148
5151
  */
5149
5152
  async _getAccessToken(params) {
5150
- const orgName = this.config.orgName;
5151
5153
  const body = new URLSearchParams({
5152
5154
  grant_type: 'authorization_code',
5153
5155
  client_id: params.clientId,
@@ -5155,7 +5157,7 @@ class AuthService {
5155
5157
  redirect_uri: params.redirectUri,
5156
5158
  code_verifier: params.codeVerifier
5157
5159
  });
5158
- const response = await fetch(`${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5160
+ const response = await fetch(`${this.config.baseUrl}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5159
5161
  method: 'POST',
5160
5162
  headers: {
5161
5163
  'Content-Type': 'application/x-www-form-urlencoded'
@@ -5276,7 +5278,7 @@ function normalizeBaseUrl(url) {
5276
5278
  // Connection string placeholder that will be replaced during build
5277
5279
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
5278
5280
  // SDK Version placeholder
5279
- const SDK_VERSION = "1.3.1";
5281
+ const SDK_VERSION = "1.3.2";
5280
5282
  const VERSION = "Version";
5281
5283
  const SERVICE = "Service";
5282
5284
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1994,7 +1994,7 @@ const EntityFieldTypeMap = {
1994
1994
  // Connection string placeholder that will be replaced during build
1995
1995
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1996
1996
  // SDK Version placeholder
1997
- const SDK_VERSION = "1.3.1";
1997
+ const SDK_VERSION = "1.3.2";
1998
1998
  const VERSION = "Version";
1999
1999
  const SERVICE = "Service";
2000
2000
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1992,7 +1992,7 @@ const EntityFieldTypeMap = {
1992
1992
  // Connection string placeholder that will be replaced during build
1993
1993
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1994
1994
  // SDK Version placeholder
1995
- const SDK_VERSION = "1.3.1";
1995
+ const SDK_VERSION = "1.3.2";
1996
1996
  const VERSION = "Version";
1997
1997
  const SERVICE = "Service";
1998
1998
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
package/dist/index.cjs CHANGED
@@ -5004,6 +5004,7 @@ class TokenManager {
5004
5004
  }
5005
5005
  }
5006
5006
 
5007
+ const GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
5007
5008
  class AuthService {
5008
5009
  constructor(config, executionContext) {
5009
5010
  // Only use stored OAuth context when completing an active callback (URL has ?code=).
@@ -5287,6 +5288,8 @@ class AuthService {
5287
5288
  */
5288
5289
  getAuthorizationUrl(params) {
5289
5290
  const orgName = this.config.orgName;
5291
+ const isGuid = GUID_REGEX.test(orgName);
5292
+ const acrValues = isGuid ? `tenant:${orgName}` : `tenantName:${orgName}`;
5290
5293
  const queryParams = new URLSearchParams({
5291
5294
  response_type: 'code',
5292
5295
  client_id: params.clientId,
@@ -5296,13 +5299,12 @@ class AuthService {
5296
5299
  scope: params.scope + ' offline_access',
5297
5300
  state: params.state || this.generateCodeVerifier().slice(0, 16)
5298
5301
  });
5299
- return `${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}`;
5302
+ return `${this.config.baseUrl}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}&acr_values=${acrValues}`;
5300
5303
  }
5301
5304
  /**
5302
5305
  * Exchanges the authorization code for an access token and automatically updates the current token
5303
5306
  */
5304
5307
  async _getAccessToken(params) {
5305
- const orgName = this.config.orgName;
5306
5308
  const body = new URLSearchParams({
5307
5309
  grant_type: 'authorization_code',
5308
5310
  client_id: params.clientId,
@@ -5310,7 +5312,7 @@ class AuthService {
5310
5312
  redirect_uri: params.redirectUri,
5311
5313
  code_verifier: params.codeVerifier
5312
5314
  });
5313
- const response = await fetch(`${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5315
+ const response = await fetch(`${this.config.baseUrl}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5314
5316
  method: 'POST',
5315
5317
  headers: {
5316
5318
  'Content-Type': 'application/x-www-form-urlencoded'
@@ -5431,7 +5433,7 @@ function normalizeBaseUrl(url) {
5431
5433
  // Connection string placeholder that will be replaced during build
5432
5434
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
5433
5435
  // SDK Version placeholder
5434
- const SDK_VERSION = "1.3.1";
5436
+ const SDK_VERSION = "1.3.2";
5435
5437
  const VERSION = "Version";
5436
5438
  const SERVICE = "Service";
5437
5439
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
package/dist/index.d.ts CHANGED
@@ -11611,7 +11611,7 @@ declare const telemetryClient: TelemetryClient;
11611
11611
  * SDK Telemetry constants
11612
11612
  */
11613
11613
  declare const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
11614
- declare const SDK_VERSION = "1.3.1";
11614
+ declare const SDK_VERSION = "1.3.2";
11615
11615
  declare const VERSION = "Version";
11616
11616
  declare const SERVICE = "Service";
11617
11617
  declare const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
package/dist/index.mjs CHANGED
@@ -5002,6 +5002,7 @@ class TokenManager {
5002
5002
  }
5003
5003
  }
5004
5004
 
5005
+ const GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
5005
5006
  class AuthService {
5006
5007
  constructor(config, executionContext) {
5007
5008
  // Only use stored OAuth context when completing an active callback (URL has ?code=).
@@ -5285,6 +5286,8 @@ class AuthService {
5285
5286
  */
5286
5287
  getAuthorizationUrl(params) {
5287
5288
  const orgName = this.config.orgName;
5289
+ const isGuid = GUID_REGEX.test(orgName);
5290
+ const acrValues = isGuid ? `tenant:${orgName}` : `tenantName:${orgName}`;
5288
5291
  const queryParams = new URLSearchParams({
5289
5292
  response_type: 'code',
5290
5293
  client_id: params.clientId,
@@ -5294,13 +5297,12 @@ class AuthService {
5294
5297
  scope: params.scope + ' offline_access',
5295
5298
  state: params.state || this.generateCodeVerifier().slice(0, 16)
5296
5299
  });
5297
- return `${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}`;
5300
+ return `${this.config.baseUrl}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}&acr_values=${acrValues}`;
5298
5301
  }
5299
5302
  /**
5300
5303
  * Exchanges the authorization code for an access token and automatically updates the current token
5301
5304
  */
5302
5305
  async _getAccessToken(params) {
5303
- const orgName = this.config.orgName;
5304
5306
  const body = new URLSearchParams({
5305
5307
  grant_type: 'authorization_code',
5306
5308
  client_id: params.clientId,
@@ -5308,7 +5310,7 @@ class AuthService {
5308
5310
  redirect_uri: params.redirectUri,
5309
5311
  code_verifier: params.codeVerifier
5310
5312
  });
5311
- const response = await fetch(`${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5313
+ const response = await fetch(`${this.config.baseUrl}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5312
5314
  method: 'POST',
5313
5315
  headers: {
5314
5316
  'Content-Type': 'application/x-www-form-urlencoded'
@@ -5429,7 +5431,7 @@ function normalizeBaseUrl(url) {
5429
5431
  // Connection string placeholder that will be replaced during build
5430
5432
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
5431
5433
  // SDK Version placeholder
5432
- const SDK_VERSION = "1.3.1";
5434
+ const SDK_VERSION = "1.3.2";
5433
5435
  const VERSION = "Version";
5434
5436
  const SERVICE = "Service";
5435
5437
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
package/dist/index.umd.js CHANGED
@@ -5006,6 +5006,7 @@
5006
5006
  }
5007
5007
  }
5008
5008
 
5009
+ const GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
5009
5010
  class AuthService {
5010
5011
  constructor(config, executionContext) {
5011
5012
  // Only use stored OAuth context when completing an active callback (URL has ?code=).
@@ -5289,6 +5290,8 @@
5289
5290
  */
5290
5291
  getAuthorizationUrl(params) {
5291
5292
  const orgName = this.config.orgName;
5293
+ const isGuid = GUID_REGEX.test(orgName);
5294
+ const acrValues = isGuid ? `tenant:${orgName}` : `tenantName:${orgName}`;
5292
5295
  const queryParams = new URLSearchParams({
5293
5296
  response_type: 'code',
5294
5297
  client_id: params.clientId,
@@ -5298,13 +5301,12 @@
5298
5301
  scope: params.scope + ' offline_access',
5299
5302
  state: params.state || this.generateCodeVerifier().slice(0, 16)
5300
5303
  });
5301
- return `${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}`;
5304
+ return `${this.config.baseUrl}/${IDENTITY_ENDPOINTS.AUTHORIZE}?${queryParams.toString()}&acr_values=${acrValues}`;
5302
5305
  }
5303
5306
  /**
5304
5307
  * Exchanges the authorization code for an access token and automatically updates the current token
5305
5308
  */
5306
5309
  async _getAccessToken(params) {
5307
- const orgName = this.config.orgName;
5308
5310
  const body = new URLSearchParams({
5309
5311
  grant_type: 'authorization_code',
5310
5312
  client_id: params.clientId,
@@ -5312,7 +5314,7 @@
5312
5314
  redirect_uri: params.redirectUri,
5313
5315
  code_verifier: params.codeVerifier
5314
5316
  });
5315
- const response = await fetch(`${this.config.baseUrl}/${orgName}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5317
+ const response = await fetch(`${this.config.baseUrl}/${IDENTITY_ENDPOINTS.TOKEN}`, {
5316
5318
  method: 'POST',
5317
5319
  headers: {
5318
5320
  'Content-Type': 'application/x-www-form-urlencoded'
@@ -9188,7 +9190,7 @@
9188
9190
  // Connection string placeholder that will be replaced during build
9189
9191
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
9190
9192
  // SDK Version placeholder
9191
- const SDK_VERSION = "1.3.1";
9193
+ const SDK_VERSION = "1.3.2";
9192
9194
  const VERSION = "Version";
9193
9195
  const SERVICE = "Service";
9194
9196
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1714,7 +1714,7 @@ const JobMap = {
1714
1714
  // Connection string placeholder that will be replaced during build
1715
1715
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1716
1716
  // SDK Version placeholder
1717
- const SDK_VERSION = "1.3.1";
1717
+ const SDK_VERSION = "1.3.2";
1718
1718
  const VERSION = "Version";
1719
1719
  const SERVICE = "Service";
1720
1720
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1712,7 +1712,7 @@ const JobMap = {
1712
1712
  // Connection string placeholder that will be replaced during build
1713
1713
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1714
1714
  // SDK Version placeholder
1715
- const SDK_VERSION = "1.3.1";
1715
+ const SDK_VERSION = "1.3.2";
1716
1716
  const VERSION = "Version";
1717
1717
  const SERVICE = "Service";
1718
1718
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1729,7 +1729,7 @@ class BpmnHelpers {
1729
1729
  // Connection string placeholder that will be replaced during build
1730
1730
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1731
1731
  // SDK Version placeholder
1732
- const SDK_VERSION = "1.3.1";
1732
+ const SDK_VERSION = "1.3.2";
1733
1733
  const VERSION = "Version";
1734
1734
  const SERVICE = "Service";
1735
1735
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1727,7 +1727,7 @@ class BpmnHelpers {
1727
1727
  // Connection string placeholder that will be replaced during build
1728
1728
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1729
1729
  // SDK Version placeholder
1730
- const SDK_VERSION = "1.3.1";
1730
+ const SDK_VERSION = "1.3.2";
1731
1731
  const VERSION = "Version";
1732
1732
  const SERVICE = "Service";
1733
1733
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1709,7 +1709,7 @@ const PROCESS_ENDPOINTS = {
1709
1709
  // Connection string placeholder that will be replaced during build
1710
1710
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1711
1711
  // SDK Version placeholder
1712
- const SDK_VERSION = "1.3.1";
1712
+ const SDK_VERSION = "1.3.2";
1713
1713
  const VERSION = "Version";
1714
1714
  const SERVICE = "Service";
1715
1715
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1707,7 +1707,7 @@ const PROCESS_ENDPOINTS = {
1707
1707
  // Connection string placeholder that will be replaced during build
1708
1708
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1709
1709
  // SDK Version placeholder
1710
- const SDK_VERSION = "1.3.1";
1710
+ const SDK_VERSION = "1.3.2";
1711
1711
  const VERSION = "Version";
1712
1712
  const SERVICE = "Service";
1713
1713
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1673,7 +1673,7 @@ const QueueMap = {
1673
1673
  // Connection string placeholder that will be replaced during build
1674
1674
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1675
1675
  // SDK Version placeholder
1676
- const SDK_VERSION = "1.3.1";
1676
+ const SDK_VERSION = "1.3.2";
1677
1677
  const VERSION = "Version";
1678
1678
  const SERVICE = "Service";
1679
1679
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1671,7 +1671,7 @@ const QueueMap = {
1671
1671
  // Connection string placeholder that will be replaced during build
1672
1672
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1673
1673
  // SDK Version placeholder
1674
- const SDK_VERSION = "1.3.1";
1674
+ const SDK_VERSION = "1.3.2";
1675
1675
  const VERSION = "Version";
1676
1676
  const SERVICE = "Service";
1677
1677
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -278,7 +278,7 @@ class NetworkError extends UiPathError {
278
278
  // Connection string placeholder that will be replaced during build
279
279
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
280
280
  // SDK Version placeholder
281
- const SDK_VERSION = "1.3.1";
281
+ const SDK_VERSION = "1.3.2";
282
282
  const VERSION = "Version";
283
283
  const SERVICE = "Service";
284
284
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -276,7 +276,7 @@ class NetworkError extends UiPathError {
276
276
  // Connection string placeholder that will be replaced during build
277
277
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
278
278
  // SDK Version placeholder
279
- const SDK_VERSION = "1.3.1";
279
+ const SDK_VERSION = "1.3.2";
280
280
  const VERSION = "Version";
281
281
  const SERVICE = "Service";
282
282
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/uipath-typescript",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "UiPath TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "keywords": [