cf-service-sdk 0.0.79 → 0.0.80

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';
@@ -1788,6 +1816,12 @@ export type DeleteContact = {
1788
1816
  __typename?: 'DeleteContact';
1789
1817
  success?: Maybe<Scalars['Boolean']['output']>;
1790
1818
  };
1819
+ /** Mutation for deleting a conversation. */
1820
+ export type DeleteConversation = {
1821
+ __typename?: 'DeleteConversation';
1822
+ message?: Maybe<Scalars['String']['output']>;
1823
+ success?: Maybe<Scalars['Boolean']['output']>;
1824
+ };
1791
1825
  /** DeleteEmailTemplate - Delete an email template (only if owned by user's account) */
1792
1826
  export type DeleteEmailTemplate = {
1793
1827
  __typename?: 'DeleteEmailTemplate';
@@ -2115,6 +2149,12 @@ export type Mutation = {
2115
2149
  addContactsToSegment?: Maybe<AddContactsToSegment>;
2116
2150
  addSegmentToCallCampaign?: Maybe<AddSegmentToCallCampaign>;
2117
2151
  addSegmentToCampaign?: Maybe<AddSegmentToCampaign>;
2152
+ /** Mutation for chatting with the AI agent. */
2153
+ aiAgentChat?: Maybe<AiAgentChatResponse>;
2154
+ /** Mutation for continuing conversation after tool execution. */
2155
+ aiAgentContinue?: Maybe<AiAgentContinueResponse>;
2156
+ /** Mutation for executing tool calls. */
2157
+ aiAgentExecute?: Maybe<AiAgentExecuteResponse>;
2118
2158
  bulkAssignCompanyOwners?: Maybe<BulkAssignCompanyOwnerMutation>;
2119
2159
  cancelCampaign?: Maybe<CancelCampaign>;
2120
2160
  /** Cancel a combined campaign */
@@ -2152,6 +2192,8 @@ export type Mutation = {
2152
2192
  deleteCompany?: Maybe<DeleteCompany>;
2153
2193
  deleteCompanyNote?: Maybe<DeleteCompanyNote>;
2154
2194
  deleteContact?: Maybe<DeleteContact>;
2195
+ /** Mutation for deleting a conversation. */
2196
+ deleteConversation?: Maybe<DeleteConversation>;
2155
2197
  /** DeleteEmailTemplate - Delete an email template (only if owned by user's account) */
2156
2198
  deleteEmailTemplate?: Maybe<DeleteEmailTemplate>;
2157
2199
  /** Delete a notification */
@@ -2283,6 +2325,22 @@ export type MutationAddSegmentToCampaignArgs = {
2283
2325
  segmentId: Scalars['ID']['input'];
2284
2326
  };
2285
2327
  /** Mutations */
2328
+ export type MutationAiAgentChatArgs = {
2329
+ conversationId?: InputMaybe<Scalars['String']['input']>;
2330
+ enableTools?: InputMaybe<Scalars['Boolean']['input']>;
2331
+ message: Scalars['String']['input'];
2332
+ };
2333
+ /** Mutations */
2334
+ export type MutationAiAgentContinueArgs = {
2335
+ conversationId: Scalars['String']['input'];
2336
+ toolResults: Array<InputMaybe<Scalars['JSONString']['input']>>;
2337
+ };
2338
+ /** Mutations */
2339
+ export type MutationAiAgentExecuteArgs = {
2340
+ conversationId: Scalars['String']['input'];
2341
+ toolCalls: Array<InputMaybe<Scalars['JSONString']['input']>>;
2342
+ };
2343
+ /** Mutations */
2286
2344
  export type MutationBulkAssignCompanyOwnersArgs = {
2287
2345
  input?: InputMaybe<BulkAssignOwnersInput>;
2288
2346
  };
@@ -2384,6 +2442,10 @@ export type MutationDeleteContactArgs = {
2384
2442
  id?: InputMaybe<Scalars['ID']['input']>;
2385
2443
  };
2386
2444
  /** Mutations */
2445
+ export type MutationDeleteConversationArgs = {
2446
+ conversationId: Scalars['String']['input'];
2447
+ };
2448
+ /** Mutations */
2387
2449
  export type MutationDeleteEmailTemplateArgs = {
2388
2450
  uuid: Scalars['UUID']['input'];
2389
2451
  };
@@ -3607,6 +3669,23 @@ export type TasksResponse = {
3607
3669
  pagination?: Maybe<PaginationInfo>;
3608
3670
  stats?: Maybe<TaskStatsObject>;
3609
3671
  };
3672
+ /** Type for tool calls. */
3673
+ export type ToolCallType = {
3674
+ __typename?: 'ToolCallType';
3675
+ id?: Maybe<Scalars['String']['output']>;
3676
+ input?: Maybe<Scalars['JSONString']['output']>;
3677
+ name?: Maybe<Scalars['String']['output']>;
3678
+ type?: Maybe<Scalars['String']['output']>;
3679
+ };
3680
+ /** Type for tool execution results. */
3681
+ export type ToolResultType = {
3682
+ __typename?: 'ToolResultType';
3683
+ error?: Maybe<Scalars['String']['output']>;
3684
+ result?: Maybe<Scalars['JSONString']['output']>;
3685
+ success?: Maybe<Scalars['Boolean']['output']>;
3686
+ toolUseId?: Maybe<Scalars['String']['output']>;
3687
+ type?: Maybe<Scalars['String']['output']>;
3688
+ };
3610
3689
  export type UsStateData = {
3611
3690
  __typename?: 'USStateData';
3612
3691
  /** State abbreviation */
@@ -4161,6 +4240,86 @@ export type AddSegmentToCampaignMutation = {
4161
4240
  } | null;
4162
4241
  } | null;
4163
4242
  };
4243
+ export type AiAgentChatMutationVariables = Exact<{
4244
+ conversationId?: InputMaybe<Scalars['String']['input']>;
4245
+ enableTools?: InputMaybe<Scalars['Boolean']['input']>;
4246
+ message: Scalars['String']['input'];
4247
+ }>;
4248
+ export type AiAgentChatMutation = {
4249
+ __typename?: 'Mutation';
4250
+ aiAgentChat?: {
4251
+ __typename?: 'AIAgentChatResponse';
4252
+ success?: boolean | null;
4253
+ conversationId?: string | null;
4254
+ response?: string | null;
4255
+ requiresExecution?: boolean | null;
4256
+ error?: string | null;
4257
+ toolCalls?: Array<{
4258
+ __typename?: 'ToolCallType';
4259
+ type?: string | null;
4260
+ id?: string | null;
4261
+ name?: string | null;
4262
+ input?: any | null;
4263
+ } | null> | null;
4264
+ toolResults?: Array<{
4265
+ __typename?: 'ToolResultType';
4266
+ toolUseId?: string | null;
4267
+ type?: string | null;
4268
+ success?: boolean | null;
4269
+ result?: any | null;
4270
+ error?: string | null;
4271
+ } | null> | null;
4272
+ } | null;
4273
+ };
4274
+ export type AiAgentContinueMutationVariables = Exact<{
4275
+ conversationId: Scalars['String']['input'];
4276
+ toolResults: Array<InputMaybe<Scalars['JSONString']['input']>> | InputMaybe<Scalars['JSONString']['input']>;
4277
+ }>;
4278
+ export type AiAgentContinueMutation = {
4279
+ __typename?: 'Mutation';
4280
+ aiAgentContinue?: {
4281
+ __typename?: 'AIAgentContinueResponse';
4282
+ success?: boolean | null;
4283
+ response?: string | null;
4284
+ requiresExecution?: boolean | null;
4285
+ error?: string | null;
4286
+ toolCalls?: Array<{
4287
+ __typename?: 'ToolCallType';
4288
+ type?: string | null;
4289
+ id?: string | null;
4290
+ name?: string | null;
4291
+ input?: any | null;
4292
+ } | null> | null;
4293
+ toolResults?: Array<{
4294
+ __typename?: 'ToolResultType';
4295
+ toolUseId?: string | null;
4296
+ type?: string | null;
4297
+ success?: boolean | null;
4298
+ result?: any | null;
4299
+ error?: string | null;
4300
+ } | null> | null;
4301
+ } | null;
4302
+ };
4303
+ export type AiAgentExecuteMutationVariables = Exact<{
4304
+ conversationId: Scalars['String']['input'];
4305
+ toolCalls: Array<InputMaybe<Scalars['JSONString']['input']>> | InputMaybe<Scalars['JSONString']['input']>;
4306
+ }>;
4307
+ export type AiAgentExecuteMutation = {
4308
+ __typename?: 'Mutation';
4309
+ aiAgentExecute?: {
4310
+ __typename?: 'AIAgentExecuteResponse';
4311
+ success?: boolean | null;
4312
+ error?: string | null;
4313
+ results?: Array<{
4314
+ __typename?: 'ToolResultType';
4315
+ toolUseId?: string | null;
4316
+ type?: string | null;
4317
+ success?: boolean | null;
4318
+ result?: any | null;
4319
+ error?: string | null;
4320
+ } | null> | null;
4321
+ } | null;
4322
+ };
4164
4323
  export type BulkAssignCompanyOwnersMutationVariables = Exact<{
4165
4324
  input?: InputMaybe<BulkAssignOwnersInput>;
4166
4325
  }>;
@@ -10722,6 +10881,17 @@ export type DeleteContactMutation = {
10722
10881
  success?: boolean | null;
10723
10882
  } | null;
10724
10883
  };
10884
+ export type DeleteConversationMutationVariables = Exact<{
10885
+ conversationId: Scalars['String']['input'];
10886
+ }>;
10887
+ export type DeleteConversationMutation = {
10888
+ __typename?: 'Mutation';
10889
+ deleteConversation?: {
10890
+ __typename?: 'DeleteConversation';
10891
+ success?: boolean | null;
10892
+ message?: string | null;
10893
+ } | null;
10894
+ };
10725
10895
  export type DeleteEmailTemplateMutationVariables = Exact<{
10726
10896
  uuid: Scalars['UUID']['input'];
10727
10897
  }>;
@@ -36694,6 +36864,89 @@ export declare function useAddSegmentToCampaignMutation(baseOptions?: Apollo.Mut
36694
36864
  export type AddSegmentToCampaignMutationHookResult = ReturnType<typeof useAddSegmentToCampaignMutation>;
36695
36865
  export type AddSegmentToCampaignMutationResult = Apollo.MutationResult<AddSegmentToCampaignMutation>;
36696
36866
  export type AddSegmentToCampaignMutationOptions = Apollo.BaseMutationOptions<AddSegmentToCampaignMutation, AddSegmentToCampaignMutationVariables>;
36867
+ export declare const AiAgentChatDocument: Apollo.DocumentNode;
36868
+ export type AiAgentChatMutationFn = Apollo.MutationFunction<AiAgentChatMutation, AiAgentChatMutationVariables>;
36869
+ /**
36870
+ * __useAiAgentChatMutation__
36871
+ *
36872
+ * To run a mutation, you first call `useAiAgentChatMutation` within a React component and pass it any options that fit your needs.
36873
+ * When your component renders, `useAiAgentChatMutation` returns a tuple that includes:
36874
+ * - A mutate function that you can call at any time to execute the mutation
36875
+ * - An object with fields that represent the current status of the mutation's execution
36876
+ *
36877
+ * @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;
36878
+ *
36879
+ * @example
36880
+ * const [aiAgentChatMutation, { data, loading, error }] = useAiAgentChatMutation({
36881
+ * variables: {
36882
+ * conversationId: // value for 'conversationId'
36883
+ * enableTools: // value for 'enableTools'
36884
+ * message: // value for 'message'
36885
+ * },
36886
+ * });
36887
+ */
36888
+ export declare function useAiAgentChatMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentChatMutation, AiAgentChatMutationVariables>): Apollo.MutationTuple<AiAgentChatMutation, Exact<{
36889
+ conversationId?: InputMaybe<Scalars["String"]["input"]>;
36890
+ enableTools?: InputMaybe<Scalars["Boolean"]["input"]>;
36891
+ message: Scalars["String"]["input"];
36892
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
36893
+ export type AiAgentChatMutationHookResult = ReturnType<typeof useAiAgentChatMutation>;
36894
+ export type AiAgentChatMutationResult = Apollo.MutationResult<AiAgentChatMutation>;
36895
+ export type AiAgentChatMutationOptions = Apollo.BaseMutationOptions<AiAgentChatMutation, AiAgentChatMutationVariables>;
36896
+ export declare const AiAgentContinueDocument: Apollo.DocumentNode;
36897
+ export type AiAgentContinueMutationFn = Apollo.MutationFunction<AiAgentContinueMutation, AiAgentContinueMutationVariables>;
36898
+ /**
36899
+ * __useAiAgentContinueMutation__
36900
+ *
36901
+ * To run a mutation, you first call `useAiAgentContinueMutation` within a React component and pass it any options that fit your needs.
36902
+ * When your component renders, `useAiAgentContinueMutation` returns a tuple that includes:
36903
+ * - A mutate function that you can call at any time to execute the mutation
36904
+ * - An object with fields that represent the current status of the mutation's execution
36905
+ *
36906
+ * @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;
36907
+ *
36908
+ * @example
36909
+ * const [aiAgentContinueMutation, { data, loading, error }] = useAiAgentContinueMutation({
36910
+ * variables: {
36911
+ * conversationId: // value for 'conversationId'
36912
+ * toolResults: // value for 'toolResults'
36913
+ * },
36914
+ * });
36915
+ */
36916
+ export declare function useAiAgentContinueMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentContinueMutation, AiAgentContinueMutationVariables>): Apollo.MutationTuple<AiAgentContinueMutation, Exact<{
36917
+ conversationId: Scalars["String"]["input"];
36918
+ toolResults: Array<InputMaybe<Scalars["JSONString"]["input"]>> | InputMaybe<Scalars["JSONString"]["input"]>;
36919
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
36920
+ export type AiAgentContinueMutationHookResult = ReturnType<typeof useAiAgentContinueMutation>;
36921
+ export type AiAgentContinueMutationResult = Apollo.MutationResult<AiAgentContinueMutation>;
36922
+ export type AiAgentContinueMutationOptions = Apollo.BaseMutationOptions<AiAgentContinueMutation, AiAgentContinueMutationVariables>;
36923
+ export declare const AiAgentExecuteDocument: Apollo.DocumentNode;
36924
+ export type AiAgentExecuteMutationFn = Apollo.MutationFunction<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>;
36925
+ /**
36926
+ * __useAiAgentExecuteMutation__
36927
+ *
36928
+ * To run a mutation, you first call `useAiAgentExecuteMutation` within a React component and pass it any options that fit your needs.
36929
+ * When your component renders, `useAiAgentExecuteMutation` returns a tuple that includes:
36930
+ * - A mutate function that you can call at any time to execute the mutation
36931
+ * - An object with fields that represent the current status of the mutation's execution
36932
+ *
36933
+ * @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;
36934
+ *
36935
+ * @example
36936
+ * const [aiAgentExecuteMutation, { data, loading, error }] = useAiAgentExecuteMutation({
36937
+ * variables: {
36938
+ * conversationId: // value for 'conversationId'
36939
+ * toolCalls: // value for 'toolCalls'
36940
+ * },
36941
+ * });
36942
+ */
36943
+ export declare function useAiAgentExecuteMutation(baseOptions?: Apollo.MutationHookOptions<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>): Apollo.MutationTuple<AiAgentExecuteMutation, Exact<{
36944
+ conversationId: Scalars["String"]["input"];
36945
+ toolCalls: Array<InputMaybe<Scalars["JSONString"]["input"]>> | InputMaybe<Scalars["JSONString"]["input"]>;
36946
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
36947
+ export type AiAgentExecuteMutationHookResult = ReturnType<typeof useAiAgentExecuteMutation>;
36948
+ export type AiAgentExecuteMutationResult = Apollo.MutationResult<AiAgentExecuteMutation>;
36949
+ export type AiAgentExecuteMutationOptions = Apollo.BaseMutationOptions<AiAgentExecuteMutation, AiAgentExecuteMutationVariables>;
36697
36950
  export declare const BulkAssignCompanyOwnersDocument: Apollo.DocumentNode;
36698
36951
  export type BulkAssignCompanyOwnersMutationFn = Apollo.MutationFunction<BulkAssignCompanyOwnersMutation, BulkAssignCompanyOwnersMutationVariables>;
36699
36952
  /**
@@ -37345,6 +37598,31 @@ export declare function useDeleteContactMutation(baseOptions?: Apollo.MutationHo
37345
37598
  export type DeleteContactMutationHookResult = ReturnType<typeof useDeleteContactMutation>;
37346
37599
  export type DeleteContactMutationResult = Apollo.MutationResult<DeleteContactMutation>;
37347
37600
  export type DeleteContactMutationOptions = Apollo.BaseMutationOptions<DeleteContactMutation, DeleteContactMutationVariables>;
37601
+ export declare const DeleteConversationDocument: Apollo.DocumentNode;
37602
+ export type DeleteConversationMutationFn = Apollo.MutationFunction<DeleteConversationMutation, DeleteConversationMutationVariables>;
37603
+ /**
37604
+ * __useDeleteConversationMutation__
37605
+ *
37606
+ * To run a mutation, you first call `useDeleteConversationMutation` within a React component and pass it any options that fit your needs.
37607
+ * When your component renders, `useDeleteConversationMutation` returns a tuple that includes:
37608
+ * - A mutate function that you can call at any time to execute the mutation
37609
+ * - An object with fields that represent the current status of the mutation's execution
37610
+ *
37611
+ * @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;
37612
+ *
37613
+ * @example
37614
+ * const [deleteConversationMutation, { data, loading, error }] = useDeleteConversationMutation({
37615
+ * variables: {
37616
+ * conversationId: // value for 'conversationId'
37617
+ * },
37618
+ * });
37619
+ */
37620
+ export declare function useDeleteConversationMutation(baseOptions?: Apollo.MutationHookOptions<DeleteConversationMutation, DeleteConversationMutationVariables>): Apollo.MutationTuple<DeleteConversationMutation, Exact<{
37621
+ conversationId: Scalars["String"]["input"];
37622
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
37623
+ export type DeleteConversationMutationHookResult = ReturnType<typeof useDeleteConversationMutation>;
37624
+ export type DeleteConversationMutationResult = Apollo.MutationResult<DeleteConversationMutation>;
37625
+ export type DeleteConversationMutationOptions = Apollo.BaseMutationOptions<DeleteConversationMutation, DeleteConversationMutationVariables>;
37348
37626
  export declare const DeleteEmailTemplateDocument: Apollo.DocumentNode;
37349
37627
  export type DeleteEmailTemplateMutationFn = Apollo.MutationFunction<DeleteEmailTemplateMutation, DeleteEmailTemplateMutationVariables>;
37350
37628
  /**
@@ -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.DeleteTaskDocument = 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 = void 0;
37
+ 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 = exports.GenerateNewEmailDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = void 0;
38
+ 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 = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = 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 = 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;
@@ -952,6 +956,139 @@ function useAddSegmentToCampaignMutation(baseOptions) {
952
956
  const options = { ...defaultOptions, ...baseOptions };
953
957
  return Apollo.useMutation(exports.AddSegmentToCampaignDocument, options);
954
958
  }
959
+ exports.AiAgentChatDocument = (0, client_1.gql) `
960
+ mutation AiAgentChat($conversationId: String, $enableTools: Boolean, $message: String!) {
961
+ aiAgentChat(
962
+ conversationId: $conversationId
963
+ enableTools: $enableTools
964
+ message: $message
965
+ ) {
966
+ success
967
+ conversationId
968
+ response
969
+ toolCalls {
970
+ type
971
+ id
972
+ name
973
+ input
974
+ }
975
+ toolResults {
976
+ toolUseId
977
+ type
978
+ success
979
+ result
980
+ error
981
+ }
982
+ requiresExecution
983
+ error
984
+ }
985
+ }
986
+ `;
987
+ /**
988
+ * __useAiAgentChatMutation__
989
+ *
990
+ * To run a mutation, you first call `useAiAgentChatMutation` within a React component and pass it any options that fit your needs.
991
+ * When your component renders, `useAiAgentChatMutation` returns a tuple that includes:
992
+ * - A mutate function that you can call at any time to execute the mutation
993
+ * - An object with fields that represent the current status of the mutation's execution
994
+ *
995
+ * @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;
996
+ *
997
+ * @example
998
+ * const [aiAgentChatMutation, { data, loading, error }] = useAiAgentChatMutation({
999
+ * variables: {
1000
+ * conversationId: // value for 'conversationId'
1001
+ * enableTools: // value for 'enableTools'
1002
+ * message: // value for 'message'
1003
+ * },
1004
+ * });
1005
+ */
1006
+ function useAiAgentChatMutation(baseOptions) {
1007
+ const options = { ...defaultOptions, ...baseOptions };
1008
+ return Apollo.useMutation(exports.AiAgentChatDocument, options);
1009
+ }
1010
+ exports.AiAgentContinueDocument = (0, client_1.gql) `
1011
+ mutation AiAgentContinue($conversationId: String!, $toolResults: [JSONString]!) {
1012
+ aiAgentContinue(conversationId: $conversationId, toolResults: $toolResults) {
1013
+ success
1014
+ response
1015
+ toolCalls {
1016
+ type
1017
+ id
1018
+ name
1019
+ input
1020
+ }
1021
+ toolResults {
1022
+ toolUseId
1023
+ type
1024
+ success
1025
+ result
1026
+ error
1027
+ }
1028
+ requiresExecution
1029
+ error
1030
+ }
1031
+ }
1032
+ `;
1033
+ /**
1034
+ * __useAiAgentContinueMutation__
1035
+ *
1036
+ * To run a mutation, you first call `useAiAgentContinueMutation` within a React component and pass it any options that fit your needs.
1037
+ * When your component renders, `useAiAgentContinueMutation` returns a tuple that includes:
1038
+ * - A mutate function that you can call at any time to execute the mutation
1039
+ * - An object with fields that represent the current status of the mutation's execution
1040
+ *
1041
+ * @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;
1042
+ *
1043
+ * @example
1044
+ * const [aiAgentContinueMutation, { data, loading, error }] = useAiAgentContinueMutation({
1045
+ * variables: {
1046
+ * conversationId: // value for 'conversationId'
1047
+ * toolResults: // value for 'toolResults'
1048
+ * },
1049
+ * });
1050
+ */
1051
+ function useAiAgentContinueMutation(baseOptions) {
1052
+ const options = { ...defaultOptions, ...baseOptions };
1053
+ return Apollo.useMutation(exports.AiAgentContinueDocument, options);
1054
+ }
1055
+ exports.AiAgentExecuteDocument = (0, client_1.gql) `
1056
+ mutation AiAgentExecute($conversationId: String!, $toolCalls: [JSONString]!) {
1057
+ aiAgentExecute(conversationId: $conversationId, toolCalls: $toolCalls) {
1058
+ success
1059
+ results {
1060
+ toolUseId
1061
+ type
1062
+ success
1063
+ result
1064
+ error
1065
+ }
1066
+ error
1067
+ }
1068
+ }
1069
+ `;
1070
+ /**
1071
+ * __useAiAgentExecuteMutation__
1072
+ *
1073
+ * To run a mutation, you first call `useAiAgentExecuteMutation` within a React component and pass it any options that fit your needs.
1074
+ * When your component renders, `useAiAgentExecuteMutation` returns a tuple that includes:
1075
+ * - A mutate function that you can call at any time to execute the mutation
1076
+ * - An object with fields that represent the current status of the mutation's execution
1077
+ *
1078
+ * @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;
1079
+ *
1080
+ * @example
1081
+ * const [aiAgentExecuteMutation, { data, loading, error }] = useAiAgentExecuteMutation({
1082
+ * variables: {
1083
+ * conversationId: // value for 'conversationId'
1084
+ * toolCalls: // value for 'toolCalls'
1085
+ * },
1086
+ * });
1087
+ */
1088
+ function useAiAgentExecuteMutation(baseOptions) {
1089
+ const options = { ...defaultOptions, ...baseOptions };
1090
+ return Apollo.useMutation(exports.AiAgentExecuteDocument, options);
1091
+ }
955
1092
  exports.BulkAssignCompanyOwnersDocument = (0, client_1.gql) `
956
1093
  mutation BulkAssignCompanyOwners($input: BulkAssignOwnersInput) {
957
1094
  bulkAssignCompanyOwners(input: $input) {
@@ -7481,6 +7618,35 @@ function useDeleteContactMutation(baseOptions) {
7481
7618
  const options = { ...defaultOptions, ...baseOptions };
7482
7619
  return Apollo.useMutation(exports.DeleteContactDocument, options);
7483
7620
  }
7621
+ exports.DeleteConversationDocument = (0, client_1.gql) `
7622
+ mutation DeleteConversation($conversationId: String!) {
7623
+ deleteConversation(conversationId: $conversationId) {
7624
+ success
7625
+ message
7626
+ }
7627
+ }
7628
+ `;
7629
+ /**
7630
+ * __useDeleteConversationMutation__
7631
+ *
7632
+ * To run a mutation, you first call `useDeleteConversationMutation` within a React component and pass it any options that fit your needs.
7633
+ * When your component renders, `useDeleteConversationMutation` returns a tuple that includes:
7634
+ * - A mutate function that you can call at any time to execute the mutation
7635
+ * - An object with fields that represent the current status of the mutation's execution
7636
+ *
7637
+ * @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;
7638
+ *
7639
+ * @example
7640
+ * const [deleteConversationMutation, { data, loading, error }] = useDeleteConversationMutation({
7641
+ * variables: {
7642
+ * conversationId: // value for 'conversationId'
7643
+ * },
7644
+ * });
7645
+ */
7646
+ function useDeleteConversationMutation(baseOptions) {
7647
+ const options = { ...defaultOptions, ...baseOptions };
7648
+ return Apollo.useMutation(exports.DeleteConversationDocument, options);
7649
+ }
7484
7650
  exports.DeleteEmailTemplateDocument = (0, client_1.gql) `
7485
7651
  mutation DeleteEmailTemplate($uuid: UUID!) {
7486
7652
  deleteEmailTemplate(uuid: $uuid) {
@@ -85,6 +85,10 @@ export declare const UPDATE_COMPANY_NOTE: import("@apollo/client").DocumentNode;
85
85
  export declare const DELETE_COMPANY_NOTE: import("@apollo/client").DocumentNode;
86
86
  export declare const HIDE_RECORD: import("@apollo/client").DocumentNode;
87
87
  export declare const UNHIDE_RECORD: import("@apollo/client").DocumentNode;
88
+ export declare const AI_AGENT_CHAT: import("@apollo/client").DocumentNode;
89
+ export declare const AI_AGENT_EXECUTE: import("@apollo/client").DocumentNode;
90
+ export declare const AI_AGENT_CONTINUE: import("@apollo/client").DocumentNode;
91
+ export declare const DELETE_CONVERSATION: import("@apollo/client").DocumentNode;
88
92
  export declare const BULK_ASSIGN_COMPANY_OWNERS: import("@apollo/client").DocumentNode;
89
93
  export declare const SET_LEAD_NOT_INTERESTED: import("@apollo/client").DocumentNode;
90
94
  export declare const UPDATE_COMPANY_EXTERNAL_IDENTIFIER: import("@apollo/client").DocumentNode;
package/dist/mutations.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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;
4
+ exports.UPDATE_COMPANY_EXTERNAL_IDENTIFIER = exports.SET_LEAD_NOT_INTERESTED = exports.BULK_ASSIGN_COMPANY_OWNERS = exports.DELETE_CONVERSATION = exports.AI_AGENT_CONTINUE = exports.AI_AGENT_EXECUTE = exports.AI_AGENT_CHAT = 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;
5
5
  const client_1 = require("@apollo/client");
6
6
  exports.CREATE_COMBINED_CAMPAIGN = (0, client_1.gql) `
7
7
  mutation CreateCombinedCampaign($input: CombinedCampaignInput!, $steps: [CombinedCampaignStepInput]) {
@@ -13818,6 +13818,72 @@ mutation UnhideRecord($input: HiddenRecordInput!) {
13818
13818
  message
13819
13819
  }
13820
13820
  }`;
13821
+ exports.AI_AGENT_CHAT = (0, client_1.gql) `
13822
+ mutation AiAgentChat($conversationId: String, $enableTools: Boolean, $message: String!) {
13823
+ aiAgentChat(conversationId: $conversationId, enableTools: $enableTools, message: $message) {
13824
+ success
13825
+ conversationId
13826
+ response
13827
+ toolCalls {
13828
+ type
13829
+ id
13830
+ name
13831
+ input
13832
+ }
13833
+ toolResults {
13834
+ toolUseId
13835
+ type
13836
+ success
13837
+ result
13838
+ error
13839
+ }
13840
+ requiresExecution
13841
+ error
13842
+ }
13843
+ }`;
13844
+ exports.AI_AGENT_EXECUTE = (0, client_1.gql) `
13845
+ mutation AiAgentExecute($conversationId: String!, $toolCalls: [JSONString]!) {
13846
+ aiAgentExecute(conversationId: $conversationId, toolCalls: $toolCalls) {
13847
+ success
13848
+ results {
13849
+ toolUseId
13850
+ type
13851
+ success
13852
+ result
13853
+ error
13854
+ }
13855
+ error
13856
+ }
13857
+ }`;
13858
+ exports.AI_AGENT_CONTINUE = (0, client_1.gql) `
13859
+ mutation AiAgentContinue($conversationId: String!, $toolResults: [JSONString]!) {
13860
+ aiAgentContinue(conversationId: $conversationId, toolResults: $toolResults) {
13861
+ success
13862
+ response
13863
+ toolCalls {
13864
+ type
13865
+ id
13866
+ name
13867
+ input
13868
+ }
13869
+ toolResults {
13870
+ toolUseId
13871
+ type
13872
+ success
13873
+ result
13874
+ error
13875
+ }
13876
+ requiresExecution
13877
+ error
13878
+ }
13879
+ }`;
13880
+ exports.DELETE_CONVERSATION = (0, client_1.gql) `
13881
+ mutation DeleteConversation($conversationId: String!) {
13882
+ deleteConversation(conversationId: $conversationId) {
13883
+ success
13884
+ message
13885
+ }
13886
+ }`;
13821
13887
  exports.BULK_ASSIGN_COMPANY_OWNERS = (0, client_1.gql) `
13822
13888
  mutation BulkAssignCompanyOwners($input: BulkAssignOwnersInput) {
13823
13889
  bulkAssignCompanyOwners(input: $input) {
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>>;
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-service-sdk",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",