@uipath/uipath-typescript 1.3.3 → 1.3.5

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/dist/assets/index.cjs +8 -1
  2. package/dist/assets/index.mjs +8 -1
  3. package/dist/attachments/index.cjs +8 -1
  4. package/dist/attachments/index.mjs +8 -1
  5. package/dist/buckets/index.cjs +8 -1
  6. package/dist/buckets/index.mjs +8 -1
  7. package/dist/cases/index.cjs +8 -1
  8. package/dist/cases/index.mjs +8 -1
  9. package/dist/conversational-agent/index.cjs +8 -1
  10. package/dist/conversational-agent/index.d.ts +29 -2
  11. package/dist/conversational-agent/index.mjs +8 -1
  12. package/dist/core/index.cjs +1 -1
  13. package/dist/core/index.d.ts +1 -1
  14. package/dist/core/index.mjs +1 -1
  15. package/dist/document-understanding/index.cjs +257 -0
  16. package/dist/document-understanding/index.d.ts +1185 -0
  17. package/dist/document-understanding/index.mjs +255 -0
  18. package/dist/entities/index.cjs +277 -15
  19. package/dist/entities/index.d.ts +135 -0
  20. package/dist/entities/index.mjs +277 -15
  21. package/dist/feedback/index.cjs +8 -1
  22. package/dist/feedback/index.mjs +8 -1
  23. package/dist/index.cjs +578 -15
  24. package/dist/index.d.ts +1384 -9
  25. package/dist/index.mjs +580 -18
  26. package/dist/index.umd.js +578 -15
  27. package/dist/jobs/index.cjs +54 -1
  28. package/dist/jobs/index.d.ts +52 -0
  29. package/dist/jobs/index.mjs +54 -1
  30. package/dist/maestro-processes/index.cjs +8 -1
  31. package/dist/maestro-processes/index.mjs +8 -1
  32. package/dist/processes/index.cjs +8 -1
  33. package/dist/processes/index.mjs +8 -1
  34. package/dist/queues/index.cjs +8 -1
  35. package/dist/queues/index.mjs +8 -1
  36. package/dist/tasks/index.cjs +8 -1
  37. package/dist/tasks/index.mjs +8 -1
  38. package/package.json +12 -2
@@ -504,6 +504,8 @@ class ErrorFactory {
504
504
  }
505
505
 
506
506
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
507
+ const TRACEPARENT = 'traceparent';
508
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
507
509
  /**
508
510
  * Content type constants for HTTP requests/responses
509
511
  */
@@ -557,8 +559,13 @@ class ApiClient {
557
559
  if (isFormData) {
558
560
  delete defaultHeaders['Content-Type'];
559
561
  }
562
+ const traceId = crypto.randomUUID().replace(/-/g, '');
563
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
564
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
560
565
  const headers = {
561
566
  ...defaultHeaders,
567
+ [TRACEPARENT]: traceparentValue,
568
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
562
569
  ...options.headers
563
570
  };
564
571
  // Convert params to URLSearchParams
@@ -1556,7 +1563,7 @@ const FEEDBACK_ENDPOINTS = {
1556
1563
  // Connection string placeholder that will be replaced during build
1557
1564
  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";
1558
1565
  // SDK Version placeholder
1559
- const SDK_VERSION = "1.3.3";
1566
+ const SDK_VERSION = "1.3.5";
1560
1567
  const VERSION = "Version";
1561
1568
  const SERVICE = "Service";
1562
1569
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";