@bcrumbs.net/inbox 0.0.23 → 0.0.24

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.
@@ -122,145 +122,232 @@ export type AIsPayload = {
122
122
  __typename?: 'AIsPayload';
123
123
  nodes?: Maybe<Array<Ai>>;
124
124
  };
125
+ /** Agent is a user that can be assigned to a conversation. A system user can have only one agent. */
125
126
  export type Agent = {
126
127
  __typename?: 'Agent';
128
+ /** The avatar of the agent. We are using Gravatar for the avatar. However it's possible to add here the url of the avatar. */
127
129
  avatar?: Maybe<Scalars['String']['output']>;
128
130
  createdAt: Scalars['DateTime']['output'];
131
+ /** The email of the agent. It is the same as the email of the invited user to the workspace. */
129
132
  email: Scalars['String']['output'];
130
133
  id: Scalars['ID']['output'];
134
+ /** The name of the agent. */
131
135
  name: Scalars['String']['output'];
136
+ /** The surname of the agent. */
132
137
  surname: Scalars['String']['output'];
138
+ /** The user id of the agent. It is the same as the user id of the invited user to the workspace. */
133
139
  userId: Scalars['String']['output'];
134
140
  workspaceId: Scalars['Int']['output'];
135
141
  };
142
+ /** AgentCreateInput is an input of the agent create mutation. */
136
143
  export type AgentCreateInput = {
144
+ /** The email of the agent. It is the same as the email of the invited user to the workspace. */
137
145
  email: Scalars['String']['input'];
146
+ /** The name of the agent. */
138
147
  name: Scalars['String']['input'];
148
+ /** The surname of the agent. */
139
149
  surname: Scalars['String']['input'];
150
+ /** The user id of the agent. It is the same as the user id of the invited user to the workspace. */
140
151
  userId: Scalars['String']['input'];
141
152
  workspaceId: Scalars['Int']['input'];
142
153
  };
154
+ /** AgentInput is an input of the agent query. */
143
155
  export type AgentInput = {
144
156
  id: Scalars['ID']['input'];
145
157
  workspaceId: Scalars['Int']['input'];
146
158
  };
159
+ /** AgentPatchInput is an input of the agent patch mutation. */
147
160
  export type AgentPatchInput = {
148
161
  id: Scalars['ID']['input'];
162
+ /** The name of the agent. */
149
163
  name: Scalars['String']['input'];
164
+ /** The surname of the agent. */
150
165
  surname: Scalars['String']['input'];
151
166
  workspaceId: Scalars['Int']['input'];
152
167
  };
168
+ /** AgentReport is a report of the agent breaked down by day. It is used to understand the agent's performance. */
153
169
  export type AgentReport = {
154
170
  __typename?: 'AgentReport';
155
171
  agentId: Scalars['ID']['output'];
172
+ /** The number of messages the agent has sent. */
156
173
  agentMessagesCount: Scalars['Int']['output'];
174
+ /** The average time to complete the conversation. It is the time between the first message from the client until the conversation is closed. */
157
175
  avgConversationTime: Scalars['Int']['output'];
176
+ /** The average time to first response. It is the time between the first message from the client and the first message from the agent. */
158
177
  avgFirstResponseTime: Scalars['Int']['output'];
178
+ /** The number of messages the agent has received from the client. */
159
179
  clientMessageCount: Scalars['Int']['output'];
180
+ /** The number of conversations the agent has participated in. */
160
181
  conversationCount: Scalars['Int']['output'];
161
182
  createdAt: Scalars['DateTime']['output'];
162
183
  id: Scalars['ID']['output'];
163
184
  workspaceId: Scalars['Int']['output'];
164
185
  };
186
+ /** AgentsInput is an input of the agents query. */
165
187
  export type AgentsInput = {
188
+ /** The conversation id. Used to filter the agents by the conversation id. */
166
189
  conversationId?: InputMaybe<Scalars['String']['input']>;
190
+ /** The email of the agent. Used to filter the agents by the email. */
167
191
  email?: InputMaybe<Scalars['String']['input']>;
192
+ /** The name of the agent. Used to filter the agents by the name. */
168
193
  name?: InputMaybe<Scalars['String']['input']>;
194
+ /** The surname of the agent. Used to filter the agents by the surname. */
169
195
  surname?: InputMaybe<Scalars['String']['input']>;
170
196
  workspaceId: Scalars['Int']['input'];
171
197
  };
198
+ /** AgentsPayload is a payload of the agents query. */
172
199
  export type AgentsPayload = {
173
200
  __typename?: 'AgentsPayload';
174
201
  nodes?: Maybe<Array<Agent>>;
175
202
  pageInfo?: Maybe<PageInfo>;
176
203
  };
204
+ /** AgentsReportInput is an input of the agents report query. */
177
205
  export type AgentsReportInput = {
206
+ /** The agent id. */
178
207
  agentId?: InputMaybe<Scalars['ID']['input']>;
208
+ /** The end date of the report. */
179
209
  endDate: Scalars['DateTime']['input'];
210
+ /** The start date of the report. */
180
211
  startDate: Scalars['DateTime']['input'];
181
212
  workspaceId: Scalars['Int']['input'];
182
213
  };
214
+ /** AgentsReportPayload is a payload of the agents report query. */
183
215
  export type AgentsReportPayload = {
184
216
  __typename?: 'AgentsReportPayload';
185
217
  nodes?: Maybe<Array<AgentReport>>;
186
218
  };
219
+ /** ApiKey is a key that can be used to authenticate the requests to the API. */
187
220
  export type ApiKey = {
188
221
  __typename?: 'ApiKey';
222
+ /** The date and time when the API key was created. */
189
223
  createdAt: Scalars['DateTime']['output'];
190
224
  id: Scalars['ID']['output'];
225
+ /** The key of the API key. */
191
226
  key: Scalars['String']['output'];
227
+ /** The label of the API key. */
192
228
  label: Scalars['String']['output'];
193
229
  workspaceId: Scalars['Int']['output'];
194
230
  };
231
+ /** ApiKeyDeleteInput is an input of the api key delete mutation. */
195
232
  export type ApiKeyDeleteInput = {
196
233
  id: Scalars['ID']['input'];
197
234
  workspaceId: Scalars['Int']['input'];
198
235
  };
236
+ /** ApiKeyGenInput is an input of the api key generate mutation. */
199
237
  export type ApiKeyGenInput = {
238
+ /** The label of the API key. */
200
239
  label: Scalars['String']['input'];
201
240
  workspaceId: Scalars['Int']['input'];
202
241
  };
242
+ /** ApiKeysInput is an input of the api keys query. */
203
243
  export type ApiKeysInput = {
244
+ /** The label of the API key. Used to filter the API keys by the label. */
204
245
  label?: InputMaybe<Scalars['String']['input']>;
205
246
  workspaceId: Scalars['Int']['input'];
206
247
  };
248
+ /** ApiKeysPayload is a payload of the api keys query. */
207
249
  export type ApiKeysPayload = {
208
250
  __typename?: 'ApiKeysPayload';
209
251
  nodes?: Maybe<Array<ApiKey>>;
210
252
  pageInfo?: Maybe<PageInfo>;
211
253
  };
