@uipath/uipath-typescript 1.3.3 → 1.3.4

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.
@@ -506,6 +506,8 @@ class ErrorFactory {
506
506
  }
507
507
 
508
508
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
509
+ const TRACEPARENT = 'traceparent';
510
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
509
511
  /**
510
512
  * Content type constants for HTTP requests/responses
511
513
  */
@@ -559,8 +561,13 @@ class ApiClient {
559
561
  if (isFormData) {
560
562
  delete defaultHeaders['Content-Type'];
561
563
  }
564
+ const traceId = crypto.randomUUID().replace(/-/g, '');
565
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
566
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
562
567
  const headers = {
563
568
  ...defaultHeaders,
569
+ [TRACEPARENT]: traceparentValue,
570
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
564
571
  ...options.headers
565
572
  };
566
573
  // Convert params to URLSearchParams
@@ -1678,7 +1685,7 @@ const AssetMap = {
1678
1685
  // Connection string placeholder that will be replaced during build
1679
1686
  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";
1680
1687
  // SDK Version placeholder
1681
- const SDK_VERSION = "1.3.3";
1688
+ const SDK_VERSION = "1.3.4";
1682
1689
  const VERSION = "Version";
1683
1690
  const SERVICE = "Service";
1684
1691
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -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
@@ -1676,7 +1683,7 @@ const AssetMap = {
1676
1683
  // Connection string placeholder that will be replaced during build
1677
1684
  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";
1678
1685
  // SDK Version placeholder
1679
- const SDK_VERSION = "1.3.3";
1686
+ const SDK_VERSION = "1.3.4";
1680
1687
  const VERSION = "Version";
1681
1688
  const SERVICE = "Service";
1682
1689
  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.3";
479
+ const SDK_VERSION = "1.3.4";
480
480
  const VERSION = "Version";
481
481
  const SERVICE = "Service";
482
482
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -985,6 +985,8 @@ class ErrorFactory {
985
985
  }
986
986
 
987
987
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
988
+ const TRACEPARENT = 'traceparent';
989
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
988
990
  /**
989
991
  * Content type constants for HTTP requests/responses
990
992
  */
@@ -1038,8 +1040,13 @@ class ApiClient {
1038
1040
  if (isFormData) {
1039
1041
  delete defaultHeaders['Content-Type'];
1040
1042
  }
1043
+ const traceId = crypto.randomUUID().replace(/-/g, '');
1044
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
1045
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
1041
1046
  const headers = {
1042
1047
  ...defaultHeaders,
1048
+ [TRACEPARENT]: traceparentValue,
1049
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
1043
1050
  ...options.headers
1044
1051
  };
1045
1052
  // Convert params to URLSearchParams
@@ -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.3";
477
+ const SDK_VERSION = "1.3.4";
478
478
  const VERSION = "Version";
479
479
  const SERVICE = "Service";
480
480
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -983,6 +983,8 @@ class ErrorFactory {
983
983
  }
984
984
 
985
985
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
986
+ const TRACEPARENT = 'traceparent';
987
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
986
988
  /**
987
989
  * Content type constants for HTTP requests/responses
988
990
  */
@@ -1036,8 +1038,13 @@ class ApiClient {
1036
1038
  if (isFormData) {
1037
1039
  delete defaultHeaders['Content-Type'];
1038
1040
  }
1041
+ const traceId = crypto.randomUUID().replace(/-/g, '');
1042
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
1043
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
1039
1044
  const headers = {
1040
1045
  ...defaultHeaders,
1046
+ [TRACEPARENT]: traceparentValue,
1047
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
1041
1048
  ...options.headers
1042
1049
  };
1043
1050
  // Convert params to URLSearchParams
@@ -506,6 +506,8 @@ class ErrorFactory {
506
506
  }
507
507
 
508
508
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
509
+ const TRACEPARENT = 'traceparent';
510
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
509
511
  /**
510
512
  * Content type constants for HTTP requests/responses
511
513
  */
@@ -559,8 +561,13 @@ class ApiClient {
559
561
  if (isFormData) {
560
562
  delete defaultHeaders['Content-Type'];
561
563
  }
564
+ const traceId = crypto.randomUUID().replace(/-/g, '');
565
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
566
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
562
567
  const headers = {
563
568
  ...defaultHeaders,
569
+ [TRACEPARENT]: traceparentValue,
570
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
564
571
  ...options.headers
565
572
  };
566
573
  // Convert params to URLSearchParams
@@ -1725,7 +1732,7 @@ const BucketMap = {
1725
1732
  // Connection string placeholder that will be replaced during build
1726
1733
  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";
1727
1734
  // SDK Version placeholder
1728
- const SDK_VERSION = "1.3.3";
1735
+ const SDK_VERSION = "1.3.4";
1729
1736
  const VERSION = "Version";
1730
1737
  const SERVICE = "Service";
1731
1738
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -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
@@ -1723,7 +1730,7 @@ const BucketMap = {
1723
1730
  // Connection string placeholder that will be replaced during build
1724
1731
  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";
1725
1732
  // SDK Version placeholder
1726
- const SDK_VERSION = "1.3.3";
1733
+ const SDK_VERSION = "1.3.4";
1727
1734
  const VERSION = "Version";
1728
1735
  const SERVICE = "Service";
1729
1736
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -519,6 +519,8 @@ class ErrorFactory {
519
519
 
520
520
  const FOLDER_KEY = 'X-UIPATH-FolderKey';
521
521
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
522
+ const TRACEPARENT = 'traceparent';
523
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
522
524
  /**
523
525
  * Content type constants for HTTP requests/responses
524
526
  */
@@ -572,8 +574,13 @@ class ApiClient {
572
574
  if (isFormData) {
573
575
  delete defaultHeaders['Content-Type'];
574
576
  }
577
+ const traceId = crypto.randomUUID().replace(/-/g, '');
578
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
579
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
575
580
  const headers = {
576
581
  ...defaultHeaders,
582
+ [TRACEPARENT]: traceparentValue,
583
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
577
584
  ...options.headers
578
585
  };
579
586
  // Convert params to URLSearchParams
@@ -1835,7 +1842,7 @@ const MAESTRO_ENDPOINTS = {
1835
1842
  // Connection string placeholder that will be replaced during build
1836
1843
  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";
1837
1844
  // SDK Version placeholder
1838
- const SDK_VERSION = "1.3.3";
1845
+ const SDK_VERSION = "1.3.4";
1839
1846
  const VERSION = "Version";
1840
1847
  const SERVICE = "Service";
1841
1848
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -517,6 +517,8 @@ class ErrorFactory {
517
517
 
518
518
  const FOLDER_KEY = 'X-UIPATH-FolderKey';
519
519
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
520
+ const TRACEPARENT = 'traceparent';
521
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
520
522
  /**
521
523
  * Content type constants for HTTP requests/responses
522
524
  */
@@ -570,8 +572,13 @@ class ApiClient {
570
572
  if (isFormData) {
571
573
  delete defaultHeaders['Content-Type'];
572
574
  }
575
+ const traceId = crypto.randomUUID().replace(/-/g, '');
576
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
577
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
573
578
  const headers = {
574
579
  ...defaultHeaders,
580
+ [TRACEPARENT]: traceparentValue,
581
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
575
582
  ...options.headers
576
583
  };
577
584
  // Convert params to URLSearchParams
@@ -1833,7 +1840,7 @@ const MAESTRO_ENDPOINTS = {
1833
1840
  // Connection string placeholder that will be replaced during build
1834
1841
  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";
1835
1842
  // SDK Version placeholder
1836
- const SDK_VERSION = "1.3.3";
1843
+ const SDK_VERSION = "1.3.4";
1837
1844
  const VERSION = "Version";
1838
1845
  const SERVICE = "Service";
1839
1846
  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.3";
54
+ const SDK_VERSION = "1.3.4";
55
55
  const VERSION = "Version";
56
56
  const SERVICE = "Service";
57
57
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -781,6 +781,8 @@ class ErrorFactory {
781
781
  }
782
782
 
783
783
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
784
+ const TRACEPARENT = 'traceparent';
785
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
784
786
  /**
785
787
  * Content type constants for HTTP requests/responses
786
788
  */
@@ -847,8 +849,13 @@ class ApiClient {
847
849
  if (isFormData) {
848
850
  delete defaultHeaders['Content-Type'];
849
851
  }
852
+ const traceId = crypto.randomUUID().replace(/-/g, '');
853
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
854
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
850
855
  const headers = {
851
856
  ...defaultHeaders,
857
+ [TRACEPARENT]: traceparentValue,
858
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
852
859
  ...options.headers
853
860
  };
854
861
  // Convert params to URLSearchParams
@@ -429,6 +429,12 @@ interface ExternalValue {
429
429
  * from which the data can be downloaded.
430
430
  */
431
431
  type InlineOrExternalValue<T> = InlineValue<T> | ExternalValue;
432
+ /**
433
+ * Input arguments passed in to the execution of the agent on each exchange. The input arguments are
434
+ * expected to match the input-schema defined in the Agent definition. Currently, only inline values
435
+ * are supported and the total serialized JSON payload must be less than 4,000 characters.
436
+ */
437
+ type AgentInput = InlineValue<JSONObject>;
432
438
  /**
433
439
  * Tool call input value type.
434
440
  */
@@ -800,6 +806,10 @@ interface RawConversationGetResponse {
800
806
  * Whether the conversation's job is running locally.
801
807
  */
802
808
  isLocalJobExecution?: boolean;
809
+ /**
810
+ * Optional agent input arguments for the conversation.
811
+ */
812
+ agentInput?: AgentInput;
803
813
  }
804
814
 
805
815
  /**
@@ -3689,7 +3699,7 @@ interface ConversationServiceModel {
3689
3699
  * @param options - Optional settings for the conversation
3690
3700
  * @returns Promise resolving to {@link ConversationCreateResponse} with bound methods
3691
3701
  *
3692
- * @example
3702
+ * @example Basic usage
3693
3703
  * ```typescript
3694
3704
  * const conversation = await conversationalAgent.conversations.create(
3695
3705
  * agentId,
@@ -3706,6 +3716,19 @@ interface ConversationServiceModel {
3706
3716
  * // Delete the conversation
3707
3717
  * await conversation.delete();
3708
3718
  * ```
3719
+ *
3720
+ * @example With agent input arguments
3721
+ * ```typescript
3722
+ * const conversation = await conversationalAgent.conversations.create(
3723
+ * agentId,
3724
+ * folderId,
3725
+ * {
3726
+ * agentInput: {
3727
+ * inline: { userId: 'user-123', language: 'en' }
3728
+ * }
3729
+ * }
3730
+ * );
3731
+ * ```
3709
3732
  */
3710
3733
  create(agentId: number, folderId: number, options?: ConversationCreateOptions): Promise<ConversationCreateResponse>;
3711
3734
  /**
@@ -4117,6 +4140,8 @@ interface ConversationCreateOptions {
4117
4140
  traceId?: string;
4118
4141
  /** Optional configuration for job start behavior */
4119
4142
  jobStartOverrides?: ConversationJobStartOverrides;
4143
+ /** Input arguments for the agent */
4144
+ agentInput?: AgentInput;
4120
4145
  }
4121
4146
  interface ConversationUpdateOptions {
4122
4147
  /** Human-readable label for the conversation */
@@ -4127,6 +4152,8 @@ interface ConversationUpdateOptions {
4127
4152
  jobKey?: string;
4128
4153
  /** Whether the conversation's job is running locally */
4129
4154
  isLocalJobExecution?: boolean;
4155
+ /** Input arguments for the agent */
4156
+ agentInput?: AgentInput;
4130
4157
  }
4131
4158
  type ConversationGetAllOptions = PaginationOptions & {
4132
4159
  /** Sort order for conversations */
@@ -6690,4 +6717,4 @@ declare class UserService extends BaseService implements UserServiceModel {
6690
6717
  }
6691
6718
 
6692
6719
  export { AgentMap, AsyncInputStreamEventHelper, AsyncInputStreamEventHelperImpl, AsyncToolCallEventHelper, AsyncToolCallEventHelperImpl, CitationErrorType, ContentPartEventHelper, ContentPartEventHelperImpl, ContentPartHelper, ConversationEventHelperBase, ConversationEventHelperManager, ConversationEventHelperManagerImpl, ConversationEventInvalidOperationError, ConversationEventValidationError, ConversationMap, ConversationalAgentService as ConversationalAgent, ConversationalAgentService, EventErrorId, ExchangeEventHelper, ExchangeEventHelperImpl, ExchangeMap, ExchangeService, ExchangeService as Exchanges, FeedbackRating, InputStreamSpeechSensitivity, InterruptType, MessageEventHelper, MessageEventHelperImpl, MessageMap, MessageRole, MessageService, MessageService as Messages, SessionEventHelper, SessionEventHelperImpl, SortOrder, ToolCallEventHelper, ToolCallEventHelperImpl, UserService as User, UserService, UserSettingsMap, assertCitationSourceMedia, assertCitationSourceUrl, assertExternalValue, assertInlineValue, createAgentWithMethods, createConversationWithMethods, isCitationSourceMedia, isCitationSourceUrl, isExternalValue, isInlineValue, transformExchange, transformExchanges, transformMessage };
6693
- export type { AgentAppearance, AgentConversationServiceModel, AgentCreateConversationOptions, AgentGetByIdResponse, AgentGetResponse, AgentMethods, AgentStartingPrompt, AnyErrorEndHandler, AnyErrorEndHandlerArgs, AnyErrorStartHandler, AnyErrorStartHandlerArgs, AsyncInputStream, AsyncInputStreamChunkEvent, AsyncInputStreamChunkHandler, AsyncInputStreamEndEvent, AsyncInputStreamEndHandler, AsyncInputStreamEvent, AsyncInputStreamStartEvent, AsyncToolCallStartHandler, AsyncToolCallStartHandlerAsync, AsyncToolCallStream, ChunkHandler, Citation, CitationEndEvent, CitationError, CitationEvent, CitationOptions, CitationSource, CitationSourceBase, CitationSourceMedia, CitationSourceUrl, CitationStartEvent, CompletedContentPart, CompletedMessage, CompletedToolCall, ContentPart, ContentPartChunkEvent, ContentPartCompletedHandler, ContentPartData, ContentPartEndEvent, ContentPartEndHandler, ContentPartEvent, ContentPartGetResponse, ContentPartInterrupted, ContentPartStartEvent, ContentPartStartEventOptions, ContentPartStartEventWithData, ContentPartStartHandler, ContentPartStartHandlerAsync, ContentPartStartMetaData, ContentPartStream, ConversationAttachmentCreateResponse, ConversationAttachmentUploadResponse, ConversationCreateOptions, ConversationCreateResponse, ConversationDeleteResponse, ConversationEvent, ConversationEventEmitter, ConversationEventErrorSource, ConversationEventHandler, ConversationEventHelperManagerConfig, ConversationEventHelperProperties, ConversationExchangeServiceModel, ConversationGetAllOptions, ConversationGetResponse, ConversationJobStartOverrides, ConversationMethods, ConversationServiceModel, ConversationSessionMethods, ConversationSessionOptions, ConversationUpdateOptions, ConversationUpdateResponse, ConversationalAgentOptions, ConversationalAgentServiceModel, CreateFeedbackOptions, DeletedHandler, ErrorEndEvent, ErrorEndEventOptions, ErrorEndHandler, ErrorEndHandlerArgs, ErrorEvent, ErrorStartEvent, ErrorStartEventOptions, ErrorStartHandler, ErrorStartHandlerArgs, Exchange, ExchangeEndEvent, ExchangeEndHandler, ExchangeEvent, ExchangeGetAllOptions, ExchangeGetByIdOptions, ExchangeGetResponse, ExchangeServiceModel, ExchangeStartEvent, ExchangeStartEventOptions, ExchangeStartHandler, ExchangeStartHandlerAsync, ExchangeStream, ExternalValue, FeatureFlags, FeedbackCreateResponse, FileUploadAccess, GenericInterruptStartEvent, InlineOrExternalValue, InlineValue, InputStreamStartEventOptions, InputStreamStartHandler, Interrupt, InterruptCompletedHandler, InterruptCompletedHandlerArgs, InterruptEndEvent, InterruptEndHandler, InterruptEndHandlerArgs, InterruptEvent, InterruptStartEvent, InterruptStartHandler, InterruptStartHandlerArgs, JSONArray, JSONObject, JSONPrimitive, JSONValue, LabelUpdatedEvent, LabelUpdatedHandler, MakeOptional, MakeRequired, Message, MessageCompletedHandler, MessageEndEvent, MessageEndHandler, MessageEvent, MessageGetResponse, MessageServiceModel, MessageStartEvent, MessageStartEventOptions, MessageStartHandler, MessageStartHandlerAsync, MessageStream, MetaData, MetaEvent, MetaEventHandler, RawAgentGetByIdResponse, RawAgentGetResponse, RawConversationGetResponse, SendMessageWithContentPartOptions, SessionCapabilities, SessionEndEvent, SessionEndHandler, SessionEndingEvent, SessionEndingHandler, SessionStartEvent, SessionStartEventOptions, SessionStartHandler, SessionStartHandlerAsync, SessionStartedEvent, SessionStartedHandler, SessionStream, Simplify, ToolCall, ToolCallCompletedHandler, ToolCallConfirmationEndValue, ToolCallConfirmationInterruptStartEvent, ToolCallConfirmationValue, ToolCallEndEvent, ToolCallEndHandler, ToolCallEvent, ToolCallInputValue, ToolCallOutputValue, ToolCallResult, ToolCallStartEvent, ToolCallStartEventWithId, ToolCallStartHandler, ToolCallStartHandlerAsync, ToolCallStream, UnhandledErrorEndHandler, UnhandledErrorEndHandlerArgs, UnhandledErrorStartHandler, UnhandledErrorStartHandlerArgs, UserServiceModel, UserSettingsGetResponse, UserSettingsUpdateOptions, UserSettingsUpdateResponse };
6720
+ export type { AgentAppearance, AgentConversationServiceModel, AgentCreateConversationOptions, AgentGetByIdResponse, AgentGetResponse, AgentInput, AgentMethods, AgentStartingPrompt, AnyErrorEndHandler, AnyErrorEndHandlerArgs, AnyErrorStartHandler, AnyErrorStartHandlerArgs, AsyncInputStream, AsyncInputStreamChunkEvent, AsyncInputStreamChunkHandler, AsyncInputStreamEndEvent, AsyncInputStreamEndHandler, AsyncInputStreamEvent, AsyncInputStreamStartEvent, AsyncToolCallStartHandler, AsyncToolCallStartHandlerAsync, AsyncToolCallStream, ChunkHandler, Citation, CitationEndEvent, CitationError, CitationEvent, CitationOptions, CitationSource, CitationSourceBase, CitationSourceMedia, CitationSourceUrl, CitationStartEvent, CompletedContentPart, CompletedMessage, CompletedToolCall, ContentPart, ContentPartChunkEvent, ContentPartCompletedHandler, ContentPartData, ContentPartEndEvent, ContentPartEndHandler, ContentPartEvent, ContentPartGetResponse, ContentPartInterrupted, ContentPartStartEvent, ContentPartStartEventOptions, ContentPartStartEventWithData, ContentPartStartHandler, ContentPartStartHandlerAsync, ContentPartStartMetaData, ContentPartStream, ConversationAttachmentCreateResponse, ConversationAttachmentUploadResponse, ConversationCreateOptions, ConversationCreateResponse, ConversationDeleteResponse, ConversationEvent, ConversationEventEmitter, ConversationEventErrorSource, ConversationEventHandler, ConversationEventHelperManagerConfig, ConversationEventHelperProperties, ConversationExchangeServiceModel, ConversationGetAllOptions, ConversationGetResponse, ConversationJobStartOverrides, ConversationMethods, ConversationServiceModel, ConversationSessionMethods, ConversationSessionOptions, ConversationUpdateOptions, ConversationUpdateResponse, ConversationalAgentOptions, ConversationalAgentServiceModel, CreateFeedbackOptions, DeletedHandler, ErrorEndEvent, ErrorEndEventOptions, ErrorEndHandler, ErrorEndHandlerArgs, ErrorEvent, ErrorStartEvent, ErrorStartEventOptions, ErrorStartHandler, ErrorStartHandlerArgs, Exchange, ExchangeEndEvent, ExchangeEndHandler, ExchangeEvent, ExchangeGetAllOptions, ExchangeGetByIdOptions, ExchangeGetResponse, ExchangeServiceModel, ExchangeStartEvent, ExchangeStartEventOptions, ExchangeStartHandler, ExchangeStartHandlerAsync, ExchangeStream, ExternalValue, FeatureFlags, FeedbackCreateResponse, FileUploadAccess, GenericInterruptStartEvent, InlineOrExternalValue, InlineValue, InputStreamStartEventOptions, InputStreamStartHandler, Interrupt, InterruptCompletedHandler, InterruptCompletedHandlerArgs, InterruptEndEvent, InterruptEndHandler, InterruptEndHandlerArgs, InterruptEvent, InterruptStartEvent, InterruptStartHandler, InterruptStartHandlerArgs, JSONArray, JSONObject, JSONPrimitive, JSONValue, LabelUpdatedEvent, LabelUpdatedHandler, MakeOptional, MakeRequired, Message, MessageCompletedHandler, MessageEndEvent, MessageEndHandler, MessageEvent, MessageGetResponse, MessageServiceModel, MessageStartEvent, MessageStartEventOptions, MessageStartHandler, MessageStartHandlerAsync, MessageStream, MetaData, MetaEvent, MetaEventHandler, RawAgentGetByIdResponse, RawAgentGetResponse, RawConversationGetResponse, SendMessageWithContentPartOptions, SessionCapabilities, SessionEndEvent, SessionEndHandler, SessionEndingEvent, SessionEndingHandler, SessionStartEvent, SessionStartEventOptions, SessionStartHandler, SessionStartHandlerAsync, SessionStartedEvent, SessionStartedHandler, SessionStream, Simplify, ToolCall, ToolCallCompletedHandler, ToolCallConfirmationEndValue, ToolCallConfirmationInterruptStartEvent, ToolCallConfirmationValue, ToolCallEndEvent, ToolCallEndHandler, ToolCallEvent, ToolCallInputValue, ToolCallOutputValue, ToolCallResult, ToolCallStartEvent, ToolCallStartEventWithId, ToolCallStartHandler, ToolCallStartHandlerAsync, ToolCallStream, UnhandledErrorEndHandler, UnhandledErrorEndHandlerArgs, UnhandledErrorStartHandler, UnhandledErrorStartHandlerArgs, UserServiceModel, UserSettingsGetResponse, UserSettingsUpdateOptions, UserSettingsUpdateResponse };
@@ -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.3";
52
+ const SDK_VERSION = "1.3.4";
53
53
  const VERSION = "Version";
54
54
  const SERVICE = "Service";
55
55
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -779,6 +779,8 @@ class ErrorFactory {
779
779
  }
780
780
 
781
781
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
782
+ const TRACEPARENT = 'traceparent';
783
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
782
784
  /**
783
785
  * Content type constants for HTTP requests/responses
784
786
  */
@@ -845,8 +847,13 @@ class ApiClient {
845
847
  if (isFormData) {
846
848
  delete defaultHeaders['Content-Type'];
847
849
  }
850
+ const traceId = crypto.randomUUID().replace(/-/g, '');
851
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
852
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
848
853
  const headers = {
849
854
  ...defaultHeaders,
855
+ [TRACEPARENT]: traceparentValue,
856
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
850
857
  ...options.headers
851
858
  };
852
859
  // Convert params to URLSearchParams
@@ -5295,7 +5295,7 @@ function normalizeBaseUrl(url) {
5295
5295
  // Connection string placeholder that will be replaced during build
5296
5296
  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";
5297
5297
  // SDK Version placeholder
5298
- const SDK_VERSION = "1.3.3";
5298
+ const SDK_VERSION = "1.3.4";
5299
5299
  const VERSION = "Version";
5300
5300
  const SERVICE = "Service";
5301
5301
  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.3";
522
+ declare const SDK_VERSION = "1.3.4";
523
523
  declare const VERSION = "Version";
524
524
  declare const SERVICE = "Service";
525
525
  declare const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -5293,7 +5293,7 @@ function normalizeBaseUrl(url) {
5293
5293
  // Connection string placeholder that will be replaced during build
5294
5294
  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";
5295
5295
  // SDK Version placeholder
5296
- const SDK_VERSION = "1.3.3";
5296
+ const SDK_VERSION = "1.3.4";
5297
5297
  const VERSION = "Version";
5298
5298
  const SERVICE = "Service";
5299
5299
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -506,6 +506,8 @@ class ErrorFactory {
506
506
  }
507
507
 
508
508
  const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
509
+ const TRACEPARENT = 'traceparent';
510
+ const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
509
511
  /**
510
512
  * Content type constants for HTTP requests/responses
511
513
  */
@@ -559,8 +561,13 @@ class ApiClient {
559
561
  if (isFormData) {
560
562
  delete defaultHeaders['Content-Type'];
561
563
  }
564
+ const traceId = crypto.randomUUID().replace(/-/g, '');
565
+ const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
566
+ const traceparentValue = `00-${traceId}-${spanId}-01`;
562
567
  const headers = {
563
568
  ...defaultHeaders,
569
+ [TRACEPARENT]: traceparentValue,
570
+ [UIPATH_TRACEPARENT_ID]: traceparentValue,
564
571
  ...options.headers
565
572
  };
566
573
  // Convert params to URLSearchParams
@@ -1669,6 +1676,13 @@ function createEntityMethods(entityData, service) {
1669
1676
  throw new Error('Entity ID is undefined');
1670
1677
  return service.deleteRecordsById(entityData.id, recordIds, options);
1671
1678
  },
1679
+ async deleteRecord(recordId) {
1680
+ if (!entityData.id)
1681
+ throw new Error('Entity ID is undefined');
1682
+ if (!recordId)
1683
+ throw new Error('Record ID is undefined');
1684
+ return service.deleteRecordById(entityData.id, recordId);
1685
+ },
1672
1686
  async getAllRecords(options) {
1673
1687
  if (!entityData.id)
1674
1688
  throw new Error('Entity ID is undefined');
@@ -1863,6 +1877,7 @@ const DATA_FABRIC_ENDPOINTS = {
1863
1877
  BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
1864
1878
  UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
1865
1879
  UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
1880
+ DELETE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete/${recordId}`,
1866
1881
  DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
1867
1882
  UPSERT: `${DATAFABRIC_BASE}/api/Entity`,
1868
1883
  DELETE: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
@@ -2000,7 +2015,7 @@ const EntityFieldTypeMap = {
2000
2015
  // Connection string placeholder that will be replaced during build
2001
2016
  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";
2002
2017
  // SDK Version placeholder
2003
- const SDK_VERSION = "1.3.3";
2018
+ const SDK_VERSION = "1.3.4";
2004
2019
  const VERSION = "Version";
2005
2020
  const SERVICE = "Service";
2006
2021
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -2538,6 +2553,8 @@ class EntityService extends BaseService {
2538
2553
  /**
2539
2554
  * Deletes data from an entity by entity ID
2540
2555
  *
2556
+ * Note: Records deleted using deleteRecordsById will not trigger Data Fabric trigger events. Use {@link deleteRecordById} if you need trigger events to fire for the deleted record.
2557
+ *
2541
2558
  * @param entityId - UUID of the entity
2542
2559
  * @param recordIds - Array of record UUIDs to delete
2543
2560
  * @param options - Delete options
@@ -2565,6 +2582,27 @@ class EntityService extends BaseService {
2565
2582
  });
2566
2583
  return response.data;
2567
2584
  }
2585
+ /**
2586
+ * Deletes a single record from an entity by entity ID and record ID
2587
+ *
2588
+ * Note: Data Fabric supports trigger events only on individual deletes, not on deleting multiple records.
2589
+ * Use this method if you need trigger events to fire for the deleted record.
2590
+ *
2591
+ * @param entityId - UUID of the entity
2592
+ * @param recordId - UUID of the record to delete
2593
+ * @returns Promise resolving to void on success
2594
+ * @example
2595
+ * ```typescript
2596
+ * import { Entities } from '@uipath/uipath-typescript/entities';
2597
+ *
2598
+ * const entities = new Entities(sdk);
2599
+ *
2600
+ * await entities.deleteRecordById("<entityId>", "<recordId>");
2601
+ * ```
2602
+ */
2603
+ async deleteRecordById(entityId, recordId) {
2604
+ await this.delete(DATA_FABRIC_ENDPOINTS.ENTITY.DELETE_RECORD_BY_ID(entityId, recordId));
2605
+ }
2568
2606
  /**
2569
2607
  * Gets all entities in the system
2570
2608
  *
@@ -3117,6 +3155,9 @@ __decorate([
3117
3155
  __decorate([
3118
3156
  track('Entities.DeleteRecordsById')
3119
3157
  ], EntityService.prototype, "deleteRecordsById", null);
3158
+ __decorate([
3159
+ track('Entities.DeleteRecordById')
3160
+ ], EntityService.prototype, "deleteRecordById", null);
3120
3161
  __decorate([
3121
3162
  track('Entities.GetAll')
3122
3163
  ], EntityService.prototype, "getAll", null);
@@ -1122,6 +1122,8 @@ interface EntityServiceModel {
1122
1122
  /**
1123
1123
  * Deletes data from an entity by entity ID
1124
1124
  *
1125
+ * Note: Records deleted using deleteRecordsById will not trigger Data Fabric trigger events. Use {@link deleteRecordById} if you need trigger events to fire for the deleted record.
1126
+ *
1125
1127
  * @param id - UUID of the entity
1126
1128
  * @param recordIds - Array of record UUIDs to delete
1127
1129
  * @param options - Delete options
@@ -1136,6 +1138,25 @@ interface EntityServiceModel {
1136
1138
  * ```
1137
1139
  */
1138
1140
  deleteRecordsById(id: string, recordIds: string[], options?: EntityDeleteRecordsOptions): Promise<EntityDeleteResponse>;
1141
+ /**
1142
+ * Deletes a single record from an entity by entity ID and record ID
1143
+ *
1144
+ * Note: Data Fabric supports trigger events only on individual deletes, not on deleting multiple records.
1145
+ * Use this method if you need trigger events to fire for the deleted record.
1146
+ *
1147
+ * @param entityId - UUID of the entity
1148
+ * @param recordId - UUID of the record to delete
1149
+ * @returns Promise resolving to void on success
1150
+ * @example
1151
+ * ```typescript
1152
+ * import { Entities } from '@uipath/uipath-typescript/entities';
1153
+ *
1154
+ * const entities = new Entities(sdk);
1155
+ *
1156
+ * await entities.deleteRecordById("<entityId>", "<recordId>");
1157
+ * ```
1158
+ */
1159
+ deleteRecordById(entityId: string, recordId: string): Promise<void>;
1139
1160
  /**
1140
1161
  * Queries entity records with filters, sorting, and SDK-managed pagination
1141
1162
  *
@@ -1426,11 +1447,23 @@ interface EntityMethods {
1426
1447
  /**
1427
1448
  * Delete data from this entity
1428
1449
  *
1450
+ * Note: Records deleted using deleteRecords will not trigger Data Fabric trigger events. Use {@link deleteRecord} if you need trigger events to fire for the deleted record.
1451
+ *
1429
1452
  * @param recordIds - Array of record UUIDs to delete
1430
1453
  * @param options - Delete options
1431
1454
  * @returns Promise resolving to delete response
1432
1455
  */
1433
1456
  deleteRecords(recordIds: string[], options?: EntityDeleteRecordsOptions): Promise<EntityDeleteResponse>;
1457
+ /**
1458
+ * Delete a single record from this entity
1459
+ *
1460
+ * Note: Data Fabric supports trigger events only on individual deletes, not on deleting multiple records.
1461
+ * Use this method if you need trigger events to fire for the deleted record.
1462
+ *
1463
+ * @param recordId - UUID of the record to delete
1464
+ * @returns Promise resolving to void on success
1465
+ */
1466
+ deleteRecord(recordId: string): Promise<void>;
1434
1467
  /**
1435
1468
  * Get all records from this entity
1436
1469
  *
@@ -1764,6 +1797,8 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1764
1797
  /**
1765
1798
  * Deletes data from an entity by entity ID
1766
1799
  *
1800
+ * Note: Records deleted using deleteRecordsById will not trigger Data Fabric trigger events. Use {@link deleteRecordById} if you need trigger events to fire for the deleted record.
1801
+ *
1767
1802
  * @param entityId - UUID of the entity
1768
1803
  * @param recordIds - Array of record UUIDs to delete
1769
1804
  * @param options - Delete options
@@ -1782,6 +1817,25 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1782
1817
  * ```
1783
1818
  */
1784
1819
  deleteRecordsById(id: string, recordIds: string[], options?: EntityDeleteRecordsOptions): Promise<EntityDeleteResponse>;
1820
+ /**
1821
+ * Deletes a single record from an entity by entity ID and record ID
1822
+ *
1823
+ * Note: Data Fabric supports trigger events only on individual deletes, not on deleting multiple records.
1824
+ * Use this method if you need trigger events to fire for the deleted record.
1825
+ *
1826
+ * @param entityId - UUID of the entity
1827
+ * @param recordId - UUID of the record to delete
1828
+ * @returns Promise resolving to void on success
1829
+ * @example
1830
+ * ```typescript
1831
+ * import { Entities } from '@uipath/uipath-typescript/entities';
1832
+ *
1833
+ * const entities = new Entities(sdk);
1834
+ *
1835
+ * await entities.deleteRecordById("<entityId>", "<recordId>");
1836
+ * ```
1837
+ */
1838
+ deleteRecordById(entityId: string, recordId: string): Promise<void>;
1785
1839
  /**
1786
1840
  * Gets all entities in the system
1787
1841
  *