@bcrumbs.net/inbox 0.0.52 → 0.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/{396ba1d86a9997b1.svg → 594c01a9720e0657.svg} +42 -42
  2. package/assets/ar/inbox.json +268 -256
  3. package/assets/en/inbox.json +270 -258
  4. package/{2998ffe42c3436c0.svg → cb9c022b3cf80e0f.svg} +43 -43
  5. package/d9e9a351fe00b4f8.png +0 -0
  6. package/index.cjs.d.ts +1 -1
  7. package/index.cjs.js +4029 -2921
  8. package/index.esm.d.ts +1 -1
  9. package/index.esm.js +4033 -2927
  10. package/package.json +2 -2
  11. package/src/app/ai/components/CrumbySettings/AutoTagRulesSection.d.ts +14 -0
  12. package/src/app/ai/components/CrumbySettings/tagRuleUtils.d.ts +28 -0
  13. package/src/app/auth/components/UserAvatar/AccountSettingsDropdown.d.ts +2 -1
  14. package/src/app/auth/components/UserAvatar/index.d.ts +2 -1
  15. package/src/app/auth/pages/CheckAuth.d.ts +10 -0
  16. package/src/app/auth/pages/Forget.d.ts +1 -3
  17. package/src/app/auth/pages/Password.d.ts +0 -1
  18. package/src/app/auth/pages/Profile.d.ts +0 -1
  19. package/src/app/auth/redux/actions/forgetPasswordAction.d.ts +1 -1
  20. package/src/app/auth/redux/actions/logoutAction.d.ts +2 -2
  21. package/src/app/auth/redux/actions/resetPasswordAction.d.ts +2 -2
  22. package/src/app/auth/redux/auth.types.d.ts +5 -1
  23. package/src/app/auth/utils/getValidWorkspaceId.d.ts +4 -0
  24. package/src/app/billing/context/SubscriptionContext.d.ts +3 -1
  25. package/src/app/billing/utils/pendingPlanPurchaseStorage.d.ts +10 -0
  26. package/src/app/contact/components/ContactFormFields.d.ts +1 -1
  27. package/src/app/contact/config/contactForm.d.ts +2 -1
  28. package/src/app/dashboard/components/BroadcastAnalyticsCard.d.ts +2 -1
  29. package/src/app/dashboard/utils/buildBroadcastReportOverviewAnalytics.d.ts +2 -0
  30. package/src/app/dashboard/utils/dateHelpers.d.ts +17 -0
  31. package/src/app/dashboard/utils/reportHelpers.d.ts +16 -0
  32. package/src/app/generic/components/HeaderImageInput.d.ts +2 -1
  33. package/src/app/generic/components/MessagePreview.d.ts +3 -1
  34. package/src/app/generic/components/PreviewHeaderImage.d.ts +2 -1
  35. package/src/app/generic/utils/logout.d.ts +1 -1
  36. package/src/app/inbox/components/Chat/ChatContent.d.ts +1 -3
  37. package/src/app/inbox/components/Chat/ChatHeader.d.ts +11 -3
  38. package/src/app/inbox/components/Chat/NoResultsFound.d.ts +3 -0
  39. package/src/app/inbox/components/Chat/QuickReplyPickerMenu.d.ts +14 -0
  40. package/src/app/inbox/components/Chat/index.d.ts +7 -2
  41. package/src/app/inbox/components/ConvsList/ConvItem/ActionsMenu.d.ts +1 -1
  42. package/src/app/inbox/components/NewConvList/ConversationItem.d.ts +1 -1
  43. package/src/app/inbox/components/NewConvList/FilterDrawer.d.ts +3 -3
  44. package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +3 -6
  45. package/src/app/inbox/components/NewConvList/index.d.ts +2 -1
  46. package/src/app/inbox/components/NewDetails/ChatDetails.d.ts +3 -2
  47. package/src/app/inbox/components/NewDetails/ChatDetailsAndTimeline.d.ts +3 -2
  48. package/src/app/inbox/components/NewDetails/ClientInfo.d.ts +3 -2
  49. package/src/app/inbox/components/NewDetails/ConversationOverview.d.ts +3 -2
  50. package/src/app/inbox/components/NewDetails/EditClientInfo.d.ts +3 -2
  51. package/src/app/inbox/components/NewDetails/index.d.ts +3 -2
  52. package/src/app/inbox/components/Shared/Inbox.d.ts +9 -7
  53. package/src/app/inbox/components/Shared/MobileActionSheet.d.ts +9 -0
  54. package/src/app/inbox/components/Shared/MobileMenu.d.ts +8 -0
  55. package/src/app/inbox/components/Shared/SharedStyle.d.ts +7 -0
  56. package/src/app/inbox/components/Shared/mobileMenuStyles.d.ts +20 -0
  57. package/src/app/inbox/constants/index.d.ts +1 -1
  58. package/src/app/inbox/hooks/useCanContribute.d.ts +2 -1
  59. package/src/app/inbox/hooks/useConvAutoComplete.d.ts +15 -0
  60. package/src/app/inbox/hooks/useConvEnhance.d.ts +17 -0
  61. package/src/app/inbox/hooks/useConvFilters.d.ts +6 -2
  62. package/src/app/inbox/hooks/useConversationById.d.ts +8 -0
  63. package/src/app/inbox/hooks/useInboxAssignableAis.d.ts +3 -0
  64. package/src/app/inbox/hooks/useMyAgent.d.ts +10 -0
  65. package/src/app/inbox/hooks/useQuickReplyPicker.d.ts +18 -0
  66. package/src/app/inbox/hooks/useQuickReplyPickerAnchor.d.ts +7 -0
  67. package/src/app/inbox/utils/convAssistIntent.d.ts +16 -0
  68. package/src/app/inbox/utils/convAssistStorage.d.ts +12 -0
  69. package/src/app/inbox/utils/convs.d.ts +13 -4
  70. package/src/app/inbox/utils/inboxAssignableAis.d.ts +10 -0
  71. package/src/app/inbox/utils/mobileInboxStyles.d.ts +6 -0
  72. package/src/app/inbox/utils/quickReplyPicker.d.ts +13 -0
  73. package/src/app/layout/components/Header.d.ts +0 -4
  74. package/src/app/layout/constants/subMenu.d.ts +12 -2
  75. package/src/app/layout/context/EmbeddedInboxContext.d.ts +3 -0
  76. package/src/app/layout/context/MobileInboxNavContext.d.ts +9 -0
  77. package/src/app/layout/hooks/useMobileInboxVersion.d.ts +1 -3
  78. package/src/app/managemnet/components/CreateQuickReply.d.ts +8 -0
  79. package/src/app/managemnet/components/WebhookHeadersEditor.d.ts +12 -0
  80. package/src/app/managemnet/components/channels/ChannelTypeCard.d.ts +2 -1
  81. package/src/app/managemnet/config/quickReplyDefinition.d.ts +4 -0
  82. package/src/app/managemnet/pages/quickReplies/index.d.ts +2 -0
  83. package/src/app/onboarding/components/OnboardingChecklistWidget.d.ts +2 -1
  84. package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +4 -0
  85. package/src/app/resources/components/Integrations/Facebook/NoPagesFoundPopup.d.ts +2 -1
  86. package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +2 -1
  87. package/src/app/resources/components/ListResources/Utils.d.ts +1 -0
  88. package/src/app/subscriptions/components/Plans/PlanCard.d.ts +10 -23
  89. package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +7 -4
  90. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionHeader.d.ts +1 -10
  91. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionPlanLabel.d.ts +8 -0
  92. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +0 -1
  93. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfileCard.d.ts +14 -0
  94. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsageCard.d.ts +6 -0
  95. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +3 -2
  96. package/src/app/subscriptions/components/SubscriptionSettings/index.d.ts +6 -0
  97. package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +4 -1
  98. package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +3 -1
  99. package/src/app/subscriptions/components/SubscriptionsList.d.ts +1 -0
  100. package/src/app/subscriptions/utils/newWorkspaceContext.d.ts +5 -0
  101. package/src/assets/locales/translations.d.ts +80 -0
  102. package/src/graphql.autogenerated.d.ts +563 -2
  103. package/src/graphql.billing.autogenerated.d.ts +3 -0
  104. package/src/lib/EmbeddedMobileMenu.d.ts +9 -0
  105. package/src/lib/conversation-chat.d.ts +11 -0
  106. package/src/lib/index.d.ts +4 -0
  107. package/src/utils/integration.d.ts +6 -0
