@uipath/uipath-typescript 1.3.11 → 1.4.0

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 (56) hide show
  1. package/dist/agent-memory/index.cjs +1765 -0
  2. package/dist/agent-memory/index.d.ts +588 -0
  3. package/dist/agent-memory/index.mjs +1763 -0
  4. package/dist/agents/index.cjs +1726 -0
  5. package/dist/agents/index.d.ts +502 -0
  6. package/dist/agents/index.mjs +1724 -0
  7. package/dist/assets/index.cjs +155 -30
  8. package/dist/assets/index.d.ts +84 -5
  9. package/dist/assets/index.mjs +155 -30
  10. package/dist/attachments/index.cjs +37 -6
  11. package/dist/attachments/index.d.ts +1 -0
  12. package/dist/attachments/index.mjs +37 -6
  13. package/dist/buckets/index.cjs +37 -6
  14. package/dist/buckets/index.d.ts +1 -0
  15. package/dist/buckets/index.mjs +37 -6
  16. package/dist/cases/index.cjs +141 -10
  17. package/dist/cases/index.d.ts +118 -7
  18. package/dist/cases/index.mjs +141 -11
  19. package/dist/conversational-agent/index.cjs +124 -57
  20. package/dist/conversational-agent/index.d.ts +190 -122
  21. package/dist/conversational-agent/index.mjs +124 -57
  22. package/dist/core/index.cjs +413 -105
  23. package/dist/core/index.d.ts +15 -0
  24. package/dist/core/index.mjs +413 -105
  25. package/dist/entities/index.cjs +122 -43
  26. package/dist/entities/index.d.ts +140 -35
  27. package/dist/entities/index.mjs +122 -43
  28. package/dist/feedback/index.cjs +37 -6
  29. package/dist/feedback/index.d.ts +1 -0
  30. package/dist/feedback/index.mjs +37 -6
  31. package/dist/governance/index.cjs +1782 -0
  32. package/dist/governance/index.d.ts +598 -0
  33. package/dist/governance/index.mjs +1780 -0
  34. package/dist/index.cjs +956 -283
  35. package/dist/index.d.ts +1138 -121
  36. package/dist/index.mjs +956 -284
  37. package/dist/index.umd.js +3113 -2423
  38. package/dist/jobs/index.cjs +37 -6
  39. package/dist/jobs/index.d.ts +1 -0
  40. package/dist/jobs/index.mjs +37 -6
  41. package/dist/maestro-processes/index.cjs +173 -18
  42. package/dist/maestro-processes/index.d.ts +131 -9
  43. package/dist/maestro-processes/index.mjs +173 -18
  44. package/dist/processes/index.cjs +37 -6
  45. package/dist/processes/index.d.ts +1 -0
  46. package/dist/processes/index.mjs +37 -6
  47. package/dist/queues/index.cjs +37 -6
  48. package/dist/queues/index.d.ts +1 -0
  49. package/dist/queues/index.mjs +37 -6
  50. package/dist/tasks/index.cjs +37 -6
  51. package/dist/tasks/index.d.ts +1 -0
  52. package/dist/tasks/index.mjs +37 -6
  53. package/dist/traces/index.cjs +37 -6
  54. package/dist/traces/index.d.ts +1 -0
  55. package/dist/traces/index.mjs +37 -6
  56. package/package.json +32 -2
@@ -52,24 +52,6 @@ interface PaginatedResponse<T> {
52
52
  /** Whether this pagination type supports jumping to arbitrary pages */
53
53
  supportsPageJump: boolean;
54
54
  }
55
- /**
56
- * Response for non-paginated calls that includes both data and total count
57
- */
58
- interface NonPaginatedResponse<T> {
59
- items: T[];
60
- totalCount?: number;
61
- }
62
- /**
63
- * Helper type for defining paginated method overloads
64
- * Creates a union type of all ways pagination can be triggered
65
- */
66
- type HasPaginationOptions<T> = (T & {
67
- pageSize: number;
68
- }) | (T & {
69
- cursor: PaginationCursor;
70
- }) | (T & {
71
- jumpToPage: number;
72
- });
73
55
 
