cf-service-sdk 0.0.83 → 0.0.84

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.
@@ -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>;
@@ -1790,6 +1857,12 @@ export type DeleteContact = {
1790
1857
  __typename?: 'DeleteContact';
1791
1858
  success?: Maybe<Scalars['Boolean']['output']>;
1792
1859
  };
1860
+ /** Mutation for deleting a conversation. */
1861
+ export type DeleteConversation = {
1862
+ __typename?: 'DeleteConversation';
1863
+ message?: Maybe<Scalars['String']['output']>;
1864
+ success?: Maybe<Scalars['Boolean']['output']>;
1865
+ };
1793
1866
  /** DeleteEmailTemplate - Delete an email template (only if owned by user's account) */
1794
1867
  export type DeleteEmailTemplate = {
1795
1868
  __typename?: 'DeleteEmailTemplate';
@@ -2119,6 +2192,12 @@ export type Mutation = {
2119
2192
  addContactsToSegment?: Maybe<AddContactsToSegment>;
2120
2193
  addSegmentToCallCampaign?: Maybe<AddSegmentToCallCampaign>;
2121
2194
  addSegmentToCampaign?: Maybe<AddSegmentToCampaign>;
2195
+ /** Mutation for chatting with the AI agent. */
2196
+ aiAgentChat?: Maybe<AiAgentChatResponse>;
2197
+ /** Mutation for continuing conversation after tool execution. */
2198
+ aiAgentContinue?: Maybe<AiAgentContinueResponse>;
2199
+ /** Mutation for executing tool calls. */
2200
+ aiAgentExecute?: Maybe<AiAgentExecuteResponse>;
2122
2201
  bulkAssignCompanyOwners?: Maybe<BulkAssignCompanyOwnerMutation>;
2123
2202
  cancelCampaign?: Maybe<CancelCampaign>;
2124
2203
  /** Cancel a combined campaign */
@@ -2156,6 +2235,8 @@ export type Mutation = {
2156
2235
  deleteCompany?: Maybe<DeleteCompany>;
2157
2236
  deleteCompanyNote?: Maybe<DeleteCompanyNote>;
2158
2237
  deleteContact?: Maybe<DeleteContact>;
2238
+ /** Mutation for deleting a conversation. */
2239
+ deleteConversation?: Maybe<DeleteConversation>;
2159
2240
  /** DeleteEmailTemplate - Delete an email template (only if owned by user's account) */
2160
2241
  deleteEmailTemplate?: Maybe<DeleteEmailTemplate>;
2161
2242
  /** Delete a notification */
@@ -2274,6 +2355,7 @@ export type MutationAddContactsToCombinedCampaignArgs = {
2274
2355
  /** Mutations */
2275
2356
  export type MutationAddContactsToSegmentArgs = {
2276
2357
  contactIds: Array<InputMaybe<Scalars['ID']['input']>>;
2358
+ processSignals?: InputMaybe<Scalars['Boolean']['input']>;
2277
2359
  segmentId: Scalars['ID']['input'];
2278
2360
  };
2279
2361
  /** Mutations */
@@ -2287,6 +2369,22 @@ export type MutationAddSegmentToCampaignArgs = {
2287
2369
  segmentId: Scalars['ID']['input'];
2288
2370
  };
2289
2371
  /** Mutations */
2372
+ export type MutationAiAgentChatArgs = {
2373
+ conversationId?: InputMaybe<Scalars['String']['input']>;
2374
+ enableTools?: InputMaybe<Scalars['Boolean']['input']>;
2375
+ message: Scalars['String']['input'];
2376
+ };
2377
+ /** Mutations */
2378
+ export type MutationAiAgentContinueArgs = {
2379
+ conversationId: Scalars['String']['input'];
2380
+ toolResults: Array<InputMaybe<Scalars['JSONString']['input']>>;
2381
+ };
2382
+ /** Mutations */
2383
+ export type MutationAiAgentExecuteArgs = {
2384
+ conversationId: Scalars['String']['input'];
2385
+ toolCalls: Array<InputMaybe<Scalars['JSONString']['input']>>;
2386
+ };
2387
+ /** Mutations */
2290
2388
  export type MutationBulkAssignCompanyOwnersArgs = {
2291
2389
  input?: InputMaybe<BulkAssignOwnersInput>;
2292
2390
  };
@@ -2388,6 +2486,10 @@ export type MutationDeleteContactArgs = {
2388
2486
  id?: InputMaybe<Scalars['ID']['input']>;
2389
2487
  };
2390
2488
  /** Mutations */
2489
+ export type MutationDeleteConversationArgs = {
2490
+ conversationId: Scalars['String']['input'];
2491
+ };
2492
+ /** Mutations */
2391
2493
  export type MutationDeleteEmailTemplateArgs = {
2392
2494
  uuid: Scalars['UUID']['input'];
2393
2495
  };
@@ -2665,6 +2767,11 @@ export type MyInvitationsType = {
2665
2767
  status: Scalars['String']['output'];
2666
2768
  token: Scalars['String']['output'];
2667
2769
  };
2770
+ /** An object with an ID */
2771
+ export type Node = {
2772
+ /** The ID of the object */
2773
+ id: Scalars['ID']['output'];
2774
+ };
2668
2775
  /** GraphQL type for Notification model */
2669
2776
  export type NotificationType = {
2670
2777
  __typename?: 'NotificationType';
@@ -2930,6 +3037,8 @@ export type Query = {
2930
3037
  contacts?: Maybe<Array<Maybe<ContactObject>>>;
2931
3038
  /** Get paginated list of contacts in a segment */
2932
3039
  contactsInSegment?: Maybe<PaginatedContactList>;
3040
+ conversation?: Maybe<ConversationType>;
3041
+ conversationHistory?: Maybe<ConversationHistoryType>;
2933
3042
  currentAccount?: Maybe<AccountType>;
2934
3043
  /** Get dashboard statistics across different features */
2935
3044
  dashboardStats?: Maybe<DashboardStatsType>;
@@ -3114,6 +3223,15 @@ export type QueryContactsInSegmentArgs = {
3114
3223
  segmentId: Scalars['ID']['input'];
3115
3224
  };
3116
3225
  /** Query */
3226
+ export type QueryConversationArgs = {
3227
+ conversationId: Scalars['String']['input'];
3228
+ };
3229
+ /** Query */
3230
+ export type QueryConversationHistoryArgs = {
3231
+ limit?: InputMaybe<Scalars['Int']['input']>;
3232
+ offset?: InputMaybe<Scalars['Int']['input']>;
3233
+ };
3234
+ /** Query */
3117
3235
  export type QueryDashboardStatsArgs = {
3118
3236
  endDate?: InputMaybe<Scalars['DateTime']['input']>;
3119
3237
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
@@ -3611,6 +3729,23 @@ export type TasksResponse = {
3611
3729
  pagination?: Maybe<PaginationInfo>;
3612
3730
  stats?: Maybe<TaskStatsObject>;
3613
3731
  };
3732
+ /** Type for tool calls. */
3733
+ export type ToolCallType = {
3734
+ __typename?: 'ToolCallType';
3735
+ id?: Maybe<Scalars['String']['output']>;
3736
+ input?: Maybe<Scalars['JSONString']['output']>;
3737
+ name?: Maybe<Scalars['String']['output']>;
3738
+ type?: Maybe<Scalars['String']['output']>;
3739
+ };
3740
+ /** Type for tool execution results. */
3741
+ export type ToolResultType = {
3742
+ __typename?: 'ToolResultType';
3743
+ error?: Maybe<Scalars['String']['output']>;
3744
+ result?: Maybe<Scalars['JSONString']['output']>;
3745
+ success?: Maybe<Scalars['Boolean']['output']>;
3746
+ toolUseId?: Maybe<Scalars['String']['output']>;
3747
+ type?: Maybe<Scalars['String']['output']>;
3748
+ };
3614
3749
  export type UsStateData = {
3615
3750
  __typename?: 'USStateData';
3616
3751
  /** State abbreviation */
@@ -4003,6 +4138,7 @@ export type AddContactsToCombinedCampaignMutation = {
4003
4138
  };
4004
4139
  export type AddContactsToSegmentMutationVariables = Exact<{
4005
4140
  contactIds: Array<InputMaybe<Scalars['ID']['input']>> | InputMaybe<Scalars['ID']['input']>;
4141
+ processSignals?: InputMaybe<Scalars['Boolean']['input']>;
4006
4142
  segmentId: Scalars['ID']['input'];
4007
4143
  }>;
4008
4144
  export type AddContactsToSegmentMutation = {
@@ -4166,6 +4302,86 @@ export type AddSegmentToCampaignMutation = {
4166
4302
  } | null;
4167
4303
  } | null;
4168
4304
  };
4305
+ export type AiAgentChatMutationVariables = Exact<{
4306
+ conversationId?: InputMaybe<Scalars['String']['input']>;
4307
+ enableTools?: InputMaybe<Scalars['Boolean']['input']>;
4308
+ message: Scalars['String']['input'];
4309
+ }>;
4310
+ export type AiAgentChatMutation = {
4311
+ __typename?: 'Mutation';
4312
+ aiAgentChat?: {
4313
+ __typename?: 'AIAgentChatResponse';
4314
+ success?: boolean | null;
4315
+ conversationId?: string | null;
4316
+ response?: string | null;
4317
+ requiresExecution?: boolean | null;
4318
+ error?: string | null;
4319
+ toolCalls?: Array<{
4320
+ __typename?: 'ToolCallType';
4321
+ type?: string | null;
4322
+ id?: string | null;
4323
+ name?: string | null;
4324
+ input?: any | null;
4325
+ } | null> | null;
4326
+ toolResults?: Array<{
4327
+ __typename?: 'ToolResultType';
4328
+ toolUseId?: string | null;
4329
+ type?: string | null;
4330
+ success?: boolean | null;
4331
+ result?: any | null;
4332
+ error?: string | null;
4333
+ } | null> | null;
4334
+ } | null;
4335
+ };
4336
+ export type AiAgentContinueMutationVariables = Exact<{
4337
+ conversationId: Scalars['String']['input'];
4338
+ toolResults: Array<InputMaybe<Scalars['JSONString']['input']>> | InputMaybe<Scalars['JSONString']['input']>;
4339
+ }>;
4340
+ export type AiAgentContinueMutation = {
4341
+ __typename?: 'Mutation';
4342
+ aiAgentContinue?: {
4343
+ __typename?: 'AIAgentContinueResponse';
4344
+ success?: boolean | null;
4345
+ response?: string | null;
4346
+ requiresExecution?: boolean | null;
4347
+ error?: string | null;
4348
+ toolCalls?: Array<{
4349
+ __typename?: 'ToolCallType';
4350
+ type?: string | null;
4351
+ id?: string | null;
4352
+ name?: string | null;
4353
+ input?: any | null;
4354
+ } | null> | null;
4355
+ toolResults?: Array<{
4356
+ __typename?: 'ToolResultType';
4357
+ toolUseId?: string | null;
4358
+ type?: string | null;
4359
+ success?: boolean | null;
4360
+ result?: any | null;
4361
+ error?: string | null;
4362
+ } | null> | null;
4363
+ } | null;
4364
+ };
4365
+ export type AiAgentExecuteMutationVariables = Exact<{
4366
+ conversationId: Scalars['String']['input'];
4367
+ toolCalls: Array<InputMaybe<Scalars['JSONString']['input']>> | InputMaybe<Scalars['JSONString']['input']>;
4368
+ }>;
4369
+ export type AiAgentExecuteMutation = {
4370
+ __typename?: 'Mutation';
4371
+ aiAgentExecute?: {
4372
+ __typename?: 'AIAgentExecuteResponse';
4373
+ success?: boolean | null;
4374
+ error?: string | null;
4375
+ results?: Array<{
4376
+ __typename?: 'ToolResultType';
4377
+ toolUseId?: string | null;
4378
+ type?: string | null;
4379
+ success?: boolean | null;
4380
+ result?: any | null;
4381
+ error?: string | null;
4382
+ } | null> | null;
4383
+ } | null;
4384
+ };
4169
4385
  export type BulkAssignCompanyOwnersMutationVariables = Exact<{
4170
4386
  input?: InputMaybe<BulkAssignOwnersInput>;
4171
4387
  }>;
@@ -10727,6 +10943,17 @@ export type DeleteContactMutation = {
10727
10943
  success?: boolean | null;
10728
10944
  } | null;
10729
10945
  };
10946
+ export type DeleteConversationMutationVariables = Exact<{
10947
+ conversationId: Scalars['String']['input'];
10948
+ }>;
10949
+ export type DeleteConversationMutation = {
10950
+ __typename?: 'Mutation';
10951
+ deleteConversation?: {
10952
+ __typename?: 'DeleteConversation';
10953
+ success?: boolean | null;
10954
+ message?: string | null;
10955
+ } | null;
10956
+ };
10730
10957
  export type DeleteEmailTemplateMutationVariables = Exact<{
10731
10958
  uuid: Scalars['UUID']['input'];
10732
10959
  }>;
@@ -33562,6 +33789,69 @@ export type ContactsInSegmentQuery = {
33562
33789
  } | null;
33563
33790
  } | null;
33564
33791
  };
33792
+ export type ConversationQueryVariables = Exact<{
33793
+ conversationId: Scalars['String']['input'];
33794
+ }>;
33795
+ export type ConversationQuery = {
33796
+ __typename?: 'Query';
33797
+ conversation?: {
33798
+ __typename?: 'ConversationType';
33799
+ id: string;
33800
+ createdAt: any;
33801
+ updatedAt: any;
33802
+ user?: {
33803
+ __typename?: 'UserType';
33804
+ id?: string | null;
33805
+ email?: string | null;
33806
+ firstName?: string | null;
33807
+ lastName?: string | null;
33808
+ picture?: string | null;
33809
+ } | null;
33810
+ messages?: Array<{
33811
+ __typename?: 'ConversationMessageType';
33812
+ id: string;
33813
+ role: AgentConversationMessageRoleChoices;
33814
+ content: any;
33815
+ toolCalls?: any | null;
33816
+ toolResults?: any | null;
33817
+ createdAt: any;
33818
+ } | null> | null;
33819
+ } | null;
33820
+ };
33821
+ export type ConversationHistoryQueryVariables = Exact<{
33822
+ limit?: InputMaybe<Scalars['Int']['input']>;
33823
+ offset?: InputMaybe<Scalars['Int']['input']>;
33824
+ }>;
33825
+ export type ConversationHistoryQuery = {
33826
+ __typename?: 'Query';
33827
+ conversationHistory?: {
33828
+ __typename?: 'ConversationHistoryType';
33829
+ totalCount?: number | null;
33830
+ conversations?: Array<{
33831
+ __typename?: 'ConversationType';
33832
+ id: string;
33833
+ createdAt: any;
33834
+ updatedAt: any;
33835
+ user?: {
33836
+ __typename?: 'UserType';
33837
+ id?: string | null;
33838
+ email?: string | null;
33839
+ firstName?: string | null;
33840
+ lastName?: string | null;
33841
+ picture?: string | null;
33842
+ } | null;
33843
+ messages?: Array<{
33844
+ __typename?: 'ConversationMessageType';
33845
+ id: string;
33846
+ role: AgentConversationMessageRoleChoices;
33847
+ content: any;
33848
+ toolCalls?: any | null;
33849
+ toolResults?: any | null;
33850
+ createdAt: any;
33851
+ } | null> | null;
33852
+ } | null> | null;
33853
+ } | null;
33854
+ };
33565
33855
  export type CurrentAccountQueryVariables = Exact<{
33566
33856
  [key: string]: never;
33567
33857
  }>;
@@ -36635,12 +36925,14 @@ export type AddContactsToSegmentMutationFn = Apollo.MutationFunction<AddContacts
36635
36925
  * const [addContactsToSegmentMutation, { data, loading, error }] = useAddContactsToSegmentMutation({
36636
36926
  * variables: {
36637
36927
  * contactIds: // value for 'contactIds'
36928
+ * processSignals: // value for 'processSignals'
36638
36929
  * segmentId: // value for 'segmentId'
36639
36930
  * },
36640
36931
  * });
36641
36932
  */
36642
36933
  export declare function useAddContactsToSegmentMutation(baseOptions?: Apollo.MutationHookOptions<AddContactsToSegmentMutation, AddContactsToSegmentMutationVariables>): Apollo.MutationTuple<AddContactsToSegmentMutation, Exact<{
36643
36934
  contactIds: Array<InputMaybe<Scalars["ID"]["input"]>> | InputMaybe<Scalars["ID"]["input"]>;
36935
+ processSignals?: InputMaybe<Scalars["Boolean"]["input"]>;
36644
36936
  segmentId: Scalars["ID"]["input"];
36645
36937
  }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
36646
36938
  export type AddContactsToSegmentMutationHookResult = ReturnType<typeof useAddContactsToSegmentMutation>;
@@ -36700,6 +36992,89 @@ export declare function useAddSegmentToCampaignMutation(baseOptions?: Apollo.Mut
36700
36992
  export type AddSegmentToCampaignMutationHookResult = ReturnType<typeof useAddSegmentToCampaignMutation>;
36701
36993
  export type AddSegmentToCampaignMutationResult = Apollo.MutationResult<AddSegmentToCampaignMutation>;
36702
36994
  export type AddSegmentToCampaignMutationOptions = Apollo.BaseMutationOptions<AddSegmentToCampaignMutation, AddSegmentToCampaignMutationVariables>;
36995
+ export declare const AiAgentChatDocument: Apollo.DocumentNode;
36996
+ export type AiAgentChatMutationFn = Apollo.MutationFunction<AiAgentChatMutation, AiAgentChatMutationVariables>;
36997
+ /**
36998
+ * __useAiAgentChatMutation__
36999
+ *
37000
+ * To run a mutation, you first call `useAiAgentChatMutation` within a React component and pass it any options that fit your needs.
37001
+ * When your component renders, `useAiAgentChatMutation` returns a tuple that includes:
37002
+ * - A mutate function that you can call at any time to execute the mutation
37003
+ * - An object with fields that represent the current status of the mutation's execution
37004
+ *
37005
+ * @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;
37006
+ *
37007
+ * @example
37008
+ * const [aiAgentChatMutation, { data, loading, error }] = useAiAgentChatMutation({
37009
+ * variables: {
37010
+ * conversationId: // value for 'conversationId'
37011
+ * enableTools: // value for 'enableTools'
37012
+ * message: // value for 'message'
37013
+ * },
37014
+ * });
37015
+ */
37016
+ export declare function useAiAgentChatMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentChatMutation, AiAgentChatMutationVariables>): Apollo.MutationTuple<AiAgentChatMutation, Exact<{
37017
+ conversationId?: InputMaybe<Scalars["String"]["input"]>;
37018
+ enableTools?: InputMaybe<Scalars["Boolean"]["input"]>;
37019
+ message: Scalars["String"]["input"];
37020
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
37021
+ export type AiAgentChatMutationHookResult = ReturnType<typeof useAiAgentChatMutation>;
37022
+ export type AiAgentChatMutationResult = Apollo.MutationResult<AiAgentChatMutation>;
37023
+ export type AiAgentChatMutationOptions = Apollo.BaseMutationOptions<AiAgentChatMutation, AiAgentChatMutationVariables>;
37024
+ export declare const AiAgentContinueDocument: Apollo.DocumentNode;
37025
+ export type AiAgentContinueMutationFn = Apollo.MutationFunction<AiAgentContinueMutation, AiAgentContinueMutationVariables>;
37026
+ /**
37027
+ * __useAiAgentContinueMutation__
37028
+ *
37029
+ * To run a mutation, you first call `useAiAgentContinueMutation` within a React component and pass it any options that fit your needs.
37030
+ * When your component renders, `useAiAgentContinueMutation` returns a tuple that includes:
37031
+ * - A mutate function that you can call at any time to execute the mutation
37032
+ * - An object with fields that represent the current status of the mutation's execution
37033
+ *
37034
+ * @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;
37035
+ *
37036
+ * @example
37037
+ * const [aiAgentContinueMutation, { data, loading, error }] = useAiAgentContinueMutation({
37038
+ * variables: {
37039
+ * conversationId: // value for 'conversationId'
37040
+ * toolResults: // value for 'toolResults'
37041
+ * },
37042
+ * });
37043
+ */
37044
+ export declare function useAiAgentContinueMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentContinueMutation, AiAgentContinueMutationVariables>): Apollo.MutationTuple<AiAgentContinueMutation, Exact<{
37045
+ conversationId: Scalars["String"]["input"];
37046
+ toolResults: Array<InputMaybe<Scalars["JSONString"]["input"]>> | InputMaybe<Scalars["JSONString"]["input"]>;
37047
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
37048
+ export type AiAgentContinueMutationHookResult = ReturnType<typeof useAiAgentContinueMutation>;
37049
+ export type AiAgentContinueMutationResult = Apollo.MutationResult<AiAgentContinueMutation>;
37050
+ export type AiAgentContinueMutationOptions = Apollo.BaseMutationOptions<AiAgentContinueMutation, AiAgentContinueMutationVariables>;
37051
+ export declare const AiAgentExecuteDocument: Apollo.DocumentNode;
37052
+ export type AiAgentExecuteMutationFn = Apollo.MutationFunction<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>;
37053
+ /**
37054
+ * __useAiAgentExecuteMutation__
37055
+ *
37056
+ * To run a mutation, you first call `useAiAgentExecuteMutation` within a React component and pass it any options that fit your needs.
37057
+ * When your component renders, `useAiAgentExecuteMutation` returns a tuple that includes:
37058
+ * - A mutate function that you can call at any time to execute the mutation
37059
+ * - An object with fields that represent the current status of the mutation's execution
37060
+ *
37061
+ * @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;
37062
+ *
37063
+ * @example
37064
+ * const [aiAgentExecuteMutation, { data, loading, error }] = useAiAgentExecuteMutation({
37065
+ * variables: {
37066
+ * conversationId: // value for 'conversationId'
37067
+ * toolCalls: // value for 'toolCalls'
37068
+ * },
37069
+ * });
37070
+ */
37071
+ export declare function useAiAgentExecuteMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>): Apollo.MutationTuple<AiAgentExecuteMutation, Exact<{
37072
+ conversationId: Scalars["String"]["input"];
37073
+ toolCalls: Array<InputMaybe<Scalars["JSONString"]["input"]>> | InputMaybe<Scalars["JSONString"]["input"]>;
37074
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
37075
+ export type AiAgentExecuteMutationHookResult = ReturnType<typeof useAiAgentExecuteMutation>;
37076
+ export type AiAgentExecuteMutationResult = Apollo.MutationResult<AiAgentExecuteMutation>;
37077
+ export type AiAgentExecuteMutationOptions = Apollo.BaseMutationOptions<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>;
36703
37078
  export declare const BulkAssignCompanyOwnersDocument: Apollo.DocumentNode;
36704
37079
  export type BulkAssignCompanyOwnersMutationFn = Apollo.MutationFunction<BulkAssignCompanyOwnersMutation, BulkAssignCompanyOwnersMutationVariables>;
36705
37080
  /**
@@ -37351,6 +37726,31 @@ export declare function useDeleteContactMutation(baseOptions?: Apollo.MutationHo
37351
37726
  export type DeleteContactMutationHookResult = ReturnType<typeof useDeleteContactMutation>;
37352
37727
  export type DeleteContactMutationResult = Apollo.MutationResult<DeleteContactMutation>;
37353
37728
  export type DeleteContactMutationOptions = Apollo.BaseMutationOptions<DeleteContactMutation, DeleteContactMutationVariables>;
37729
+ export declare const DeleteConversationDocument: Apollo.DocumentNode;
37730
+ export type DeleteConversationMutationFn = Apollo.MutationFunction<DeleteConversationMutation, DeleteConversationMutationVariables>;
37731
+ /**
37732
+ * __useDeleteConversationMutation__
37733
+ *
37734
+ * To run a mutation, you first call `useDeleteConversationMutation` within a React component and pass it any options that fit your needs.
37735
+ * When your component renders, `useDeleteConversationMutation` returns a tuple that includes:
37736
+ * - A mutate function that you can call at any time to execute the mutation
37737
+ * - An object with fields that represent the current status of the mutation's execution
37738
+ *
37739
+ * @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;
37740
+ *
37741
+ * @example
37742
+ * const [deleteConversationMutation, { data, loading, error }] = useDeleteConversationMutation({
37743
+ * variables: {
37744
+ * conversationId: // value for 'conversationId'
37745
+ * },
37746
+ * });
37747
+ */
37748
+ export declare function useDeleteConversationMutation(baseOptions?: Apollo.MutationHookOptions<DeleteConversationMutation, DeleteConversationMutationVariables>): Apollo.MutationTuple<DeleteConversationMutation, Exact<{
37749
+ conversationId: Scalars["String"]["input"];
37750
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
37751
+ export type DeleteConversationMutationHookResult = ReturnType<typeof useDeleteConversationMutation>;
37752
+ export type DeleteConversationMutationResult = Apollo.MutationResult<DeleteConversationMutation>;
37753
+ export type DeleteConversationMutationOptions = Apollo.BaseMutationOptions<DeleteConversationMutation, DeleteConversationMutationVariables>;
37354
37754
  export declare const DeleteEmailTemplateDocument: Apollo.DocumentNode;
37355
37755
  export type DeleteEmailTemplateMutationFn = Apollo.MutationFunction<DeleteEmailTemplateMutation, DeleteEmailTemplateMutationVariables>;
37356
37756
  /**
@@ -40075,6 +40475,75 @@ export type ContactsInSegmentQueryHookResult = ReturnType<typeof useContactsInSe
40075
40475
  export type ContactsInSegmentLazyQueryHookResult = ReturnType<typeof useContactsInSegmentLazyQuery>;
40076
40476
  export type ContactsInSegmentSuspenseQueryHookResult = ReturnType<typeof useContactsInSegmentSuspenseQuery>;
40077
40477
  export type ContactsInSegmentQueryResult = Apollo.QueryResult<ContactsInSegmentQuery, ContactsInSegmentQueryVariables>;
40478
+ export declare const ConversationDocument: Apollo.DocumentNode;
40479
+ /**
40480
+ * __useConversationQuery__
40481
+ *
40482
+ * To run a query within a React component, call `useConversationQuery` and pass it any options that fit your needs.
40483
+ * When your component renders, `useConversationQuery` returns an object from Apollo Client that contains loading, error, and data properties
40484
+ * you can use to render your UI.
40485
+ *
40486
+ * @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;
40487
+ *
40488
+ * @example
40489
+ * const { data, loading, error } = useConversationQuery({
40490
+ * variables: {
40491
+ * conversationId: // value for 'conversationId'
40492
+ * },
40493
+ * });
40494
+ */
40495
+ export declare function useConversationQuery(baseOptions: Apollo.QueryHookOptions<ConversationQuery, ConversationQueryVariables> & ({
40496
+ variables: ConversationQueryVariables;
40497
+ skip?: boolean;
40498
+ } | {
40499
+ skip: boolean;
40500
+ })): Apollo.QueryResult<ConversationQuery, Exact<{
40501
+ conversationId: Scalars["String"]["input"];
40502
+ }>>;
40503
+ export declare function useConversationLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConversationQuery, ConversationQueryVariables>): Apollo.LazyQueryResultTuple<ConversationQuery, Exact<{
40504
+ conversationId: Scalars["String"]["input"];
40505
+ }>>;
40506
+ export declare function useConversationSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConversationQuery, ConversationQueryVariables>): Apollo.UseSuspenseQueryResult<ConversationQuery | undefined, Exact<{
40507
+ conversationId: Scalars["String"]["input"];
40508
+ }>>;
40509
+ export type ConversationQueryHookResult = ReturnType<typeof useConversationQuery>;
40510
+ export type ConversationLazyQueryHookResult = ReturnType<typeof useConversationLazyQuery>;
40511
+ export type ConversationSuspenseQueryHookResult = ReturnType<typeof useConversationSuspenseQuery>;
40512
+ export type ConversationQueryResult = Apollo.QueryResult<ConversationQuery, ConversationQueryVariables>;
40513
+ export declare const ConversationHistoryDocument: Apollo.DocumentNode;
40514
+ /**
40515
+ * __useConversationHistoryQuery__
40516
+ *
40517
+ * To run a query within a React component, call `useConversationHistoryQuery` and pass it any options that fit your needs.
40518
+ * When your component renders, `useConversationHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
40519
+ * you can use to render your UI.
40520
+ *
40521
+ * @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;
40522
+ *
40523
+ * @example
40524
+ * const { data, loading, error } = useConversationHistoryQuery({
40525
+ * variables: {
40526
+ * limit: // value for 'limit'
40527
+ * offset: // value for 'offset'
40528
+ * },
40529
+ * });
40530
+ */
40531
+ export declare function useConversationHistoryQuery(baseOptions?: Apollo.QueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.QueryResult<ConversationHistoryQuery, Exact<{
40532
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
40533
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
40534
+ }>>;
40535
+ export declare function useConversationHistoryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.LazyQueryResultTuple<ConversationHistoryQuery, Exact<{
40536
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
40537
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
40538
+ }>>;
40539
+ export declare function useConversationHistorySuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConversationHistoryQuery, ConversationHistoryQueryVariables>): Apollo.UseSuspenseQueryResult<ConversationHistoryQuery | undefined, Exact<{
40540
+ limit?: InputMaybe<Scalars["Int"]["input"]>;
40541
+ offset?: InputMaybe<Scalars["Int"]["input"]>;
40542
+ }>>;
40543
+ export type ConversationHistoryQueryHookResult = ReturnType<typeof useConversationHistoryQuery>;
40544
+ export type ConversationHistoryLazyQueryHookResult = ReturnType<typeof useConversationHistoryLazyQuery>;
40545
+ export type ConversationHistorySuspenseQueryHookResult = ReturnType<typeof useConversationHistorySuspenseQuery>;
40546
+ export type ConversationHistoryQueryResult = Apollo.QueryResult<ConversationHistoryQuery, ConversationHistoryQueryVariables>;
40078
40547
  export declare const CurrentAccountDocument: Apollo.DocumentNode;
40079
40548
  /**
40080
40549
  * __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.GenerateNewEmailDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = exports.DeleteSegmentDocument = exports.DeleteNotificationDocument = exports.DeleteEmailTemplateDocument = 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.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 = void 0;
37
- exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSegmentDocument = 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 = void 0;
38
- exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = exports.CurrentAccountDocument = 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 = void 0;
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 */
@@ -743,8 +763,12 @@ function useAddContactsToCombinedCampaignMutation(baseOptions) {
743
763
  return Apollo.useMutation(exports.AddContactsToCombinedCampaignDocument, options);
744
764
  }
745
765
  exports.AddContactsToSegmentDocument = (0, client_1.gql) `
746
- mutation AddContactsToSegment($contactIds: [ID]!, $segmentId: ID!) {
747
- addContactsToSegment(contactIds: $contactIds, segmentId: $segmentId) {
766
+ mutation AddContactsToSegment($contactIds: [ID]!, $processSignals: Boolean, $segmentId: ID!) {
767
+ addContactsToSegment(
768
+ contactIds: $contactIds
769
+ processSignals: $processSignals
770
+ segmentId: $segmentId
771
+ ) {
748
772
  segment {
749
773
  id
750
774
  name
@@ -779,6 +803,7 @@ exports.AddContactsToSegmentDocument = (0, client_1.gql) `
779
803
  * const [addContactsToSegmentMutation, { data, loading, error }] = useAddContactsToSegmentMutation({
780
804
  * variables: {
781
805
  * contactIds: // value for 'contactIds'
806
+ * processSignals: // value for 'processSignals'
782
807
  * segmentId: // value for 'segmentId'
783
808
  * },
784
809
  * });
@@ -952,6 +977,139 @@ function useAddSegmentToCampaignMutation(baseOptions) {
952
977
  const options = { ...defaultOptions, ...baseOptions };
953
978
  return Apollo.useMutation(exports.AddSegmentToCampaignDocument, options);
954
979
  }
980
+ exports.AiAgentChatDocument = (0, client_1.gql) `
981
+ mutation AiAgentChat($conversationId: String, $enableTools: Boolean, $message: String!) {
982
+ aiAgentChat(
983
+ conversationId: $conversationId
984
+ enableTools: $enableTools
985
+ message: $message
986
+ ) {
987
+ success
988
+ conversationId
989
+ response
990
+ toolCalls {
991
+ type
992
+ id
993
+ name
994
+ input
995
+ }
996
+ toolResults {
997
+ toolUseId
998
+ type
999
+ success
1000
+ result
1001
+ error
1002
+ }
1003
+ requiresExecution
1004
+ error
1005
+ }
1006
+ }
1007
+ `;
1008
+ /**
1009
+ * __useAiAgentChatMutation__
1010
+ *
1011
+ * To run a mutation, you first call `useAiAgentChatMutation` within a React component and pass it any options that fit your needs.
1012
+ * When your component renders, `useAiAgentChatMutation` returns a tuple that includes:
1013
+ * - A mutate function that you can call at any time to execute the mutation
1014
+ * - An object with fields that represent the current status of the mutation's execution
1015
+ *
1016
+ * @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;
1017
+ *
1018
+ * @example
1019
+ * const [aiAgentChatMutation, { data, loading, error }] = useAiAgentChatMutation({
1020
+ * variables: {
1021
+ * conversationId: // value for 'conversationId'
1022
+ * enableTools: // value for 'enableTools'
1023
+ * message: // value for 'message'
1024
+ * },
1025
+ * });
1026
+ */
1027
+ function useAiAgentChatMutation(baseOptions) {
1028
+ const options = { ...defaultOptions, ...baseOptions };
1029
+ return Apollo.useMutation(exports.AiAgentChatDocument, options);
1030
+ }
1031
+ exports.AiAgentContinueDocument = (0, client_1.gql) `
1032
+ mutation AiAgentContinue($conversationId: String!, $toolResults: [JSONString]!) {
1033
+ aiAgentContinue(conversationId: $conversationId, toolResults: $toolResults) {
1034
+ success
1035
+ response
1036
+ toolCalls {
1037
+ type
1038
+ id
1039
+ name
1040
+ input
1041
+ }
1042
+ toolResults {
1043
+ toolUseId
1044
+ type
1045
+ success
1046
+ result
1047
+ error
1048
+ }
1049
+ requiresExecution
1050
+ error
1051
+ }
1052
+ }
1053
+ `;
1054
+ /**
1055
+ * __useAiAgentContinueMutation__
1056
+ *
1057
+ * To run a mutation, you first call `useAiAgentContinueMutation` within a React component and pass it any options that fit your needs.
1058
+ * When your component renders, `useAiAgentContinueMutation` returns a tuple that includes:
1059
+ * - A mutate function that you can call at any time to execute the mutation
1060
+ * - An object with fields that represent the current status of the mutation's execution
1061
+ *
1062
+ * @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;
1063
+ *
1064
+ * @example
1065
+ * const [aiAgentContinueMutation, { data, loading, error }] = useAiAgentContinueMutation({
1066
+ * variables: {
1067
+ * conversationId: // value for 'conversationId'
1068
+ * toolResults: // value for 'toolResults'
1069
+ * },
1070
+ * });
1071
+ */
1072
+ function useAiAgentContinueMutation(baseOptions) {
1073
+ const options = { ...defaultOptions, ...baseOptions };
1074
+ return Apollo.useMutation(exports.AiAgentContinueDocument, options);
1075
+ }
1076
+ exports.AiAgentExecuteDocument = (0, client_1.gql) `
1077
+ mutation AiAgentExecute($conversationId: String!, $toolCalls: [JSONString]!) {
1078
+ aiAgentExecute(conversationId: $conversationId, toolCalls: $toolCalls) {
1079
+ success
1080
+ results {
1081
+ toolUseId
1082
+ type
1083
+ success
1084
+ result
1085
+ error
1086
+ }
1087
+ error
1088
+ }
1089
+ }
1090
+ `;
1091
+ /**
1092
+ * __useAiAgentExecuteMutation__
1093
+ *
1094
+ * To run a mutation, you first call `useAiAgentExecuteMutation` within a React component and pass it any options that fit your needs.
1095
+ * When your component renders, `useAiAgentExecuteMutation` returns a tuple that includes:
1096
+ * - A mutate function that you can call at any time to execute the mutation
1097
+ * - An object with fields that represent the current status of the mutation's execution
1098
+ *
1099
+ * @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;
1100
+ *
1101
+ * @example
1102
+ * const [aiAgentExecuteMutation, { data, loading, error }] = useAiAgentExecuteMutation({
1103
+ * variables: {
1104
+ * conversationId: // value for 'conversationId'
1105
+ * toolCalls: // value for 'toolCalls'
1106
+ * },
1107
+ * });
1108
+ */
1109
+ function useAiAgentExecuteMutation(baseOptions) {
1110
+ const options = { ...defaultOptions, ...baseOptions };
1111
+ return Apollo.useMutation(exports.AiAgentExecuteDocument, options);
1112
+ }
955
1113
  exports.BulkAssignCompanyOwnersDocument = (0, client_1.gql) `
956
1114
  mutation BulkAssignCompanyOwners($input: BulkAssignOwnersInput) {
957
1115
  bulkAssignCompanyOwners(input: $input) {
@@ -7481,6 +7639,35 @@ function useDeleteContactMutation(baseOptions) {
7481
7639
  const options = { ...defaultOptions, ...baseOptions };
7482
7640
  return Apollo.useMutation(exports.DeleteContactDocument, options);
7483
7641
  }
7642
+ exports.DeleteConversationDocument = (0, client_1.gql) `
7643
+ mutation DeleteConversation($conversationId: String!) {
7644
+ deleteConversation(conversationId: $conversationId) {
7645
+ success
7646
+ message
7647
+ }
7648
+ }
7649
+ `;
7650
+ /**
7651
+ * __useDeleteConversationMutation__
7652
+ *
7653
+ * To run a mutation, you first call `useDeleteConversationMutation` within a React component and pass it any options that fit your needs.
7654
+ * When your component renders, `useDeleteConversationMutation` returns a tuple that includes:
7655
+ * - A mutate function that you can call at any time to execute the mutation
7656
+ * - An object with fields that represent the current status of the mutation's execution
7657
+ *
7658
+ * @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;
7659
+ *
7660
+ * @example
7661
+ * const [deleteConversationMutation, { data, loading, error }] = useDeleteConversationMutation({
7662
+ * variables: {
7663
+ * conversationId: // value for 'conversationId'
7664
+ * },
7665
+ * });
7666
+ */
7667
+ function useDeleteConversationMutation(baseOptions) {
7668
+ const options = { ...defaultOptions, ...baseOptions };
7669
+ return Apollo.useMutation(exports.DeleteConversationDocument, options);
7670
+ }
7484
7671
  exports.DeleteEmailTemplateDocument = (0, client_1.gql) `
7485
7672
  mutation DeleteEmailTemplate($uuid: UUID!) {
7486
7673
  deleteEmailTemplate(uuid: $uuid) {
@@ -30509,6 +30696,114 @@ function useContactsInSegmentSuspenseQuery(baseOptions) {
30509
30696
  const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
30510
30697
  return Apollo.useSuspenseQuery(exports.ContactsInSegmentDocument, options);
30511
30698
  }
30699
+ exports.ConversationDocument = (0, client_1.gql) `
30700
+ query Conversation($conversationId: String!) {
30701
+ conversation(conversationId: $conversationId) {
30702
+ id
30703
+ user {
30704
+ id
30705
+ email
30706
+ firstName
30707
+ lastName
30708
+ picture
30709
+ }
30710
+ createdAt
30711
+ updatedAt
30712
+ messages {
30713
+ id
30714
+ role
30715
+ content
30716
+ toolCalls
30717
+ toolResults
30718
+ createdAt
30719
+ }
30720
+ }
30721
+ }
30722
+ `;
30723
+ /**
30724
+ * __useConversationQuery__
30725
+ *
30726
+ * To run a query within a React component, call `useConversationQuery` and pass it any options that fit your needs.
30727
+ * When your component renders, `useConversationQuery` returns an object from Apollo Client that contains loading, error, and data properties
30728
+ * you can use to render your UI.
30729
+ *
30730
+ * @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;
30731
+ *
30732
+ * @example
30733
+ * const { data, loading, error } = useConversationQuery({
30734
+ * variables: {
30735
+ * conversationId: // value for 'conversationId'
30736
+ * },
30737
+ * });
30738
+ */
30739
+ function useConversationQuery(baseOptions) {
30740
+ const options = { ...defaultOptions, ...baseOptions };
30741
+ return Apollo.useQuery(exports.ConversationDocument, options);
30742
+ }
30743
+ function useConversationLazyQuery(baseOptions) {
30744
+ const options = { ...defaultOptions, ...baseOptions };
30745
+ return Apollo.useLazyQuery(exports.ConversationDocument, options);
30746
+ }
30747
+ function useConversationSuspenseQuery(baseOptions) {
30748
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
30749
+ return Apollo.useSuspenseQuery(exports.ConversationDocument, options);
30750
+ }
30751
+ exports.ConversationHistoryDocument = (0, client_1.gql) `
30752
+ query ConversationHistory($limit: Int, $offset: Int) {
30753
+ conversationHistory(limit: $limit, offset: $offset) {
30754
+ conversations {
30755
+ id
30756
+ user {
30757
+ id
30758
+ email
30759
+ firstName
30760
+ lastName
30761
+ picture
30762
+ }
30763
+ createdAt
30764
+ updatedAt
30765
+ messages {
30766
+ id
30767
+ role
30768
+ content
30769
+ toolCalls
30770
+ toolResults
30771
+ createdAt
30772
+ }
30773
+ }
30774
+ totalCount
30775
+ }
30776
+ }
30777
+ `;
30778
+ /**
30779
+ * __useConversationHistoryQuery__
30780
+ *
30781
+ * To run a query within a React component, call `useConversationHistoryQuery` and pass it any options that fit your needs.
30782
+ * When your component renders, `useConversationHistoryQuery` returns an object from Apollo Client that contains loading, error, and data properties
30783
+ * you can use to render your UI.
30784
+ *
30785
+ * @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;
30786
+ *
30787
+ * @example
30788
+ * const { data, loading, error } = useConversationHistoryQuery({
30789
+ * variables: {
30790
+ * limit: // value for 'limit'
30791
+ * offset: // value for 'offset'
30792
+ * },
30793
+ * });
30794
+ */
30795
+ function useConversationHistoryQuery(baseOptions) {
30796
+ const options = { ...defaultOptions, ...baseOptions };
30797
+ return Apollo.useQuery(exports.ConversationHistoryDocument, options);
30798
+ }
30799
+ function useConversationHistoryLazyQuery(baseOptions) {
30800
+ const options = { ...defaultOptions, ...baseOptions };
30801
+ return Apollo.useLazyQuery(exports.ConversationHistoryDocument, options);
30802
+ }
30803
+ function useConversationHistorySuspenseQuery(baseOptions) {
30804
+ const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
30805
+ return Apollo.useSuspenseQuery(exports.ConversationHistoryDocument, options);
30806
+ }
30512
30807
  exports.CurrentAccountDocument = (0, client_1.gql) `
30513
30808
  query CurrentAccount {
30514
30809
  currentAccount {
@@ -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.ADD_SEGMENT_TO_CAMPAIGN = exports.DELETE_CAMPAIGN = exports.UPDATE_CAMPAIGN = exports.CREATE_CAMPAIGN = 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 = 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 = 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) {
@@ -11290,8 +11356,8 @@ mutation DeleteSegment($id: ID!) {
11290
11356
  }
11291
11357
  }`;
11292
11358
  exports.ADD_CONTACTS_TO_SEGMENT = (0, client_1.gql) `
11293
- mutation AddContactsToSegment($contactIds: [ID]!, $segmentId: ID!) {
11294
- addContactsToSegment(contactIds: $contactIds, segmentId: $segmentId) {
11359
+ mutation AddContactsToSegment($contactIds: [ID]!, $processSignals: Boolean, $segmentId: ID!) {
11360
+ addContactsToSegment(contactIds: $contactIds, processSignals: $processSignals, segmentId: $segmentId) {
11295
11361
  segment {
11296
11362
  id
11297
11363
  name
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.EMPLOYEE_SIZES = exports.US_STATES = 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 = 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 = 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
@@ -11,9 +11,12 @@ export declare class CloudForgeSDK {
11
11
  acceptInvitation(input: InvitationResponseInput): Promise<import("@apollo/client").FetchResult<any>>;
12
12
  addContactsToCampaign(campaignId: string, contacts: CustomContactInput[]): Promise<import("@apollo/client").FetchResult<any>>;
13
13
  addContactsToCombinedCampaign(campaignId: string, contacts: CustomContactInput[]): Promise<import("@apollo/client").FetchResult<any>>;
14
- addContactsToSegment(contactIds: string[], segmentId: string): Promise<import("@apollo/client").FetchResult<any>>;
14
+ addContactsToSegment(contactIds: string[], segmentId: string, processSignals?: boolean): 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
@@ -51,10 +51,10 @@ class CloudForgeSDK {
51
51
  variables: { campaignId, contacts }
52
52
  });
53
53
  }
54
- async addContactsToSegment(contactIds, segmentId) {
54
+ async addContactsToSegment(contactIds, segmentId, processSignals) {
55
55
  return this.apolloClient.mutate({
56
56
  mutation: mutations_1.ADD_CONTACTS_TO_SEGMENT,
57
- variables: { contactIds, segmentId }
57
+ variables: { contactIds, segmentId, processSignals }
58
58
  });
59
59
  }
60
60
  async addSegmentToCallCampaign(campaignId, segmentId) {
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-service-sdk",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",