@@ -132,6 +132,8 @@ export type AIsPayload = {
132
132
  /** Agent is a user that can be assigned to a conversation. A system user can have only one agent. */
133
133
  export type Agent = {
134
134
  __typename?: 'Agent';
135
+ /** When false, this agent is not eligible for automatic assignment. Defaults to true when unset. */
136
+ assignable: Scalars['Boolean']['output'];
135
137
  /** The avatar of the agent. We are using Gravatar for the avatar. However it's possible to add here the url of the avatar. */
136
138
  avatar?: Maybe<Scalars['String']['output']>;
137
139
  createdAt: Scalars['DateTime']['output'];
@@ -148,6 +150,8 @@ export type Agent = {
148
150
  };
149
151
  /** AgentCreateInput is an input of the agent create mutation. */
150
152
  export type AgentCreateInput = {
153
+ /** When false, this agent is excluded from automatic assignment. Defaults to true if omitted. */
154
+ assignable?: InputMaybe<Scalars['Boolean']['input']>;
151
155
  /** The email of the agent. It is the same as the email of the invited user to the workspace. */
152
156
  email: Scalars['String']['input'];
153
157
  /** The name of the agent. */
@@ -189,6 +193,8 @@ export type AgentInput = {
189
193
  };
190
194
  /** AgentPatchInput is an input of the agent patch mutation. */
191
195
  export type AgentPatchInput = {
196
+ /** When false, this agent is excluded from automatic assignment. */
197
+ assignable: Scalars['Boolean']['input'];
192
198
  id: Scalars['ID']['input'];
193
199
  /** The name of the agent. */
194
200
  name: Scalars['String']['input'];
@@ -216,6 +222,8 @@ export type AgentReport = {
216
222
  createdAt: Scalars['DateTime']['output'];
217
223
  /** The CSAT percentage (4 and 5 ratings over rated conversations). */
218
224
  csat: Scalars['Float']['output'];
225
+ /** Conversations included in avgFirstResponseTime (client messaged before the agent replied). */
226
+ firstResponseConversationCount: Scalars['Int']['output'];
219
227
  id: Scalars['ID']['output'];
220
228
  /** The integration (channel) this daily aggregate was computed for, when present. */
221
229
  integrationId?: Maybe<Scalars['ID']['output']>;
@@ -920,9 +928,11 @@ export type Configurations = {
920
928
  askForName?: Maybe<Scalars['Boolean']['output']>;
921
929
  askForSurname?: Maybe<Scalars['Boolean']['output']>;
922
930
  clientTagRules?: Maybe<Array<TagRule>>;
931
+ closingMessage?: Maybe<Scalars['String']['output']>;
923
932
  constraints?: Maybe<Scalars['String']['output']>;
924
933
  contextPrompt?: Maybe<Scalars['String']['output']>;
925
934
  convTagRules?: Maybe<Array<TagRule>>;
935
+ emptyResponseFallbackMessage?: Maybe<Scalars['String']['output']>;
926
936
  endEnabled?: Maybe<Scalars['Boolean']['output']>;
927
937
  handoverEnabled?: Maybe<Scalars['Boolean']['output']>;
928
938
  personaPrompt?: Maybe<Scalars['String']['output']>;
@@ -935,9 +945,11 @@ export type ConfigurationsInput = {
935
945
  askForName?: InputMaybe<Scalars['Boolean']['input']>;
936
946
  askForSurname?: InputMaybe<Scalars['Boolean']['input']>;
937
947
  clientTagRules?: InputMaybe<Array<TagRuleInput>>;
948
+ closingMessage?: InputMaybe<Scalars['String']['input']>;
938
949
  constraints?: InputMaybe<Scalars['String']['input']>;
939
950
  contextPrompt?: InputMaybe<Scalars['String']['input']>;
940
951
  convTagRules?: InputMaybe<Array<TagRuleInput>>;
952
+ emptyResponseFallbackMessage?: InputMaybe<Scalars['String']['input']>;
941
953
  endEnabled?: InputMaybe<Scalars['Boolean']['input']>;
942
954
  handoverEnabled?: InputMaybe<Scalars['Boolean']['input']>;
943
955
  personaPrompt?: InputMaybe<Scalars['String']['input']>;
@@ -1053,6 +1065,16 @@ export type ConvEndInput = {
1053
1065
  integrationId: Scalars['ID']['input'];
1054
1066
  workspaceId: Scalars['Int']['input'];
1055
1067
  };
1068
+ /**
1069
+ * ConvEnhanceMessageInput is the input for AI enhancement of the agent reply draft.
1070
+ * Same shape as ConvAutoCompleteInput, but the agent rewrites the draft instead of continuing it.
1071
+ */
1072
+ export type ConvEnhanceMessageInput = {
1073
+ convId: Scalars['ID']['input'];
1074
+ /** The reply text currently being composed in the composer. This is the message the AI will rewrite (clarity, grammar, tone), while keeping the original intent and language. */
1075
+ currentMessage: Scalars['String']['input'];
1076
+ workspaceId: Scalars['Int']['input'];
1077
+ };
1056
1078
  /** ConvFeedbackPatchInput is an input of the conversation feedback patch mutation. */
1057
1079
  export type ConvFeedbackPatchInput = {
1058
1080
  /** Optional feedback comment. */
@@ -1073,6 +1095,12 @@ export type ConvHandoverInput = {
1073
1095
  convId: Scalars['ID']['input'];
1074
1096
  workspaceId: Scalars['Int']['input'];
1075
1097
  };
1098
+ /** ConvInput is an input for fetching a single conversation by id. */
1099
+ export type ConvInput = {
1100
+ /** The id of the conversation. */
1101
+ convId: Scalars['ID']['input'];
1102
+ workspaceId: Scalars['Int']['input'];
1103
+ };
1076
1104
  /** ConvIntegrationSwitch tracks each integration switch for a conversation. */
1077
1105
  export type ConvIntegrationSwitch = {
1078
1106
  __typename?: 'ConvIntegrationSwitch';
@@ -1251,6 +1279,8 @@ export type ConversationReport = {
1251
1279
  createdAt: Scalars['DateTime']['output'];
1252
1280
  /** The CSAT percentage (4 and 5 ratings over rated conversations). */
1253
1281
  csat: Scalars['Float']['output'];
1282
+ /** Conversations included in avgFirstResponseTime (client messaged before the agent replied). */
1283
+ firstResponseConversationCount: Scalars['Int']['output'];
1254
1284
  /** The hour of the conversation report. */
1255
1285
  hour: Scalars['Int']['output'];
1256
1286
  /** The id of the conversation report. */
@@ -1399,6 +1429,10 @@ export type InputAssignUserRole = {
1399
1429
  export type InputInitWorkspace = {
1400
1430
  workspaceId: Scalars['Int']['input'];
1401
1431
  };
1432
+ export type InputUnassignUserRole = {
1433
+ userId: Scalars['String']['input'];
1434
+ workspaceId: Scalars['Int']['input'];
1435
+ };
1402
1436
  export type InputUploadSignature = {
1403
1437
  blobName: Scalars['String']['input'];
1404
1438
  containerName: Scalars['String']['input'];
@@ -1449,6 +1483,7 @@ export type IntegrationInput = {
1449
1483
  /** IntegrationPatchInput is an input for the integration patching. */
1450
1484
  export type IntegrationPatchInput = {
1451
1485
  id: Scalars['ID']['input'];
1486
+ integrationProperties?: InputMaybe<Scalars['JSON']['input']>;
1452
1487
  name?: InputMaybe<Scalars['String']['input']>;
1453
1488
  properties?: InputMaybe<Scalars['JSON']['input']>;
1454
1489
  workspaceId: Scalars['Int']['input'];
@@ -1796,6 +1831,8 @@ export type Mutation = {
1796
1831
  __typename?: 'Mutation';
1797
1832
  /** Add a message to the conversation. */
1798
1833
  addMessage: Message;
1834
+ /** Add a quick reply. You should have the MANAGE_WORKSPACE permission to add a quick reply. */
1835
+ addQuickReply: QuickReply;
1799
1836
  /** Assign a conversation to an agent. If you don't have the MANAGE_CONVS permission, you can only assign the conversation to yourself. */
1800
1837
  assignConv: Conversation;
1801
1838
  assignOwner: UserRole;
@@ -1891,11 +1928,15 @@ export type Mutation = {
1891
1928
  patchConvFeedback: Conversation;
1892
1929
  /** Patch an integration. You should have the MANAGE_WORKSPACE permission to patch an integration. */
1893
1930
  patchIntegration: Integration;
1931
+ /** Patch a quick reply. You should have the MANAGE_WORKSPACE permission to patch a quick reply. */
1932
+ patchQuickReply: QuickReply;
1894
1933
  patchSource: Source;
1895
1934
  /** Update workspace settings. You should have the MANAGE_WORKSPACE permission to update workspace settings. */
1896
1935
  patchWorkspaceSettings: WorkspaceSettings;
1897
1936
  /** Put a client (Update a client if it exists, create a new one if it doesn't). You should have the MANAGE_CLIENTS permission to put a client. */
1898
1937
  putClient: Client;
1938
+ /** Remove a quick reply. You should have the MANAGE_WORKSPACE permission to remove a quick reply. */
1939
+ removeQuickReply: QuickReply;
1899
1940
  say?: Maybe<HelloMessage>;
1900
1941
  /** Send a notification to a client. (It can be used also for OTP messages) */
1901
1942
  sendNotification: Message;
@@ -1913,6 +1954,7 @@ export type Mutation = {
1913
1954
  tagConv: Conversation;
1914
1955
  /** Tag a message. */
1915
1956
  tagMessage: Message;
1957
+ unassignUserRole: Scalars['Boolean']['output'];
1916
1958
  /** Undelete a client by id. You should have the MANAGE_CLIENTS permission to undelete a client. */
1917
1959
  undeleteClient: Client;
1918
1960
  /** Undelete a client by externalClientId. You should have the MANAGE_CLIENTS permission to undelete a client. */
@@ -1927,6 +1969,9 @@ export type Mutation = {
1927
1969
  export type MutationAddMessageArgs = {
1928
1970
  input: MessageInput;
1929
1971
  };
1972
+ export type MutationAddQuickReplyArgs = {
1973
+ input: QuickReplyAddInput;
1974
+ };
1930
1975
  export type MutationAssignConvArgs = {
1931
1976
  input: ConvAssignInput;
1932
1977
  };
@@ -2056,6 +2101,9 @@ export type MutationPatchConvFeedbackArgs = {
2056
2101
  export type MutationPatchIntegrationArgs = {
2057
2102
  input: IntegrationPatchInput;
2058
2103
  };
2104
+ export type MutationPatchQuickReplyArgs = {
2105
+ input: QuickReplyPatchInput;
2106
+ };
2059
2107
  export type MutationPatchSourceArgs = {
2060
2108
  input: SourcePatchInput;
2061
2109
  };
@@ -2065,6 +2113,9 @@ export type MutationPatchWorkspaceSettingsArgs = {
2065
2113
  export type MutationPutClientArgs = {
2066
2114
  input: ClientPutInput;
2067
2115
  };
2116
+ export type MutationRemoveQuickReplyArgs = {
2117
+ input: QuickReplyRemoveInput;
2118
+ };
2068
2119
  export type MutationSayArgs = {
2069
2120
  input: UserInput;
2070
2121
  };
@@ -2086,6 +2137,9 @@ export type MutationTagConvArgs = {
2086
2137
  export type MutationTagMessageArgs = {
2087
2138
  input: MessageTagInput;
2088
2139
  };
2140
+ export type MutationUnassignUserRoleArgs = {
2141
+ input: InputUnassignUserRole;
2142
+ };
2089
2143
  export type MutationUndeleteClientArgs = {
2090
2144
  input: ClientInput;
2091
2145
  };
@@ -2193,8 +2247,12 @@ export type Query = {
2193
2247
  clientByPhone: Client;
2194
2248
  /** Get the clients. You should have the MANAGE_CLIENTS permission to get the clients. */
2195
2249
  clients: ClientsPayload;
2250
+ /** Get a single conversation by id. If you don't have the MANAGE_CONVS permission, you can only access conversations assigned to you (or unassigned). */
2251
+ conv: Conversation;
2196
2252
  /** Get an AI suggestion to auto-complete the current draft. */
2197
2253
  convAutoComplete: ConvAssistPayload;
2254
+ /** Get an AI-enhanced rewrite of the current draft (clarity, grammar, tone), preserving the original intent and language. */
2255
+ convEnhanceMessage: ConvAssistPayload;
2198
2256
  /** Get the last message of a conversation if it is currently open. Returns null if the conversation is ended or not found. */
2199
2257
  convLastMessage?: Maybe<Message>;
2200
2258
  /** Get an AI summary for conversation messages. */
@@ -2220,6 +2278,8 @@ export type Query = {
2220
2278
  messages: MessagesPayload;
2221
2279
  /** Get the count of open conversations that have recent client messages (conversations that need a response). */
2222
2280
  openConversationsNeedResponseCount: Scalars['Int']['output'];
2281
+ /** Get quick replies. */
2282
+ quickReplies: QuickRepliesPayload;
2223
2283
  sources: SourcesPayload;
2224
2284
  /** Get tags. */
2225
2285
  tags: TagsPayload;
@@ -2297,9 +2357,15 @@ export type QueryClientsArgs = {
2297
2357
  input: ClientsInput;
2298
2358
  pageInfo?: InputMaybe<PageInfoInput>;
2299
2359
  };
2360
+ export type QueryConvArgs = {
2361
+ input: ConvInput;
2362
+ };
2300
2363
  export type QueryConvAutoCompleteArgs = {
2301
2364
  input: ConvAutoCompleteInput;
2302
2365
  };
2366
+ export type QueryConvEnhanceMessageArgs = {
2367
+ input: ConvEnhanceMessageInput;
2368
+ };
2303
2369
  export type QueryConvLastMessageArgs = {
2304
2370
  input: ConvLastMessageInput;
2305
2371
  };
@@ -2332,6 +2398,9 @@ export type QueryMessagesArgs = {
2332
2398
  export type QueryOpenConversationsNeedResponseCountArgs = {
2333
2399
  input: OpenConversationsNeedResponseInput;
2334
2400
  };
2401
+ export type QueryQuickRepliesArgs = {
2402
+ input: QuickRepliesInput;
2403
+ };
2335
2404
  export type QuerySourcesArgs = {
2336
2405
  input: SourcesInput;
2337
2406
  };
@@ -2375,6 +2444,38 @@ export type QueryWorkspacesArgs = {
2375
2444
  input: WorkspacesInput;
2376
2445
  pageInfo?: InputMaybe<PageInfoInput>;
2377
2446
  };
2447
+ export type QuickRepliesInput = {
2448
+ workspaceId: Scalars['Int']['input'];
2449
+ };
2450
+ export type QuickRepliesPayload = {
2451
+ __typename?: 'QuickRepliesPayload';
2452
+ nodes: Array<QuickReply>;
2453
+ };
2454
+ /** QuickReply represents a reusable response command for a workspace. */
2455
+ export type QuickReply = {
2456
+ __typename?: 'QuickReply';
2457
+ command: Scalars['String']['output'];
2458
+ content: Scalars['String']['output'];
2459
+ createdAt: Scalars['DateTime']['output'];
2460
+ id: Scalars['ID']['output'];
2461
+ updatedAt: Scalars['DateTime']['output'];
2462
+ workspaceId: Scalars['Int']['output'];
2463
+ };
2464
+ export type QuickReplyAddInput = {
2465
+ command: Scalars['String']['input'];
2466
+ content: Scalars['String']['input'];
2467
+ workspaceId: Scalars['Int']['input'];
2468
+ };
2469
+ export type QuickReplyPatchInput = {
2470
+ command?: InputMaybe<Scalars['String']['input']>;
2471
+ content?: InputMaybe<Scalars['String']['input']>;
2472
+ id: Scalars['ID']['input'];
2473
+ workspaceId: Scalars['Int']['input'];
2474
+ };
2475
+ export type QuickReplyRemoveInput = {
2476
+ id: Scalars['ID']['input'];
2477
+ workspaceId: Scalars['Int']['input'];
2478
+ };
2378
2479
  export declare const Role: {
2379
2480
  readonly ADMIN: "ADMIN";
2380
2481
  readonly AGENT: "AGENT";
@@ -2912,6 +3013,8 @@ export type AiFragment = {
2912
3013
  rolePrompt?: string | null;
2913
3014
  personaPrompt?: string | null;
2914
3015
  constraints?: string | null;
3016
+ emptyResponseFallbackMessage?: string | null;
3017
+ closingMessage?: string | null;
2915
3018
  clientTagRules?: Array<{
2916
3019
  __typename?: 'TagRule';
2917
3020
  tag: string;
@@ -2956,6 +3059,8 @@ export type AiQuery = {
2956
3059
  rolePrompt?: string | null;
2957
3060
  personaPrompt?: string | null;
2958
3061
  constraints?: string | null;
3062
+ emptyResponseFallbackMessage?: string | null;
3063
+ closingMessage?: string | null;
2959
3064
  clientTagRules?: Array<{
2960
3065
  __typename?: 'TagRule';
2961
3066
  tag: string;
@@ -3003,6 +3108,8 @@ export type AisQuery = {
3003
3108
  rolePrompt?: string | null;
3004
3109
  personaPrompt?: string | null;
3005
3110
  constraints?: string | null;
3111
+ emptyResponseFallbackMessage?: string | null;
3112
+ closingMessage?: string | null;
3006
3113
  clientTagRules?: Array<{
3007
3114
  __typename?: 'TagRule';
3008
3115
  tag: string;
@@ -3049,6 +3156,8 @@ export type CreateAiMutation = {
3049
3156
  rolePrompt?: string | null;
3050
3157
  personaPrompt?: string | null;
3051
3158
  constraints?: string | null;
3159
+ emptyResponseFallbackMessage?: string | null;
3160
+ closingMessage?: string | null;
3052
3161
  clientTagRules?: Array<{
3053
3162
  __typename?: 'TagRule';
3054
3163
  tag: string;
@@ -3109,6 +3218,8 @@ export type DeleteAiMutation = {
3109
3218
  rolePrompt?: string | null;
3110
3219
  personaPrompt?: string | null;
3111
3220
  constraints?: string | null;
3221
+ emptyResponseFallbackMessage?: string | null;
3222
+ closingMessage?: string | null;
3112
3223
  clientTagRules?: Array<{
3113
3224
  __typename?: 'TagRule';
3114
3225
  tag: string;
@@ -3169,6 +3280,8 @@ export type PatchAiMutation = {
3169
3280
  rolePrompt?: string | null;
3170
3281
  personaPrompt?: string | null;
3171
3282
  constraints?: string | null;
3283
+ emptyResponseFallbackMessage?: string | null;
3284
+ closingMessage?: string | null;
3172
3285
  clientTagRules?: Array<{
3173
3286
  __typename?: 'TagRule';
3174
3287
  tag: string;
@@ -3356,6 +3469,13 @@ export type MeQuery = {
3356
3469
  createdAt: any;
3357
3470
  };
3358
3471
  };
3472
+ export type UnassignUserRoleMutationVariables = Exact<{
3473
+ input: InputUnassignUserRole;
3474
+ }>;
3475
+ export type UnassignUserRoleMutation = {
3476
+ __typename?: 'Mutation';
3477
+ unassignUserRole: boolean;
3478
+ };
3359
3479
  export type UsersRolesQueryVariables = Exact<{
3360
3480
  input: InputUsersRoles;
3361
3481
  }>;
@@ -3749,6 +3869,7 @@ export type AgentReportFragment = {
3749
3869
  agentMessagesCount: number;
3750
3870
  clientMessageCount: number;
3751
3871
  avgFirstResponseTime: number;
3872
+ firstResponseConversationCount: number;
3752
3873
  avgConversationTime: number;
3753
3874
  newClientConvCount?: number | null;
3754
3875
  responseRate: number;
@@ -3766,6 +3887,7 @@ export type ConversationReportFragment = {
3766
3887
  agentMessagesCount: number;
3767
3888
  clientMessageCount: number;
3768
3889
  avgFirstResponseTime: number;
3890
+ firstResponseConversationCount: number;
3769
3891
  avgConversationTime: number;
3770
3892
  newClientConvCount?: number | null;
3771
3893
  responseRate: number;
@@ -3789,6 +3911,7 @@ export type AgentsReportQuery = {
3789
3911
  agentMessagesCount: number;
3790
3912
  clientMessageCount: number;
3791
3913
  avgFirstResponseTime: number;
3914
+ firstResponseConversationCount: number;
3792
3915
  avgConversationTime: number;
3793
3916
  newClientConvCount?: number | null;
3794
3917
  responseRate: number;
@@ -3815,6 +3938,7 @@ export type ConvsReportQuery = {
3815
3938
  agentMessagesCount: number;
3816
3939
  clientMessageCount: number;
3817
3940
  avgFirstResponseTime: number;
3941
+ firstResponseConversationCount: number;
3818
3942
  avgConversationTime: number;
3819
3943
  newClientConvCount?: number | null;
3820
3944
  responseRate: number;
@@ -3849,6 +3973,7 @@ export type AgentFragment = {
3849
3973
  surname: string;
3850
3974
  email: string;
3851
3975
  avatar?: string | null;
3976
+ assignable: boolean;
3852
3977
  createdAt: any;
3853
3978
  };
3854
3979
  export type ConversationFragment = {
@@ -4004,6 +4129,7 @@ export type AgentQuery = {
4004
4129
  surname: string;
4005
4130
  email: string;
4006
4131
  avatar?: string | null;
4132
+ assignable: boolean;
4007
4133
  createdAt: any;
4008
4134
  };
4009
4135
  };
@@ -4024,6 +4150,7 @@ export type AgentsQuery = {
4024
4150
  surname: string;
4025
4151
  email: string;
4026
4152
  avatar?: string | null;
4153
+ assignable: boolean;
4027
4154
  createdAt: any;
4028
4155
  }> | null;
4029
4156
  pageInfo?: {
@@ -4105,6 +4232,77 @@ export type AssignConvMutation = {
4105
4232
  } | null> | null;
4106
4233
  };
4107
4234
  };
4235
+ export type ConvQueryVariables = Exact<{
4236
+ input: ConvInput;
4237
+ }>;
4238
+ export type ConvQuery = {
4239
+ __typename?: 'Query';
4240
+ conv: {
4241
+ __typename?: 'Conversation';
4242
+ workspaceId: number;
4243
+ id: string;
4244
+ integrationId: string;
4245
+ integrationType: IntegrationType;
4246
+ clientId: string;
4247
+ ended: boolean;
4248
+ endedBy?: string | null;
4249
+ externalConversationId?: string | null;
4250
+ tags?: Array<string> | null;
4251
+ createdAt: any;
4252
+ endedAt?: any | null;
4253
+ stageId?: string | null;
4254
+ orderNo?: string | null;
4255
+ assigneeId?: string | null;
4256
+ aiId?: string | null;
4257
+ aiAssigneed?: boolean | null;
4258
+ ratingFlowInProgress?: boolean | null;
4259
+ broadcastId?: string | null;
4260
+ broadcastName?: string | null;
4261
+ integrationSwitches?: Array<{
4262
+ __typename?: 'ConvIntegrationSwitch';
4263
+ fromIntegrationId: string;
4264
+ fromIntegrationType: IntegrationType;
4265
+ toIntegrationId: string;
4266
+ toIntegrationType: IntegrationType;
4267
+ switchedAt: any;
4268
+ switchedBy?: string | null;
4269
+ }> | null;
4270
+ messages?: Array<{
4271
+ __typename?: 'Message';
4272
+ messageId: string;
4273
+ content: string;
4274
+ type: MessageType;
4275
+ noteType?: NoteType | null;
4276
+ isAgent: boolean;
4277
+ agentId?: string | null;
4278
+ status?: MessageStatus | null;
4279
+ failedReason?: string | null;
4280
+ externalMessageId?: string | null;
4281
+ tags?: Array<string> | null;
4282
+ createdAt: any;
4283
+ context?: {
4284
+ __typename?: 'MessageContext';
4285
+ replyToId?: string | null;
4286
+ replyToContent: string;
4287
+ replyToType: MessageType;
4288
+ } | null;
4289
+ }> | null;
4290
+ client?: {
4291
+ __typename?: 'ConversationClient';
4292
+ name?: string | null;
4293
+ surname?: string | null;
4294
+ code?: string | null;
4295
+ phone?: string | null;
4296
+ isDeleted: boolean;
4297
+ } | null;
4298
+ assignees?: Array<{
4299
+ __typename?: 'ConvAssignment';
4300
+ assigneeId: string;
4301
+ assignDate?: any | null;
4302
+ isAi?: boolean | null;
4303
+ } | null> | null;
4304
+ };
4305
+ };
4108
4306
  export type ConvAutoCompleteQueryVariables = Exact<{
4109
4307
  input: ConvAutoCompleteInput;
4110
4308
  }>;
@@ -4116,6 +4314,17 @@ export type ConvAutoCompleteQuery = {
4116
4314
  usage?: any | null;
4117
4315
  };
4118
4316
  };
4317
+ export type ConvEnhanceMessageQueryVariables = Exact<{
4318
+ input: ConvEnhanceMessageInput;
4319
+ }>;
4320
+ export type ConvEnhanceMessageQuery = {
4321
+ __typename?: 'Query';
4322
+ convEnhanceMessage: {
4323
+ __typename?: 'ConvAssistPayload';
4324
+ text: string;
4325
+ usage?: any | null;
4326
+ };
4327
+ };
4119
4328
  export type ConvSummaryQueryVariables = Exact<{
4120
4329
  input: ConvAssistInput;
4121
4330
  }>;
@@ -4222,6 +4431,7 @@ export type CreateAgentMutation = {
4222
4431
  surname: string;
4223
4432
  email: string;
4224
4433
  avatar?: string | null;
4434
+ assignable: boolean;
4225
4435
  createdAt: any;
4226
4436
  };
4227
4437
  };
@@ -4239,6 +4449,7 @@ export type DeleteAgentMutation = {
4239
4449
  surname: string;
4240
4450
  email: string;
4241
4451
  avatar?: string | null;
4452
+ assignable: boolean;
4242
4453
  createdAt: any;
4243
4454
  };
4244
4455
  };
@@ -4441,6 +4652,7 @@ export type PatchAgentMutation = {
4441
4652
  surname: string;
4442
4653
  email: string;
4443
4654
  avatar?: string | null;
4655
+ assignable: boolean;
4444
4656
  createdAt: any;
4445
4657
  };
4446
4658
  };
@@ -4852,6 +5064,30 @@ export type ClientFragment = {
4852
5064
  deletedAt?: any | null;
4853
5065
  archivedBy?: string | null;
4854
5066
  };
5067
+ export type QuickReplyFragment = {
5068
+ __typename?: 'QuickReply';
5069
+ id: string;
5070
+ workspaceId: number;
5071
+ command: string;
5072
+ content: string;
5073
+ createdAt: any;
5074
+ updatedAt: any;
5075
+ };
5076
+ export type AddQuickReplyMutationVariables = Exact<{
5077
+ input: QuickReplyAddInput;
5078
+ }>;
5079
+ export type AddQuickReplyMutation = {
5080
+ __typename?: 'Mutation';
5081
+ addQuickReply: {
5082
+ __typename?: 'QuickReply';
5083
+ id: string;
5084
+ workspaceId: number;
5085
+ command: string;
5086
+ content: string;
5087
+ createdAt: any;
5088
+ updatedAt: any;
5089
+ };
5090
+ };
4855
5091
  export type BulkDeleteClientsMutationVariables = Exact<{
4856
5092
  input: BulkPermanentDeleteClientsInput;
4857
5093
  }>;
@@ -5113,6 +5349,54 @@ export type PatchClientMutation = {
5113
5349
  archivedBy?: string | null;
5114
5350
  };
5115
5351
  };
5352
+ export type PatchQuickReplyMutationVariables = Exact<{
5353
+ input: QuickReplyPatchInput;
5354
+ }>;
5355
+ export type PatchQuickReplyMutation = {
5356
+ __typename?: 'Mutation';
5357
+ patchQuickReply: {
5358
+ __typename?: 'QuickReply';
5359
+ id: string;
5360
+ workspaceId: number;
5361
+ command: string;
5362
+ content: string;
5363
+ createdAt: any;
5364
+ updatedAt: any;
5365
+ };
5366
+ };
5367
+ export type QuickRepliesQueryVariables = Exact<{
5368
+ input: QuickRepliesInput;
5369
+ }>;
5370
+ export type QuickRepliesQuery = {
5371
+ __typename?: 'Query';
5372
+ quickReplies: {
5373
+ __typename?: 'QuickRepliesPayload';
5374
+ nodes: Array<{
5375
+ __typename?: 'QuickReply';
5376
+ id: string;
5377
+ workspaceId: number;
5378
+ command: string;
5379
+ content: string;
5380
+ createdAt: any;
5381
+ updatedAt: any;
5382
+ }>;
5383
+ };
5384
+ };
5385
+ export type RemoveQuickReplyMutationVariables = Exact<{
5386
+ input: QuickReplyRemoveInput;
5387
+ }>;
5388
+ export type RemoveQuickReplyMutation = {
5389
+ __typename?: 'Mutation';
5390
+ removeQuickReply: {
5391
+ __typename?: 'QuickReply';
5392
+ id: string;
5393
+ workspaceId: number;
5394
+ command: string;
5395
+ content: string;
5396
+ createdAt: any;
5397
+ updatedAt: any;
5398
+ };
5399
+ };
5116
5400
  export type UndeleteClientMutationVariables = Exact<{
5117
5401
  input: ClientInput;
5118
5402
  }>;
@@ -5238,6 +5522,36 @@ export type BulkPatchTagsMutation = {
5238
5522
  __typename?: 'Mutation';
5239
5523
  bulkPatchTags: never;
5240
5524
  };
5525
+ export type CreateAgentWithApiKeyMutationVariables = Exact<{
5526
+ input: AgentCreateWithApiKeyInput;
5527
+ }>;
5528
+ export type CreateAgentWithApiKeyMutation = {
5529
+ __typename?: 'Mutation';
5530
+ createAgentWithApiKey: {
5531
+ __typename?: 'AgentWithApiKeyPayload';
5532
+ agent: {
5533
+ __typename?: 'Agent';
5534
+ workspaceId: number;
5535
+ id: string;
5536
+ userId: string;
5537
+ name: string;
5538
+ surname: string;
5539
+ email: string;
5540
+ avatar?: string | null;
5541
+ assignable: boolean;
5542
+ createdAt: any;
5543
+ };
5544
+ apiKey: {
5545
+ __typename?: 'ApiKey';
5546
+ workspaceId: number;
5547
+ id: string;
5548
+ key?: string | null;
5549
+ label: string;
5550
+ agentId?: string | null;
5551
+ createdAt: any;
5552
+ };
5553
+ };
5554
+ };
5241
5555
  export type CreateIntegrationMutationVariables = Exact<{
5242
5556
  input: IntegrationCreateInput;
5243
5557
  }>;
@@ -5461,7 +5775,6 @@ export type WorkspaceFragment = {
5461
5775
  contactPersonEmail?: string | null;
5462
5776
  contactPersonPhoneNumber?: string | null;
5463
5777
  accountId?: string | null;
5464
- subscriptionType?: string | null;
5465
5778
  createDate: any;
5466
5779
  };
5467
5780
  export type WorkspaceSettingsFragment = {
@@ -5546,7 +5859,6 @@ export type WorkspacesQuery = {
5546
5859
  contactPersonEmail?: string | null;
5547
5860
  contactPersonPhoneNumber?: string | null;
5548
5861
  accountId?: string | null;
5549
- subscriptionType?: string | null;
5550
5862
  createDate: any;
5551
5863
  }>;
5552
5864
  pageInfo: {
@@ -5572,6 +5884,7 @@ export declare const TagFragmentDoc: Apollo.DocumentNode;
5572
5884
  export declare const MessageTemplateDetailsFragmentDoc: Apollo.DocumentNode;
5573
5885
  export declare const MessageTemplateFragmentDoc: Apollo.DocumentNode;
5574
5886
  export declare const ClientFragmentDoc: Apollo.DocumentNode;
5887
+ export declare const QuickReplyFragmentDoc: Apollo.DocumentNode;
5575
5888
  export declare const ApiKeyFragmentDoc: Apollo.DocumentNode;
5576
5889
  export declare const IntegrationFragmentDoc: Apollo.DocumentNode;
5577
5890
  export declare const WebhookFragmentDoc: Apollo.DocumentNode;
@@ -6088,6 +6401,31 @@ export declare function refetchMeQuery(variables: MeQueryVariables): {
6088
6401
  input: InputInitWorkspace;
6089
6402
  }>;
6090
6403
  };
6404
+ export declare const UnassignUserRoleDocument: Apollo.DocumentNode;
6405
+ export type UnassignUserRoleMutationFn = Apollo.MutationFunction<UnassignUserRoleMutation, UnassignUserRoleMutationVariables>;
6406
+ /**
6407
+ * __useUnassignUserRoleMutation__
6408
+ *
6409
+ * To run a mutation, you first call `useUnassignUserRoleMutation` within a React component and pass it any options that fit your needs.
6410
+ * When your component renders, `useUnassignUserRoleMutation` returns a tuple that includes:
6411
+ * - A mutate function that you can call at any time to execute the mutation
6412
+ * - An object with fields that represent the current status of the mutation's execution
6413
+ *
6414
+ * @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;
6415
+ *
6416
+ * @example
6417
+ * const [unassignUserRoleMutation, { data, loading, error }] = useUnassignUserRoleMutation({
6418
+ * variables: {
6419
+ * input: // value for 'input'
6420
+ * },
6421
+ * });
6422
+ */
6423
+ export declare function useUnassignUserRoleMutation(baseOptions?: Apollo.MutationHookOptions<UnassignUserRoleMutation, UnassignUserRoleMutationVariables>): Apollo.MutationTuple<UnassignUserRoleMutation, Exact<{
6424
+ input: InputUnassignUserRole;
6425
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
6426
+ export type UnassignUserRoleMutationHookResult = ReturnType<typeof useUnassignUserRoleMutation>;
6427
+ export type UnassignUserRoleMutationResult = Apollo.MutationResult<UnassignUserRoleMutation>;
6428
+ export type UnassignUserRoleMutationOptions = Apollo.BaseMutationOptions<UnassignUserRoleMutation, UnassignUserRoleMutationVariables>;
6091
6429
  export declare const UsersRolesDocument: Apollo.DocumentNode;
6092
6430
  /**
6093
6431
  * __useUsersRolesQuery__
@@ -6816,6 +7154,47 @@ export declare function useAssignConvMutation(baseOptions?: Apollo.MutationHookO
6816
7154
  export type AssignConvMutationHookResult = ReturnType<typeof useAssignConvMutation>;
6817
7155
  export type AssignConvMutationResult = Apollo.MutationResult<AssignConvMutation>;
6818
7156
  export type AssignConvMutationOptions = Apollo.BaseMutationOptions<AssignConvMutation, AssignConvMutationVariables>;
7157
+ export declare const ConvDocument: Apollo.DocumentNode;
7158
+ /**
7159
+ * __useConvQuery__
7160
+ *
7161
+ * To run a query within a React component, call `useConvQuery` and pass it any options that fit your needs.
7162
+ * When your component renders, `useConvQuery` returns an object from Apollo Client that contains loading, error, and data properties
7163
+ * you can use to render your UI.
7164
+ *
7165
+ * @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;
7166
+ *
7167
+ * @example
7168
+ * const { data, loading, error } = useConvQuery({
7169
+ * variables: {
7170
+ * input: // value for 'input'
7171
+ * },
7172
+ * });
7173
+ */
7174
+ export declare function useConvQuery(baseOptions: Apollo.QueryHookOptions<ConvQuery, ConvQueryVariables> & ({
7175
+ variables: ConvQueryVariables;
7176
+ skip?: boolean;
7177
+ } | {
7178
+ skip: boolean;
7179
+ })): Apollo.QueryResult<ConvQuery, Exact<{
7180
+ input: ConvInput;
7181
+ }>>;
7182
+ export declare function useConvLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConvQuery, ConvQueryVariables>): Apollo.LazyQueryResultTuple<ConvQuery, Exact<{
7183
+ input: ConvInput;
7184
+ }>>;
7185
+ export declare function useConvSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConvQuery, ConvQueryVariables>): Apollo.UseSuspenseQueryResult<ConvQuery | undefined, Exact<{
7186
+ input: ConvInput;
7187
+ }>>;
7188
+ export type ConvQueryHookResult = ReturnType<typeof useConvQuery>;
7189
+ export type ConvLazyQueryHookResult = ReturnType<typeof useConvLazyQuery>;
7190
+ export type ConvSuspenseQueryHookResult = ReturnType<typeof useConvSuspenseQuery>;
7191
+ export type ConvQueryResult = Apollo.QueryResult<ConvQuery, ConvQueryVariables>;
7192
+ export declare function refetchConvQuery(variables: ConvQueryVariables): {
7193
+ query: Apollo.DocumentNode;
7194
+ variables: Exact<{
7195
+ input: ConvInput;
7196
+ }>;
7197
+ };
6819
7198
  export declare const ConvAutoCompleteDocument: Apollo.DocumentNode;
6820
7199
  /**
6821
7200
  * __useConvAutoCompleteQuery__
@@ -6857,6 +7236,47 @@ export declare function refetchConvAutoCompleteQuery(variables: ConvAutoComplete
6857
7236
  input: ConvAutoCompleteInput;
6858
7237
  }>;
6859
7238
  };
7239
+ export declare const ConvEnhanceMessageDocument: Apollo.DocumentNode;
7240
+ /**
7241
+ * __useConvEnhanceMessageQuery__
7242
+ *
7243
+ * To run a query within a React component, call `useConvEnhanceMessageQuery` and pass it any options that fit your needs.
7244
+ * When your component renders, `useConvEnhanceMessageQuery` returns an object from Apollo Client that contains loading, error, and data properties
7245
+ * you can use to render your UI.
7246
+ *
7247
+ * @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;
7248
+ *
7249
+ * @example
7250
+ * const { data, loading, error } = useConvEnhanceMessageQuery({
7251
+ * variables: {
7252
+ * input: // value for 'input'
7253
+ * },
7254
+ * });
7255
+ */
7256
+ export declare function useConvEnhanceMessageQuery(baseOptions: Apollo.QueryHookOptions<ConvEnhanceMessageQuery, ConvEnhanceMessageQueryVariables> & ({
7257
+ variables: ConvEnhanceMessageQueryVariables;
7258
+ skip?: boolean;
7259
+ } | {
7260
+ skip: boolean;
7261
+ })): Apollo.QueryResult<ConvEnhanceMessageQuery, Exact<{
7262
+ input: ConvEnhanceMessageInput;
7263
+ }>>;
7264
+ export declare function useConvEnhanceMessageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConvEnhanceMessageQuery, ConvEnhanceMessageQueryVariables>): Apollo.LazyQueryResultTuple<ConvEnhanceMessageQuery, Exact<{
7265
+ input: ConvEnhanceMessageInput;
7266
+ }>>;
7267
+ export declare function useConvEnhanceMessageSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConvEnhanceMessageQuery, ConvEnhanceMessageQueryVariables>): Apollo.UseSuspenseQueryResult<ConvEnhanceMessageQuery | undefined, Exact<{
7268
+ input: ConvEnhanceMessageInput;
7269
+ }>>;
7270
+ export type ConvEnhanceMessageQueryHookResult = ReturnType<typeof useConvEnhanceMessageQuery>;
7271
+ export type ConvEnhanceMessageLazyQueryHookResult = ReturnType<typeof useConvEnhanceMessageLazyQuery>;
7272
+ export type ConvEnhanceMessageSuspenseQueryHookResult = ReturnType<typeof useConvEnhanceMessageSuspenseQuery>;
7273
+ export type ConvEnhanceMessageQueryResult = Apollo.QueryResult<ConvEnhanceMessageQuery, ConvEnhanceMessageQueryVariables>;
7274
+ export declare function refetchConvEnhanceMessageQuery(variables: ConvEnhanceMessageQueryVariables): {
7275
+ query: Apollo.DocumentNode;
7276
+ variables: Exact<{
7277
+ input: ConvEnhanceMessageInput;
7278
+ }>;
7279
+ };
6860
7280
  export declare const ConvSummaryDocument: Apollo.DocumentNode;
6861
7281
  /**
6862
7282
  * __useConvSummaryQuery__
@@ -7429,6 +7849,31 @@ export declare function refetchWabaMessageTemplatesQuery(variables: WabaMessageT
7429
7849
  input: WabaMessageTemplatesInput;
7430
7850
  }>;
7431
7851
  };
7852
+ export declare const AddQuickReplyDocument: Apollo.DocumentNode;
7853
+ export type AddQuickReplyMutationFn = Apollo.MutationFunction<AddQuickReplyMutation, AddQuickReplyMutationVariables>;
7854
+ /**
7855
+ * __useAddQuickReplyMutation__
7856
+ *
7857
+ * To run a mutation, you first call `useAddQuickReplyMutation` within a React component and pass it any options that fit your needs.
7858
+ * When your component renders, `useAddQuickReplyMutation` returns a tuple that includes:
7859
+ * - A mutate function that you can call at any time to execute the mutation
7860
+ * - An object with fields that represent the current status of the mutation's execution
7861
+ *
7862
+ * @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;
7863
+ *
7864
+ * @example
7865
+ * const [addQuickReplyMutation, { data, loading, error }] = useAddQuickReplyMutation({
7866
+ * variables: {
7867
+ * input: // value for 'input'
7868
+ * },
7869
+ * });
7870
+ */
7871
+ export declare function useAddQuickReplyMutation(baseOptions?: Apollo.MutationHookOptions<AddQuickReplyMutation, AddQuickReplyMutationVariables>): Apollo.MutationTuple<AddQuickReplyMutation, Exact<{
7872
+ input: QuickReplyAddInput;
7873
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
7874
+ export type AddQuickReplyMutationHookResult = ReturnType<typeof useAddQuickReplyMutation>;
7875
+ export type AddQuickReplyMutationResult = Apollo.MutationResult<AddQuickReplyMutation>;
7876
+ export type AddQuickReplyMutationOptions = Apollo.BaseMutationOptions<AddQuickReplyMutation, AddQuickReplyMutationVariables>;
7432
7877
  export declare const BulkDeleteClientsDocument: Apollo.DocumentNode;
7433
7878
  export type BulkDeleteClientsMutationFn = Apollo.MutationFunction<BulkDeleteClientsMutation, BulkDeleteClientsMutationVariables>;
7434
7879
  /**
@@ -7823,6 +8268,97 @@ export declare function usePatchClientMutation(baseOptions?: Apollo.MutationHook
7823
8268
  export type PatchClientMutationHookResult = ReturnType<typeof usePatchClientMutation>;
7824
8269
  export type PatchClientMutationResult = Apollo.MutationResult<PatchClientMutation>;
7825
8270
  export type PatchClientMutationOptions = Apollo.BaseMutationOptions<PatchClientMutation, PatchClientMutationVariables>;
8271
+ export declare const PatchQuickReplyDocument: Apollo.DocumentNode;
8272
+ export type PatchQuickReplyMutationFn = Apollo.MutationFunction<PatchQuickReplyMutation, PatchQuickReplyMutationVariables>;
8273
+ /**
8274
+ * __usePatchQuickReplyMutation__
8275
+ *
8276
+ * To run a mutation, you first call `usePatchQuickReplyMutation` within a React component and pass it any options that fit your needs.
8277
+ * When your component renders, `usePatchQuickReplyMutation` returns a tuple that includes:
8278
+ * - A mutate function that you can call at any time to execute the mutation
8279
+ * - An object with fields that represent the current status of the mutation's execution
8280
+ *
8281
+ * @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;
8282
+ *
8283
+ * @example
8284
+ * const [patchQuickReplyMutation, { data, loading, error }] = usePatchQuickReplyMutation({
8285
+ * variables: {
8286
+ * input: // value for 'input'
8287
+ * },
8288
+ * });
8289
+ */
8290
+ export declare function usePatchQuickReplyMutation(baseOptions?: Apollo.MutationHookOptions<PatchQuickReplyMutation, PatchQuickReplyMutationVariables>): Apollo.MutationTuple<PatchQuickReplyMutation, Exact<{
8291
+ input: QuickReplyPatchInput;
8292
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
8293
+ export type PatchQuickReplyMutationHookResult = ReturnType<typeof usePatchQuickReplyMutation>;
8294
+ export type PatchQuickReplyMutationResult = Apollo.MutationResult<PatchQuickReplyMutation>;
8295
+ export type PatchQuickReplyMutationOptions = Apollo.BaseMutationOptions<PatchQuickReplyMutation, PatchQuickReplyMutationVariables>;
8296
+ export declare const QuickRepliesDocument: Apollo.DocumentNode;
8297
+ /**
8298
+ * __useQuickRepliesQuery__
8299
+ *
8300
+ * To run a query within a React component, call `useQuickRepliesQuery` and pass it any options that fit your needs.
8301
+ * When your component renders, `useQuickRepliesQuery` returns an object from Apollo Client that contains loading, error, and data properties
8302
+ * you can use to render your UI.
8303
+ *
8304
+ * @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;
8305
+ *
8306
+ * @example
8307
+ * const { data, loading, error } = useQuickRepliesQuery({
8308
+ * variables: {
8309
+ * input: // value for 'input'
8310
+ * },
8311
+ * });
8312
+ */
8313
+ export declare function useQuickRepliesQuery(baseOptions: Apollo.QueryHookOptions<QuickRepliesQuery, QuickRepliesQueryVariables> & ({
8314
+ variables: QuickRepliesQueryVariables;
8315
+ skip?: boolean;
8316
+ } | {
8317
+ skip: boolean;
8318
+ })): Apollo.QueryResult<QuickRepliesQuery, Exact<{
8319
+ input: QuickRepliesInput;
8320
+ }>>;
8321
+ export declare function useQuickRepliesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<QuickRepliesQuery, QuickRepliesQueryVariables>): Apollo.LazyQueryResultTuple<QuickRepliesQuery, Exact<{
8322
+ input: QuickRepliesInput;
8323
+ }>>;
8324
+ export declare function useQuickRepliesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<QuickRepliesQuery, QuickRepliesQueryVariables>): Apollo.UseSuspenseQueryResult<QuickRepliesQuery | undefined, Exact<{
8325
+ input: QuickRepliesInput;
8326
+ }>>;
8327
+ export type QuickRepliesQueryHookResult = ReturnType<typeof useQuickRepliesQuery>;
8328
+ export type QuickRepliesLazyQueryHookResult = ReturnType<typeof useQuickRepliesLazyQuery>;
8329
+ export type QuickRepliesSuspenseQueryHookResult = ReturnType<typeof useQuickRepliesSuspenseQuery>;
8330
+ export type QuickRepliesQueryResult = Apollo.QueryResult<QuickRepliesQuery, QuickRepliesQueryVariables>;
8331
+ export declare function refetchQuickRepliesQuery(variables: QuickRepliesQueryVariables): {
8332
+ query: Apollo.DocumentNode;
8333
+ variables: Exact<{
8334
+ input: QuickRepliesInput;
8335
+ }>;
8336
+ };
8337
+ export declare const RemoveQuickReplyDocument: Apollo.DocumentNode;
8338
+ export type RemoveQuickReplyMutationFn = Apollo.MutationFunction<RemoveQuickReplyMutation, RemoveQuickReplyMutationVariables>;
8339
+ /**
8340
+ * __useRemoveQuickReplyMutation__
8341
+ *
8342
+ * To run a mutation, you first call `useRemoveQuickReplyMutation` within a React component and pass it any options that fit your needs.
8343
+ * When your component renders, `useRemoveQuickReplyMutation` returns a tuple that includes:
8344
+ * - A mutate function that you can call at any time to execute the mutation
8345
+ * - An object with fields that represent the current status of the mutation's execution
8346
+ *
8347
+ * @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;
8348
+ *
8349
+ * @example
8350
+ * const [removeQuickReplyMutation, { data, loading, error }] = useRemoveQuickReplyMutation({
8351
+ * variables: {
8352
+ * input: // value for 'input'
8353
+ * },
8354
+ * });
8355
+ */
8356
+ export declare function useRemoveQuickReplyMutation(baseOptions?: Apollo.MutationHookOptions<RemoveQuickReplyMutation, RemoveQuickReplyMutationVariables>): Apollo.MutationTuple<RemoveQuickReplyMutation, Exact<{
8357
+ input: QuickReplyRemoveInput;
8358
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
8359
+ export type RemoveQuickReplyMutationHookResult = ReturnType<typeof useRemoveQuickReplyMutation>;
8360
+ export type RemoveQuickReplyMutationResult = Apollo.MutationResult<RemoveQuickReplyMutation>;
8361
+ export type RemoveQuickReplyMutationOptions = Apollo.BaseMutationOptions<RemoveQuickReplyMutation, RemoveQuickReplyMutationVariables>;
7826
8362
  export declare const UndeleteClientDocument: Apollo.DocumentNode;
7827
8363
  export type UndeleteClientMutationFn = Apollo.MutationFunction<UndeleteClientMutation, UndeleteClientMutationVariables>;
7828
8364
  /**
@@ -7980,6 +8516,31 @@ export declare function useBulkPatchTagsMutation(baseOptions?: Apollo.MutationHo
7980
8516
  export type BulkPatchTagsMutationHookResult = ReturnType<typeof useBulkPatchTagsMutation>;
7981
8517
  export type BulkPatchTagsMutationResult = Apollo.MutationResult<BulkPatchTagsMutation>;
7982
8518
  export type BulkPatchTagsMutationOptions = Apollo.BaseMutationOptions<BulkPatchTagsMutation, BulkPatchTagsMutationVariables>;
8519
+ export declare const CreateAgentWithApiKeyDocument: Apollo.DocumentNode;
8520
+ export type CreateAgentWithApiKeyMutationFn = Apollo.MutationFunction<CreateAgentWithApiKeyMutation, CreateAgentWithApiKeyMutationVariables>;
8521
+ /**
8522
+ * __useCreateAgentWithApiKeyMutation__
8523
+ *
8524
+ * To run a mutation, you first call `useCreateAgentWithApiKeyMutation` within a React component and pass it any options that fit your needs.
8525
+ * When your component renders, `useCreateAgentWithApiKeyMutation` returns a tuple that includes:
8526
+ * - A mutate function that you can call at any time to execute the mutation
8527
+ * - An object with fields that represent the current status of the mutation's execution
8528
+ *
8529
+ * @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;
8530
+ *
8531
+ * @example
8532
+ * const [createAgentWithApiKeyMutation, { data, loading, error }] = useCreateAgentWithApiKeyMutation({
8533
+ * variables: {
8534
+ * input: // value for 'input'
8535
+ * },
8536
+ * });
8537
+ */
8538
+ export declare function useCreateAgentWithApiKeyMutation(baseOptions?: Apollo.MutationHookOptions<CreateAgentWithApiKeyMutation, CreateAgentWithApiKeyMutationVariables>): Apollo.MutationTuple<CreateAgentWithApiKeyMutation, Exact<{
8539
+ input: AgentCreateWithApiKeyInput;
8540
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
8541
+ export type CreateAgentWithApiKeyMutationHookResult = ReturnType<typeof useCreateAgentWithApiKeyMutation>;
8542
+ export type CreateAgentWithApiKeyMutationResult = Apollo.MutationResult<CreateAgentWithApiKeyMutation>;
8543
+ export type CreateAgentWithApiKeyMutationOptions = Apollo.BaseMutationOptions<CreateAgentWithApiKeyMutation, CreateAgentWithApiKeyMutationVariables>;
7983
8544
  export declare const CreateIntegrationDocument: Apollo.DocumentNode;
7984
8545
  export type CreateIntegrationMutationFn = Apollo.MutationFunction<CreateIntegrationMutation, CreateIntegrationMutationVariables>;
7985
8546
  /**