@uipath/uipath-typescript 1.3.11 → 1.4.1
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.
- package/dist/agent-memory/index.cjs +1772 -0
- package/dist/agent-memory/index.d.ts +588 -0
- package/dist/agent-memory/index.mjs +1770 -0
- package/dist/agents/index.cjs +1995 -0
- package/dist/agents/index.d.ts +961 -0
- package/dist/agents/index.mjs +1993 -0
- package/dist/assets/index.cjs +171 -39
- package/dist/assets/index.d.ts +84 -5
- package/dist/assets/index.mjs +171 -39
- package/dist/attachments/index.cjs +53 -15
- package/dist/attachments/index.d.ts +1 -0
- package/dist/attachments/index.mjs +53 -15
- package/dist/buckets/index.cjs +151 -130
- package/dist/buckets/index.d.ts +198 -84
- package/dist/buckets/index.mjs +151 -130
- package/dist/cases/index.cjs +220 -23
- package/dist/cases/index.d.ts +148 -10
- package/dist/cases/index.mjs +220 -24
- package/dist/conversational-agent/index.cjs +140 -66
- package/dist/conversational-agent/index.d.ts +190 -122
- package/dist/conversational-agent/index.mjs +140 -66
- package/dist/core/index.cjs +445 -108
- package/dist/core/index.d.ts +15 -0
- package/dist/core/index.mjs +445 -108
- package/dist/entities/index.cjs +365 -102
- package/dist/entities/index.d.ts +446 -114
- package/dist/entities/index.mjs +365 -102
- package/dist/feedback/index.cjs +53 -15
- package/dist/feedback/index.d.ts +1 -0
- package/dist/feedback/index.mjs +53 -15
- package/dist/governance/index.cjs +1789 -0
- package/dist/governance/index.d.ts +598 -0
- package/dist/governance/index.mjs +1787 -0
- package/dist/index.cjs +1453 -444
- package/dist/index.d.ts +4150 -1742
- package/dist/index.mjs +1452 -445
- package/dist/index.umd.js +5035 -4009
- package/dist/jobs/index.cjs +53 -15
- package/dist/jobs/index.d.ts +1 -0
- package/dist/jobs/index.mjs +53 -15
- package/dist/maestro-processes/index.cjs +189 -27
- package/dist/maestro-processes/index.d.ts +131 -9
- package/dist/maestro-processes/index.mjs +189 -27
- package/dist/orchestrator-du-module/index.cjs +1788 -0
- package/dist/orchestrator-du-module/index.d.ts +757 -0
- package/dist/orchestrator-du-module/index.mjs +1785 -0
- package/dist/processes/index.cjs +53 -15
- package/dist/processes/index.d.ts +1 -0
- package/dist/processes/index.mjs +53 -15
- package/dist/queues/index.cjs +53 -15
- package/dist/queues/index.d.ts +1 -0
- package/dist/queues/index.mjs +53 -15
- package/dist/tasks/index.cjs +116 -19
- package/dist/tasks/index.d.ts +110 -4
- package/dist/tasks/index.mjs +117 -20
- package/dist/traces/index.cjs +340 -15
- package/dist/traces/index.d.ts +483 -2
- package/dist/traces/index.mjs +339 -16
- package/package.json +42 -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
|
|
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).
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
*
|
|
3682
|
-
*
|
|
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 (
|
|
3686
|
-
* const
|
|
3687
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
-
* //
|
|
3746
|
-
* const
|
|
3735
|
+
* // First page
|
|
3736
|
+
* const firstPage = await conversation.exchanges.getAll();
|
|
3747
3737
|
*
|
|
3748
|
-
* //
|
|
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
|
|
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
|
|
3899
|
+
* Gets conversations with pagination and optional sort/filter parameters
|
|
3887
3900
|
*
|
|
3888
|
-
*
|
|
3889
|
-
*
|
|
3890
|
-
*
|
|
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
|
|
3893
|
-
* @returns Promise resolving to
|
|
3905
|
+
* @param options - Options for querying conversations
|
|
3906
|
+
* @returns Promise resolving to a {@link PaginatedResponse}<{@link ConversationGetResponse}>
|
|
3894
3907
|
*
|
|
3895
|
-
* @example Basic usage -
|
|
3908
|
+
* @example Basic usage - default sort, pagination, and without filtering
|
|
3896
3909
|
* ```typescript
|
|
3897
|
-
*
|
|
3910
|
+
* // First page
|
|
3911
|
+
* const firstPage = await conversationalAgent.conversations.getAll();
|
|
3898
3912
|
*
|
|
3899
|
-
* for (const conversation of
|
|
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
|
|
3925
|
+
* @example With explicit page size and sort order (by last-activity timestamp)
|
|
3918
3926
|
* ```typescript
|
|
3919
|
-
*
|
|
3920
|
-
*
|
|
3921
|
-
*
|
|
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
|
|
3945
|
+
* @example With agent-filter and label-search
|
|
3926
3946
|
* ```typescript
|
|
3927
|
-
* const
|
|
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
|
|
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
|
|
6471
|
+
* Gets conversations with pagination and optional sort/filter parameters
|
|
6438
6472
|
*
|
|
6439
|
-
*
|
|
6440
|
-
*
|
|
6441
|
-
*
|
|
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
|
|
6444
|
-
* @returns Promise resolving to
|
|
6477
|
+
* @param options - Options for querying conversations
|
|
6478
|
+
* @returns Promise resolving to a {@link PaginatedResponse}<{@link ConversationGetResponse}>
|
|
6445
6479
|
*
|
|
6446
|
-
* @example Basic usage -
|
|
6480
|
+
* @example Basic usage - default sort, pagination, and without filtering
|
|
6447
6481
|
* ```typescript
|
|
6448
|
-
*
|
|
6482
|
+
* // First page
|
|
6483
|
+
* const firstPage = await conversationalAgent.conversations.getAll();
|
|
6449
6484
|
*
|
|
6450
|
-
* for (const conversation of
|
|
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
|
|
6497
|
+
* @example With explicit page size and sort order (by last-activity timestamp)
|
|
6469
6498
|
* ```typescript
|
|
6470
|
-
*
|
|
6471
|
-
*
|
|
6472
|
-
*
|
|
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
|
|
6517
|
+
* @example With agent-filter and label-search
|
|
6477
6518
|
* ```typescript
|
|
6478
|
-
* const
|
|
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
|
|
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
|
|
6747
|
+
* Gets exchanges for a conversation with pagination and optional sort parameters
|
|
6698
6748
|
*
|
|
6699
|
-
*
|
|
6700
|
-
*
|
|
6701
|
-
*
|
|
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
|
|
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
|
-
* //
|
|
6710
|
-
* const
|
|
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 (
|
|
6717
|
-
* const
|
|
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
|
|
6789
|
+
getAll(conversationId: string, options?: ExchangeGetAllOptions): Promise<PaginatedResponse<ExchangeGetResponse>>;
|
|
6722
6790
|
/**
|
|
6723
6791
|
* Gets an exchange by ID with its messages
|
|
6724
6792
|
*
|