74
56
  /**
75
57
  * Pagination types supported by the SDK
@@ -110,6 +92,7 @@ interface RequestWithPaginationOptions extends RequestSpec {
110
92
  tokenParam?: string;
111
93
  countParam?: string;
112
94
  convertToSkip?: boolean;
95
+ zeroBased?: boolean;
113
96
  };
114
97
  };
115
98
  }
@@ -746,11 +729,12 @@ interface Exchange {
746
729
  }
747
730
  /**
748
731
  * Optional configuration options for when the service automatically starts agent job(s) to serve the conversation.
749
- * When not provided, service uses default configuration with RunAsMe set to false.
732
+ * When not provided, service uses recommended default configurations.
750
733
  */
751
734
  interface ConversationJobStartOverrides {
752
735
  /**
753
- * Whether the job(s) should run with the user's identity (RunAsMe). Defaults to false when not provided.
736
+ * Whether the job(s) should run with the user's identity (RunAsMe). When not provided, service
737
+ * uses recommended default based on authentication-state and process-runtime.
754
738
  */
755
739
  runAsMe?: boolean;
756
740
  }
@@ -855,30 +839,11 @@ interface ContentPartInterrupted {
855
839
  */
856
840
  interface SessionCapabilities {
857
841
  /**
858
- * Indicates the sender may produce a cross exchange input stream events if the receiver indicates they can be handled.
842
+ * Indicates that a client is prepared to handle events for exchanges initiated by service-role messages.
843
+ * When set to true, the client will receive events for the service-role message and any assistant-role messages
844
+ * sent in response to it within the exchange.
859
845
  */
860
- asyncInputStreamEmitter?: boolean;
861
- /**
862
- * Indicates the sender can handle cross exchange input stream events.
863
- */
864
- asyncInputStreamHandler?: boolean;
865
- /**
866
- * Indicates the sender may produce cross exchange tool calls if the receiver indicates they can be handled.
867
- */
868
- asyncToolCallEmitter?: boolean;
869
- /**
870
- * Indicates the sender can handle cross exchange tool calls.
871
- */
872
- asyncToolCallHandler?: boolean;
873
- /**
874
- * Indicates the mime types which the sender can send in input streams and as message content, provided the receiver
875
- * indicates they can handle the mime type.
876
- */
877
- mimeTypesEmitted?: string[];
878
- /**
879
- * Indicates the mime types the sender can handle. Wildcards such as "*\/*" and "text/*" are allowed.
880
- */
881
- mimeTypesHandled?: string[];
846
+ serviceMessageClient?: boolean;
882
847
  /** Allow custom properties */
883
848
  [key: string]: unknown;
884
849
  }
@@ -3668,28 +3633,49 @@ interface FeedbackCreateResponse {
3668
3633
  */
3669
3634
  interface ExchangeServiceModel {
3670
3635
  /**
3671
- * Gets all exchanges for a conversation with optional filtering and pagination
3636
+ * Gets exchanges for a conversation with pagination and optional sort parameters
3637
+ *
3638
+ * Returns a paginated response. When called without `pageSize`/`cursor`, the
3639
+ * backend applies its default page size — inspect `hasNextPage`/`nextCursor`
3640
+ * to navigate further pages.
3672
3641
  *
3673
3642
  * @param conversationId - The conversation ID to get exchanges for
3674
3643
  * @param options - Options for querying exchanges including optional pagination parameters
3675
- * @returns Promise resolving to either an array of exchanges {@link NonPaginatedResponse}<{@link ExchangeGetResponse}> or a {@link PaginatedResponse}<{@link ExchangeGetResponse}> when pagination options are used
3676
- * @example
3677
- * ```typescript
3678
- * // Get all exchanges (non-paginated)
3679
- * const conversationExchanges = await exchanges.getAll(conversationId);
3644
+ * @returns Promise resolving to a {@link PaginatedResponse}<{@link ExchangeGetResponse}>
3680
3645
  *
3681
- * // First page with pagination
3682
- * const firstPageOfExchanges = await exchanges.getAll(conversationId, { pageSize: 10 });
3646
+ * @example Basic usage - default page size and sort order
3647
+ * ```typescript
3648
+ * // First page
3649
+ * const firstPage = await exchanges.getAll(conversationId);
3683
3650
  *
3684
3651
  * // Navigate using cursor
3685
- * if (firstPageOfExchanges.hasNextPage) {
3686
- * const nextPageOfExchanges = await exchanges.getAll(conversationId, {
3687
- * cursor: firstPageOfExchanges.nextCursor
3652
+ * if (firstPage.hasNextPage) {
3653
+ * const nextPage = await exchanges.getAll(conversationId, { cursor: firstPage.nextCursor });
3654
+ * }
3655
+ * ```
3656
+ *
3657
+ * @example With explicit page size and exchange/message sort orders
3658
+ * ```typescript
3659
+ * import { SortOrder } from '@uipath/uipath-typescript/conversational-agent';
3660
+ *
3661
+ * const firstPage = await exchanges.getAll(conversationId, {
3662
+ * pageSize: 10,
3663
+ * exchangeSort: SortOrder.Descending,
3664
+ * messageSort: SortOrder.Ascending
3665
+ * });
3666
+ *
3667
+ * // Navigate using cursor and same parameters
3668
+ * if (firstPage.hasNextPage) {
3669
+ * const nextPage = await exchanges.getAll(conversationId, {
3670
+ * pageSize: 10,
3671
+ * exchangeSort: SortOrder.Descending,
3672
+ * messageSort: SortOrder.Ascending,
3673
+ * cursor: firstPage.nextCursor
3688
3674
  * });
3689
3675
  * }
3690
3676
  * ```
3691
3677
  */
3692
- getAll<T extends ExchangeGetAllOptions = ExchangeGetAllOptions>(conversationId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ExchangeGetResponse> : NonPaginatedResponse<ExchangeGetResponse>>;
3678
+ getAll(conversationId: string, options?: ExchangeGetAllOptions): Promise<PaginatedResponse<ExchangeGetResponse>>;
3693
3679
  /**
3694
3680
  * Gets an exchange by ID with its messages
3695
3681
  *
@@ -3733,26 +3719,53 @@ interface ExchangeServiceModel {
3733
3719
  */
3734
3720
  interface ConversationExchangeServiceModel {
3735
3721
  /**
3736
- * Gets all exchanges for this conversation with optional filtering and pagination
3722
+ * Gets exchanges for this conversation with pagination and optional sort parameters
3723
+ *
3724
+ * Returns a paginated response. When called without `pageSize`/`cursor`, the
3725
+ * backend applies its default page size — inspect `hasNextPage`/`nextCursor`
3726
+ * to navigate further pages.
3737
3727
  *
3738
3728
  * @param options - Options for querying exchanges including optional pagination parameters
3739
- * @returns Promise resolving to either an array of exchanges or a paginated response
3729
+ * @returns Promise resolving to a {@link PaginatedResponse}<{@link ExchangeGetResponse}>
3740
3730
  *
3741
- * @example
3731
+ * @example Basic usage - default page size and sort order
3742
3732
  * ```typescript
3743
3733
  * const conversation = await conversationalAgent.conversations.getById(conversationId);
3744
3734
  *
3745
- * // Get all exchanges
3746
- * const allExchanges = await conversation.exchanges.getAll();
3735
+ * // First page
3736
+ * const firstPage = await conversation.exchanges.getAll();
3747
3737
  *
3748
- * // With pagination
3749
- * const firstPage = await conversation.exchanges.getAll({ pageSize: 10 });
3738
+ * // Navigate using cursor
3750
3739
  * if (firstPage.hasNextPage) {
3751
3740
  * const nextPage = await conversation.exchanges.getAll({ cursor: firstPage.nextCursor });
3752
3741
  * }
3753
3742
  * ```
3743
+ *
3744
+ * @example With explicit page size and exchange/message sort orders
3745
+ * ```typescript
3746
+ * import { SortOrder } from '@uipath/uipath-typescript/conversational-agent';
3747
+ *
3748
+ * const conversation = await conversationalAgent.conversations.getById(conversationId);
3749
+ *
3750
+ * // First page
3751
+ * const firstPage = await conversation.exchanges.getAll({
3752
+ * pageSize: 10,
3753
+ * exchangeSort: SortOrder.Descending,
3754
+ * messageSort: SortOrder.Ascending
3755
+ * });
3756
+ *
3757
+ * // Navigate using cursor and same parameters
3758
+ * if (firstPage.hasNextPage) {
3759
+ * const nextPage = await conversation.exchanges.getAll({
3760
+ * pageSize: 10,
3761
+ * exchangeSort: SortOrder.Descending,
3762
+ * messageSort: SortOrder.Ascending,
3763
+ * cursor: firstPage.nextCursor
3764
+ * });
3765
+ * }
3766
+ * ```
3754
3767
  */
3755
- getAll<T extends ExchangeGetAllOptions = ExchangeGetAllOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ExchangeGetResponse> : NonPaginatedResponse<ExchangeGetResponse>>;
3768
+ getAll(options?: ExchangeGetAllOptions): Promise<PaginatedResponse<ExchangeGetResponse>>;
3756
3769
  /**
3757
3770
  * Gets an exchange by ID with its messages
3758
3771
  *
@@ -3883,28 +3896,23 @@ interface ConversationServiceModel {
3883
3896
  */
3884
3897
  create(agentId: number, folderId: number, options?: ConversationCreateOptions): Promise<ConversationCreateResponse>;
3885
3898
  /**
3886
- * Gets all conversations with optional filtering and pagination
3899
+ * Gets conversations with pagination and optional sort/filter parameters
3887
3900
  *
3888
- * The method returns either:
3889
- * - A NonPaginatedResponse with items array (when no pagination parameters are provided)
3890
- * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
3901
+ * Returns a paginated response. When called without `pageSize`/`cursor`, a
3902
+ * default page size is applied - inspect `hasNextPage`/`nextCursor`
3903
+ * to navigate further pages.
3891
3904
  *
3892
- * @param options - Options for querying conversations including optional pagination parameters
3893
- * @returns Promise resolving to either an array of conversations {@link NonPaginatedResponse}<{@link ConversationGetResponse}> or a {@link PaginatedResponse}<{@link ConversationGetResponse}> when pagination options are used
3905
+ * @param options - Options for querying conversations
3906
+ * @returns Promise resolving to a {@link PaginatedResponse}<{@link ConversationGetResponse}>
3894
3907
  *
3895
- * @example Basic usage - get all conversations
3908
+ * @example Basic usage - default sort, pagination, and without filtering
3896
3909
  * ```typescript
3897
- * const allConversations = await conversationalAgent.conversations.getAll();
3910
+ * // First page
3911
+ * const firstPage = await conversationalAgent.conversations.getAll();
3898
3912
  *
3899
- * for (const conversation of allConversations.items) {
3913
+ * for (const conversation of firstPage.items) {
3900
3914
  * console.log(`${conversation.label} - created: ${conversation.createdTime}`);
3901
3915
  * }
3902
- * ```
3903
- *
3904
- * @example With pagination
3905
- * ```typescript
3906
- * // First page
3907
- * const firstPage = await conversationalAgent.conversations.getAll({ pageSize: 10 });
3908
3916
  *
3909
3917
  * // Navigate using cursor
3910
3918
  * if (firstPage.hasNextPage) {
@@ -3914,23 +3922,44 @@ interface ConversationServiceModel {
3914
3922
  * }
3915
3923
  * ```
3916
3924
  *
3917
- * @example Sorted with limit
3925
+ * @example With explicit page size and sort order (by last-activity timestamp)
3918
3926
  * ```typescript
3919
- * const result = await conversationalAgent.conversations.getAll({
3920
- * sort: SortOrder.Descending,
3921
- * pageSize: 20
3927
+ * import { SortOrder } from '@uipath/uipath-typescript/conversational-agent';
3928
+ *
3929
+ * // First page
3930
+ * const firstPage = await conversationalAgent.conversations.getAll({
3931
+ * pageSize: 10,
3932
+ * sort: SortOrder.Descending
3922
3933
  * });
3934
+ *
3935
+ * // Navigate using cursor and same parameters
3936
+ * if (firstPage.hasNextPage) {
3937
+ * const nextPage = await conversationalAgent.conversations.getAll({
3938
+ * pageSize: 10,
3939
+ * sort: SortOrder.Descending,
3940
+ * cursor: firstPage.nextCursor
3941
+ * });
3942
+ * }
3923
3943
  * ```
3924
3944
  *
3925
- * @example Filter by agent and search by label
3945
+ * @example With agent-filter and label-search
3926
3946
  * ```typescript
3927
- * const filtered = await conversationalAgent.conversations.getAll({
3947
+ * const firstPage = await conversationalAgent.conversations.getAll({
3928
3948
  * agentId: <agentId>,
3929
3949
  * label: 'budget'
3930
3950
  * });
3951
+ *
3952
+ * // Navigate using cursor and same parameters
3953
+ * if (firstPage.hasNextPage) {
3954
+ * const nextPage = await conversationalAgent.conversations.getAll({
3955
+ * agentId: <agentId>,
3956
+ * label: 'budget',
3957
+ * cursor: firstPage.nextCursor
3958
+ * });
3959
+ * }
3931
3960
  * ```
3932
3961
  */
3933
- getAll<T extends ConversationGetAllOptions = ConversationGetAllOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ConversationGetResponse> : NonPaginatedResponse<ConversationGetResponse>>;
3962
+ getAll(options?: ConversationGetAllOptions): Promise<PaginatedResponse<ConversationGetResponse>>;
3934
3963
  /**
3935
3964
  * Gets a conversation by ID
3936
3965
  *
@@ -4284,6 +4313,11 @@ interface ConversationSessionOptions {
4284
4313
  * ```
4285
4314
  */
4286
4315
  logLevel?: LogLevel;
4316
+ /**
4317
+ * Optional capabilities of this client to advertise to the service when starting the session.
4318
+ * Generally not needed unless the client is accessing more advanced features.
4319
+ */
4320
+ capabilities?: SessionCapabilities;
4287
4321
  }
4288
4322
  /** Response for creating a conversation (includes methods) */
4289
4323
  interface ConversationCreateResponse extends ConversationGetResponse {
@@ -4319,7 +4353,7 @@ interface ConversationUpdateOptions {
4319
4353
  agentInput?: AgentInput;
4320
4354
  }
4321
4355
  type ConversationGetAllOptions = PaginationOptions & {
4322
- /** Sort order for conversations */
4356
+ /** Sort order for conversations (by the last activity timestamp) */
4323
4357
  sort?: SortOrder;
4324
4358
  /** GUID key of the agent to filter conversations by. */
4325
4359
  agentKey?: string;
@@ -6434,28 +6468,23 @@ declare class ConversationService extends BaseService implements ConversationSer
6434
6468
  */
6435
6469
  getById(id: string): Promise<ConversationGetResponse>;
6436
6470
  /**
6437
- * Gets all conversations with optional filtering and pagination
6471
+ * Gets conversations with pagination and optional sort/filter parameters
6438
6472
  *
6439
- * The method returns either:
6440
- * - A NonPaginatedResponse with items array (when no pagination parameters are provided)
6441
- * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
6473
+ * Returns a paginated response. When called without `pageSize`/`cursor`, a
6474
+ * default page size is applied - inspect `hasNextPage`/`nextCursor`
6475
+ * to navigate further pages.
6442
6476
  *
6443
- * @param options - Options for querying conversations including optional pagination parameters
6444
- * @returns Promise resolving to either an array of conversations {@link NonPaginatedResponse}<{@link ConversationGetResponse}> or a {@link PaginatedResponse}<{@link ConversationGetResponse}> when pagination options are used
6477
+ * @param options - Options for querying conversations
6478
+ * @returns Promise resolving to a {@link PaginatedResponse}<{@link ConversationGetResponse}>
6445
6479
  *
6446
- * @example Basic usage - get all conversations
6480
+ * @example Basic usage - default sort, pagination, and without filtering
6447
6481
  * ```typescript
6448
- * const allConversations = await conversationalAgent.conversations.getAll();
6482
+ * // First page
6483
+ * const firstPage = await conversationalAgent.conversations.getAll();
6449
6484
  *
6450
- * for (const conversation of allConversations.items) {
6485
+ * for (const conversation of firstPage.items) {
6451
6486
  * console.log(`${conversation.label} - created: ${conversation.createdTime}`);
6452
6487
  * }
6453
- * ```
6454
- *
6455
- * @example With pagination
6456
- * ```typescript
6457
- * // First page
6458
- * const firstPage = await conversationalAgent.conversations.getAll({ pageSize: 10 });
6459
6488
  *
6460
6489
  * // Navigate using cursor
6461
6490
  * if (firstPage.hasNextPage) {
@@ -6465,23 +6494,44 @@ declare class ConversationService extends BaseService implements ConversationSer
6465
6494
  * }
6466
6495
  * ```
6467
6496
  *
6468
- * @example Sorted with limit
6497
+ * @example With explicit page size and sort order (by last-activity timestamp)
6469
6498
  * ```typescript
6470
- * const result = await conversationalAgent.conversations.getAll({
6471
- * sort: SortOrder.Descending,
6472
- * pageSize: 20
6499
+ * import { SortOrder } from '@uipath/uipath-typescript/conversational-agent';
6500
+ *
6501
+ * // First page
6502
+ * const firstPage = await conversationalAgent.conversations.getAll({
6503
+ * pageSize: 10,
6504
+ * sort: SortOrder.Descending
6473
6505
  * });
6506
+ *
6507
+ * // Navigate using cursor and same parameters
6508
+ * if (firstPage.hasNextPage) {
6509
+ * const nextPage = await conversationalAgent.conversations.getAll({
6510
+ * pageSize: 10,
6511
+ * sort: SortOrder.Descending,
6512
+ * cursor: firstPage.nextCursor
6513
+ * });
6514
+ * }
6474
6515
  * ```
6475
6516
  *
6476
- * @example Filter by agent and search by label
6517
+ * @example With agent-filter and label-search
6477
6518
  * ```typescript
6478
- * const filtered = await conversationalAgent.conversations.getAll({
6519
+ * const firstPage = await conversationalAgent.conversations.getAll({
6479
6520
  * agentId: <agentId>,
6480
6521
  * label: 'budget'
6481
6522
  * });
6523
+ *
6524
+ * // Navigate using cursor and same parameters
6525
+ * if (firstPage.hasNextPage) {
6526
+ * const nextPage = await conversationalAgent.conversations.getAll({
6527
+ * agentId: <agentId>,
6528
+ * label: 'budget',
6529
+ * cursor: firstPage.nextCursor
6530
+ * });
6531
+ * }
6482
6532
  * ```
6483
6533
  */
6484
- getAll<T extends ConversationGetAllOptions = ConversationGetAllOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ConversationGetResponse> : NonPaginatedResponse<ConversationGetResponse>>;
6534
+ getAll(options?: ConversationGetAllOptions): Promise<PaginatedResponse<ConversationGetResponse>>;
6485
6535
  /**
6486
6536
  * Updates a conversation by ID
6487
6537
  *
@@ -6694,31 +6744,49 @@ declare class ExchangeService extends BaseService implements ExchangeServiceMode
6694
6744
  */
6695
6745
  constructor(instance: IUiPath$1, options?: ConversationalAgentOptions);
6696
6746
  /**
6697
- * Gets all exchanges for a conversation with optional filtering and pagination
6747
+ * Gets exchanges for a conversation with pagination and optional sort parameters
6698
6748
  *
6699
- * The method returns either:
6700
- * - A NonPaginatedResponse with items array (when no pagination parameters are provided)
6701
- * - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
6749
+ * Returns a paginated response. When called without `pageSize`/`cursor`, the
6750
+ * backend applies its default page size inspect `hasNextPage`/`nextCursor`
6751
+ * to navigate further pages.
6702
6752
  *
6703
6753
  * @param conversationId - The conversation ID to get exchanges for
6704
6754
  * @param options - Options for querying exchanges including optional pagination parameters
6705
- * @returns Promise resolving to either an array of exchanges {@link NonPaginatedResponse}<{@link ExchangeGetResponse}> or a {@link PaginatedResponse}<{@link ExchangeGetResponse}> when pagination options are used
6755
+ * @returns Promise resolving to a {@link PaginatedResponse}<{@link ExchangeGetResponse}>
6706
6756
  *
6707
- * @example
6757
+ * @example Basic usage - default page size and sort order
6708
6758
  * ```typescript
6709
- * // Get all exchanges (non-paginated)
6710
- * const conversationExchanges = await exchanges.getAll(conversationId);
6711
- *
6712
- * // First page with pagination
6713
- * const firstPageOfExchanges = await exchanges.getAll(conversationId, { pageSize: 10 });
6759
+ * // First page
6760
+ * const firstPage = await exchanges.getAll(conversationId);
6714
6761
  *
6715
6762
  * // Navigate using cursor
6716
- * if (firstPageOfExchanges.hasNextPage) {
6717
- * const nextPageOfExchanges = await exchanges.getAll(conversationId, { cursor: firstPageOfExchanges.nextCursor });
6763
+ * if (firstPage.hasNextPage) {
6764
+ * const nextPage = await exchanges.getAll(conversationId, { cursor: firstPage.nextCursor });
6765
+ * }
6766
+ * ```
6767
+ *
6768
+ * @example With explicit page size and exchange/message sort orders
6769
+ * ```typescript
6770
+ * import { SortOrder } from '@uipath/uipath-typescript/conversational-agent';
6771
+ *
6772
+ * const firstPage = await exchanges.getAll(conversationId, {
6773
+ * pageSize: 10,
6774
+ * exchangeSort: SortOrder.Descending,
6775
+ * messageSort: SortOrder.Ascending
6776
+ * });
6777
+ *
6778
+ * // Navigate using cursor and same parameters
6779
+ * if (firstPage.hasNextPage) {
6780
+ * const nextPage = await exchanges.getAll(conversationId, {
6781
+ * pageSize: 10,
6782
+ * exchangeSort: SortOrder.Descending,
6783
+ * messageSort: SortOrder.Ascending,
6784
+ * cursor: firstPage.nextCursor
6785
+ * });
6718
6786
  * }
6719
6787
  * ```
6720
6788
  */
6721
- getAll<T extends ExchangeGetAllOptions = ExchangeGetAllOptions>(conversationId: string, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ExchangeGetResponse> : NonPaginatedResponse<ExchangeGetResponse>>;
6789
+ getAll(conversationId: string, options?: ExchangeGetAllOptions): Promise<PaginatedResponse<ExchangeGetResponse>>;
6722
6790
  /**
6723
6791
  * Gets an exchange by ID with its messages
6724
6792
  *