254
+ /**
255
+ * Broadcast is entity that represents a broadcast of a template to a set of clients.
256
+ * When the broadcast is created, it will be in draft state. In order to send the broadcast, you should launch it by using the launchBroadcast mutation.
257
+ */
212
258
  export type Broadcast = {
213
259
  __typename?: 'Broadcast';
260
+ /** The stage of the clients that will receive the broadcast. (Used to target a specific stage of clients) */
214
261
  clientStageId?: Maybe<Scalars['String']['output']>;
262
+ /** The tags of the clients that will receive the broadcast. (Used to target a specific group of clients) */
215
263
  clientTags?: Maybe<Array<Scalars['String']['output']>>;
264
+ /** The date and time when the broadcast was completed. */
216
265
  completedAt?: Maybe<Scalars['DateTime']['output']>;
266
+ /** The date and time when the broadcast was created. */
217
267
  createdAt: Scalars['DateTime']['output'];
268
+ /** The error message if the broadcast failed. */
218
269
  error?: Maybe<Scalars['String']['output']>;
270
+ /** The number of clients that failed to receive the broadcast. */
219
271
  failedCount?: Maybe<Scalars['Int']['output']>;
220
272
  id: Scalars['ID']['output'];
273
+ /** The integration/channel id of the broadcast. */
221
274
  integrationId: Scalars['ID']['output'];
275
+ /** The name of the broadcast. */
222
276
  name: Scalars['String']['output'];
277
+ /** The date and time when the broadcast was scheduled. If it's empty, the broadcast will be sent immediately. */
223
278
  scheduledAt?: Maybe<Scalars['DateTime']['output']>;
279
+ /** The date and time when the broadcast was started. */
224
280
  startedAt?: Maybe<Scalars['DateTime']['output']>;
281
+ /** The state of the broadcast. */
225
282
  state: BroadcastState;
283
+ /** The language of the template that will be used to send the broadcast. */
226
284
  templateLang?: Maybe<Scalars['String']['output']>;
285
+ /** The name of the template that will be used to send the broadcast. (It should be the same template name in WhatsApp manager) */
227
286
  templateName: Scalars['String']['output'];
287
+ /** The total number of clients that will receive the broadcast. */
228
288
  totalCount?: Maybe<Scalars['Int']['output']>;
229
289
  workspaceId: Scalars['Int']['output'];
230
290
  };
291
+ /** BroadcastCreateInput is an input of the broadcast create mutation. */
231
292
  export type BroadcastCreateInput = {
293
+ /** The stage of the clients that will receive the broadcast. (Used to target a specific stage of clients) */
232
294
  clientStageId?: InputMaybe<Scalars['String']['input']>;
295
+ /** The tags of the clients that will receive the broadcast. (Used to target a specific group of clients) */
233
296
  clientTags?: InputMaybe<Array<Scalars['String']['input']>>;
297
+ /** The integration/channel id of the broadcast. */
234
298
  integrationId: Scalars['ID']['input'];
299
+ /** The name of the broadcast. */
235
300
  name: Scalars['String']['input'];
301
+ /** The date and time when the broadcast was scheduled. If it's empty, the broadcast will be sent immediately. */
236
302
  scheduledAt?: InputMaybe<Scalars['DateTime']['input']>;
303
+ /** The language of the template that will be used to send the broadcast. */
237
304
  templateLang?: InputMaybe<Scalars['String']['input']>;
305
+ /** The name of the template that will be used to send the broadcast. (It should be the same template name in WhatsApp manager) */
238
306
  templateName: Scalars['String']['input'];
239
307
  workspaceId: Scalars['Int']['input'];
240
308
  };
309
+ /** BroadcastDeleteInput is an input of the broadcast delete mutation. */
241
310
  export type BroadcastDeleteInput = {
242
311
  id: Scalars['ID']['input'];
243
312
  workspaceId: Scalars['Int']['input'];
244
313
  };
314
+ /** BroadcastInput is an input of the broadcast query. */
245
315
  export type BroadcastInput = {
246
316
  id: Scalars['ID']['input'];
247
317
  workspaceId: Scalars['Int']['input'];
248
318
  };
319
+ /** BroadcastLaunchInput is an input of the broadcast launch mutation. */
249
320
  export type BroadcastLaunchInput = {
250
321
  id: Scalars['ID']['input'];
251
322
  workspaceId: Scalars['Int']['input'];
252
323
  };
324
+ /** BroadcastPatchInput is an input of the broadcast patch mutation. */
253
325
  export type BroadcastPatchInput = {
326
+ /** The stage of the clients that will receive the broadcast. (Used to target a specific stage of clients) */
254
327
  clientStageId?: InputMaybe<Scalars['String']['input']>;
328
+ /** The tags of the clients that will receive the broadcast. (Used to target a specific group of clients) */
255
329
  clientTags?: InputMaybe<Array<Scalars['String']['input']>>;
256
330
  id: Scalars['ID']['input'];
331
+ /** The integration/channel id of the broadcast. */
257
332
  integrationId?: InputMaybe<Scalars['ID']['input']>;
333
+ /** The name of the broadcast. */
258
334
  name?: InputMaybe<Scalars['String']['input']>;
335
+ /** The date and time when the broadcast was scheduled. If it's empty, the broadcast will be sent immediately. */
259
336
  scheduledAt?: InputMaybe<Scalars['DateTime']['input']>;
337
+ /** The language of the template that will be used to send the broadcast. */
260
338
  templateLang?: InputMaybe<Scalars['String']['input']>;
339
+ /** The name of the template that will be used to send the broadcast. (It should be the same template name in WhatsApp manager) */
261
340
  templateName: Scalars['String']['input'];
262
341
  workspaceId: Scalars['Int']['input'];
263
342
  };
