cf-service-sdk 0.0.79 → 0.0.81
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/generated/graphql.d.ts +465 -0
- package/dist/generated/graphql.js +294 -4
- package/dist/mutations.d.ts +4 -0
- package/dist/mutations.js +68 -2
- package/dist/queries.d.ts +2 -0
- package/dist/queries.js +51 -2
- package/dist/sdk.d.ts +6 -0
- package/dist/sdk.js +36 -0
- package/package.json +1 -1
|
@@ -93,6 +93,34 @@ export type Scalars = {
|
|
|
93
93
|
output: any;
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
|
+
/** Response type for AI agent chat. */
|
|
97
|
+
export type AiAgentChatResponse = {
|
|
98
|
+
__typename?: 'AIAgentChatResponse';
|
|
99
|
+
conversationId?: Maybe<Scalars['String']['output']>;
|
|
100
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
101
|
+
requiresExecution?: Maybe<Scalars['Boolean']['output']>;
|
|
102
|
+
response?: Maybe<Scalars['String']['output']>;
|
|
103
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
104
|
+
toolCalls?: Maybe<Array<Maybe<ToolCallType>>>;
|
|
105
|
+
toolResults?: Maybe<Array<Maybe<ToolResultType>>>;
|
|
106
|
+
};
|
|
107
|
+
/** Response type for continuing after tool execution. */
|
|
108
|
+
export type AiAgentContinueResponse = {
|
|
109
|
+
__typename?: 'AIAgentContinueResponse';
|
|
110
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
111
|
+
requiresExecution?: Maybe<Scalars['Boolean']['output']>;
|
|
112
|
+
response?: Maybe<Scalars['String']['output']>;
|
|
113
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
114
|
+
toolCalls?: Maybe<Array<Maybe<ToolCallType>>>;
|
|
115
|
+
toolResults?: Maybe<Array<Maybe<ToolResultType>>>;
|
|
116
|
+
};
|
|
117
|
+
/** Response type for tool execution. */
|
|
118
|
+
export type AiAgentExecuteResponse = {
|
|
119
|
+
__typename?: 'AIAgentExecuteResponse';
|
|
120
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
121
|
+
results?: Maybe<Array<Maybe<ToolResultType>>>;
|
|
122
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
123
|
+
};
|
|
96
124
|
/** AcceptInvitation - Accept an invitation to join an account */
|
|
97
125
|
export type AcceptInvitation = {
|
|
98
126
|
__typename?: 'AcceptInvitation';
|
|
@@ -159,6 +187,15 @@ export type AddSegmentToCampaign = {
|
|
|
159
187
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
160
188
|
};
|
|
161
189
|
/** An enumeration. */
|
|
190
|
+
export declare enum AgentConversationMessageRoleChoices {
|
|
191
|
+
/** Assistant */
|
|
192
|
+
Assistant = "ASSISTANT",
|
|
193
|
+
/** System */
|
|
194
|
+
System = "SYSTEM",
|
|
195
|
+
/** User */
|
|
196
|
+
User = "USER"
|
|
197
|
+
}
|
|
198
|
+
/** An enumeration. */
|
|
162
199
|
export declare enum AppAccountInvitationStatusChoices {
|
|
163
200
|
/** Accepted */
|
|
164
201
|
Accepted = "ACCEPTED",
|
|
@@ -1627,6 +1664,36 @@ export type ContactStatsType = {
|
|
|
1627
1664
|
/** Total number of emails replied to */
|
|
1628
1665
|
totalReplied?: Maybe<Scalars['Int']['output']>;
|
|
1629
1666
|
};
|
|
1667
|
+
/** Type for conversation history list. */
|
|
1668
|
+
export type ConversationHistoryType = {
|
|
1669
|
+
__typename?: 'ConversationHistoryType';
|
|
1670
|
+
conversations?: Maybe<Array<Maybe<ConversationType>>>;
|
|
1671
|
+
totalCount?: Maybe<Scalars['Int']['output']>;
|
|
1672
|
+
};
|
|
1673
|
+
/** GraphQL type for ConversationMessage model. */
|
|
1674
|
+
export type ConversationMessageType = Node & {
|
|
1675
|
+
__typename?: 'ConversationMessageType';
|
|
1676
|
+
content: Scalars['JSONString']['output'];
|
|
1677
|
+
conversation?: Maybe<ConversationType>;
|
|
1678
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1679
|
+
/** The ID of the object */
|
|
1680
|
+
id: Scalars['ID']['output'];
|
|
1681
|
+
role: AgentConversationMessageRoleChoices;
|
|
1682
|
+
/** Tool calls made by the assistant */
|
|
1683
|
+
toolCalls?: Maybe<Scalars['JSONString']['output']>;
|
|
1684
|
+
/** Results from tool executions */
|
|
1685
|
+
toolResults?: Maybe<Scalars['JSONString']['output']>;
|
|
1686
|
+
};
|
|
1687
|
+
/** GraphQL type for Conversation model. */
|
|
1688
|
+
export type ConversationType = Node & {
|
|
1689
|
+
__typename?: 'ConversationType';
|
|
1690
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1691
|
+
/** The ID of the object */
|
|
1692
|
+
id: Scalars['ID']['output'];
|
|
1693
|
+
messages?: Maybe<Array<Maybe<ConversationMessageType>>>;
|
|
1694
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1695
|
+
user?: Maybe<UserType>;
|
|
1696
|
+
};
|
|
1630
1697
|
export type CreateCallCampaign = {
|
|
1631
1698
|
__typename?: 'CreateCallCampaign';
|
|
1632
1699
|
callCampaign?: Maybe<CallCampaignObject>;
|
|
@@ -1788,6 +1855,12 @@ export type DeleteContact = {
|
|
|
1788
1855
|
__typename?: 'DeleteContact';
|
|
1789
1856
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
1790
1857
|
};
|
|
1858
|
+
/** Mutation for deleting a conversation. */
|
|
1859
|
+
export type DeleteConversation = {
|
|
1860
|
+
__typename?: 'DeleteConversation';
|
|
1861
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
1862
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
1863
|
+
};
|
|
1791
1864
|
/** DeleteEmailTemplate - Delete an email template (only if owned by user's account) */
|
|
1792
1865
|
export type DeleteEmailTemplate = {
|
|
1793
1866
|
__typename?: 'DeleteEmailTemplate';
|
|
@@ -2115,6 +2188,12 @@ export type Mutation = {
|
|
|
2115
2188
|
addContactsToSegment?: Maybe<AddContactsToSegment>;
|
|
2116
2189
|
addSegmentToCallCampaign?: Maybe<AddSegmentToCallCampaign>;
|
|
2117
2190
|
addSegmentToCampaign?: Maybe<AddSegmentToCampaign>;
|
|
2191
|
+
/** Mutation for chatting with the AI agent. */
|
|
2192
|
+
aiAgentChat?: Maybe<AiAgentChatResponse>;
|
|
2193
|
+
/** Mutation for continuing conversation after tool execution. */
|
|
2194
|
+
aiAgentContinue?: Maybe<AiAgentContinueResponse>;
|
|
2195
|
+
/** Mutation for executing tool calls. */
|
|
2196
|
+
aiAgentExecute?: Maybe<AiAgentExecuteResponse>;
|
|
2118
2197
|
bulkAssignCompanyOwners?: Maybe<BulkAssignCompanyOwnerMutation>;
|
|
2119
2198
|
cancelCampaign?: Maybe<CancelCampaign>;
|
|
2120
2199
|
/** Cancel a combined campaign */
|
|
@@ -2152,6 +2231,8 @@ export type Mutation = {
|
|
|
2152
2231
|
deleteCompany?: Maybe<DeleteCompany>;
|
|
2153
2232
|
deleteCompanyNote?: Maybe<DeleteCompanyNote>;
|
|
2154
2233
|
deleteContact?: Maybe<DeleteContact>;
|
|
2234
|
+
/** Mutation for deleting a conversation. */
|
|
2235
|
+
deleteConversation?: Maybe<DeleteConversation>;
|
|
2155
2236
|
/** DeleteEmailTemplate - Delete an email template (only if owned by user's account) */
|
|
2156
2237
|
deleteEmailTemplate?: Maybe<DeleteEmailTemplate>;
|
|
2157
2238
|
/** Delete a notification */
|
|
@@ -2283,6 +2364,22 @@ export type MutationAddSegmentToCampaignArgs = {
|
|
|
2283
2364
|
segmentId: Scalars['ID']['input'];
|
|
2284
2365
|
};
|
|
2285
2366
|
/** Mutations */
|
|
2367
|
+
export type MutationAiAgentChatArgs = {
|
|
2368
|
+
conversationId?: InputMaybe<Scalars['String']['input']>;
|
|
2369
|
+
enableTools?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2370
|
+
message: Scalars['String']['input'];
|
|
2371
|
+
};
|
|
2372
|
+
/** Mutations */
|
|
2373
|
+
export type MutationAiAgentContinueArgs = {
|
|
2374
|
+
conversationId: Scalars['String']['input'];
|
|
2375
|
+
toolResults: Array<InputMaybe<Scalars['JSONString']['input']>>;
|
|
2376
|
+
};
|
|
2377
|
+
/** Mutations */
|
|
2378
|
+
export type MutationAiAgentExecuteArgs = {
|
|
2379
|
+
conversationId: Scalars['String']['input'];
|
|
2380
|
+
toolCalls: Array<InputMaybe<Scalars['JSONString']['input']>>;
|
|
2381
|
+
};
|
|
2382
|
+
/** Mutations */
|
|
2286
2383
|
export type MutationBulkAssignCompanyOwnersArgs = {
|
|
2287
2384
|
input?: InputMaybe<BulkAssignOwnersInput>;
|
|
2288
2385
|
};
|
|
@@ -2384,6 +2481,10 @@ export type MutationDeleteContactArgs = {
|
|
|
2384
2481
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
2385
2482
|
};
|
|
2386
2483
|
/** Mutations */
|
|
2484
|
+
export type MutationDeleteConversationArgs = {
|
|
2485
|
+
conversationId: Scalars['String']['input'];
|
|
2486
|
+
};
|
|
2487
|
+
/** Mutations */
|
|
2387
2488
|
export type MutationDeleteEmailTemplateArgs = {
|
|
2388
2489
|
uuid: Scalars['UUID']['input'];
|
|
2389
2490
|
};
|
|
@@ -2661,6 +2762,11 @@ export type MyInvitationsType = {
|
|
|
2661
2762
|
status: Scalars['String']['output'];
|
|
2662
2763
|
token: Scalars['String']['output'];
|
|
2663
2764
|
};
|
|
2765
|
+
/** An object with an ID */
|
|
2766
|
+
export type Node = {
|
|
2767
|
+
/** The ID of the object */
|
|
2768
|
+
id: Scalars['ID']['output'];
|
|
2769
|
+
};
|
|
2664
2770
|
/** GraphQL type for Notification model */
|
|
2665
2771
|
export type NotificationType = {
|
|
2666
2772
|
__typename?: 'NotificationType';
|
|
@@ -2926,6 +3032,8 @@ export type Query = {
|
|
|
2926
3032
|
contacts?: Maybe<Array<Maybe<ContactObject>>>;
|
|
2927
3033
|
/** Get paginated list of contacts in a segment */
|
|
2928
3034
|
contactsInSegment?: Maybe<PaginatedContactList>;
|
|
3035
|
+
conversation?: Maybe<ConversationType>;
|
|
3036
|
+
conversationHistory?: Maybe<ConversationHistoryType>;
|
|
2929
3037
|
currentAccount?: Maybe<AccountType>;
|
|
2930
3038
|
/** Get dashboard statistics across different features */
|
|
2931
3039
|
dashboardStats?: Maybe<DashboardStatsType>;
|
|
@@ -3110,6 +3218,15 @@ export type QueryContactsInSegmentArgs = {
|
|
|
3110
3218
|
segmentId: Scalars['ID']['input'];
|
|
3111
3219
|
};
|
|
3112
3220
|
/** Query */
|
|
3221
|
+
export type QueryConversationArgs = {
|
|
3222
|
+
conversationId: Scalars['String']['input'];
|
|
3223
|
+
};
|
|
3224
|
+
/** Query */
|
|
3225
|
+
export type QueryConversationHistoryArgs = {
|
|
3226
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
3227
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
3228
|
+
};
|
|
3229
|
+
/** Query */
|
|
3113
3230
|
export type QueryDashboardStatsArgs = {
|
|
3114
3231
|
endDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
3115
3232
|
startDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
@@ -3607,6 +3724,23 @@ export type TasksResponse = {
|
|
|
3607
3724
|
pagination?: Maybe<PaginationInfo>;
|
|
3608
3725
|
stats?: Maybe<TaskStatsObject>;
|
|
3609
3726
|
};
|
|
3727
|
+
/** Type for tool calls. */
|
|
3728
|
+
export type ToolCallType = {
|
|
3729
|
+
__typename?: 'ToolCallType';
|
|
3730
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
3731
|
+
input?: Maybe<Scalars['JSONString']['output']>;
|
|
3732
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
3733
|
+
type?: Maybe<Scalars['String']['output']>;
|
|
3734
|
+
};
|
|
3735
|
+
/** Type for tool execution results. */
|
|
3736
|
+
export type ToolResultType = {
|
|
3737
|
+
__typename?: 'ToolResultType';
|
|
3738
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
3739
|
+
result?: Maybe<Scalars['JSONString']['output']>;
|
|
3740
|
+
success?: Maybe<Scalars['Boolean']['output']>;
|
|
3741
|
+
toolUseId?: Maybe<Scalars['String']['output']>;
|
|
3742
|
+
type?: Maybe<Scalars['String']['output']>;
|
|
3743
|
+
};
|
|
3610
3744
|
export type UsStateData = {
|
|
3611
3745
|
__typename?: 'USStateData';
|
|
3612
3746
|
/** State abbreviation */
|
|
@@ -4161,6 +4295,86 @@ export type AddSegmentToCampaignMutation = {
|
|
|
4161
4295
|
} | null;
|
|
4162
4296
|
} | null;
|
|
4163
4297
|
};
|
|
4298
|
+
export type AiAgentChatMutationVariables = Exact<{
|
|
4299
|
+
conversationId?: InputMaybe<Scalars['String']['input']>;
|
|
4300
|
+
enableTools?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4301
|
+
message: Scalars['String']['input'];
|
|
4302
|
+
}>;
|
|
4303
|
+
export type AiAgentChatMutation = {
|
|
4304
|
+
__typename?: 'Mutation';
|
|
4305
|
+
aiAgentChat?: {
|
|
4306
|
+
__typename?: 'AIAgentChatResponse';
|
|
4307
|
+
success?: boolean | null;
|
|
4308
|
+
conversationId?: string | null;
|
|
4309
|
+
response?: string | null;
|
|
4310
|
+
requiresExecution?: boolean | null;
|
|
4311
|
+
error?: string | null;
|
|
4312
|
+
toolCalls?: Array<{
|
|
4313
|
+
__typename?: 'ToolCallType';
|
|
4314
|
+
type?: string | null;
|
|
4315
|
+
id?: string | null;
|
|
4316
|
+
name?: string | null;
|
|
4317
|
+
input?: any | null;
|
|
4318
|
+
} | null> | null;
|
|
4319
|
+
toolResults?: Array<{
|
|
4320
|
+
__typename?: 'ToolResultType';
|
|
4321
|
+
toolUseId?: string | null;
|
|
4322
|
+
type?: string | null;
|
|
4323
|
+
success?: boolean | null;
|
|
4324
|
+
result?: any | null;
|
|
4325
|
+
error?: string | null;
|
|
4326
|
+
} | null> | null;
|
|
4327
|
+
} | null;
|
|
4328
|
+
};
|
|
4329
|
+
export type AiAgentContinueMutationVariables = Exact<{
|
|
4330
|
+
conversationId: Scalars['String']['input'];
|
|
4331
|
+
toolResults: Array<InputMaybe<Scalars['JSONString']['input']>> | InputMaybe<Scalars['JSONString']['input']>;
|
|
4332
|
+
}>;
|
|
4333
|
+
export type AiAgentContinueMutation = {
|
|
4334
|
+
__typename?: 'Mutation';
|
|
4335
|
+
aiAgentContinue?: {
|
|
4336
|
+
__typename?: 'AIAgentContinueResponse';
|
|
4337
|
+
success?: boolean | null;
|
|
4338
|
+
response?: string | null;
|
|
4339
|
+
requiresExecution?: boolean | null;
|
|
4340
|
+
error?: string | null;
|
|
4341
|
+
toolCalls?: Array<{
|
|
4342
|
+
__typename?: 'ToolCallType';
|
|
4343
|
+
type?: string | null;
|
|
4344
|
+
id?: string | null;
|
|
4345
|
+
name?: string | null;
|
|
4346
|
+
input?: any | null;
|
|
4347
|
+
} | null> | null;
|
|
4348
|
+
toolResults?: Array<{
|
|
4349
|
+
__typename?: 'ToolResultType';
|
|
4350
|
+
toolUseId?: string | null;
|
|
4351
|
+
type?: string | null;
|
|
4352
|
+
success?: boolean | null;
|
|
4353
|
+
result?: any | null;
|
|
4354
|
+
error?: string | null;
|
|
4355
|
+
} | null> | null;
|
|
4356
|
+
} | null;
|
|
4357
|
+
};
|
|
4358
|
+
export type AiAgentExecuteMutationVariables = Exact<{
|
|
4359
|
+
conversationId: Scalars['String']['input'];
|
|
4360
|
+
toolCalls: Array<InputMaybe<Scalars['JSONString']['input']>> | InputMaybe<Scalars['JSONString']['input']>;
|
|
4361
|
+
}>;
|
|
4362
|
+
export type AiAgentExecuteMutation = {
|
|
4363
|
+
__typename?: 'Mutation';
|
|
4364
|
+
aiAgentExecute?: {
|
|
4365
|
+
__typename?: 'AIAgentExecuteResponse';
|
|
4366
|
+
success?: boolean | null;
|
|
4367
|
+
error?: string | null;
|
|
4368
|
+
results?: Array<{
|
|
4369
|
+
__typename?: 'ToolResultType';
|
|
4370
|
+
toolUseId?: string | null;
|
|
4371
|
+
type?: string | null;
|
|
4372
|
+
success?: boolean | null;
|
|
4373
|
+
result?: any | null;
|
|
4374
|
+
error?: string | null;
|
|
4375
|
+
} | null> | null;
|
|
4376
|
+
} | null;
|
|
4377
|
+
};
|
|
4164
4378
|
export type BulkAssignCompanyOwnersMutationVariables = Exact<{
|
|
4165
4379
|
input?: InputMaybe<BulkAssignOwnersInput>;
|
|
4166
4380
|
}>;
|
|
@@ -10722,6 +10936,17 @@ export type DeleteContactMutation = {
|
|
|
10722
10936
|
success?: boolean | null;
|
|
10723
10937
|
} | null;
|
|
10724
10938
|
};
|
|
10939
|
+
export type DeleteConversationMutationVariables = Exact<{
|
|
10940
|
+
conversationId: Scalars['String']['input'];
|
|
10941
|
+
}>;
|
|
10942
|
+
export type DeleteConversationMutation = {
|
|
10943
|
+
__typename?: 'Mutation';
|
|
10944
|
+
deleteConversation?: {
|
|
10945
|
+
__typename?: 'DeleteConversation';
|
|
10946
|
+
success?: boolean | null;
|
|
10947
|
+
message?: string | null;
|
|
10948
|
+
} | null;
|
|
10949
|
+
};
|
|
10725
10950
|
export type DeleteEmailTemplateMutationVariables = Exact<{
|
|
10726
10951
|
uuid: Scalars['UUID']['input'];
|
|
10727
10952
|
}>;
|
|
@@ -33556,6 +33781,69 @@ export type ContactsInSegmentQuery = {
|
|
|
33556
33781
|
} | null;
|
|
33557
33782
|
} | null;
|
|
33558
33783
|
};
|
|
33784
|
+
export type ConversationQueryVariables = Exact<{
|
|
33785
|
+
conversationId: Scalars['String']['input'];
|
|
33786
|
+
}>;
|
|
33787
|
+
export type ConversationQuery = {
|
|
33788
|
+
__typename?: 'Query';
|
|
33789
|
+
conversation?: {
|
|
33790
|
+
__typename?: 'ConversationType';
|
|
33791
|
+
id: string;
|
|
33792
|
+
createdAt: any;
|
|
33793
|
+
updatedAt: any;
|
|
33794
|
+
user?: {
|
|
33795
|
+
__typename?: 'UserType';
|
|
33796
|
+
id?: string | null;
|
|
33797
|
+
email?: string | null;
|
|
33798
|
+
firstName?: string | null;
|
|
33799
|
+
lastName?: string | null;
|
|
33800
|
+
picture?: string | null;
|
|
33801
|
+
} | null;
|
|
33802
|
+
messages?: Array<{
|
|
33803
|
+
__typename?: 'ConversationMessageType';
|
|
33804
|
+
id: string;
|
|
33805
|
+
role: AgentConversationMessageRoleChoices;
|
|
33806
|
+
content: any;
|
|
33807
|
+
toolCalls?: any | null;
|
|
33808
|
+
toolResults?: any | null;
|
|
33809
|
+
createdAt: any;
|
|
33810
|
+
} | null> | null;
|
|
33811
|
+
} | null;
|
|
33812
|
+
};
|
|
33813
|
+
export type ConversationHistoryQueryVariables = Exact<{
|
|
33814
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
33815
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
33816
|
+
}>;
|
|
33817
|
+
export type ConversationHistoryQuery = {
|
|
33818
|
+
__typename?: 'Query';
|
|
33819
|
+
conversationHistory?: {
|
|
33820
|
+
__typename?: 'ConversationHistoryType';
|
|
33821
|
+
totalCount?: number | null;
|
|
33822
|
+
conversations?: Array<{
|
|
33823
|
+
__typename?: 'ConversationType';
|
|
33824
|
+
id: string;
|
|
33825
|
+
createdAt: any;
|
|
33826
|
+
updatedAt: any;
|
|
33827
|
+
user?: {
|
|
33828
|
+
__typename?: 'UserType';
|
|
33829
|
+
id?: string | null;
|
|
33830
|
+
email?: string | null;
|
|
33831
|
+
firstName?: string | null;
|
|
33832
|
+
lastName?: string | null;
|
|
33833
|
+
picture?: string | null;
|
|
33834
|
+
} | null;
|
|
33835
|
+
messages?: Array<{
|
|
33836
|
+
__typename?: 'ConversationMessageType';
|
|
33837
|
+
id: string;
|
|
33838
|
+
role: AgentConversationMessageRoleChoices;
|
|
33839
|
+
content: any;
|
|
33840
|
+
toolCalls?: any | null;
|
|
33841
|
+
toolResults?: any | null;
|
|
33842
|
+
createdAt: any;
|
|
33843
|
+
} | null> | null;
|
|
33844
|
+
} | null> | null;
|
|
33845
|
+
} | null;
|
|
33846
|
+
};
|
|
33559
33847
|
export type CurrentAccountQueryVariables = Exact<{
|
|
33560
33848
|
[key: string]: never;
|
|
33561
33849
|
}>;
|
|
@@ -36694,6 +36982,89 @@ export declare function useAddSegmentToCampaignMutation(baseOptions?: Apollo.Mut
|
|
|
36694
36982
|
export type AddSegmentToCampaignMutationHookResult = ReturnType<typeof useAddSegmentToCampaignMutation>;
|
|
36695
36983
|
export type AddSegmentToCampaignMutationResult = Apollo.MutationResult<AddSegmentToCampaignMutation>;
|
|
36696
36984
|
export type AddSegmentToCampaignMutationOptions = Apollo.BaseMutationOptions<AddSegmentToCampaignMutation, AddSegmentToCampaignMutationVariables>;
|
|
36985
|
+
export declare const AiAgentChatDocument: Apollo.DocumentNode;
|
|
36986
|
+
export type AiAgentChatMutationFn = Apollo.MutationFunction<AiAgentChatMutation, AiAgentChatMutationVariables>;
|
|
36987
|
+
/**
|
|
36988
|
+
* __useAiAgentChatMutation__
|
|
36989
|
+
*
|
|
36990
|
+
* To run a mutation, you first call `useAiAgentChatMutation` within a React component and pass it any options that fit your needs.
|
|
36991
|
+
* When your component renders, `useAiAgentChatMutation` returns a tuple that includes:
|
|
36992
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
36993
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
36994
|
+
*
|
|
36995
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
36996
|
+
*
|
|
36997
|
+
* @example
|
|
36998
|
+
* const [aiAgentChatMutation, { data, loading, error }] = useAiAgentChatMutation({
|
|
36999
|
+
* variables: {
|
|
37000
|
+
* conversationId: // value for 'conversationId'
|
|
37001
|
+
* enableTools: // value for 'enableTools'
|
|
37002
|
+
* message: // value for 'message'
|
|
37003
|
+
* },
|
|
37004
|
+
* });
|
|
37005
|
+
*/
|
|
37006
|
+
export declare function useAiAgentChatMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentChatMutation, AiAgentChatMutationVariables>): Apollo.MutationTuple<AiAgentChatMutation, Exact<{
|
|
37007
|
+
conversationId?: InputMaybe<Scalars["String"]["input"]>;
|
|
37008
|
+
enableTools?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
37009
|
+
message: Scalars["String"]["input"];
|
|
37010
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
37011
|
+
export type AiAgentChatMutationHookResult = ReturnType<typeof useAiAgentChatMutation>;
|
|
37012
|
+
export type AiAgentChatMutationResult = Apollo.MutationResult<AiAgentChatMutation>;
|
|
37013
|
+
export type AiAgentChatMutationOptions = Apollo.BaseMutationOptions<AiAgentChatMutation, AiAgentChatMutationVariables>;
|
|
37014
|
+
export declare const AiAgentContinueDocument: Apollo.DocumentNode;
|
|
37015
|
+
export type AiAgentContinueMutationFn = Apollo.MutationFunction<AiAgentContinueMutation, AiAgentContinueMutationVariables>;
|
|
37016
|
+
/**
|
|
37017
|
+
* __useAiAgentContinueMutation__
|
|
37018
|
+
*
|
|
37019
|
+
* To run a mutation, you first call `useAiAgentContinueMutation` within a React component and pass it any options that fit your needs.
|
|
37020
|
+
* When your component renders, `useAiAgentContinueMutation` returns a tuple that includes:
|
|
37021
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
37022
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
37023
|
+
*
|
|
37024
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
37025
|
+
*
|
|
37026
|
+
* @example
|
|
37027
|
+
* const [aiAgentContinueMutation, { data, loading, error }] = useAiAgentContinueMutation({
|
|
37028
|
+
* variables: {
|
|
37029
|
+
* conversationId: // value for 'conversationId'
|
|
37030
|
+
* toolResults: // value for 'toolResults'
|
|
37031
|
+
* },
|
|
37032
|
+
* });
|
|
37033
|
+
*/
|
|
37034
|
+
export declare function useAiAgentContinueMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentContinueMutation, AiAgentContinueMutationVariables>): Apollo.MutationTuple<AiAgentContinueMutation, Exact<{
|
|
37035
|
+
conversationId: Scalars["String"]["input"];
|
|
37036
|
+
toolResults: Array<InputMaybe<Scalars["JSONString"]["input"]>> | InputMaybe<Scalars["JSONString"]["input"]>;
|
|
37037
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
37038
|
+
export type AiAgentContinueMutationHookResult = ReturnType<typeof useAiAgentContinueMutation>;
|
|
37039
|
+
export type AiAgentContinueMutationResult = Apollo.MutationResult<AiAgentContinueMutation>;
|
|
37040
|
+
export type AiAgentContinueMutationOptions = Apollo.BaseMutationOptions<AiAgentContinueMutation, AiAgentContinueMutationVariables>;
|
|
37041
|
+
export declare const AiAgentExecuteDocument: Apollo.DocumentNode;
|
|
37042
|
+
export type AiAgentExecuteMutationFn = Apollo.MutationFunction<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>;
|
|
37043
|
+
/**
|
|
37044
|
+
* __useAiAgentExecuteMutation__
|
|
37045
|
+
*
|
|
37046
|
+
* To run a mutation, you first call `useAiAgentExecuteMutation` within a React component and pass it any options that fit your needs.
|
|
37047
|
+
* When your component renders, `useAiAgentExecuteMutation` returns a tuple that includes:
|
|
37048
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
37049
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
37050
|
+
*
|
|
37051
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
37052
|
+
*
|
|
37053
|
+
* @example
|
|
37054
|
+
* const [aiAgentExecuteMutation, { data, loading, error }] = useAiAgentExecuteMutation({
|
|
37055
|
+
* variables: {
|
|
37056
|
+
* conversationId: // value for 'conversationId'
|
|
37057
|
+
* toolCalls: // value for 'toolCalls'
|
|
37058
|
+
* },
|
|
37059
|
+
* });
|
|
37060
|
+
*/
|
|
37061
|
+
export declare function useAiAgentExecuteMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>): Apollo.MutationTuple<AiAgentExecuteMutation, Exact<{
|
|
37062
|
+
conversationId: Scalars["String"]["input"];
|
|
37063
|
+
toolCalls: Array<InputMaybe<Scalars["JSONString"]["input"]>> | InputMaybe<Scalars["JSONString"]["input"]>;
|
|
37064
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
37065
|
+
export type AiAgentExecuteMutationHookResult = ReturnType<typeof useAiAgentExecuteMutation>;
|
|
37066
|
+
export type AiAgentExecuteMutationResult = Apollo.MutationResult<AiAgentExecuteMutation>;
|
|
37067
|
+
export type AiAgentExecuteMutationOptions = Apollo.BaseMutationOptions<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>;
|
|
36697
37068
|
export declare const BulkAssignCompanyOwnersDocument: Apollo.DocumentNode;
|
|
36698
37069
|
export type BulkAssignCompanyOwnersMutationFn = Apollo.MutationFunction<BulkAssignCompanyOwnersMutation, BulkAssignCompanyOwnersMutationVariables>;
|
|
36699
37070
|
/**
|
|
@@ -37345,6 +37716,31 @@ export declare function useDeleteContactMutation(baseOptions?: Apollo.MutationHo
|
|
|
37345
37716
|
export type DeleteContactMutationHookResult = ReturnType<typeof useDeleteContactMutation>;
|
|
37346
37717
|
export type DeleteContactMutationResult = Apollo.MutationResult<DeleteContactMutation>;
|
|
37347
37718
|
export type DeleteContactMutationOptions = Apollo.BaseMutationOptions<DeleteContactMutation, DeleteContactMutationVariables>;
|
|
37719
|
+
export declare const DeleteConversationDocument: Apollo.DocumentNode;
|
|
37720
|
+
export type DeleteConversationMutationFn = Apollo.MutationFunction<DeleteConversationMutation, DeleteConversationMutationVariables>;
|
|
37721
|
+
/**
|
|
37722
|
+
* __useDeleteConversationMutation__
|
|
37723
|
+
*
|
|
37724
|
+
* To run a mutation, you first call `useDeleteConversationMutation` within a React component and pass it any options that fit your needs.
|
|
37725
|
+
* When your component renders, `useDeleteConversationMutation` returns a tuple that includes:
|
|
37726
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
37727
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
37728
|
+
*
|
|
37729
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
37730
|
+
*
|
|
37731
|
+
* @example
|
|
37732
|
+
* const [deleteConversationMutation, { data, loading, error }] = useDeleteConversationMutation({
|
|
37733
|
+
* variables: {
|
|
37734
|
+
* conversationId: // value for 'conversationId'
|
|
37735
|
+
* },
|
|
37736
|
+
* });
|
|
37737
|
+
*/
|
|
37738
|
+
export declare function useDeleteConversationMutation(baseOptions?: Apollo.MutationHookOptions<DeleteConversationMutation, DeleteConversationMutationVariables>): Apollo.MutationTuple<DeleteConversationMutation, Exact<{
|
|
37739
|
+
conversationId: Scalars["String"]["input"];
|
|
37740
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
37741
|
+
export type DeleteConversationMutationHookResult = ReturnType<typeof useDeleteConversationMutation>;
|
|
37742
|
+
export type DeleteConversationMutationResult = Apollo.MutationResult<DeleteConversationMutation>;
|
|
37743
|
+
export type DeleteConversationMutationOptions = Apollo.BaseMutationOptions<DeleteConversationMutation, DeleteConversationMutationVariables>;
|
|
37348
37744
|
export declare const DeleteEmailTemplateDocument: Apollo.DocumentNode;
|
|
37349
37745
|
export type DeleteEmailTemplateMutationFn = Apollo.MutationFunction<DeleteEmailTemplateMutation, DeleteEmailTemplateMutationVariables>;
|
|
37350
37746
|
/**
|
|
@@ -40069,6 +40465,75 @@ export type ContactsInSegmentQueryHookResult = ReturnType<typeof useContactsInSe
|
|
|
40069
40465
|
export type ContactsInSegmentLazyQueryHookResult = ReturnType<typeof useContactsInSegmentLazyQuery>;
|
|
40070
40466
|
export type ContactsInSegmentSuspenseQueryHookResult = ReturnType<typeof useContactsInSegmentSuspenseQuery>;
|
|
40071
40467
|
export type ContactsInSegmentQueryResult = Apollo.QueryResult<ContactsInSegmentQuery, ContactsInSegmentQueryVariables>;
|
|
40468
|
+
export declare const ConversationDocument: Apollo.DocumentNode;
|
|
40469
|
+
/**
|
|
40470
|
+
* __useConversationQuery__
|
|
40471
|
+
*
|
|
40472
|
+
* To run a query within a React component, call `useConversationQuery` and pass it any options that fit your needs.
|
|
40473
|
+
* When your component renders, `useConversationQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
40474
|
+
* you can use to render your UI.
|
|
40475
|
+
*
|
|
40476
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
40477
|
+
*
|
|
40478
|
+
* @example
|
|
40479
|
+
* const { data, loading, error } = useConversationQuery({
|
|
40480
|
+
* variables: {
|
|
40481
|
+
* conversationId: // value for 'conversationId'
|
|
40482
|
+
* },
|
|
40483
|
+
* });
|
|
40484
|
+
*/
|
|
40485
|
+
export declare function useConversationQuery(baseOptions: Apollo.QueryHookOptions<ConversationQuery, ConversationQueryVariables> & ({
|
|
40486
|
+
variables: ConversationQueryVariables;
|
|
40487
|
+
skip?: boolean;
|
|
40488
|
+
} | {
|
|
40489
|
+
skip: boolean;
|
|
40490
|
+
})): Apollo.QueryResult<ConversationQuery, Exact<{
|
|
40491
|
+
conversationId: Scalars["String"]["input"];
|
|
40492
|
+
}>>;
|
|
40493
|
+
export declare function useConversationLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConversationQuery, ConversationQueryVariables>): Apollo.LazyQueryResultTuple<ConversationQuery, Exact<{
|
|
40494
|
+
conversationId: Scalars["String"]["input"];
|
|
40495
|
+
}>>;
|
|
40496
|
+
export declare function useConversationSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConversationQuery, ConversationQueryVariables>): Apollo.UseSuspenseQueryResult<ConversationQuery | undefined, Exact<{
|
|
40497
|
+
conversationId: Scalars["String"]["input"];
|
|
40498
|
+
}>>;
|
|
40499
|
+
export type ConversationQueryHookResult = ReturnType<typeof useConversationQuery>;
|
|
40500
|
+
export type ConversationLazyQueryHookResult = ReturnType<typeof useConversationLazyQuery>;
|
|
40501
|
+
export type ConversationSuspenseQueryHookResult = ReturnType<typeof useConversationSuspenseQuery>;
|
|
40502
|
+
export type ConversationQueryResult = Apollo.QueryResult<ConversationQuery, ConversationQueryVariables>;
|
|
40503
|
+
export declare const ConversationHistoryDocument: Apollo.DocumentNode;
|
|
40504
|
+
/**
|
|
40505
|
+
* __useConversationHistoryQuery__
|
|
40506
|
+
*
|
|
40507
|
+
* To run a query within a React component, call `useConversationHistoryQuery` and pass it any options that fit your needs.
|
|
40508
|
+
* When your component renders, `useConversationHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
40509
|
+
* you can use to render your UI.
|
|
40510
|
+
*
|
|
40511
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
40512
|
+
*
|
|
40513
|
+
* @example
|
|
40514
|
+
* const { data, loading, error } = useConversationHistoryQuery({
|
|
40515
|
+
* variables: {
|
|
40516
|
+
* limit: // value for 'limit'
|
|
40517
|
+
* offset: // value for 'offset'
|
|
40518
|
+
* },
|
|
40519
|
+
* });
|
|
40520
|
+
*/
|
|
40521
|
+
export declare function useConversationHistoryQuery(baseOptions?: Apollo.QueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.QueryResult<ConversationHistoryQuery, Exact<{
|
|
40522
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40523
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40524
|
+
}>>;
|
|
40525
|
+
export declare function useConversationHistoryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.LazyQueryResultTuple<ConversationHistoryQuery, Exact<{
|
|
40526
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40527
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40528
|
+
}>>;
|
|
40529
|
+
export declare function useConversationHistorySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.UseSuspenseQueryResult<ConversationHistoryQuery | undefined, Exact<{
|
|
40530
|
+
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40531
|
+
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
|
40532
|
+
}>>;
|
|
40533
|
+
export type ConversationHistoryQueryHookResult = ReturnType<typeof useConversationHistoryQuery>;
|
|
40534
|
+
export type ConversationHistoryLazyQueryHookResult = ReturnType<typeof useConversationHistoryLazyQuery>;
|
|
40535
|
+
export type ConversationHistorySuspenseQueryHookResult = ReturnType<typeof useConversationHistorySuspenseQuery>;
|
|
40536
|
+
export type ConversationHistoryQueryResult = Apollo.QueryResult<ConversationHistoryQuery, ConversationHistoryQueryVariables>;
|
|
40072
40537
|
export declare const CurrentAccountDocument: Apollo.DocumentNode;
|
|
40073
40538
|
/**
|
|
40074
40539
|
* __useCurrentAccountQuery__
|
|
@@ -33,16 +33,19 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = void 0;
|
|
36
|
+
exports.DeleteSegmentDocument = exports.DeleteNotificationDocument = exports.DeleteEmailTemplateDocument = exports.DeleteConversationDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCombinedCampaignTemplateDocument = exports.DeleteCombinedCampaignDocument = exports.DeleteCampaignDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSegmentDocument = exports.CreateNotificationDocument = exports.CreateEmailTemplateDocument = exports.CreateContactDocument = exports.CreateCompanyNoteDocument = exports.CreateCompanyDocument = exports.CreateCombinedCampaignTemplateDocument = exports.CreateCombinedCampaignDocument = exports.CreateCampaignDocument = exports.CreateCallCampaignLogDocument = exports.CreateCallCampaignDocument = exports.CompleteCampaignDocument = exports.ClearAllNotificationsDocument = exports.ChangePasswordDocument = exports.CancelInvitationDocument = exports.CancelCombinedCampaignDocument = exports.CancelCampaignDocument = exports.BulkAssignCompanyOwnersDocument = exports.AiAgentExecuteDocument = exports.AiAgentContinueDocument = exports.AiAgentChatDocument = exports.AddSegmentToCampaignDocument = exports.AddSegmentToCallCampaignDocument = exports.AddContactsToSegmentDocument = exports.AddContactsToCombinedCampaignDocument = exports.AddContactsToCampaignDocument = exports.AcceptInvitationDocument = exports.SortDirection = exports.RecentHistorySortField = exports.NotificationTypeEnum = exports.ContactSortField = exports.CompanySortField = exports.CompanyNoteSortField = exports.CallCampaignLogOutcomeEnum = exports.AppEmailTemplateCampaignTypeChoices = exports.AppBusinessProfileStateChoices = exports.AppAccountInvitationStatusChoices = exports.AgentConversationMessageRoleChoices = void 0;
|
|
37
|
+
exports.UpdateEmailTemplateDocument = exports.UpdateContactDocument = exports.UpdateCompanyNoteDocument = exports.UpdateCompanyExternalIdentifierDocument = exports.UpdateCompanyDocument = exports.UpdateCombinedCampaignTemplateDocument = exports.UpdateCombinedCampaignLogsDocument = exports.UpdateCombinedCampaignLogDocument = exports.UpdateCombinedCampaignDocument = exports.UpdateCampaignDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCombinedCampaignDocument = exports.StartCampaignDocument = exports.SignupDocument = exports.SetLeadNotInterestedDocument = exports.SendTestEmailCombinedDocument = exports.SendTestEmailDocument = exports.SendManualEmailDocument = exports.SendEmailToContactDocument = exports.ScheduleCombinedCampaignDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.ResumeCombinedCampaignDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = exports.RemoveMemberDocument = exports.RemoveContactsFromSegmentDocument = exports.RemoveContactsFromCombinedCampaignDocument = exports.RemoveContactsFromCampaignDocument = exports.RejectInvitationDocument = exports.ReduceSpamDocument = exports.PreviewCampaignEmailDocument = exports.PauseCombinedCampaignDocument = exports.PauseCampaignDocument = exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = exports.LoginDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.GenerateNewEmailDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = void 0;
|
|
38
|
+
exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = exports.CurrentAccountDocument = exports.ConversationHistoryDocument = exports.ConversationDocument = exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanySearchDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyMetadataDocument = exports.CompanyExternalIdentifierDocument = exports.CompanyAudiencesAndCampaignsDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CombinedCampaignsDocument = exports.CombinedCampaignTemplatesDocument = exports.CombinedCampaignTemplateDocument = exports.CombinedCampaignStepsDocument = exports.CombinedCampaignLogsDocument = exports.CombinedCampaignContactsDocument = exports.CombinedCampaignDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = exports.CallCampaignsDocument = exports.CallCampaignReportDocument = exports.CallCampaignLogsDocument = exports.CallCampaignLogDocument = exports.CallCampaignAnalyticsDocument = exports.CallCampaignDocument = exports.BusinessProfileDocument = exports.AccountMembersDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSegmentDocument = void 0;
|
|
39
|
+
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = void 0;
|
|
40
40
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
41
41
|
exports.useAddContactsToCampaignMutation = useAddContactsToCampaignMutation;
|
|
42
42
|
exports.useAddContactsToCombinedCampaignMutation = useAddContactsToCombinedCampaignMutation;
|
|
43
43
|
exports.useAddContactsToSegmentMutation = useAddContactsToSegmentMutation;
|
|
44
44
|
exports.useAddSegmentToCallCampaignMutation = useAddSegmentToCallCampaignMutation;
|
|
45
45
|
exports.useAddSegmentToCampaignMutation = useAddSegmentToCampaignMutation;
|
|
46
|
+
exports.useAiAgentChatMutation = useAiAgentChatMutation;
|
|
47
|
+
exports.useAiAgentContinueMutation = useAiAgentContinueMutation;
|
|
48
|
+
exports.useAiAgentExecuteMutation = useAiAgentExecuteMutation;
|
|
46
49
|
exports.useBulkAssignCompanyOwnersMutation = useBulkAssignCompanyOwnersMutation;
|
|
47
50
|
exports.useCancelCampaignMutation = useCancelCampaignMutation;
|
|
48
51
|
exports.useCancelCombinedCampaignMutation = useCancelCombinedCampaignMutation;
|
|
@@ -69,6 +72,7 @@ exports.useDeleteCombinedCampaignTemplateMutation = useDeleteCombinedCampaignTem
|
|
|
69
72
|
exports.useDeleteCompanyMutation = useDeleteCompanyMutation;
|
|
70
73
|
exports.useDeleteCompanyNoteMutation = useDeleteCompanyNoteMutation;
|
|
71
74
|
exports.useDeleteContactMutation = useDeleteContactMutation;
|
|
75
|
+
exports.useDeleteConversationMutation = useDeleteConversationMutation;
|
|
72
76
|
exports.useDeleteEmailTemplateMutation = useDeleteEmailTemplateMutation;
|
|
73
77
|
exports.useDeleteNotificationMutation = useDeleteNotificationMutation;
|
|
74
78
|
exports.useDeleteSegmentMutation = useDeleteSegmentMutation;
|
|
@@ -223,6 +227,12 @@ exports.useContactsSuspenseQuery = useContactsSuspenseQuery;
|
|
|
223
227
|
exports.useContactsInSegmentQuery = useContactsInSegmentQuery;
|
|
224
228
|
exports.useContactsInSegmentLazyQuery = useContactsInSegmentLazyQuery;
|
|
225
229
|
exports.useContactsInSegmentSuspenseQuery = useContactsInSegmentSuspenseQuery;
|
|
230
|
+
exports.useConversationQuery = useConversationQuery;
|
|
231
|
+
exports.useConversationLazyQuery = useConversationLazyQuery;
|
|
232
|
+
exports.useConversationSuspenseQuery = useConversationSuspenseQuery;
|
|
233
|
+
exports.useConversationHistoryQuery = useConversationHistoryQuery;
|
|
234
|
+
exports.useConversationHistoryLazyQuery = useConversationHistoryLazyQuery;
|
|
235
|
+
exports.useConversationHistorySuspenseQuery = useConversationHistorySuspenseQuery;
|
|
226
236
|
exports.useCurrentAccountQuery = useCurrentAccountQuery;
|
|
227
237
|
exports.useCurrentAccountLazyQuery = useCurrentAccountLazyQuery;
|
|
228
238
|
exports.useCurrentAccountSuspenseQuery = useCurrentAccountSuspenseQuery;
|
|
@@ -305,6 +315,16 @@ const client_1 = require("@apollo/client");
|
|
|
305
315
|
const Apollo = __importStar(require("@apollo/client"));
|
|
306
316
|
const defaultOptions = {};
|
|
307
317
|
/** An enumeration. */
|
|
318
|
+
var AgentConversationMessageRoleChoices;
|
|
319
|
+
(function (AgentConversationMessageRoleChoices) {
|
|
320
|
+
/** Assistant */
|
|
321
|
+
AgentConversationMessageRoleChoices["Assistant"] = "ASSISTANT";
|
|
322
|
+
/** System */
|
|
323
|
+
AgentConversationMessageRoleChoices["System"] = "SYSTEM";
|
|
324
|
+
/** User */
|
|
325
|
+
AgentConversationMessageRoleChoices["User"] = "USER";
|
|
326
|
+
})(AgentConversationMessageRoleChoices || (exports.AgentConversationMessageRoleChoices = AgentConversationMessageRoleChoices = {}));
|
|
327
|
+
/** An enumeration. */
|
|
308
328
|
var AppAccountInvitationStatusChoices;
|
|
309
329
|
(function (AppAccountInvitationStatusChoices) {
|
|
310
330
|
/** Accepted */
|
|
@@ -952,6 +972,139 @@ function useAddSegmentToCampaignMutation(baseOptions) {
|
|
|
952
972
|
const options = { ...defaultOptions, ...baseOptions };
|
|
953
973
|
return Apollo.useMutation(exports.AddSegmentToCampaignDocument, options);
|
|
954
974
|
}
|
|
975
|
+
exports.AiAgentChatDocument = (0, client_1.gql) `
|
|
976
|
+
mutation AiAgentChat($conversationId: String, $enableTools: Boolean, $message: String!) {
|
|
977
|
+
aiAgentChat(
|
|
978
|
+
conversationId: $conversationId
|
|
979
|
+
enableTools: $enableTools
|
|
980
|
+
message: $message
|
|
981
|
+
) {
|
|
982
|
+
success
|
|
983
|
+
conversationId
|
|
984
|
+
response
|
|
985
|
+
toolCalls {
|
|
986
|
+
type
|
|
987
|
+
id
|
|
988
|
+
name
|
|
989
|
+
input
|
|
990
|
+
}
|
|
991
|
+
toolResults {
|
|
992
|
+
toolUseId
|
|
993
|
+
type
|
|
994
|
+
success
|
|
995
|
+
result
|
|
996
|
+
error
|
|
997
|
+
}
|
|
998
|
+
requiresExecution
|
|
999
|
+
error
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
`;
|
|
1003
|
+
/**
|
|
1004
|
+
* __useAiAgentChatMutation__
|
|
1005
|
+
*
|
|
1006
|
+
* To run a mutation, you first call `useAiAgentChatMutation` within a React component and pass it any options that fit your needs.
|
|
1007
|
+
* When your component renders, `useAiAgentChatMutation` returns a tuple that includes:
|
|
1008
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1009
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1010
|
+
*
|
|
1011
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1012
|
+
*
|
|
1013
|
+
* @example
|
|
1014
|
+
* const [aiAgentChatMutation, { data, loading, error }] = useAiAgentChatMutation({
|
|
1015
|
+
* variables: {
|
|
1016
|
+
* conversationId: // value for 'conversationId'
|
|
1017
|
+
* enableTools: // value for 'enableTools'
|
|
1018
|
+
* message: // value for 'message'
|
|
1019
|
+
* },
|
|
1020
|
+
* });
|
|
1021
|
+
*/
|
|
1022
|
+
function useAiAgentChatMutation(baseOptions) {
|
|
1023
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1024
|
+
return Apollo.useMutation(exports.AiAgentChatDocument, options);
|
|
1025
|
+
}
|
|
1026
|
+
exports.AiAgentContinueDocument = (0, client_1.gql) `
|
|
1027
|
+
mutation AiAgentContinue($conversationId: String!, $toolResults: [JSONString]!) {
|
|
1028
|
+
aiAgentContinue(conversationId: $conversationId, toolResults: $toolResults) {
|
|
1029
|
+
success
|
|
1030
|
+
response
|
|
1031
|
+
toolCalls {
|
|
1032
|
+
type
|
|
1033
|
+
id
|
|
1034
|
+
name
|
|
1035
|
+
input
|
|
1036
|
+
}
|
|
1037
|
+
toolResults {
|
|
1038
|
+
toolUseId
|
|
1039
|
+
type
|
|
1040
|
+
success
|
|
1041
|
+
result
|
|
1042
|
+
error
|
|
1043
|
+
}
|
|
1044
|
+
requiresExecution
|
|
1045
|
+
error
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
`;
|
|
1049
|
+
/**
|
|
1050
|
+
* __useAiAgentContinueMutation__
|
|
1051
|
+
*
|
|
1052
|
+
* To run a mutation, you first call `useAiAgentContinueMutation` within a React component and pass it any options that fit your needs.
|
|
1053
|
+
* When your component renders, `useAiAgentContinueMutation` returns a tuple that includes:
|
|
1054
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1055
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1056
|
+
*
|
|
1057
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1058
|
+
*
|
|
1059
|
+
* @example
|
|
1060
|
+
* const [aiAgentContinueMutation, { data, loading, error }] = useAiAgentContinueMutation({
|
|
1061
|
+
* variables: {
|
|
1062
|
+
* conversationId: // value for 'conversationId'
|
|
1063
|
+
* toolResults: // value for 'toolResults'
|
|
1064
|
+
* },
|
|
1065
|
+
* });
|
|
1066
|
+
*/
|
|
1067
|
+
function useAiAgentContinueMutation(baseOptions) {
|
|
1068
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1069
|
+
return Apollo.useMutation(exports.AiAgentContinueDocument, options);
|
|
1070
|
+
}
|
|
1071
|
+
exports.AiAgentExecuteDocument = (0, client_1.gql) `
|
|
1072
|
+
mutation AiAgentExecute($conversationId: String!, $toolCalls: [JSONString]!) {
|
|
1073
|
+
aiAgentExecute(conversationId: $conversationId, toolCalls: $toolCalls) {
|
|
1074
|
+
success
|
|
1075
|
+
results {
|
|
1076
|
+
toolUseId
|
|
1077
|
+
type
|
|
1078
|
+
success
|
|
1079
|
+
result
|
|
1080
|
+
error
|
|
1081
|
+
}
|
|
1082
|
+
error
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
`;
|
|
1086
|
+
/**
|
|
1087
|
+
* __useAiAgentExecuteMutation__
|
|
1088
|
+
*
|
|
1089
|
+
* To run a mutation, you first call `useAiAgentExecuteMutation` within a React component and pass it any options that fit your needs.
|
|
1090
|
+
* When your component renders, `useAiAgentExecuteMutation` returns a tuple that includes:
|
|
1091
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1092
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1093
|
+
*
|
|
1094
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1095
|
+
*
|
|
1096
|
+
* @example
|
|
1097
|
+
* const [aiAgentExecuteMutation, { data, loading, error }] = useAiAgentExecuteMutation({
|
|
1098
|
+
* variables: {
|
|
1099
|
+
* conversationId: // value for 'conversationId'
|
|
1100
|
+
* toolCalls: // value for 'toolCalls'
|
|
1101
|
+
* },
|
|
1102
|
+
* });
|
|
1103
|
+
*/
|
|
1104
|
+
function useAiAgentExecuteMutation(baseOptions) {
|
|
1105
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
1106
|
+
return Apollo.useMutation(exports.AiAgentExecuteDocument, options);
|
|
1107
|
+
}
|
|
955
1108
|
exports.BulkAssignCompanyOwnersDocument = (0, client_1.gql) `
|
|
956
1109
|
mutation BulkAssignCompanyOwners($input: BulkAssignOwnersInput) {
|
|
957
1110
|
bulkAssignCompanyOwners(input: $input) {
|
|
@@ -7481,6 +7634,35 @@ function useDeleteContactMutation(baseOptions) {
|
|
|
7481
7634
|
const options = { ...defaultOptions, ...baseOptions };
|
|
7482
7635
|
return Apollo.useMutation(exports.DeleteContactDocument, options);
|
|
7483
7636
|
}
|
|
7637
|
+
exports.DeleteConversationDocument = (0, client_1.gql) `
|
|
7638
|
+
mutation DeleteConversation($conversationId: String!) {
|
|
7639
|
+
deleteConversation(conversationId: $conversationId) {
|
|
7640
|
+
success
|
|
7641
|
+
message
|
|
7642
|
+
}
|
|
7643
|
+
}
|
|
7644
|
+
`;
|
|
7645
|
+
/**
|
|
7646
|
+
* __useDeleteConversationMutation__
|
|
7647
|
+
*
|
|
7648
|
+
* To run a mutation, you first call `useDeleteConversationMutation` within a React component and pass it any options that fit your needs.
|
|
7649
|
+
* When your component renders, `useDeleteConversationMutation` returns a tuple that includes:
|
|
7650
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
7651
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
7652
|
+
*
|
|
7653
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
7654
|
+
*
|
|
7655
|
+
* @example
|
|
7656
|
+
* const [deleteConversationMutation, { data, loading, error }] = useDeleteConversationMutation({
|
|
7657
|
+
* variables: {
|
|
7658
|
+
* conversationId: // value for 'conversationId'
|
|
7659
|
+
* },
|
|
7660
|
+
* });
|
|
7661
|
+
*/
|
|
7662
|
+
function useDeleteConversationMutation(baseOptions) {
|
|
7663
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
7664
|
+
return Apollo.useMutation(exports.DeleteConversationDocument, options);
|
|
7665
|
+
}
|
|
7484
7666
|
exports.DeleteEmailTemplateDocument = (0, client_1.gql) `
|
|
7485
7667
|
mutation DeleteEmailTemplate($uuid: UUID!) {
|
|
7486
7668
|
deleteEmailTemplate(uuid: $uuid) {
|
|
@@ -30508,6 +30690,114 @@ function useContactsInSegmentSuspenseQuery(baseOptions) {
|
|
|
30508
30690
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
30509
30691
|
return Apollo.useSuspenseQuery(exports.ContactsInSegmentDocument, options);
|
|
30510
30692
|
}
|
|
30693
|
+
exports.ConversationDocument = (0, client_1.gql) `
|
|
30694
|
+
query Conversation($conversationId: String!) {
|
|
30695
|
+
conversation(conversationId: $conversationId) {
|
|
30696
|
+
id
|
|
30697
|
+
user {
|
|
30698
|
+
id
|
|
30699
|
+
email
|
|
30700
|
+
firstName
|
|
30701
|
+
lastName
|
|
30702
|
+
picture
|
|
30703
|
+
}
|
|
30704
|
+
createdAt
|
|
30705
|
+
updatedAt
|
|
30706
|
+
messages {
|
|
30707
|
+
id
|
|
30708
|
+
role
|
|
30709
|
+
content
|
|
30710
|
+
toolCalls
|
|
30711
|
+
toolResults
|
|
30712
|
+
createdAt
|
|
30713
|
+
}
|
|
30714
|
+
}
|
|
30715
|
+
}
|
|
30716
|
+
`;
|
|
30717
|
+
/**
|
|
30718
|
+
* __useConversationQuery__
|
|
30719
|
+
*
|
|
30720
|
+
* To run a query within a React component, call `useConversationQuery` and pass it any options that fit your needs.
|
|
30721
|
+
* When your component renders, `useConversationQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
30722
|
+
* you can use to render your UI.
|
|
30723
|
+
*
|
|
30724
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
30725
|
+
*
|
|
30726
|
+
* @example
|
|
30727
|
+
* const { data, loading, error } = useConversationQuery({
|
|
30728
|
+
* variables: {
|
|
30729
|
+
* conversationId: // value for 'conversationId'
|
|
30730
|
+
* },
|
|
30731
|
+
* });
|
|
30732
|
+
*/
|
|
30733
|
+
function useConversationQuery(baseOptions) {
|
|
30734
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
30735
|
+
return Apollo.useQuery(exports.ConversationDocument, options);
|
|
30736
|
+
}
|
|
30737
|
+
function useConversationLazyQuery(baseOptions) {
|
|
30738
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
30739
|
+
return Apollo.useLazyQuery(exports.ConversationDocument, options);
|
|
30740
|
+
}
|
|
30741
|
+
function useConversationSuspenseQuery(baseOptions) {
|
|
30742
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
30743
|
+
return Apollo.useSuspenseQuery(exports.ConversationDocument, options);
|
|
30744
|
+
}
|
|
30745
|
+
exports.ConversationHistoryDocument = (0, client_1.gql) `
|
|
30746
|
+
query ConversationHistory($limit: Int, $offset: Int) {
|
|
30747
|
+
conversationHistory(limit: $limit, offset: $offset) {
|
|
30748
|
+
conversations {
|
|
30749
|
+
id
|
|
30750
|
+
user {
|
|
30751
|
+
id
|
|
30752
|
+
email
|
|
30753
|
+
firstName
|
|
30754
|
+
lastName
|
|
30755
|
+
picture
|
|
30756
|
+
}
|
|
30757
|
+
createdAt
|
|
30758
|
+
updatedAt
|
|
30759
|
+
messages {
|
|
30760
|
+
id
|
|
30761
|
+
role
|
|
30762
|
+
content
|
|
30763
|
+
toolCalls
|
|
30764
|
+
toolResults
|
|
30765
|
+
createdAt
|
|
30766
|
+
}
|
|
30767
|
+
}
|
|
30768
|
+
totalCount
|
|
30769
|
+
}
|
|
30770
|
+
}
|
|
30771
|
+
`;
|
|
30772
|
+
/**
|
|
30773
|
+
* __useConversationHistoryQuery__
|
|
30774
|
+
*
|
|
30775
|
+
* To run a query within a React component, call `useConversationHistoryQuery` and pass it any options that fit your needs.
|
|
30776
|
+
* When your component renders, `useConversationHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
30777
|
+
* you can use to render your UI.
|
|
30778
|
+
*
|
|
30779
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
30780
|
+
*
|
|
30781
|
+
* @example
|
|
30782
|
+
* const { data, loading, error } = useConversationHistoryQuery({
|
|
30783
|
+
* variables: {
|
|
30784
|
+
* limit: // value for 'limit'
|
|
30785
|
+
* offset: // value for 'offset'
|
|
30786
|
+
* },
|
|
30787
|
+
* });
|
|
30788
|
+
*/
|
|
30789
|
+
function useConversationHistoryQuery(baseOptions) {
|
|
30790
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
30791
|
+
return Apollo.useQuery(exports.ConversationHistoryDocument, options);
|
|
30792
|
+
}
|
|
30793
|
+
function useConversationHistoryLazyQuery(baseOptions) {
|
|
30794
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
30795
|
+
return Apollo.useLazyQuery(exports.ConversationHistoryDocument, options);
|
|
30796
|
+
}
|
|
30797
|
+
function useConversationHistorySuspenseQuery(baseOptions) {
|
|
30798
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
30799
|
+
return Apollo.useSuspenseQuery(exports.ConversationHistoryDocument, options);
|
|
30800
|
+
}
|
|
30511
30801
|
exports.CurrentAccountDocument = (0, client_1.gql) `
|
|
30512
30802
|
query CurrentAccount {
|
|
30513
30803
|
currentAccount {
|
package/dist/mutations.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export declare const AI_AGENT_CHAT: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const AI_AGENT_EXECUTE: import("@apollo/client").DocumentNode;
|
|
3
|
+
export declare const AI_AGENT_CONTINUE: import("@apollo/client").DocumentNode;
|
|
4
|
+
export declare const DELETE_CONVERSATION: import("@apollo/client").DocumentNode;
|
|
1
5
|
export declare const CREATE_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
2
6
|
export declare const UPDATE_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
3
7
|
export declare const DELETE_COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
package/dist/mutations.js
CHANGED
|
@@ -1,8 +1,74 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UPDATE_COMPANY_EXTERNAL_IDENTIFIER = exports.SET_LEAD_NOT_INTERESTED = exports.BULK_ASSIGN_COMPANY_OWNERS = exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = exports.CREATE_TASK = exports.CLEAR_ALL_NOTIFICATIONS = exports.DELETE_NOTIFICATION = exports.MARK_ALL_NOTIFICATIONS_AS_READ = exports.MARK_NOTIFICATION_AS_READ = exports.CREATE_NOTIFICATION = exports.DISCONNECT_NYLAS_INTEGRATION = exports.SAVE_NYLAS_CONNECTION = exports.GENERATE_NEW_EMAIL = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = exports.CREATE_EMAIL_TEMPLATE = exports.PREVIEW_CAMPAIGN_EMAIL = exports.SCHEDULE_CAMPAIGN = exports.SEND_EMAIL_TO_CONTACT = exports.SEND_TEST_EMAIL = exports.CANCEL_CAMPAIGN = exports.COMPLETE_CAMPAIGN = exports.PAUSE_CAMPAIGN = exports.START_CAMPAIGN = exports.REMOVE_SEGMENT_FROM_CAMPAIGN = void 0;
|
|
3
|
+
exports.REMOVE_CONTACTS_FROM_CAMPAIGN = exports.ADD_CONTACTS_TO_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_SEGMENT = exports.ADD_CONTACTS_TO_SEGMENT = exports.DELETE_SEGMENT = exports.UPDATE_SEGMENT = exports.CREATE_SEGMENT = exports.DELETE_COMPANY = exports.UPDATE_COMPANY = exports.CREATE_COMPANY = exports.DELETE_CONTACT = exports.UPDATE_CONTACT = exports.CREATE_CONTACT = exports.SUBMIT_FEEDBACK = exports.LOGIN_WITH_MICROSOFT = exports.LOGIN_WITH_GOOGLE = exports.UNSUBSCRIBE_FROM_EMAILS = exports.VALIDATE_OTP_AND_RESET_PASSWORD = exports.CHANGE_PASSWORD = exports.UPDATE_USER_PROFILE = exports.LOGIN = exports.CANCEL_INVITATION = exports.REMOVE_MEMBER = exports.REJECT_INVITATION = exports.ACCEPT_INVITATION = exports.INVITE_USER = exports.UPLOAD_FILE = exports.FORGOT_PASSWORD = exports.SIGNUP = exports.DELETE_COMBINED_CAMPAIGN_TEMPLATE = exports.UPDATE_COMBINED_CAMPAIGN_TEMPLATE = exports.CREATE_COMBINED_CAMPAIGN_TEMPLATE = exports.REMOVE_CONTACTS_FROM_COMBINED_CAMPAIGN = exports.ADD_CONTACTS_TO_COMBINED_CAMPAIGN = exports.SEND_TEST_EMAIL_COMBINED = exports.SEND_MANUAL_EMAIL = exports.UPDATE_COMBINED_CAMPAIGN_LOGS = exports.UPDATE_COMBINED_CAMPAIGN_LOG = exports.CANCEL_COMBINED_CAMPAIGN = exports.RESUME_COMBINED_CAMPAIGN = exports.PAUSE_COMBINED_CAMPAIGN = exports.SCHEDULE_COMBINED_CAMPAIGN = exports.START_COMBINED_CAMPAIGN = exports.DELETE_COMBINED_CAMPAIGN = exports.UPDATE_COMBINED_CAMPAIGN = exports.CREATE_COMBINED_CAMPAIGN = exports.DELETE_CONVERSATION = exports.AI_AGENT_CONTINUE = exports.AI_AGENT_EXECUTE = exports.AI_AGENT_CHAT = void 0;
|
|
4
|
+
exports.UPDATE_COMPANY_EXTERNAL_IDENTIFIER = exports.SET_LEAD_NOT_INTERESTED = exports.BULK_ASSIGN_COMPANY_OWNERS = exports.UNHIDE_RECORD = exports.HIDE_RECORD = exports.DELETE_COMPANY_NOTE = exports.UPDATE_COMPANY_NOTE = exports.CREATE_COMPANY_NOTE = exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = exports.CREATE_TASK = exports.CLEAR_ALL_NOTIFICATIONS = exports.DELETE_NOTIFICATION = exports.MARK_ALL_NOTIFICATIONS_AS_READ = exports.MARK_NOTIFICATION_AS_READ = exports.CREATE_NOTIFICATION = exports.DISCONNECT_NYLAS_INTEGRATION = exports.SAVE_NYLAS_CONNECTION = exports.GENERATE_NEW_EMAIL = exports.REDUCE_SPAM = exports.EMAIL_TONE = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = exports.CREATE_EMAIL_TEMPLATE = exports.PREVIEW_CAMPAIGN_EMAIL = exports.SCHEDULE_CAMPAIGN = exports.SEND_EMAIL_TO_CONTACT = exports.SEND_TEST_EMAIL = exports.CANCEL_CAMPAIGN = exports.COMPLETE_CAMPAIGN = exports.PAUSE_CAMPAIGN = exports.START_CAMPAIGN = exports.REMOVE_SEGMENT_FROM_CAMPAIGN = exports.ADD_SEGMENT_TO_CAMPAIGN = exports.DELETE_CAMPAIGN = exports.UPDATE_CAMPAIGN = exports.CREATE_CAMPAIGN = void 0;
|
|
5
5
|
const client_1 = require("@apollo/client");
|
|
6
|
+
exports.AI_AGENT_CHAT = (0, client_1.gql) `
|
|
7
|
+
mutation AiAgentChat($conversationId: String, $enableTools: Boolean, $message: String!) {
|
|
8
|
+
aiAgentChat(conversationId: $conversationId, enableTools: $enableTools, message: $message) {
|
|
9
|
+
success
|
|
10
|
+
conversationId
|
|
11
|
+
response
|
|
12
|
+
toolCalls {
|
|
13
|
+
type
|
|
14
|
+
id
|
|
15
|
+
name
|
|
16
|
+
input
|
|
17
|
+
}
|
|
18
|
+
toolResults {
|
|
19
|
+
toolUseId
|
|
20
|
+
type
|
|
21
|
+
success
|
|
22
|
+
result
|
|
23
|
+
error
|
|
24
|
+
}
|
|
25
|
+
requiresExecution
|
|
26
|
+
error
|
|
27
|
+
}
|
|
28
|
+
}`;
|
|
29
|
+
exports.AI_AGENT_EXECUTE = (0, client_1.gql) `
|
|
30
|
+
mutation AiAgentExecute($conversationId: String!, $toolCalls: [JSONString]!) {
|
|
31
|
+
aiAgentExecute(conversationId: $conversationId, toolCalls: $toolCalls) {
|
|
32
|
+
success
|
|
33
|
+
results {
|
|
34
|
+
toolUseId
|
|
35
|
+
type
|
|
36
|
+
success
|
|
37
|
+
result
|
|
38
|
+
error
|
|
39
|
+
}
|
|
40
|
+
error
|
|
41
|
+
}
|
|
42
|
+
}`;
|
|
43
|
+
exports.AI_AGENT_CONTINUE = (0, client_1.gql) `
|
|
44
|
+
mutation AiAgentContinue($conversationId: String!, $toolResults: [JSONString]!) {
|
|
45
|
+
aiAgentContinue(conversationId: $conversationId, toolResults: $toolResults) {
|
|
46
|
+
success
|
|
47
|
+
response
|
|
48
|
+
toolCalls {
|
|
49
|
+
type
|
|
50
|
+
id
|
|
51
|
+
name
|
|
52
|
+
input
|
|
53
|
+
}
|
|
54
|
+
toolResults {
|
|
55
|
+
toolUseId
|
|
56
|
+
type
|
|
57
|
+
success
|
|
58
|
+
result
|
|
59
|
+
error
|
|
60
|
+
}
|
|
61
|
+
requiresExecution
|
|
62
|
+
error
|
|
63
|
+
}
|
|
64
|
+
}`;
|
|
65
|
+
exports.DELETE_CONVERSATION = (0, client_1.gql) `
|
|
66
|
+
mutation DeleteConversation($conversationId: String!) {
|
|
67
|
+
deleteConversation(conversationId: $conversationId) {
|
|
68
|
+
success
|
|
69
|
+
message
|
|
70
|
+
}
|
|
71
|
+
}`;
|
|
6
72
|
exports.CREATE_COMBINED_CAMPAIGN = (0, client_1.gql) `
|
|
7
73
|
mutation CreateCombinedCampaign($input: CombinedCampaignInput!, $steps: [CombinedCampaignStepInput]) {
|
|
8
74
|
createCombinedCampaign(input: $input, steps: $steps) {
|
package/dist/queries.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const CONVERSATION_HISTORY: import("@apollo/client").DocumentNode;
|
|
2
|
+
export declare const CONVERSATION: import("@apollo/client").DocumentNode;
|
|
1
3
|
export declare const COMBINED_CAMPAIGNS: import("@apollo/client").DocumentNode;
|
|
2
4
|
export declare const COMBINED_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
3
5
|
export declare const COMBINED_CAMPAIGN_LOGS: import("@apollo/client").DocumentNode;
|
package/dist/queries.js
CHANGED
|
@@ -1,8 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.USER_PROFILE = exports.MY_INVITATIONS = exports.BUSINESS_PROFILE = exports.PENDING_INVITATIONS = exports.ACCOUNT_MEMBERS = exports.CURRENT_ACCOUNT = exports.COMPANY_EXTERNAL_IDENTIFIER = exports.COMPANY_AUDIENCES_AND_CAMPAIGNS = void 0;
|
|
3
|
+
exports.METAL_GRADES = exports.METAL_TYPES = exports.PRODUCT_CATEGORIES = exports.PRODUCT_TYPES = exports.INDUSTRY_SECTORS = exports.INDUSTRY_TYPES = exports.COMPANY_METADATA = exports.CONTACT = exports.COMPANY = exports.SEARCH_CONTACTS = exports.CONTACTS = exports.COMPANY_SEARCH = exports.COMPANIES = exports.CONTACTS_IN_SEGMENT = exports.SEGMENT = exports.SEGMENTS = exports.CAMPAIGN_CONTACTS = exports.CAMPAIGN_LOGS = exports.CAMPAIGN_ANALYTICS = exports.CAMPAIGN_STATS = exports.CAMPAIGN = exports.CAMPAIGNS = exports.EMAIL_TEMPLATES = exports.EMAIL_TEMPLATE = exports.NYLAS_CONNECTION = exports.RECENT_NOTIFICATIONS = exports.NOTIFICATION = exports.NOTIFICATIONS = exports.UNREAD_NOTIFICATIONS_COUNT = exports.TASK = exports.TASKS = exports.CALL_CAMPAIGN_REPORT = exports.CALL_CAMPAIGN_LOG = exports.CALL_CAMPAIGN_LOGS = exports.CALL_CAMPAIGN_ANALYTICS = exports.CALL_CAMPAIGN = exports.CALL_CAMPAIGNS = exports.COMPANY_NOTE = exports.COMPANY_NOTES = exports.RECENT_HISTORY = exports.DASHBOARD_STATS = exports.COMBINED_CAMPAIGN_TEMPLATE = exports.COMBINED_CAMPAIGN_TEMPLATES = exports.COMBINED_CAMPAIGN_STEPS = exports.COMBINED_CAMPAIGN_CONTACTS = exports.COMBINED_CAMPAIGN_LOGS = exports.COMBINED_CAMPAIGN = exports.COMBINED_CAMPAIGNS = exports.CONVERSATION = exports.CONVERSATION_HISTORY = void 0;
|
|
4
|
+
exports.USER_PROFILE = exports.MY_INVITATIONS = exports.BUSINESS_PROFILE = exports.PENDING_INVITATIONS = exports.ACCOUNT_MEMBERS = exports.CURRENT_ACCOUNT = exports.COMPANY_EXTERNAL_IDENTIFIER = exports.COMPANY_AUDIENCES_AND_CAMPAIGNS = exports.EMPLOYEE_SIZES = exports.US_STATES = void 0;
|
|
5
5
|
const client_1 = require("@apollo/client");
|
|
6
|
+
exports.CONVERSATION_HISTORY = (0, client_1.gql) `
|
|
7
|
+
query ConversationHistory($limit: Int, $offset: Int) {
|
|
8
|
+
conversationHistory(limit: $limit, offset: $offset) {
|
|
9
|
+
conversations {
|
|
10
|
+
id
|
|
11
|
+
user {
|
|
12
|
+
id
|
|
13
|
+
email
|
|
14
|
+
firstName
|
|
15
|
+
lastName
|
|
16
|
+
picture
|
|
17
|
+
}
|
|
18
|
+
createdAt
|
|
19
|
+
updatedAt
|
|
20
|
+
messages {
|
|
21
|
+
id
|
|
22
|
+
role
|
|
23
|
+
content
|
|
24
|
+
toolCalls
|
|
25
|
+
toolResults
|
|
26
|
+
createdAt
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
totalCount
|
|
30
|
+
}
|
|
31
|
+
}`;
|
|
32
|
+
exports.CONVERSATION = (0, client_1.gql) `
|
|
33
|
+
query Conversation($conversationId: String!) {
|
|
34
|
+
conversation(conversationId: $conversationId) {
|
|
35
|
+
id
|
|
36
|
+
user {
|
|
37
|
+
id
|
|
38
|
+
email
|
|
39
|
+
firstName
|
|
40
|
+
lastName
|
|
41
|
+
picture
|
|
42
|
+
}
|
|
43
|
+
createdAt
|
|
44
|
+
updatedAt
|
|
45
|
+
messages {
|
|
46
|
+
id
|
|
47
|
+
role
|
|
48
|
+
content
|
|
49
|
+
toolCalls
|
|
50
|
+
toolResults
|
|
51
|
+
createdAt
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}`;
|
|
6
55
|
exports.COMBINED_CAMPAIGNS = (0, client_1.gql) `
|
|
7
56
|
query CombinedCampaigns($pagination: PaginationInput, $status: String, $sortBy: String) {
|
|
8
57
|
combinedCampaigns(pagination: $pagination, status: $status, sortBy: $sortBy) {
|
package/dist/sdk.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export declare class CloudForgeSDK {
|
|
|
14
14
|
addContactsToSegment(contactIds: string[], segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
15
15
|
addSegmentToCallCampaign(campaignId: string, segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
16
16
|
addSegmentToCampaign(campaignId: string, segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
17
|
+
aiAgentChat(message: string, conversationId?: string, enableTools?: boolean): Promise<import("@apollo/client").FetchResult<any>>;
|
|
18
|
+
aiAgentContinue(conversationId: string, toolResults: Scalars['JSONString']['input'][]): Promise<import("@apollo/client").FetchResult<any>>;
|
|
19
|
+
aiAgentExecute(conversationId: string, toolCalls: Scalars['JSONString']['input'][]): Promise<import("@apollo/client").FetchResult<any>>;
|
|
17
20
|
bulkAssignCompanyOwners(input?: BulkAssignOwnersInput): Promise<import("@apollo/client").FetchResult<any>>;
|
|
18
21
|
cancelCampaign(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
19
22
|
cancelCombinedCampaign(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
@@ -40,6 +43,7 @@ export declare class CloudForgeSDK {
|
|
|
40
43
|
deleteCompany(id?: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
41
44
|
deleteCompanyNote(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
42
45
|
deleteContact(id?: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
46
|
+
deleteConversation(conversationId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
43
47
|
deleteEmailTemplate(uuid: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
44
48
|
deleteNotification(notificationId: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
45
49
|
deleteSegment(id: string): Promise<import("@apollo/client").FetchResult<any>>;
|
|
@@ -130,6 +134,8 @@ export declare class CloudForgeSDK {
|
|
|
130
134
|
contact(id?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
131
135
|
contacts(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
132
136
|
contactsInSegment(segmentId: string, pagination?: PaginationInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
137
|
+
conversation(conversationId: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
138
|
+
conversationHistory(limit?: number, offset?: number): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
133
139
|
currentAccount(): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
134
140
|
dashboardStats(startDate?: string, endDate?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
135
141
|
emailTemplate(uuid: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -69,6 +69,24 @@ class CloudForgeSDK {
|
|
|
69
69
|
variables: { campaignId, segmentId }
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
+
async aiAgentChat(message, conversationId, enableTools) {
|
|
73
|
+
return this.apolloClient.mutate({
|
|
74
|
+
mutation: mutations_1.AI_AGENT_CHAT,
|
|
75
|
+
variables: { message, conversationId, enableTools }
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
async aiAgentContinue(conversationId, toolResults) {
|
|
79
|
+
return this.apolloClient.mutate({
|
|
80
|
+
mutation: mutations_1.AI_AGENT_CONTINUE,
|
|
81
|
+
variables: { conversationId, toolResults }
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
async aiAgentExecute(conversationId, toolCalls) {
|
|
85
|
+
return this.apolloClient.mutate({
|
|
86
|
+
mutation: mutations_1.AI_AGENT_EXECUTE,
|
|
87
|
+
variables: { conversationId, toolCalls }
|
|
88
|
+
});
|
|
89
|
+
}
|
|
72
90
|
async bulkAssignCompanyOwners(input) {
|
|
73
91
|
return this.apolloClient.mutate({
|
|
74
92
|
mutation: mutations_1.BULK_ASSIGN_COMPANY_OWNERS,
|
|
@@ -224,6 +242,12 @@ class CloudForgeSDK {
|
|
|
224
242
|
variables: { id }
|
|
225
243
|
});
|
|
226
244
|
}
|
|
245
|
+
async deleteConversation(conversationId) {
|
|
246
|
+
return this.apolloClient.mutate({
|
|
247
|
+
mutation: mutations_1.DELETE_CONVERSATION,
|
|
248
|
+
variables: { conversationId }
|
|
249
|
+
});
|
|
250
|
+
}
|
|
227
251
|
async deleteEmailTemplate(uuid) {
|
|
228
252
|
return this.apolloClient.mutate({
|
|
229
253
|
mutation: mutations_1.DELETE_EMAIL_TEMPLATE,
|
|
@@ -761,6 +785,18 @@ class CloudForgeSDK {
|
|
|
761
785
|
variables: { segmentId, pagination }
|
|
762
786
|
});
|
|
763
787
|
}
|
|
788
|
+
async conversation(conversationId) {
|
|
789
|
+
return this.apolloClient.query({
|
|
790
|
+
query: queries_1.CONVERSATION,
|
|
791
|
+
variables: { conversationId }
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
async conversationHistory(limit, offset) {
|
|
795
|
+
return this.apolloClient.query({
|
|
796
|
+
query: queries_1.CONVERSATION_HISTORY,
|
|
797
|
+
variables: { limit, offset }
|
|
798
|
+
});
|
|
799
|
+
}
|
|
764
800
|
async currentAccount() {
|
|
765
801
|
return this.apolloClient.query({
|
|
766
802
|
query: queries_1.CURRENT_ACCOUNT
|