343
+ /**
344
+ * BroadcastState is the state of the broadcast.
345
+ * - draft: The broadcast is in draft mode.
346
+ * - scheduled: The broadcast is scheduled to be sent.
347
+ * - inProgress: The broadcast is in progress (Being sent to the clients).
348
+ * - completed: The broadcast is completed (All messages are sent to the clients).
349
+ * - failed: The broadcast is failed (Some messages are not sent to the clients).
350
+ */
264
351
  export declare const BroadcastState: {
265
352
  readonly COMPLETED: "completed";
266
353
  readonly DRAFT: "draft";
@@ -269,196 +356,365 @@ export declare const BroadcastState: {
269
356
  readonly SCHEDULED: "scheduled";
270
357
  };
271
358
  export type BroadcastState = typeof BroadcastState[keyof typeof BroadcastState];
359
+ /** BroadcastsInput is an input of the broadcasts query. */
272
360
  export type BroadcastsInput = {
361
+ /** The integration/channel id of the broadcast. Used to filter the broadcasts by the integration/channel id. */
273
362
  integrationId?: InputMaybe<Scalars['ID']['input']>;
363
+ /** The name of the broadcast. Used to filter the broadcasts by the name. */
274
364
  name?: InputMaybe<Scalars['String']['input']>;
365
+ /** The state of the broadcast. Used to filter the broadcasts by the state. */
275
366
  state?: InputMaybe<BroadcastState>;
367
+ /** The name of the template that will be used to send the broadcast. Used to filter the broadcasts by the template name. */
276
368
  templateName?: InputMaybe<Scalars['String']['input']>;
277
369
  workspaceId: Scalars['Int']['input'];
278
370
  };
371
+ /** BroadcastsPayload is a payload of the broadcasts query. */
279
372
  export type BroadcastsPayload = {
280
373
  __typename?: 'BroadcastsPayload';
281
374
  nodes?: Maybe<Array<Broadcast>>;
282
375
  pageInfo?: Maybe<PageInfo>;
283
376
  };
377
+ /** Client is an entity that represents a client (The contact that is sending messages to a workspace channel). */
284
378
  export type Client = {
285
379
  __typename?: 'Client';
380
+ /** The address of the client. It can be modified by the user. */
286
381
  address?: Maybe<Scalars['String']['output']>;
382
+ /** The city of the client. It can be modified by the user. */
287
383
  city?: Maybe<Scalars['String']['output']>;
384
+ /** The code of the client. It can be modified by the user. */
288
385
  code?: Maybe<Scalars['String']['output']>;
386
+ /** The country of the client. It can be modified by the user. */
289
387
  country?: Maybe<Scalars['String']['output']>;
388
+ /** The date and time when the client was created. */
290
389
  createdAt: Scalars['DateTime']['output'];
390
+ /** The email of the client. It can be modified by the user. */
291
391
  email?: Maybe<Scalars['String']['output']>;
392
+ /** The external client id of the client (The id of the client in the external system, it will be the phone number in case of WhatsApp integration). */
292
393
  externalClientId?: Maybe<Scalars['String']['output']>;
293
394
  id: Scalars['ID']['output'];
395
+ /** The name of the client. It can be modified by the user. */
294
396
  name?: Maybe<Scalars['String']['output']>;
397
+ /** The phone of the client. It cannot be modified in case of WhatsApp integration. */
295
398
  phone?: Maybe<Scalars['String']['output']>;
399
+ /** The stage of the client. */
296
400
  stageId?: Maybe<Scalars['String']['output']>;
401
+ /** The surname of the client. It can be modified by the user. */
297
402
  surname?: Maybe<Scalars['String']['output']>;
403
+ /** The tags of the client. It can be modified by the user. */
298
404
  tags?: Maybe<Array<Scalars['String']['output']>>;
299
405
  workspaceId: Scalars['Int']['output'];
300
406
  };
407
+ /** ClientCreateInput is an input of the client create mutation. */
301
408
  export type ClientCreateInput = {
409
+ /** The address of the client. */
302
410
  address?: InputMaybe<Scalars['String']['input']>;
411
+ /** The city of the client. */
303
412
  city?: InputMaybe<Scalars['String']['input']>;
413
+ /** The code of the client. */
304
414
  code?: InputMaybe<Scalars['String']['input']>;
415
+ /** The country of the client. */
305
416
  country?: InputMaybe<Scalars['String']['input']>;
417
+ /** The email of the client. */
306
418
  email?: InputMaybe<Scalars['String']['input']>;
307
419
  /** externalClientId is required, in case of WhatsApp integration this will be the phone number of the client without + and without spaces */
308
420
  externalClientId: Scalars['String']['input'];
421
+ /** The name of the client. */
309
422
  name?: InputMaybe<Scalars['String']['input']>;
423
+ /** The phone of the client. */
310
424
  phone?: InputMaybe<Scalars['String']['input']>;
425
+ /** The surname of the client. */
311
426
  surname?: InputMaybe<Scalars['String']['input']>;
312
427
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
313
428
  workspaceId: Scalars['Int']['input'];
314
429
  };
430
+ /** ClientInput is an input of the client query. */
315
431
  export type ClientInput = {
316
432
  id: Scalars['ID']['input'];
317
433
  workspaceId: Scalars['Int']['input'];
318
434
  };
435
+ /** ClientPatchInput is an input of the client patch mutation. */
319
436
  export type ClientPatchInput = {
437
+ /** The address of the client. */
320
438
  address?: InputMaybe<Scalars['String']['input']>;
439
+ /** The city of the client. */
321
440
  city?: InputMaybe<Scalars['String']['input']>;
441
+ /** The code of the client. */
322
442
  code?: InputMaybe<Scalars['String']['input']>;
443
+ /** The country of the client. */
323
444
  country?: InputMaybe<Scalars['String']['input']>;
445
+ /** The email of the client. */
324
446
  email?: InputMaybe<Scalars['String']['input']>;
325
447
  id: Scalars['ID']['input'];
448
+ /** The name of the client. */
326
449
  name?: InputMaybe<Scalars['String']['input']>;
450
+ /** The phone of the client. */
327
451
  phone?: InputMaybe<Scalars['String']['input']>;
452
+ /** The stage of the client. */
328
453
  stage?: InputMaybe<Scalars['String']['input']>;
454
+ /** The surname of the client. */
455
+ surname?: InputMaybe<Scalars['String']['input']>;
456
+ workspaceId: Scalars['Int']['input'];
457
+ };
458
+ /** ClientPutInput is an input of the client put mutation. */
459
+ export type ClientPutInput = {
460
+ /** The address of the client. */
461
+ address?: InputMaybe<Scalars['String']['input']>;
462
+ /** The city of the client. */
463
+ city?: InputMaybe<Scalars['String']['input']>;
464
+ /** The code of the client. */
465
+ code?: InputMaybe<Scalars['String']['input']>;
466
+ /** The country of the client. */
467
+ country?: InputMaybe<Scalars['String']['input']>;
468
+ /** The email of the client. */
469
+ email?: InputMaybe<Scalars['String']['input']>;
470
+ /** externalClientId is required, in case of WhatsApp integration this will be the phone number of the client without + and without spaces */
471
+ externalClientId: Scalars['String']['input'];
472
+ /** The name of the client. */
473
+ name?: InputMaybe<Scalars['String']['input']>;
474
+ /** The phone of the client. */
475
+ phone?: InputMaybe<Scalars['String']['input']>;
476
+ /** The surname of the client. */
329
477
  surname?: InputMaybe<Scalars['String']['input']>;
478
+ /** The tags of the client. */
479
+ tags?: InputMaybe<Array<Scalars['String']['input']>>;
330
480
  workspaceId: Scalars['Int']['input'];
331
481
  };
482
+ /** ClientTagInput is an input of the client tag mutation. */
332
483
  export type ClientTagInput = {
333
484
  clientId: Scalars['ID']['input'];
485
+ /** The tag to add to the client. */
334
486
  tag: Scalars['String']['input'];
335
487
  workspaceId: Scalars['Int']['input'];
336
488
  };
489
+ /** ClientsInput is an input of the clients query. */
337
490
  export type ClientsInput = {
491
+ /** The city of the client. Used to filter the clients by the city. */
338
492
  city?: InputMaybe<Scalars['String']['input']>;
493
+ /** The code of the client. Used to filter the clients by the code. */
339
494
  code?: InputMaybe<Scalars['String']['input']>;
495
+ /** The conversation id of the client. Used to filter the clients by the conversation id. */
340
496
  conversationId?: InputMaybe<Scalars['String']['input']>;
497
+ /** The country of the client. Used to filter the clients by the country. */
341
498
  country?: InputMaybe<Scalars['String']['input']>;
499
+ /** The email of the client. Used to filter the clients by the email. */
342
500
  email?: InputMaybe<Scalars['String']['input']>;
501
+ /** The external client id of the client. Used to filter the clients by the external client id. */
343
502
  externalClientId?: InputMaybe<Scalars['String']['input']>;
503
+ /** The name of the client. Used to filter the clients by the name. */
344
504
  name?: InputMaybe<Scalars['String']['input']>;
505
+ /** The phone of the client. Used to filter the clients by the phone. */
345
506
  phone?: InputMaybe<Scalars['String']['input']>;
507
+ /** The stage of the client. Used to filter the clients by the stage. */
346
508
  stageId?: InputMaybe<Scalars['String']['input']>;
509
+ /** The surname of the client. Used to filter the clients by the surname. */
347
510
  surname?: InputMaybe<Scalars['String']['input']>;
511
+ /** The tags of the client. Used to filter the clients by the tags. */
348
512
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
349
513
  workspaceId: Scalars['Int']['input'];
350
514
  };
515
+ /** ClientsPayload is a payload of the clients query. */
351
516
  export type ClientsPayload = {
352
517
  __typename?: 'ClientsPayload';
353
518
  nodes?: Maybe<Array<Client>>;
354
519
  pageInfo?: Maybe<PageInfo>;
355
520
  };
521
+ /** ConvAssignInput is an input of the conversation assign mutation. */
356
522
  export type ConvAssignInput = {
523
+ /** The agent id to assign to the conversation. */
357
524
  agentId?: InputMaybe<Scalars['ID']['input']>;
525
+ /** The id of the conversation. */
358
526
  convId: Scalars['ID']['input'];
527
+ /** The integration/channel id of the conversation. */
359
528
  integrationId: Scalars['ID']['input'];
360
529
  workspaceId: Scalars['Int']['input'];
361
530
  };
531
+ /** ConvAssignment is a type of the conversation assignment. */
362
532
  export type ConvAssignment = {
363
533
  __typename?: 'ConvAssignment';
534
+ /** The date and time when the conversation was assigned to the agent/AI. */
364
535
  assignDate?: Maybe<Scalars['DateTime']['output']>;
536
+ /** The id of the agent/AI that is assigned to the conversation. */
365
537
  assigneeId: Scalars['ID']['output'];
538
+ /** Whether the conversation is assigned to an AI. */
366
539
  isAi?: Maybe<Scalars['Boolean']['output']>;
367
540
  };
541
+ /** ConvEndInput is an input of the conversation end mutation. */
368
542
  export type ConvEndInput = {
543
+ /** The id of the conversation. */
369
544
  convId: Scalars['ID']['input'];
545
+ /** The integration/channel id of the conversation. */
370
546
  integrationId: Scalars['ID']['input'];
371
547
  workspaceId: Scalars['Int']['input'];
372
548
  };
549
+ /** ConvPatchInput is an input of the conversation patch mutation. */
373
550
  export type ConvPatchInput = {
551
+ /** The id of the conversation. */
374
552
  convId: Scalars['ID']['input'];
553
+ /** The integration/channel id of the conversation. */
375
554
  integrationId: Scalars['ID']['input'];
555
+ /** The order number of the conversation. */
376
556
  orderNo?: InputMaybe<Scalars['String']['input']>;
557
+ /** The stage of the conversation. */
377
558
  stage?: InputMaybe<Scalars['String']['input']>;
378
559
  workspaceId: Scalars['Int']['input'];
379
560
  };
561
+ /**
562
+ * ConvStartInput is an input of the conversation start mutation.
563
+ * It is used to start a conversation with a client in case of WhatsApp integration.
564
+ * Please note: That you cannot send messages to the client afterwards until he replies to the template message.
565
+ */
380
566
  export type ConvStartInput = {
567
+ /** The client id of the conversation. */
381
568
  clientId?: InputMaybe<Scalars['ID']['input']>;
569
+ /** The integration/channel id of the conversation. */
382
570
  integrationId: Scalars['ID']['input'];
571
+ /** The phone number of the client. */
383
572
  phone?: InputMaybe<Scalars['String']['input']>;
573
+ /** The language of the template. */
384
574
  templateLang?: InputMaybe<Scalars['String']['input']>;
575
+ /** The name of the template. */
385
576
  templateName: Scalars['String']['input'];
386
577
  workspaceId: Scalars['Int']['input'];
387
578
  };
579
+ /** ConvTagInput is an input of the conversation tag mutation. */
388
580
  export type ConvTagInput = {
581
+ /** The id of the conversation. */
389
582
  convId: Scalars['ID']['input'];
583
+ /** The integration/channel id of the conversation. */
390
584
  integrationId: Scalars['ID']['input'];
585
+ /** The tag to add to the conversation. */
391
586
  tag: Scalars['String']['input'];
392
587
  workspaceId: Scalars['Int']['input'];
393
588
  };
589
+ /** Conversation is a type of the conversation. */
394
590
  export type Conversation = {
395
591
  __typename?: 'Conversation';
592
+ /** Whether the conversation is assigned to an AI. */
396
593
  aiAssigneed?: Maybe<Scalars['Boolean']['output']>;
594
+ /** The AI id of the conversation. */
397
595
  aiId?: Maybe<Scalars['ID']['output']>;
596
+ /** The assignee of the conversation. */
398
597
  assignee?: Maybe<Agent>;
598
+ /** The assignee id of the conversation. */
399
599
  assigneeId?: Maybe<Scalars['ID']['output']>;
600
+ /** The assignees history of the conversation. */
400
601
  assignees?: Maybe<Array<Maybe<ConvAssignment>>>;
602
+ /** The client of the conversation. */
401
603
  client?: Maybe<ConversationClient>;
604
+ /** The client id of the conversation. */
402
605
  clientId: Scalars['ID']['output'];
606
+ /** The date and time when the conversation was created. */
403
607
  createdAt: Scalars['DateTime']['output'];
608
+ /** Whether the conversation is ended or still open. */
404
609
  ended: Scalars['Boolean']['output'];
610
+ /** The date and time when the conversation was ended. */
405
611
  endedAt?: Maybe<Scalars['DateTime']['output']>;
612
+ /** The external conversation id of the conversation. */
406
613
  externalConversationId?: Maybe<Scalars['String']['output']>;
614
+ /** The id of the conversation. */
407
615
  id: Scalars['ID']['output'];
616
+ /** The integration/channel id of the conversation. */
408
617
  integrationId: Scalars['ID']['output'];
618
+ /** The integration type of the conversation. */
409
619
  integrationType: IntegrationType;
620
+ /** The messages of the conversation. */
410
621
  messages?: Maybe<Array<Message>>;
622
+ /** The order number of the conversation. */
411
623
  orderNo?: Maybe<Scalars['String']['output']>;
624
+ /** The stage id of the conversation. */
412
625
  stageId?: Maybe<Scalars['String']['output']>;
626
+ /** The tags of the conversation. */
413
627
  tags?: Maybe<Array<Scalars['String']['output']>>;
628
+ /** The workspace id of the conversation. */
414
629
  workspaceId: Scalars['Int']['output'];
415
630
  };
631
+ /** ConversationClient is a type of the conversation client, the needed client data coming with the conversation. */
416
632
  export type ConversationClient = {
417
633
  __typename?: 'ConversationClient';
634
+ /** The code of the client. */
418
635
  code?: Maybe<Scalars['String']['output']>;
636
+ /** The name of the client. */
419
637
  name?: Maybe<Scalars['String']['output']>;
638
+ /** The phone of the client. */
420
639
  phone?: Maybe<Scalars['String']['output']>;
640
+ /** The surname of the client. */
421
641
  surname?: Maybe<Scalars['String']['output']>;
422
642
  };
643
+ /** ConversationReport is a report of the workspace breaked down by hour. It is used to understand the workspace performance. */
423
644
  export type ConversationReport = {
424
645
  __typename?: 'ConversationReport';
646
+ /** The number of messages sent by the agents in the hour. */
425
647
  agentMessagesCount: Scalars['Int']['output'];
648
+ /** The average time of the conversation in the hour. */
426
649
  avgConversationTime: Scalars['Int']['output'];
650
+ /** The average time to first response in the hour. */
427
651
  avgFirstResponseTime: Scalars['Int']['output'];
652
+ /** The number of messages sent by the clients in the hour. */
428
653
  clientMessageCount: Scalars['Int']['output'];
654
+ /** The number of conversations in the hour. */
429
655
  conversationCount: Scalars['Int']['output'];
656
+ /** The date and time when the conversation report was created. */
430
657
  createdAt: Scalars['DateTime']['output'];
658
+ /** The hour of the conversation report. */
431
659
  hour: Scalars['Int']['output'];
660
+ /** The id of the conversation report. */
432
661
  id: Scalars['ID']['output'];
662
+ /** The integration/channel id of the conversation. */
433
663
  integrationId: Scalars['ID']['output'];
434
664
  workspaceId: Scalars['Int']['output'];
435
665
  };
666
+ /**
667
+ * ConvsInput is an input of the conversations query.
668
+ * Please note: That if you pass undefined to filters, it will be ignored. If you pass null, it will be considered that you are filtering by null.
669
+ */
436
670
  export type ConvsInput = {
671
+ /** The assignee id of the conversation. Used to filter the conversations by the assignee id. */
437
672
  assigneeId?: InputMaybe<Scalars['ID']['input']>;
673
+ /** The client id of the conversation. Used to filter the conversations by the client id. */
438
674
  clientId?: InputMaybe<Scalars['ID']['input']>;
675
+ /** Whether the conversation is ended or still open. Used to filter the conversations by the ended status. */
439
676
  ended?: InputMaybe<Scalars['Boolean']['input']>;
677
+ /** The external conversation id of the conversation. Used to filter the conversations by the external conversation id. */
440
678
  externalConversationId?: InputMaybe<Scalars['String']['input']>;
679
+ /** The integration/channel id of the conversation. */
441
680
  integrationId?: InputMaybe<Scalars['ID']['input']>;
681
+ /** The name or phone of the conversation. Used to filter the conversations by the name or phone. */
442
682
  nameOrPhone?: InputMaybe<Scalars['String']['input']>;
683
+ /** The stage id of the conversation. Used to filter the conversations by the stage id. */
443
684
  stageId?: InputMaybe<Scalars['String']['input']>;
685
+ /** The tags of the conversation. Used to filter the conversations by the tags. */
444
686
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
445
687
  workspaceId: Scalars['Int']['input'];
446
688
  };
689
+ /** ConvsPayload is a payload of the conversations query. */
447
690
  export type ConvsPayload = {
448
691
  __typename?: 'ConvsPayload';
449
692
  nodes?: Maybe<Array<Conversation>>;
450
693
  pageInfo?: Maybe<PageInfo>;
451
694
  };
695
+ /** ConvsReportInput is an input of the conversations report query. */
452
696
  export type ConvsReportInput = {
697
+ /** The end date of the conversations report. */
453
698
  endDate: Scalars['DateTime']['input'];
699
+ /** The integration/channel id of the conversation. */
454
700
  integrationId?: InputMaybe<Scalars['ID']['input']>;
701
+ /** The start date of the conversations report. */
455
702
  startDate: Scalars['DateTime']['input'];
456
703
  workspaceId: Scalars['Int']['input'];
457
704
  };
705
+ /** ConvsReportPayload is a payload of the conversations report query. */
458
706
  export type ConvsReportPayload = {
459
707
  __typename?: 'ConvsReportPayload';
460
708
  nodes?: Maybe<Array<ConversationReport>>;
461
709
  };
710
+ /**
711
+ * ErrorCode is an enum for the error codes.
712
+ * - UNAUTHENTICATED: The user is not authenticated.
713
+ * - FILE_UPLOAD_ERROR: a file upload error.
714
+ * - FORBIDDEN: The user is forbidden to access the resource.
715
+ * - FILE_NOT_FOUND: The file not found.
716
+ * - RATE_LIMIT_ERROR: The rate limit error.
717
+ */
462
718
  export declare const ErrorCode: {
463
719
  readonly FILE_NOT_FOUND: "FILE_NOT_FOUND";
464
720
  readonly FILE_UPLOAD_ERROR: "FILE_UPLOAD_ERROR";
@@ -471,6 +727,7 @@ export type HelloMessage = {
471
727
  __typename?: 'HelloMessage';
472
728
  message: Scalars['String']['output'];
473
729
  };
730
+ /** IdUpdateDTO is data transfer object for the id update (Updating a message with it's external id) */
474
731
  export type IdUpdateDto = {
475
732
  __typename?: 'IdUpdateDTO';
476
733
  conversationId: Scalars['ID']['output'];
@@ -509,44 +766,69 @@ export type InputUploadSignature = {
509
766
  export type InputUsersRoles = {
510
767
  workspaceId: Scalars['Int']['input'];
511
768
  };
769
+ /** Integration is a type for the integration/channel. */
512
770
  export type Integration = {
513
771
  __typename?: 'Integration';
514
772
  createdAt: Scalars['DateTime']['output'];
515
773
  deletedAt?: Maybe<Scalars['DateTime']['output']>;
774
+ /** The id of the integration. */
516
775
  id: Scalars['ID']['output'];
776
+ /** The name of the integration. */
517
777
  name: Scalars['String']['output'];
518
778
  patchedAt?: Maybe<Scalars['DateTime']['output']>;
779
+ /** The properties of the integration. */
519
780
  properties?: Maybe<Scalars['JSON']['output']>;
781
+ /** The state of the integration. */
520
782
  state: IntegrationState;
783
+ /** The type of the integration. */
521
784
  type: IntegrationType;
785
+ /** The workspace id of the integration. */
522
786
  workspaceId: Scalars['Int']['output'];
523
787
  };
788
+ /** IntegrationCreateInput is an input for the integration creation. */
524
789
  export type IntegrationCreateInput = {
525
790
  integrationProperties: Scalars['JSON']['input'];
526
791
  name: Scalars['String']['input'];
527
792
  type: IntegrationType;
528
793
  workspaceId: Scalars['Int']['input'];
529
794
  };
795
+ /** IntegrationDeleteInput is an input for the integration deletion. */
530
796
  export type IntegrationDeleteInput = {
531
797
  id: Scalars['ID']['input'];
532
798
  workspaceId: Scalars['Int']['input'];
533
799
  };
800
+ /** IntegrationInput is an input for the integration. */
534
801
  export type IntegrationInput = {
535
802
  id: Scalars['ID']['input'];
536
803
  workspaceId: Scalars['Int']['input'];
537
804
  };
805
+ /** IntegrationPatchInput is an input for the integration patching. */
538
806
  export type IntegrationPatchInput = {
539
807
  id: Scalars['ID']['input'];
540
808
  name?: InputMaybe<Scalars['String']['input']>;
541
809
  properties?: InputMaybe<Scalars['JSON']['input']>;
542
810
  workspaceId: Scalars['Int']['input'];
543
811
  };
812
+ /**
813
+ * IntegrationState is an enum for the integration state.
814
+ * - ACTIVE: The integration is active.
815
+ * - PENDING: The integration is pending.
816
+ * - DELETED: The integration is deleted.
817
+ */
544
818
  export declare const IntegrationState: {
545
819
  readonly ACTIVE: "ACTIVE";
546
820
  readonly DELETED: "DELETED";
547
821
  readonly PENDING: "PENDING";
548
822
  };
549
823
  export type IntegrationState = typeof IntegrationState[keyof typeof IntegrationState];
824
+ /**
825
+ * IntegrationType is an enum of the integration types.
826
+ * It can be:
827
+ * - WHATSAPP: WhatsApp integration.
828
+ * - BCWEBCHAT: BC Webchat integration.
829
+ * - FACEBOOK: Facebook integration.
830
+ * - INSTAGRAM: Instagram integration.
831
+ */
550
832
  export declare const IntegrationType: {
551
833
  readonly BCWEBCHAT: "BCWEBCHAT";
552
834
  readonly FACEBOOK: "FACEBOOK";
@@ -554,6 +836,7 @@ export declare const IntegrationType: {
554
836
  readonly WHATSAPP: "WHATSAPP";
555
837
  };
556
838
  export type IntegrationType = typeof IntegrationType[keyof typeof IntegrationType];
839
+ /** IntegrationWithSecrets is a type for the integration/channel with secrets (integrationProperties is included) */
557
840
  export type IntegrationWithSecrets = {
558
841
  __typename?: 'IntegrationWithSecrets';
559
842
  createdAt: Scalars['DateTime']['output'];
@@ -567,14 +850,20 @@ export type IntegrationWithSecrets = {
567
850
  type: IntegrationType;
568
851
  workspaceId: Scalars['Int']['output'];
569
852
  };
853
+ /** IntegrationsInput is an input for the integrations. */
570
854
  export type IntegrationsInput = {
855
+ /** The name of the integration. Used for filtering. */
571
856
  name?: InputMaybe<Scalars['String']['input']>;
857
+ /** The state of the integration. Used for filtering. */
572
858
  state?: InputMaybe<IntegrationState>;
859
+ /** The type of the integration. Used for filtering. */
573
860
  type?: InputMaybe<IntegrationType>;
574
861
  workspaceId: Scalars['Int']['input'];
575
862
  };
863
+ /** IntegrationsPayload is a payload for the integrations. */
576
864
  export type IntegrationsPayload = {
577
865
  __typename?: 'IntegrationsPayload';
866
+ /** The nodes of the integrations. */
578
867
  nodes?: Maybe<Array<Integration>>;
579
868
  };
580
869
  export declare const MediaFormat: {
@@ -590,57 +879,110 @@ export declare const MediaType: {
590
879
  readonly PDF: "PDF";
591
880
  };
592
881
  export type MediaType = typeof MediaType[keyof typeof MediaType];
882
+ /** Message is a type of the message. */
593
883
  export type Message = {
594
884
  __typename?: 'Message';
885
+ /** The id of the agent that sent the message. */
595
886
  agentId?: Maybe<Scalars['ID']['output']>;
887
+ /**
888
+ * The content of the message, in case of media messages, it will be the url of the media.
889
+ * In case of template messages, it will be the template JSON object.
890
+ */
596
891
  content: Scalars['String']['output'];
892
+ /** The context of the message. */
597
893
  context?: Maybe<MessageContext>;
894
+ /** The date and time when the message was created. */
598
895
  createdAt: Scalars['DateTime']['output'];
896
+ /** The external message id of the message. */
599
897
  externalMessageId?: Maybe<Scalars['String']['output']>;
898
+ /** Whether the message is from an agent or the client. */
600
899
  isAgent: Scalars['Boolean']['output'];
900
+ /** The id of the message. */
601
901
  messageId: Scalars['ID']['output'];
902
+ /** The note type of the message. */
602
903
  noteType?: Maybe<NoteType>;
904
+ /** The status of the message. */
603
905
  status?: Maybe<MessageStatus>;
906
+ /** The tags of the message. */
604
907
  tags?: Maybe<Array<Scalars['String']['output']>>;
908
+ /** The type of the message. */
605
909
  type: MessageType;
606
910
  };
911
+ /**
912
+ * MessageContext is a type of the message context.
913
+ * - replyToId: The id of the message to reply to.
914
+ * - replyToContent: The content of the message to reply to.
915
+ * - replyToType: The type of the message to reply to.
916
+ */
607
917
  export type MessageContext = {
608
918
  __typename?: 'MessageContext';
609
919
  replyToContent: Scalars['String']['output'];
610
920
  replyToId?: Maybe<Scalars['ID']['output']>;
611
921
  replyToType: MessageType;
612
922
  };
923
+ /** MessageDTO is data transfer object for the message. */
613
924
  export type MessageDto = {
614
925
  __typename?: 'MessageDTO';
926
+ /** The internal id of the client. */
615
927
  clientId?: Maybe<Scalars['ID']['output']>;
928
+ /** The content of the message. */
616
929
  content: Scalars['String']['output'];
930
+ /** The context of the message. */
617
931
  context?: Maybe<Scalars['JSON']['output']>;
932
+ /** The internal id of the conversation. */
618
933
  conversationId?: Maybe<Scalars['ID']['output']>;
619
934
  createdAt: Scalars['String']['output'];
620
935
  debug?: Maybe<Scalars['Boolean']['output']>;
936
+ /** The external id of the client. */
621
937
  externalClientId: Scalars['String']['output'];
938
+ /** The external info of the client. */
622
939
  externalClientInfo?: Maybe<Scalars['JSON']['output']>;
940
+ /** The external context of the message. */
623
941
  externalContext?: Maybe<Scalars['JSON']['output']>;
942
+ /** The external id of the conversation. */
624
943
  externalConversationId?: Maybe<Scalars['String']['output']>;
944
+ /** The external id of the message. */
625
945
  externalMessageId?: Maybe<Scalars['String']['output']>;
946
+ /** The integration id of the message. */
626
947
  integrationId: Scalars['ID']['output'];
948
+ /** The integration type of the message. */
627
949
  integrationType: IntegrationType;
950
+ /** If it's an agent message, or client message. */
628
951
  isAgent?: Maybe<Scalars['Boolean']['output']>;
952
+ /** The internal id of the message. */
629
953
  messageId?: Maybe<Scalars['ID']['output']>;
630
954
  spanId?: Maybe<Scalars['String']['output']>;
955
+ /** The tags of the message. */
631
956
  tags?: Maybe<Array<Scalars['String']['output']>>;
632
957
  traceId?: Maybe<Scalars['String']['output']>;
958
+ /** The type of the message. */
633
959
  type: MessageType;
960
+ /** The workspace id of the message. */
634
961
  workspaceId: Scalars['Int']['output'];
635
962
  };
963
+ /** MessageInput is an input of the message mutation. */
636
964
  export type MessageInput = {
965
+ /** The content of the message. */
637
966
  content: Scalars['String']['input'];
967
+ /** The id of the conversation. */
638
968
  convId: Scalars['ID']['input'];
969
+ /** The integration/channel id of the conversation. */
639
970
  integrationId: Scalars['ID']['input'];
971
+ /** The note type of the message. */
640
972
  noteType?: InputMaybe<NoteType>;
973
+ /** The type of the message. */
641
974
  type: MessageType;
642
975
  workspaceId: Scalars['Int']['input'];
643
976
  };
977
+ /**
978
+ * MessageStatus is an enum of the message statuses.
979
+ * It can be:
980
+ * - sent: Message sent to the client (The client didn't receive it yet).
981
+ * - delivered: Message delivered to the client (The client didn't see it yet).
982
+ * - read: Message read by the client (The client read it).
983
+ * - failed: Message failed to be sent.
984
+ * - pending: Message pending to be sent.
985
+ */
644
986
  export declare const MessageStatus: {
645
987
  readonly DELIVERED: "delivered";
646
988
  readonly FAILED: "failed";
@@ -649,27 +991,50 @@ export declare const MessageStatus: {
649
991
  readonly SENT: "sent";
650
992
  };
651
993
  export type MessageStatus = typeof MessageStatus[keyof typeof MessageStatus];
994
+ /** MessageTagInput is an input of the message tag mutation. */
652
995
  export type MessageTagInput = {
996
+ /** The id of the conversation. */
653
997
  convId: Scalars['ID']['input'];
998
+ /** The integration/channel id of the conversation. */
654
999
  integrationId: Scalars['ID']['input'];
1000
+ /** The id of the message. */
655
1001
  messageId: Scalars['ID']['input'];
1002
+ /** The tag to add to the message. */
656
1003
  tag: Scalars['String']['input'];
657
1004
  workspaceId: Scalars['Int']['input'];
658
1005
  };
1006
+ /** MessageTemplate is a type for the WhatsApp message template. */
659
1007
  export type MessageTemplate = {
660
1008
  __typename?: 'MessageTemplate';
1009
+ /** The category of the template. */
661
1010
  category: Scalars['String']['output'];
662
1011
  id: Scalars['String']['output'];
1012
+ /** The language of the template. */
663
1013
  language: Scalars['String']['output'];
664
1014
  library_template_name?: Maybe<Scalars['String']['output']>;
1015
+ /** The name of the template in WhatsApp manager. */
665
1016
  name: Scalars['String']['output'];
666
1017
  parameter_format?: Maybe<Scalars['String']['output']>;
1018
+ /** The status of the template. */
667
1019
  status: TemplateState;
668
1020
  };
669
1021
  export type MessageTemplatesPayload = {
670
1022
  __typename?: 'MessageTemplatesPayload';
671
1023
  nodes?: Maybe<Array<MessageTemplate>>;
672
1024
  };
1025
+ /**
1026
+ * MessageType is an enum of the message types.
1027
+ * It can be:
1028
+ * - text: Text message.
1029
+ * - image: Image message.
1030
+ * - audio: Audio message.
1031
+ * - document: Document message (Files, PDFs, etc.).
1032
+ * - video: Video message.
1033
+ * - location: Location message.
1034
+ * - interactive: Interactive message.
1035
+ * - template: Template message (WhatsApp only).
1036
+ * - note: Note message (Internal note).
1037
+ */
673
1038
  export declare const MessageType: {
674
1039
  readonly AUDIO: "audio";
675
1040
  readonly DOCUMENT: "document";
@@ -682,15 +1047,26 @@ export declare const MessageType: {
682
1047
  readonly VIDEO: "video";
683
1048
  };
684
1049
  export type MessageType = typeof MessageType[keyof typeof MessageType];
1050
+ /**
1051
+ * MessagesInput is an input of the messages query.
1052
+ * Please note: That if you pass undefined to filters, it will be ignored. If you pass null, it will be considered that you are filtering by null.
1053
+ */
685
1054
  export type MessagesInput = {
1055
+ /** The assignee id of the conversation. Used to filter the messages by the assignee id. */
686
1056
  assigneeId?: InputMaybe<Scalars['ID']['input']>;
1057
+ /** The client id of the conversation. Used to filter the messages by the client id. */
687
1058
  clientId?: InputMaybe<Scalars['ID']['input']>;
1059
+ /** The end date of the messages. */
688
1060
  endDate?: InputMaybe<Scalars['DateTime']['input']>;
1061
+ /** The start date of the messages. */
689
1062
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
1063
+ /** The tags of the messages. Used to filter the messages by the tags. */
690
1064
  tags?: InputMaybe<Array<Scalars['String']['input']>>;
1065
+ /** The type of the messages. Used to filter the messages by the type. */
691
1066
  type?: InputMaybe<MessageType>;
692
1067
  workspaceId: Scalars['Int']['input'];
693
1068
  };
1069
+ /** MessagesPayload is a payload of the messages query. */
694
1070
  export type MessagesPayload = {
695
1071
  __typename?: 'MessagesPayload';
696
1072
  nodes?: Maybe<Array<Message>>;
@@ -698,44 +1074,75 @@ export type MessagesPayload = {
698
1074
  };
699
1075
  export type Mutation = {
700
1076
  __typename?: 'Mutation';
1077
+ /** Add a message to the conversation. */
701
1078
  addMessage: Message;
1079
+ /** Assign a conversation to an agent. If you don't have the MANAGE_CONVS permission, you can only assign the conversation to yourself. */
702
1080
  assignConv: Conversation;
703
1081
  assignOwner: UserRole;
704
1082
  assignUserRole: UserRole;
1083
+ /** Bulk patch tags. You should have the MANAGE_WORKSPACE permission to bulk patch tags. */
705
1084
  bulkPatchTags: Scalars['Boolean']['output'];
1085
+ /** Create an agent. You should have the MANAGE_WORKSPACE permission to create an agent. */
706
1086
  createAgent: Agent;
707
1087
  createAi: Ai;
1088
+ /** Create a broadcast. You should have the MANAGE_CONVS permission to create a broadcast. */
708
1089
  createBroadcast: Broadcast;
1090
+ /** Create a client. You should have the MANAGE_CLIENTS permission to create a client. */
709
1091
  createClient: Client;
1092
+ /** Create an integration. You should have the MANAGE_WORKSPACE permission to create an integration. */
710
1093
  createIntegration: Integration;
1094
+ /** Create a tag. You should have the MANAGE_WORKSPACE permission to create a tag. */
711
1095
  createTag: Tag;
712
1096
  createWebhook: Webhook;
1097
+ /** Delete an agent. You should have the MANAGE_WORKSPACE permission to delete an agent. */
713
1098
  deleteAgent: Agent;
714
1099
  deleteAi: Ai;
1100
+ /** Delete an API key. You should have the MANAGE_WORKSPACE permission to delete an API key. */
715
1101
  deleteApiKey: ApiKey;
1102
+ /** Delete a broadcast. You should have the MANAGE_CONVS permission to delete a broadcast. */
716
1103
  deleteBroadcast: Broadcast;
1104
+ /** Delete an integration. You should have the MANAGE_WORKSPACE permission to delete an integration. */
717
1105
  deleteIntegration: Integration;
1106
+ /** Delete a tag. You should have the MANAGE_WORKSPACE permission to delete a tag. */
718
1107
  deleteTag: Tag;
719
1108
  deleteWebhook: Webhook;
1109
+ /** End a conversation. If you don't have the MANAGE_CONVS permission, you can only end the conversation you are assigned to. */
720
1110
  endConv: Conversation;
1111
+ /** Generate an API key. You should have the MANAGE_WORKSPACE permission to generate an API key. */
721
1112
  genApiKey: ApiKey;
722
1113
  /** Required after the creation of a workspace to take ownership on it */
723
1114
  initWorkspace: UserRole;
1115
+ /** Launch a broadcast. You should have the MANAGE_CONVS permission to launch a broadcast. */
724
1116
  launchBroadcast: Broadcast;
1117
+ /** Patch an agent. You should have the MANAGE_WORKSPACE permission to patch an agent. */
725
1118
  patchAgent: Agent;
726
1119
  patchAi: Ai;
1120
+ /** Patch a broadcast. You should have the MANAGE_CONVS permission to patch a broadcast. */
727
1121
  patchBroadcast: Broadcast;
1122
+ /** Patch a client. You should have the MANAGE_CLIENTS permission to patch a client. */
728
1123
  patchClient: Client;
1124
+ /** Patch a conversation. If you don't have the MANAGE_CONVS permission, you can only patch the conversation you are assigned to. */
729
1125
  patchConv: Conversation;
1126
+ /** Patch an integration. You should have the MANAGE_WORKSPACE permission to patch an integration. */
730
1127
  patchIntegration: Integration;
1128
+ /** 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. */
1129
+ putClient: Client;
731
1130
  say?: Maybe<HelloMessage>;
1131
+ /** Send a notification to a client. (It can be used also for OTP messages) */
732
1132
  sendNotification: Message;
1133
+ /** Start a conversation. */
733
1134
  startConv: Conversation;
1135
+ /** Tag a client. You should have the MANAGE_CLIENTS permission to tag a client. */
734
1136
  tagClient: Client;
1137
+ /** Tag a conversation. */
735
1138
  tagConv: Conversation;
1139
+ /** Tag a message. */
736
1140
  tagMessage: Message;
1141
+ /** Untag a client. You should have the MANAGE_CLIENTS permission to untag a client. */
737
1142
  untagClient: Client;
1143
+ /** Untag a conversation. */
738
1144
  untagConv: Conversation;
1145
+ /** Untag a message. */
739
1146
  untagMessage: Message;
740
1147
  };
741
1148
  export type MutationAddMessageArgs = {
@@ -825,6 +1232,9 @@ export type MutationPatchConvArgs = {
825
1232
  export type MutationPatchIntegrationArgs = {
826
1233
  input: IntegrationPatchInput;
827
1234
  };
1235
+ export type MutationPutClientArgs = {
1236
+ input: ClientPutInput;
1237
+ };
828
1238
  export type MutationSayArgs = {
829
1239
  input: UserInput;
830
1240
  };
@@ -852,6 +1262,17 @@ export type MutationUntagConvArgs = {
852
1262
  export type MutationUntagMessageArgs = {
853
1263
  input: MessageTagInput;
854
1264
  };
1265
+ /**
1266
+ * NoteType is an enum of the note types.
1267
+ * It can be:
1268
+ * - UNASSIGN: Unassign the conversation.
1269
+ * - ASSIGN: Assign the conversation to an agent.
1270
+ * - TAG: Tag the conversation.
1271
+ * - UNTAG: Untag the conversation.
1272
+ * - STAGE: Stage the conversation.
1273
+ * - UNSTAGE: Unstage the conversation.
1274
+ * - MEMO: Memo message.
1275
+ */
855
1276
  export declare const NoteType: {
856
1277
  readonly ASSIGN: "ASSIGN";
857
1278
  readonly MEMO: "MEMO";
@@ -862,16 +1283,28 @@ export declare const NoteType: {
862
1283
  readonly UNTAG: "UNTAG";
863
1284
  };
864
1285
  export type NoteType = typeof NoteType[keyof typeof NoteType];
1286
+ /** PageInfo is a type for the page info. It is used to paginate the results. */
865
1287
  export type PageInfo = {
866
1288
  __typename?: 'PageInfo';
1289
+ /** The total count of the results. */
867
1290
  count?: Maybe<Scalars['Int']['output']>;
1291
+ /** The cursor to the next page. It is used to fetch the next page. */
868
1292
  endCursor?: Maybe<Scalars['Timestamp']['output']>;
1293
+ /** Indicates if there are more pages to fetch. */
869
1294
  hasNextPage: Scalars['Boolean']['output'];
870
1295
  };
1296
+ /** PageInfoInput is an input for the page info. It is used to paginate the results. */
871
1297
  export type PageInfoInput = {
1298
+ /**
1299
+ * Whether to return the total count of the results.
1300
+ * If true, the total count of the results will be returned in the response.
1301
+ */
872
1302
  count?: InputMaybe<Scalars['Boolean']['input']>;
1303
+ /** The cursor to the next page. It is used to fetch the next page. */
873
1304
  cursor?: InputMaybe<Scalars['Timestamp']['input']>;
1305
+ /** The limit of the results (Number of items per page, default is 100). */
874
1306
  limit?: InputMaybe<Scalars['Int']['input']>;
1307
+ /** The query to filter the results. */
875
1308
  query?: InputMaybe<Scalars['String']['input']>;
876
1309
  };
877
1310
  export declare const Permission: {
@@ -883,26 +1316,42 @@ export declare const Permission: {
883
1316
  export type Permission = typeof Permission[keyof typeof Permission];
884
1317
  export type Query = {
885
1318
  __typename?: 'Query';
1319
+ /** Get an agent. */
886
1320
  agent: Agent;
1321
+ /** Get the agents. */
887
1322
  agents: AgentsPayload;
1323
+ /** Get the agents report. You should have the MANAGE_CONVS permission to get the agents report. */
888
1324
  agentsReport: AgentsReportPayload;
889
1325
  ai: Ai;
890
1326
  ais: AIsPayload;
1327
+ /** Get the API keys. You should have the MANAGE_WORKSPACE permission to get the API keys. */
891
1328
  apiKeys: ApiKeysPayload;
1329
+ /** Get a broadcast. You should have the MANAGE_CONVS permission to get a broadcast. */
892
1330
  broadcast: Broadcast;
1331
+ /** Get the broadcasts. You should have the MANAGE_CONVS permission to get the broadcasts. */
893
1332
  broadcasts: BroadcastsPayload;
1333
+ /** Get a client. You should have the MANAGE_CLIENTS permission to get a client. */
894
1334
  client: Client;
1335
+ /** Get the clients. You should have the MANAGE_CLIENTS permission to get the clients. */
895
1336
  clients: ClientsPayload;
1337
+ /** Get the conversations. If you don't have the MANAGE_CONVS permission, it will return only the conversations assigned to you. */
896
1338
  convs: ConvsPayload;
1339
+ /** Get the conversations report. You should have the MANAGE_CONVS permission to get the conversations report. */
897
1340
  convsReport: ConvsReportPayload;
898
1341
  hello: HelloMessage;
1342
+ /** Get an integration. */
899
1343
  integration: Integration;
1344
+ /** Get the integrations. */
900
1345
  integrations: IntegrationsPayload;
901
1346
  me: UserRole;
1347
+ /** Get the messages of a conversation. */
902
1348
  messages: MessagesPayload;
1349
+ /** Get tags. */
903
1350
  tags: TagsPayload;
1351
+ /** Get the upload signature which can be used to upload a file to the cloud storage. */
904
1352
  uploadSignature: UploadSignatureResult;
905
1353
  usersRoles: UsersRolesPayload;
1354
+ /** Get the WhatsApp message templates. */
906
1355
  wabaMessageTemplates: MessageTemplatesPayload;
907
1356
  webhooks: WebhooksPayload;
908
1357
  };
@@ -984,27 +1433,76 @@ export declare const Role: {
984
1433
  readonly OWNER: "OWNER";
985
1434
  };
986
1435
  export type Role = typeof Role[keyof typeof Role];
1436
+ /** SendNotificationInput is an input of the send notification mutation. */
987
1437
  export type SendNotificationInput = {
1438
+ /** The client id, either the client id or the phone number must be provided. */
988
1439
  clientId?: InputMaybe<Scalars['ID']['input']>;
1440
+ /** The integration/channel id of the conversation. */
989
1441
  integrationId: Scalars['ID']['input'];
1442
+ /** The phone number of the client. (e.g. "+1234567890"), either the client id or the phone number must be provided. */
990
1443
  phone?: InputMaybe<Scalars['String']['input']>;
1444
+ /**
1445
+ * The components of the template.
1446
+ * The components are the variables that will be replaced in the template.
1447
+ * The components are in the format of an array of JSON objects.
1448
+ * You can refer to the next page for the format of the components: https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates/
1449
+ * The next example is a valid format for OTP with copy button:
1450
+ *
1451
+ * [
1452
+ * {
1453
+ * "type": "body",
1454
+ * "parameters": [
1455
+ * {
1456
+ * "type": "text",
1457
+ * "text": "123456"
1458
+ * }
1459
+ * ]
1460
+ * },
1461
+ * {
1462
+ * "type": "button",
1463
+ * "sub_type": "url",
1464
+ * "index": "0",
1465
+ * "parameters": [
1466
+ * {
1467
+ * "type": "text",
1468
+ * "text": "123456"
1469
+ * }
1470
+ * ]
1471
+ * }
1472
+ * ]
1473
+ */
991
1474
  templateComponents?: InputMaybe<Scalars['JSON']['input']>;
1475
+ /** The language of the template. (e.g. en, en_US, es_ES, etc.) */
992
1476
  templateLang?: InputMaybe<Scalars['String']['input']>;
1477
+ /** The name of the template. (e.g. "OTP", "Welcome", "Order Confirmation", etc.) */
993
1478
  templateName: Scalars['String']['input'];
994
1479
  workspaceId: Scalars['Int']['input'];
995
1480
  };
1481
+ /** StartByCountryCodeConfig is a configuration for the start with country code. */
996
1482
  export type StartByCountryCodeConfig = {
997
1483
  __typename?: 'StartByCountryCodeConfig';
1484
+ /** The assignee id. */
998
1485
  assigneeId: Scalars['ID']['output'];
1486
+ /** The country code. */
999
1487
  code: Scalars['String']['output'];
1000
1488
  };
1489
+ /**
1490
+ * StartWithType is an enum for the start with configuration.
1491
+ * - AUTO: Auto assignment of the conversation to the agent (Picking the agent with the least number of conversations).
1492
+ * - AI: The conversation is started by AI.
1493
+ * - AGENT: The conversation is started by an agent.
1494
+ * - AI_BY_COUNTRY_CODE: The conversation is started by AI by country code.
1495
+ * - AGENT_BY_COUNTRY_CODE: The conversation is started by an agent by country code.
1496
+ */
1001
1497
  export declare const StartWithType: {
1002
1498
  readonly AGENT: "AGENT";
1003
1499
  readonly AGENT_BY_COUNTRY_CODE: "AGENT_BY_COUNTRY_CODE";
1004
1500
  readonly AI: "AI";
1005
1501
  readonly AI_BY_COUNTRY_CODE: "AI_BY_COUNTRY_CODE";
1502
+ readonly AUTO: "AUTO";
1006
1503
  };
1007
1504
  export type StartWithType = typeof StartWithType[keyof typeof StartWithType];
1505
+ /** StatusUpdateDTO is data transfer object for the status update. */
1008
1506
  export type StatusUpdateDto = {
1009
1507
  __typename?: 'StatusUpdateDTO';
1010
1508
  createdAt: Scalars['String']['output'];
@@ -1066,6 +1564,7 @@ export type TagsPayload = {
1066
1564
  __typename?: 'TagsPayload';
1067
1565
  nodes?: Maybe<Array<Tag>>;
1068
1566
  };
1567
+ /** TemplateState is an enum for the template state. */
1069
1568
  export declare const TemplateState: {
1070
1569
  readonly APPROVED: "APPROVED";
1071
1570
  readonly DELETED: "DELETED";
@@ -1092,6 +1591,7 @@ export type UsersRolesPayload = {
1092
1591
  __typename?: 'UsersRolesPayload';
1093
1592
  nodes?: Maybe<Array<UserRole>>;
1094
1593
  };
1594
+ /** WabaMessageTemplatesInput is an input for the WhatsApp message templates. */
1095
1595
  export type WabaMessageTemplatesInput = {
1096
1596
  integrationId: Scalars['ID']['input'];
1097
1597
  workspaceId: Scalars['Int']['input'];