@droz-js/sdk 0.25.4 → 0.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/drozai.d.ts +1 -7
- package/src/sdks/ai.d.ts +53 -362
- package/src/sdks/ai.js +54 -291
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -58,14 +58,8 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
58
58
|
[key: string]: never;
|
|
59
59
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentRetentionPolicyQuery>;
|
|
60
60
|
aiAgentConversationMetrics(variables: import("./sdks/ai").Exact<{
|
|
61
|
-
input: import("./sdks/ai").
|
|
61
|
+
input: import("./sdks/ai").AiAgentMetricsInput;
|
|
62
62
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentConversationMetricsQuery>;
|
|
63
|
-
aiAgentMetricsSeries(variables: import("./sdks/ai").Exact<{
|
|
64
|
-
input: import("./sdks/ai").AiAgentMetricsSeriesInput;
|
|
65
|
-
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentMetricsSeriesQuery>;
|
|
66
|
-
aiAgentDashboard(variables: import("./sdks/ai").Exact<{
|
|
67
|
-
input: import("./sdks/ai").AiAgentDashboardInput;
|
|
68
|
-
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentDashboardQuery>;
|
|
69
63
|
aiAgentConversationOutcome(variables: import("./sdks/ai").Exact<{
|
|
70
64
|
sessionId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
71
65
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentConversationOutcomeQuery>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -238,12 +238,6 @@ export declare enum AiAgentCheckRunStatus {
|
|
|
238
238
|
Running = "running",
|
|
239
239
|
Succeeded = "succeeded"
|
|
240
240
|
}
|
|
241
|
-
export type AiAgentClassificationCount = {
|
|
242
|
-
count: Scalars['Number']['output'];
|
|
243
|
-
state: AiAgentConversationState;
|
|
244
|
-
subcategory?: Maybe<AiAgentConversationSubcategory>;
|
|
245
|
-
technicalFailure?: Maybe<AiAgentTechnicalFailure>;
|
|
246
|
-
};
|
|
247
241
|
export type AiAgentCompetingPair = {
|
|
248
242
|
left: Scalars['ID']['output'];
|
|
249
243
|
right: Scalars['ID']['output'];
|
|
@@ -307,9 +301,9 @@ export type AiAgentConversationAnalysis = {
|
|
|
307
301
|
summary?: Maybe<Scalars['String']['output']>;
|
|
308
302
|
};
|
|
309
303
|
export declare enum AiAgentConversationClass {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
304
|
+
NaoElegivel = "NAO_ELEGIVEL",
|
|
305
|
+
NaoResolvida = "NAO_RESOLVIDA",
|
|
306
|
+
Resolvida = "RESOLVIDA"
|
|
313
307
|
}
|
|
314
308
|
export type AiAgentConversationClassification = {
|
|
315
309
|
/** Ausente enquanto a conversa esta em andamento. */
|
|
@@ -319,22 +313,9 @@ export type AiAgentConversationClassification = {
|
|
|
319
313
|
eligibleForResolution: Scalars['Boolean']['output'];
|
|
320
314
|
inactivityWindowMs: Scalars['Number']['output'];
|
|
321
315
|
state: AiAgentConversationState;
|
|
322
|
-
status: AiAgentConversationStatus;
|
|
323
316
|
subcategory?: Maybe<AiAgentConversationSubcategory>;
|
|
324
317
|
technicalFailure?: Maybe<AiAgentTechnicalFailure>;
|
|
325
318
|
};
|
|
326
|
-
export type AiAgentConversationDateRange = {
|
|
327
|
-
max: Scalars['Number']['output'];
|
|
328
|
-
min: Scalars['Number']['output'];
|
|
329
|
-
};
|
|
330
|
-
export type AiAgentConversationFacet = {
|
|
331
|
-
name: Scalars['String']['output'];
|
|
332
|
-
values: Array<AiAgentConversationFacetValue>;
|
|
333
|
-
};
|
|
334
|
-
export type AiAgentConversationFacetValue = {
|
|
335
|
-
count: Scalars['Number']['output'];
|
|
336
|
-
value: Scalars['String']['output'];
|
|
337
|
-
};
|
|
338
319
|
export type AiAgentConversationMetrics = {
|
|
339
320
|
channel?: Maybe<Scalars['String']['output']>;
|
|
340
321
|
channelType?: Maybe<AiAgentChannelType>;
|
|
@@ -347,46 +328,11 @@ export type AiAgentConversationMetrics = {
|
|
|
347
328
|
sessionId: Scalars['ID']['output'];
|
|
348
329
|
startedAt: Scalars['Number']['output'];
|
|
349
330
|
state: AiAgentConversationState;
|
|
350
|
-
status
|
|
331
|
+
status?: Maybe<AiAgentConversationClass>;
|
|
351
332
|
subcategory?: Maybe<AiAgentConversationSubcategory>;
|
|
352
333
|
totalTokens: Scalars['Number']['output'];
|
|
353
334
|
turns: Scalars['Number']['output'];
|
|
354
335
|
};
|
|
355
|
-
export type AiAgentConversationMetricsInput = {
|
|
356
|
-
activeDispatch?: InputMaybe<Scalars['Boolean']['input']>;
|
|
357
|
-
agentId: Scalars['ID']['input'];
|
|
358
|
-
channel?: InputMaybe<Scalars['String']['input']>;
|
|
359
|
-
dateFrom?: InputMaybe<Scalars['Number']['input']>;
|
|
360
|
-
dateTo?: InputMaybe<Scalars['Number']['input']>;
|
|
361
|
-
from: Scalars['Number']['input'];
|
|
362
|
-
hasRiskAlert?: InputMaybe<Scalars['Boolean']['input']>;
|
|
363
|
-
limit?: InputMaybe<Scalars['Number']['input']>;
|
|
364
|
-
offset?: InputMaybe<Scalars['Number']['input']>;
|
|
365
|
-
scoreBand?: InputMaybe<Array<AiAgentScoreBand>>;
|
|
366
|
-
search?: InputMaybe<Scalars['String']['input']>;
|
|
367
|
-
sentimentEnd?: InputMaybe<Array<AiAgentSentiment>>;
|
|
368
|
-
sentimentStart?: InputMaybe<Array<AiAgentSentiment>>;
|
|
369
|
-
sortBy?: InputMaybe<AiAgentConversationSortField>;
|
|
370
|
-
sortDirection?: InputMaybe<AiAgentSortDirection>;
|
|
371
|
-
status?: InputMaybe<Array<AiAgentConversationStatus>>;
|
|
372
|
-
subcategory?: InputMaybe<Array<AiAgentConversationSubcategory>>;
|
|
373
|
-
to: Scalars['Number']['input'];
|
|
374
|
-
useCaseId?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
375
|
-
};
|
|
376
|
-
export type AiAgentConversationMetricsPage = {
|
|
377
|
-
/** Intervalo de `lastTurnAt` do conjunto filtrado pelos outros filtros, sem `dateFrom` e `dateTo`. Ausente quando o conjunto é vazio. */
|
|
378
|
-
dateRange?: Maybe<AiAgentConversationDateRange>;
|
|
379
|
-
/** Cada faceta conta sobre o conjunto filtrado pelos outros filtros, sem o seu próprio. */
|
|
380
|
-
facets: Array<AiAgentConversationFacet>;
|
|
381
|
-
/** true quando há conversa com alerta de risco no conjunto filtrado pelos outros filtros, sem `hasRiskAlert`. Mesma base do facet `riskAlert`. */
|
|
382
|
-
hasRiskAlerts: Scalars['Boolean']['output'];
|
|
383
|
-
items: Array<AiAgentConversationMetrics>;
|
|
384
|
-
limit: Scalars['Number']['output'];
|
|
385
|
-
offset: Scalars['Number']['output'];
|
|
386
|
-
total: Scalars['Number']['output'];
|
|
387
|
-
/** true quando o teto de leitura foi atingido: a página cobre parte do período. */
|
|
388
|
-
truncated: Scalars['Boolean']['output'];
|
|
389
|
-
};
|
|
390
336
|
export type AiAgentConversationOutcome = {
|
|
391
337
|
actions: Array<AiAgentConversationAction>;
|
|
392
338
|
agentId: Scalars['ID']['output'];
|
|
@@ -411,165 +357,33 @@ export type AiAgentConversationOutcome = {
|
|
|
411
357
|
promisedNextStep?: Maybe<Scalars['String']['output']>;
|
|
412
358
|
resolution: Scalars['String']['output'];
|
|
413
359
|
resolutionDefinition: Scalars['String']['output'];
|
|
414
|
-
/** Fim da janela de reversão por recontato. Ausente quando a conversa não reverte. */
|
|
415
|
-
reversibleUntil?: Maybe<Scalars['Number']['output']>;
|
|
416
360
|
sessionId: Scalars['ID']['output'];
|
|
417
361
|
startedAt: Scalars['Number']['output'];
|
|
418
362
|
turns: Scalars['Number']['output'];
|
|
419
363
|
};
|
|
420
|
-
export declare enum AiAgentConversationSortField {
|
|
421
|
-
Date = "DATE",
|
|
422
|
-
Status = "STATUS",
|
|
423
|
-
Subcategory = "SUBCATEGORY"
|
|
424
|
-
}
|
|
425
364
|
export declare enum AiAgentConversationState {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
}
|
|
433
|
-
export declare enum AiAgentConversationStatus {
|
|
434
|
-
InProgress = "IN_PROGRESS",
|
|
435
|
-
NotEligible = "NOT_ELIGIBLE",
|
|
436
|
-
Resolved = "RESOLVED",
|
|
437
|
-
Unresolved = "UNRESOLVED"
|
|
365
|
+
EmAndamento = "EM_ANDAMENTO",
|
|
366
|
+
EncerradaPorConclusao = "ENCERRADA_POR_CONCLUSAO",
|
|
367
|
+
EncerradaPorFalhaTecnica = "ENCERRADA_POR_FALHA_TECNICA",
|
|
368
|
+
EncerradaPorInatividade = "ENCERRADA_POR_INATIVIDADE",
|
|
369
|
+
EncerradaPorTeto = "ENCERRADA_POR_TETO",
|
|
370
|
+
EncerradaPorTransbordo = "ENCERRADA_POR_TRANSBORDO"
|
|
438
371
|
}
|
|
439
372
|
export declare enum AiAgentConversationSubcategory {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
HandoffByCustomerNeed = "HANDOFF_BY_CUSTOMER_NEED",
|
|
446
|
-
HandoffByProcedure = "HANDOFF_BY_PROCEDURE",
|
|
447
|
-
HandoffBySelfDiagnosis = "HANDOFF_BY_SELF_DIAGNOSIS",
|
|
448
|
-
NoCoverage = "NO_COVERAGE",
|
|
449
|
-
NoKnowledge = "NO_KNOWLEDGE",
|
|
450
|
-
PresumedResolution = "PRESUMED_RESOLUTION",
|
|
373
|
+
AbandonoAposEsclarecimento = "ABANDONO_APOS_ESCLARECIMENTO",
|
|
374
|
+
EncerradaPorTeto = "ENCERRADA_POR_TETO",
|
|
375
|
+
FalhaTecnica = "FALHA_TECNICA",
|
|
376
|
+
Indefinido = "INDEFINIDO",
|
|
377
|
+
InterlocutorAutomatico = "INTERLOCUTOR_AUTOMATICO",
|
|
451
378
|
PromptInjection = "PROMPT_INJECTION",
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
/** Absent when no conversation was analyzed in the window. Absent is not zero. */
|
|
461
|
-
agentScoreAvg?: Maybe<Scalars['Float']['output']>;
|
|
462
|
-
agentScoreAvgBand?: Maybe<AiAgentScoreBand>;
|
|
463
|
-
analysesTruncated: Scalars['Boolean']['output'];
|
|
464
|
-
analyzedConversations: Scalars['Number']['output'];
|
|
465
|
-
bucket: AiAgentMetricsBucket;
|
|
466
|
-
contactReasons: AiAgentDashboardContactReasons;
|
|
467
|
-
conversations: AiAgentDashboardIndicator;
|
|
468
|
-
handoffNeed: AiAgentDashboardIndicator;
|
|
469
|
-
handoffProcedure: AiAgentDashboardIndicator;
|
|
470
|
-
/** Do agente, não da janela. Vira true na primeira conversa aberta pela resposta a um disparo ativo. */
|
|
471
|
-
hasActiveDispatches: Scalars['Boolean']['output'];
|
|
472
|
-
knowledgeGaps: Array<AiAgentDashboardKnowledgeGap>;
|
|
473
|
-
period: AiAgentDashboardPeriod;
|
|
474
|
-
previousWindow: AiAgentDashboardWindow;
|
|
475
|
-
procedures: Array<AiAgentDashboardProcedure>;
|
|
476
|
-
resolved: AiAgentDashboardIndicator;
|
|
477
|
-
scoreBands: Array<AiAgentDashboardScoreBand>;
|
|
478
|
-
sentimentAtEnd: Array<AiAgentDashboardSentiment>;
|
|
479
|
-
sentimentAtStart: Array<AiAgentDashboardSentiment>;
|
|
480
|
-
series: Array<AiAgentDashboardSeriesPoint>;
|
|
481
|
-
timezone: Scalars['String']['output'];
|
|
482
|
-
/** true when the read cap was reached in any window: the numbers cover part of the period. */
|
|
483
|
-
truncated: Scalars['Boolean']['output'];
|
|
484
|
-
unresolved: AiAgentDashboardIndicator;
|
|
485
|
-
window: AiAgentDashboardWindow;
|
|
486
|
-
};
|
|
487
|
-
/** `answered` and `unanswered` are the share of the dispatches whose window is closed, one decimal. Absent while none is closed. */
|
|
488
|
-
export type AiAgentDashboardActiveDispatches = {
|
|
489
|
-
answered: AiAgentDashboardIndicator;
|
|
490
|
-
sent: AiAgentDashboardIndicator;
|
|
491
|
-
unanswered: AiAgentDashboardIndicator;
|
|
492
|
-
};
|
|
493
|
-
/** Sorted by count, highest first. */
|
|
494
|
-
export type AiAgentDashboardContactReason = {
|
|
495
|
-
count: Scalars['Number']['output'];
|
|
496
|
-
key: Scalars['String']['output'];
|
|
497
|
-
percent: Scalars['Float']['output'];
|
|
498
|
-
};
|
|
499
|
-
export type AiAgentDashboardContactReasons = {
|
|
500
|
-
abandonment: Array<AiAgentDashboardContactReason>;
|
|
501
|
-
all: Array<AiAgentDashboardContactReason>;
|
|
502
|
-
handoff: Array<AiAgentDashboardContactReason>;
|
|
503
|
-
};
|
|
504
|
-
/** `value` is absent when the window has no data. */
|
|
505
|
-
export type AiAgentDashboardIndicator = {
|
|
506
|
-
polarity: AiAgentMetricPolarity;
|
|
507
|
-
value?: Maybe<Scalars['Float']['output']>;
|
|
508
|
-
variation: AiAgentVariation;
|
|
509
|
-
};
|
|
510
|
-
/** The current window ends now. The previous window has the same number of days and ends right before the current one starts. */
|
|
511
|
-
export type AiAgentDashboardInput = {
|
|
512
|
-
agentId: Scalars['ID']['input'];
|
|
513
|
-
channel?: InputMaybe<Scalars['String']['input']>;
|
|
514
|
-
period: AiAgentDashboardPeriod;
|
|
515
|
-
timezone: Scalars['String']['input'];
|
|
516
|
-
};
|
|
517
|
-
/** Counted once per conversation. `level` is over the conversations that consulted the knowledge base. */
|
|
518
|
-
export type AiAgentDashboardKnowledgeGap = {
|
|
519
|
-
count: Scalars['Number']['output'];
|
|
520
|
-
key: Scalars['String']['output'];
|
|
521
|
-
level: AiAgentFrequencyLevel;
|
|
522
|
-
};
|
|
523
|
-
export declare enum AiAgentDashboardPeriod {
|
|
524
|
-
Days_7 = "DAYS_7",
|
|
525
|
-
Days_30 = "DAYS_30",
|
|
526
|
-
Days_90 = "DAYS_90",
|
|
527
|
-
Today = "TODAY"
|
|
528
|
-
}
|
|
529
|
-
/** The procedure of the use case assigned to each conversation. `level` is over all conversations of the window. */
|
|
530
|
-
export type AiAgentDashboardProcedure = {
|
|
531
|
-
count: Scalars['Number']['output'];
|
|
532
|
-
key: Scalars['ID']['output'];
|
|
533
|
-
level: AiAgentFrequencyLevel;
|
|
534
|
-
name: Scalars['String']['output'];
|
|
535
|
-
};
|
|
536
|
-
/** `percent` is the share of the band in the window total, with one decimal. Absent when the total is zero. */
|
|
537
|
-
export type AiAgentDashboardScoreBand = {
|
|
538
|
-
band: AiAgentScoreBand;
|
|
539
|
-
count: Scalars['Number']['output'];
|
|
540
|
-
percent?: Maybe<Scalars['Float']['output']>;
|
|
541
|
-
polarity: AiAgentMetricPolarity;
|
|
542
|
-
variation: AiAgentVariation;
|
|
543
|
-
};
|
|
544
|
-
export type AiAgentDashboardSentiment = {
|
|
545
|
-
count: Scalars['Number']['output'];
|
|
546
|
-
percent?: Maybe<Scalars['Float']['output']>;
|
|
547
|
-
polarity: AiAgentMetricPolarity;
|
|
548
|
-
sentiment: AiAgentSentiment;
|
|
549
|
-
variation: AiAgentVariation;
|
|
550
|
-
};
|
|
551
|
-
/** `date` and `endDate` are local dates (YYYY-MM-DD) of the first and last day of the bucket, inside the window. */
|
|
552
|
-
export type AiAgentDashboardSeriesPoint = {
|
|
553
|
-
abandonmentRate?: Maybe<Scalars['Number']['output']>;
|
|
554
|
-
conversations: Scalars['Number']['output'];
|
|
555
|
-
conversationsAbandoned: Scalars['Number']['output'];
|
|
556
|
-
conversationsEligible: Scalars['Number']['output'];
|
|
557
|
-
conversationsHandoffNeed: Scalars['Number']['output'];
|
|
558
|
-
conversationsResolved: Scalars['Number']['output'];
|
|
559
|
-
conversationsUnresolved: Scalars['Number']['output'];
|
|
560
|
-
date: Scalars['String']['output'];
|
|
561
|
-
endDate: Scalars['String']['output'];
|
|
562
|
-
handoffNeedRate?: Maybe<Scalars['Number']['output']>;
|
|
563
|
-
resolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
564
|
-
unresolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
565
|
-
};
|
|
566
|
-
export type AiAgentDashboardWindow = {
|
|
567
|
-
from: Scalars['Number']['output'];
|
|
568
|
-
to: Scalars['Number']['output'];
|
|
569
|
-
};
|
|
570
|
-
export declare enum AiAgentExecutionAutonomy {
|
|
571
|
-
Autonomous = "autonomous",
|
|
572
|
-
NeedsApproval = "needsApproval"
|
|
379
|
+
ResolvidaConfirmada = "RESOLVIDA_CONFIRMADA",
|
|
380
|
+
ResolvidaPresumida = "RESOLVIDA_PRESUMIDA",
|
|
381
|
+
SaudacaoSemDemanda = "SAUDACAO_SEM_DEMANDA",
|
|
382
|
+
SemCobertura = "SEM_COBERTURA",
|
|
383
|
+
SemConhecimento = "SEM_CONHECIMENTO",
|
|
384
|
+
TransbordoPorAutodiagnostico = "TRANSBORDO_POR_AUTODIAGNOSTICO",
|
|
385
|
+
TransbordoPorNecessidadeCliente = "TRANSBORDO_POR_NECESSIDADE_CLIENTE",
|
|
386
|
+
TransbordoPorProcedimento = "TRANSBORDO_POR_PROCEDIMENTO"
|
|
573
387
|
}
|
|
574
388
|
/** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
|
|
575
389
|
export declare enum AiAgentFrequencyLevel {
|
|
@@ -632,11 +446,6 @@ export type AiAgentKnowledgeBase = {
|
|
|
632
446
|
isPublic: Scalars['Boolean']['output'];
|
|
633
447
|
title: Scalars['String']['output'];
|
|
634
448
|
};
|
|
635
|
-
export declare enum AiAgentMetricPolarity {
|
|
636
|
-
HigherIsBetter = "HIGHER_IS_BETTER",
|
|
637
|
-
HigherIsWorse = "HIGHER_IS_WORSE",
|
|
638
|
-
Neutral = "NEUTRAL"
|
|
639
|
-
}
|
|
640
449
|
export type AiAgentMetrics = {
|
|
641
450
|
/** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
|
|
642
451
|
abandonmentRate?: Maybe<Scalars['Number']['output']>;
|
|
@@ -668,11 +477,9 @@ export type AiAgentMetrics = {
|
|
|
668
477
|
cachedInputTokens: Scalars['Number']['output'];
|
|
669
478
|
/** Turnos respondidos pelo cache, sem chamada ao modelo. E o ganho da otimizacao de §4.9. */
|
|
670
479
|
cachedTurns: Scalars['Number']['output'];
|
|
671
|
-
classificationBreakdown: Array<AiAgentClassificationCount>;
|
|
672
480
|
classificationDefinitionVersion: Scalars['String']['output'];
|
|
673
481
|
contactReasons: AiAgentContactReasons;
|
|
674
482
|
conversations: Scalars['Number']['output'];
|
|
675
|
-
/** @deprecated A chave junta subcategoria e falha tecnica numa string. Use classificationBreakdown. */
|
|
676
483
|
conversationsByClassification: Array<AiAgentMetricsCount>;
|
|
677
484
|
conversationsEligible: Scalars['Number']['output'];
|
|
678
485
|
/**
|
|
@@ -779,10 +586,6 @@ export type AiAgentMetrics = {
|
|
|
779
586
|
/** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
|
|
780
587
|
unresolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
781
588
|
};
|
|
782
|
-
export declare enum AiAgentMetricsBucket {
|
|
783
|
-
Day = "DAY",
|
|
784
|
-
Week = "WEEK"
|
|
785
|
-
}
|
|
786
589
|
export type AiAgentMetricsCount = {
|
|
787
590
|
count: Scalars['Number']['output'];
|
|
788
591
|
key: Scalars['String']['output'];
|
|
@@ -793,34 +596,6 @@ export type AiAgentMetricsInput = {
|
|
|
793
596
|
from: Scalars['Number']['input'];
|
|
794
597
|
to: Scalars['Number']['input'];
|
|
795
598
|
};
|
|
796
|
-
export type AiAgentMetricsSeries = {
|
|
797
|
-
points: Array<AiAgentMetricsSeriesPoint>;
|
|
798
|
-
/** true quando o teto de leitura foi atingido: a série cobre parte do período. */
|
|
799
|
-
truncated: Scalars['Boolean']['output'];
|
|
800
|
-
};
|
|
801
|
-
/** IANA name of the viewer time zone, e.g. America/Sao_Paulo. A week starts on Monday. */
|
|
802
|
-
export type AiAgentMetricsSeriesInput = {
|
|
803
|
-
agentId: Scalars['ID']['input'];
|
|
804
|
-
bucket: AiAgentMetricsBucket;
|
|
805
|
-
channel?: InputMaybe<Scalars['String']['input']>;
|
|
806
|
-
from: Scalars['Number']['input'];
|
|
807
|
-
timezone: Scalars['String']['input'];
|
|
808
|
-
to: Scalars['Number']['input'];
|
|
809
|
-
};
|
|
810
|
-
export type AiAgentMetricsSeriesPoint = {
|
|
811
|
-
abandonmentRate?: Maybe<Scalars['Number']['output']>;
|
|
812
|
-
conversations: Scalars['Number']['output'];
|
|
813
|
-
conversationsAbandoned: Scalars['Number']['output'];
|
|
814
|
-
conversationsEligible: Scalars['Number']['output'];
|
|
815
|
-
conversationsHandoffNeed: Scalars['Number']['output'];
|
|
816
|
-
conversationsResolved: Scalars['Number']['output'];
|
|
817
|
-
conversationsUnresolved: Scalars['Number']['output'];
|
|
818
|
-
/** Local date (YYYY-MM-DD) of the first day of the bucket. */
|
|
819
|
-
date: Scalars['String']['output'];
|
|
820
|
-
handoffNeedRate?: Maybe<Scalars['Number']['output']>;
|
|
821
|
-
resolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
822
|
-
unresolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
823
|
-
};
|
|
824
599
|
/** A mesma janela, sem agente: a listagem quer todos de uma vez. */
|
|
825
600
|
export type AiAgentMetricsWindowInput = {
|
|
826
601
|
channel?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -833,7 +608,8 @@ export type AiAgentProcedure = {
|
|
|
833
608
|
continuesAfterApproval: Scalars['Boolean']['output'];
|
|
834
609
|
deniedReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
835
610
|
endsConversationAfterInforming: Scalars['Boolean']['output'];
|
|
836
|
-
|
|
611
|
+
/** `autonomous` ou `needsApproval`. Ferramenta irreversivel exige `needsApproval`. */
|
|
612
|
+
executionAutonomy: Scalars['String']['output'];
|
|
837
613
|
expiredReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
838
614
|
/** As etapas como o autor instruiria uma pessoa. O texto e a fonte da verdade (§6.2). */
|
|
839
615
|
guidanceSteps: Array<Scalars['String']['output']>;
|
|
@@ -872,8 +648,8 @@ export type AiAgentRetentionPolicyInput = {
|
|
|
872
648
|
masksPersonalData: Scalars['Boolean']['input'];
|
|
873
649
|
};
|
|
874
650
|
export declare enum AiAgentRiskAlert {
|
|
875
|
-
|
|
876
|
-
|
|
651
|
+
Cancelamento = "cancelamento",
|
|
652
|
+
Justica = "justica",
|
|
877
653
|
Procon = "procon",
|
|
878
654
|
ReclameAqui = "reclame_aqui"
|
|
879
655
|
}
|
|
@@ -951,28 +727,24 @@ export type AiAgentScenarioTurn = {
|
|
|
951
727
|
turn: Scalars['Int']['output'];
|
|
952
728
|
};
|
|
953
729
|
export declare enum AiAgentScoreBand {
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
730
|
+
Bom = "bom",
|
|
731
|
+
Excelente = "excelente",
|
|
732
|
+
Regular = "regular",
|
|
733
|
+
Ruim = "ruim"
|
|
958
734
|
}
|
|
959
735
|
export type AiAgentScoreBandCount = {
|
|
960
736
|
count: Scalars['Number']['output'];
|
|
961
737
|
key: AiAgentScoreBand;
|
|
962
738
|
};
|
|
963
739
|
export declare enum AiAgentSentiment {
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
740
|
+
Negativo = "negativo",
|
|
741
|
+
Neutro = "neutro",
|
|
742
|
+
Positivo = "positivo"
|
|
967
743
|
}
|
|
968
744
|
export type AiAgentSentimentCount = {
|
|
969
745
|
count: Scalars['Number']['output'];
|
|
970
746
|
key: AiAgentSentiment;
|
|
971
747
|
};
|
|
972
|
-
export declare enum AiAgentSortDirection {
|
|
973
|
-
Asc = "ASC",
|
|
974
|
-
Desc = "DESC"
|
|
975
|
-
}
|
|
976
748
|
export type AiAgentSpec = {
|
|
977
749
|
/** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
|
|
978
750
|
allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1034,10 +806,10 @@ export type AiAgentSummary = {
|
|
|
1034
806
|
updatedAt: Scalars['Number']['output'];
|
|
1035
807
|
};
|
|
1036
808
|
export declare enum AiAgentTechnicalFailure {
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
809
|
+
Erro_5Xx = "ERRO_5XX",
|
|
810
|
+
FerramentaIndisponivel = "FERRAMENTA_INDISPONIVEL",
|
|
811
|
+
LimiteOperacional = "LIMITE_OPERACIONAL",
|
|
812
|
+
Timeout = "TIMEOUT"
|
|
1041
813
|
}
|
|
1042
814
|
export type AiAgentTool = {
|
|
1043
815
|
/** `pre_approved` (padrao) ou `human_approval`. */
|
|
@@ -1115,7 +887,7 @@ export type AiAgentTrace = {
|
|
|
1115
887
|
outcome: Scalars['String']['output'];
|
|
1116
888
|
promptBuilderVersion: Scalars['Int']['output'];
|
|
1117
889
|
/** Identifica o prompt que gerou este turno sem guardar o prompt inteiro. */
|
|
1118
|
-
promptFingerprint
|
|
890
|
+
promptFingerprint: Scalars['String']['output'];
|
|
1119
891
|
sessionId: Scalars['ID']['output'];
|
|
1120
892
|
startedAt: Scalars['Float']['output'];
|
|
1121
893
|
steps: Scalars['Int']['output'];
|
|
@@ -1161,15 +933,6 @@ export type AiAgentUseCaseOverlap = {
|
|
|
1161
933
|
/** O limiar aplicado, publicado junto do resultado para o aviso nao ser lido como cada um quiser. */
|
|
1162
934
|
threshold: Scalars['Number']['output'];
|
|
1163
935
|
};
|
|
1164
|
-
/** `value` is absent when there is no base to compare: no previous data, or a previous count of zero for PERCENT. */
|
|
1165
|
-
export type AiAgentVariation = {
|
|
1166
|
-
unit: AiAgentVariationUnit;
|
|
1167
|
-
value?: Maybe<Scalars['Number']['output']>;
|
|
1168
|
-
};
|
|
1169
|
-
export declare enum AiAgentVariationUnit {
|
|
1170
|
-
Percent = "PERCENT",
|
|
1171
|
-
Points = "POINTS"
|
|
1172
|
-
}
|
|
1173
936
|
export type AiAgentVersion = {
|
|
1174
937
|
agentId: Scalars['ID']['output'];
|
|
1175
938
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -1417,9 +1180,8 @@ export type QnAInstance = {
|
|
|
1417
1180
|
export type Query = {
|
|
1418
1181
|
/** O que a suíte deste agente aceita hoje. O teto por cenário já vem dividido pelos cenários dele. */
|
|
1419
1182
|
aiAgentCheckLimits: AiAgentCheckLimits;
|
|
1420
|
-
aiAgentConversationMetrics:
|
|
1183
|
+
aiAgentConversationMetrics: Array<AiAgentConversationMetrics>;
|
|
1421
1184
|
aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
|
|
1422
|
-
aiAgentDashboard: AiAgentDashboard;
|
|
1423
1185
|
/**
|
|
1424
1186
|
* §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
|
|
1425
1187
|
* credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
|
|
@@ -1428,7 +1190,6 @@ export type Query = {
|
|
|
1428
1190
|
aiAgentMetrics: AiAgentMetrics;
|
|
1429
1191
|
/** As metricas da janela para todos os agentes, numa ida so. Agente sem rastro vem com zeros. */
|
|
1430
1192
|
aiAgentMetricsByAgent: Array<AiAgentMetrics>;
|
|
1431
|
-
aiAgentMetricsSeries: AiAgentMetricsSeries;
|
|
1432
1193
|
/**
|
|
1433
1194
|
* A politica de retencao em vigor para o tenant, com os padroes aplicados quando ele nao
|
|
1434
1195
|
* configurou a propria. Existe para a politica ser verificavel de fora, nao so estar escrita.
|
|
@@ -1475,23 +1236,17 @@ export type QueryAiAgentCheckLimitsArgs = {
|
|
|
1475
1236
|
agentId: Scalars['ID']['input'];
|
|
1476
1237
|
};
|
|
1477
1238
|
export type QueryAiAgentConversationMetricsArgs = {
|
|
1478
|
-
input:
|
|
1239
|
+
input: AiAgentMetricsInput;
|
|
1479
1240
|
};
|
|
1480
1241
|
export type QueryAiAgentConversationOutcomeArgs = {
|
|
1481
1242
|
sessionId: Scalars['ID']['input'];
|
|
1482
1243
|
};
|
|
1483
|
-
export type QueryAiAgentDashboardArgs = {
|
|
1484
|
-
input: AiAgentDashboardInput;
|
|
1485
|
-
};
|
|
1486
1244
|
export type QueryAiAgentMetricsArgs = {
|
|
1487
1245
|
input: AiAgentMetricsInput;
|
|
1488
1246
|
};
|
|
1489
1247
|
export type QueryAiAgentMetricsByAgentArgs = {
|
|
1490
1248
|
input: AiAgentMetricsWindowInput;
|
|
1491
1249
|
};
|
|
1492
|
-
export type QueryAiAgentMetricsSeriesArgs = {
|
|
1493
|
-
input: AiAgentMetricsSeriesInput;
|
|
1494
|
-
};
|
|
1495
1250
|
export type QueryAiAgentRoutingPreviewArgs = {
|
|
1496
1251
|
input: AiAgentRoutingPreviewInput;
|
|
1497
1252
|
};
|
|
@@ -1573,7 +1328,7 @@ export type SaveAiAgentProcedureInput = {
|
|
|
1573
1328
|
continuesAfterApproval?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1574
1329
|
deniedReplyTemplate?: InputMaybe<Scalars['String']['input']>;
|
|
1575
1330
|
endsConversationAfterInforming?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1576
|
-
executionAutonomy:
|
|
1331
|
+
executionAutonomy: Scalars['String']['input'];
|
|
1577
1332
|
expiredReplyTemplate?: InputMaybe<Scalars['String']['input']>;
|
|
1578
1333
|
guidanceSteps: Array<Scalars['String']['input']>;
|
|
1579
1334
|
id: Scalars['ID']['input'];
|
|
@@ -1685,10 +1440,10 @@ export type TokenUsage = {
|
|
|
1685
1440
|
};
|
|
1686
1441
|
export declare enum TonePreset {
|
|
1687
1442
|
Cordial = "cordial",
|
|
1688
|
-
|
|
1443
|
+
Descontraido = "descontraido",
|
|
1444
|
+
Direto = "direto",
|
|
1689
1445
|
Formal = "formal",
|
|
1690
|
-
|
|
1691
|
-
Technical = "technical"
|
|
1446
|
+
Tecnico = "tecnico"
|
|
1692
1447
|
}
|
|
1693
1448
|
export declare enum ToolAvailability {
|
|
1694
1449
|
Available = "available",
|
|
@@ -1712,8 +1467,6 @@ export declare enum Typenames {
|
|
|
1712
1467
|
AiAgentConversation = "AiAgentConversation",
|
|
1713
1468
|
AiAgentConversationAnalysis = "AiAgentConversationAnalysis",
|
|
1714
1469
|
AiAgentConversationPointer = "AiAgentConversationPointer",
|
|
1715
|
-
AiAgentConversationStarted = "AiAgentConversationStarted",
|
|
1716
|
-
AiAgentDispatchingAgent = "AiAgentDispatchingAgent",
|
|
1717
1470
|
AiAgentEvalReport = "AiAgentEvalReport",
|
|
1718
1471
|
AiAgentExternalTermination = "AiAgentExternalTermination",
|
|
1719
1472
|
AiAgentOpenConversation = "AiAgentOpenConversation",
|
|
@@ -1882,71 +1635,17 @@ export type AiAgentRetentionPolicyQuery = {
|
|
|
1882
1635
|
});
|
|
1883
1636
|
};
|
|
1884
1637
|
export type AiAgentConversationMetricsQueryVariables = Exact<{
|
|
1885
|
-
input:
|
|
1638
|
+
input: AiAgentMetricsInput;
|
|
1886
1639
|
}>;
|
|
1887
1640
|
export type AiAgentConversationMetricsQuery = {
|
|
1888
|
-
aiAgentConversationMetrics:
|
|
1889
|
-
items: Array<Pick<AiAgentConversationMetrics, 'sessionId' | 'channel' | 'turns' | 'startedAt' | 'lastTurnAt' | 'totalTokens' | 'costMicroUsd' | 'durationMs' | 'lastOutcome' | 'state' | 'status' | 'subcategory' | 'contactReason' | 'contactReasonTag' | 'channelType'>>;
|
|
1890
|
-
facets: Array<(Pick<AiAgentConversationFacet, 'name'> & {
|
|
1891
|
-
values: Array<Pick<AiAgentConversationFacetValue, 'value' | 'count'>>;
|
|
1892
|
-
})>;
|
|
1893
|
-
dateRange?: Maybe<Pick<AiAgentConversationDateRange, 'min' | 'max'>>;
|
|
1894
|
-
});
|
|
1895
|
-
};
|
|
1896
|
-
export type AiAgentMetricsSeriesQueryVariables = Exact<{
|
|
1897
|
-
input: AiAgentMetricsSeriesInput;
|
|
1898
|
-
}>;
|
|
1899
|
-
export type AiAgentMetricsSeriesQuery = {
|
|
1900
|
-
aiAgentMetricsSeries: (Pick<AiAgentMetricsSeries, 'truncated'> & {
|
|
1901
|
-
points: Array<Pick<AiAgentMetricsSeriesPoint, 'date' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
|
|
1902
|
-
});
|
|
1641
|
+
aiAgentConversationMetrics: Array<Pick<AiAgentConversationMetrics, 'sessionId' | 'channel' | 'turns' | 'startedAt' | 'lastTurnAt' | 'totalTokens' | 'costMicroUsd' | 'durationMs' | 'lastOutcome' | 'state' | 'status' | 'subcategory' | 'contactReason' | 'contactReasonTag' | 'channelType'>>;
|
|
1903
1642
|
};
|
|
1904
|
-
export type AiAgentDashboardQueryVariables = Exact<{
|
|
1905
|
-
input: AiAgentDashboardInput;
|
|
1906
|
-
}>;
|
|
1907
|
-
export type AiAgentDashboardQuery = {
|
|
1908
|
-
aiAgentDashboard: (Pick<AiAgentDashboard, 'agentId' | 'period' | 'timezone' | 'bucket' | 'agentScoreAvg' | 'agentScoreAvgBand' | 'analyzedConversations' | 'hasActiveDispatches' | 'truncated' | 'analysesTruncated'> & {
|
|
1909
|
-
window: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
|
|
1910
|
-
previousWindow: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
|
|
1911
|
-
conversations: AiAgentDashboardIndicatorFragment;
|
|
1912
|
-
resolved: AiAgentDashboardIndicatorFragment;
|
|
1913
|
-
unresolved: AiAgentDashboardIndicatorFragment;
|
|
1914
|
-
handoffProcedure: AiAgentDashboardIndicatorFragment;
|
|
1915
|
-
handoffNeed: AiAgentDashboardIndicatorFragment;
|
|
1916
|
-
abandonment: AiAgentDashboardIndicatorFragment;
|
|
1917
|
-
scoreBands: Array<(Pick<AiAgentDashboardScoreBand, 'band' | 'count' | 'percent' | 'polarity'> & {
|
|
1918
|
-
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1919
|
-
})>;
|
|
1920
|
-
activeDispatches?: Maybe<{
|
|
1921
|
-
sent: AiAgentDashboardIndicatorFragment;
|
|
1922
|
-
answered: AiAgentDashboardIndicatorFragment;
|
|
1923
|
-
unanswered: AiAgentDashboardIndicatorFragment;
|
|
1924
|
-
}>;
|
|
1925
|
-
sentimentAtStart: Array<AiAgentDashboardSentimentFragment>;
|
|
1926
|
-
sentimentAtEnd: Array<AiAgentDashboardSentimentFragment>;
|
|
1927
|
-
contactReasons: {
|
|
1928
|
-
all: Array<AiAgentDashboardContactReasonFragment>;
|
|
1929
|
-
handoff: Array<AiAgentDashboardContactReasonFragment>;
|
|
1930
|
-
abandonment: Array<AiAgentDashboardContactReasonFragment>;
|
|
1931
|
-
};
|
|
1932
|
-
procedures: Array<Pick<AiAgentDashboardProcedure, 'key' | 'name' | 'count' | 'level'>>;
|
|
1933
|
-
knowledgeGaps: Array<Pick<AiAgentDashboardKnowledgeGap, 'key' | 'count' | 'level'>>;
|
|
1934
|
-
series: Array<Pick<AiAgentDashboardSeriesPoint, 'date' | 'endDate' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
|
|
1935
|
-
});
|
|
1936
|
-
};
|
|
1937
|
-
export type AiAgentDashboardIndicatorFragment = (Pick<AiAgentDashboardIndicator, 'value' | 'polarity'> & {
|
|
1938
|
-
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1939
|
-
});
|
|
1940
|
-
export type AiAgentDashboardSentimentFragment = (Pick<AiAgentDashboardSentiment, 'sentiment' | 'count' | 'percent' | 'polarity'> & {
|
|
1941
|
-
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1942
|
-
});
|
|
1943
|
-
export type AiAgentDashboardContactReasonFragment = Pick<AiAgentDashboardContactReason, 'key' | 'count' | 'percent'>;
|
|
1944
1643
|
export type AiAgentConversationOutcomeQueryVariables = Exact<{
|
|
1945
1644
|
sessionId: Scalars['ID']['input'];
|
|
1946
1645
|
}>;
|
|
1947
1646
|
export type AiAgentConversationOutcomeQuery = {
|
|
1948
|
-
aiAgentConversationOutcome?: Maybe<(Pick<AiAgentConversationOutcome, 'sessionId' | 'agentId' | 'agentVersion' | 'resolution' | 'resolutionDefinition' | 'collectedData' | 'collectedDataAvailable' | 'turns' | 'startedAt' | 'lastTurnAt' | 'haltReason' | 'handoffReason' | 'agentSummary' | 'promisedNextStep' | 'channelType'
|
|
1949
|
-
classification: Pick<AiAgentConversationClassification, 'state' | '
|
|
1647
|
+
aiAgentConversationOutcome?: Maybe<(Pick<AiAgentConversationOutcome, 'sessionId' | 'agentId' | 'agentVersion' | 'resolution' | 'resolutionDefinition' | 'collectedData' | 'collectedDataAvailable' | 'turns' | 'startedAt' | 'lastTurnAt' | 'haltReason' | 'handoffReason' | 'agentSummary' | 'promisedNextStep' | 'channelType'> & {
|
|
1648
|
+
classification: Pick<AiAgentConversationClassification, 'state' | 'classification' | 'subcategory' | 'technicalFailure' | 'eligibleForResolution' | 'consumesAllowance' | 'inactivityWindowMs' | 'definitionVersion'>;
|
|
1950
1649
|
actions: Array<Pick<AiAgentConversationAction, 'toolId' | 'name' | 'ok' | 'result' | 'at'>>;
|
|
1951
1650
|
contactReason?: Maybe<Pick<AiAgentContactReason, 'name' | 'useCaseId' | 'tag' | 'other' | 'source'>>;
|
|
1952
1651
|
analysis?: Maybe<Pick<AiAgentConversationAnalysis, 'analysisVersion' | 'failed' | 'failureReason' | 'sentimentStart' | 'sentimentEnd' | 'estimatedSatisfaction' | 'riskAlerts' | 'knowledgeGaps' | 'repeatedInformation' | 'humanRequests' | 'contactReason' | 'contactReasonId' | 'contactReasonTag' | 'contactReasonOther' | 'contactReasonSource' | 'summary' | 'agentScore' | 'agentScoreBand' | 'agentClarity' | 'customerEffortScore' | 'model' | 'costMicroUsd' | 'analyzedAt'>>;
|
|
@@ -2042,7 +1741,6 @@ export type AiAgentCheckLimitsQuery = {
|
|
|
2042
1741
|
};
|
|
2043
1742
|
export type AiAgentMetricsReportFragment = (Pick<AiAgentMetrics, 'agentId' | 'from' | 'to' | 'truncated' | 'conversations' | 'conversationsResolved' | 'conversationsInconclusive' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'conversationsEligible' | 'conversationsResolvedByDefinition' | 'resolvedRate' | 'unresolvedRate' | 'handoffProcedureRate' | 'handoffNeedRate' | 'abandonmentRate' | 'classificationDefinitionVersion' | 'analyzedConversations' | 'estimatedSatisfactionAvg' | 'analysisCostMicroUsd' | 'failedAnalyses' | 'analysesTruncated' | 'agentScoreAvg' | 'agentScoreAvgBand' | 'agentClarityAvg' | 'customerEffortScoreAvg' | 'escalatedToHuman' | 'escalatedToFlow' | 'escalatedTargetUndeclared' | 'humanRequestedTurns' | 'costMicroUsd' | 'costMicroUsdPerResolvedConversation' | 'unpricedTurns' | 'inputTokens' | 'outputTokens' | 'totalTokens' | 'cachedInputTokens' | 'cachedTurns' | 'llmCalls' | 'avgTurnDurationMs' | 'p95TurnDurationMs' | 'avgLlmLatencyMs' | 'turns' | 'answeredTurns' | 'answeredWithFailedConnectionTurns' | 'unansweredTurns' | 'unansweredDefinition' | 'blockedTurns' | 'haltedTurns' | 'budgetExceededTurns' | 'identificationRequiredTurns' | 'toolCalls' | 'toolCallsFailed' | 'knowledgeRetrieved' | 'knowledgeEmpty' | 'knowledgeUnavailable' | 'knowledgeSkipped'> & {
|
|
2044
1743
|
conversationsByClassification: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
2045
|
-
classificationBreakdown: Array<Pick<AiAgentClassificationCount, 'state' | 'subcategory' | 'technicalFailure' | 'count'>>;
|
|
2046
1744
|
sentimentAtStart: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
|
|
2047
1745
|
sentimentAtEnd: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
|
|
2048
1746
|
riskAlerts: Array<Pick<AiAgentRiskAlertCount, 'key' | 'count'>>;
|
|
@@ -2188,12 +1886,9 @@ export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProced
|
|
|
2188
1886
|
export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n }\n}\n ";
|
|
2189
1887
|
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
|
|
2190
1888
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2191
|
-
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2192
|
-
export declare const AiAgentDashboardSentimentFragmentDoc = "\n fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {\n sentiment\n count\n percent\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2193
|
-
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
2194
1889
|
export declare const AiAgentApprovalFragmentDoc = "\n fragment aiAgentApproval on AiAgentApproval {\n agentId\n sessionId\n toolId\n toolName\n args\n channelId\n customerId\n requestedAt\n expiresAt\n status\n decidedBy\n decidedAt\n}\n ";
|
|
2195
1890
|
export declare const AiAgentCheckRunFragmentDoc = "\n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
2196
|
-
export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n
|
|
1891
|
+
export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
2197
1892
|
export declare const NlpInstanceFragmentDoc = "\n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
2198
1893
|
export declare const QnaFragmentFragmentDoc = "\n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n ";
|
|
2199
1894
|
export declare const ListAiAgentsDocument = "\n query listAiAgents {\n listAiAgents {\n ...aiAgentSummary\n }\n}\n \n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
|
|
@@ -2213,10 +1908,8 @@ export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId
|
|
|
2213
1908
|
export declare const ListAiAgentScenariosDocument = "\n query listAiAgentScenarios($agentId: ID!) {\n listAiAgentScenarios(agentId: $agentId) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2214
1909
|
export declare const SetAiAgentRetentionPolicyDocument = "\n mutation setAiAgentRetentionPolicy($input: AiAgentRetentionPolicyInput!) {\n setAiAgentRetentionPolicy(input: $input) {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
|
|
2215
1910
|
export declare const AiAgentRetentionPolicyDocument = "\n query aiAgentRetentionPolicy {\n aiAgentRetentionPolicy {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
|
|
2216
|
-
export declare const AiAgentConversationMetricsDocument = "\n query aiAgentConversationMetrics($input:
|
|
2217
|
-
export declare const
|
|
2218
|
-
export declare const AiAgentDashboardDocument = "\n query aiAgentDashboard($input: AiAgentDashboardInput!) {\n aiAgentDashboard(input: $input) {\n agentId\n period\n timezone\n window {\n from\n to\n }\n previousWindow {\n from\n to\n }\n bucket\n conversations {\n ...aiAgentDashboardIndicator\n }\n resolved {\n ...aiAgentDashboardIndicator\n }\n unresolved {\n ...aiAgentDashboardIndicator\n }\n handoffProcedure {\n ...aiAgentDashboardIndicator\n }\n handoffNeed {\n ...aiAgentDashboardIndicator\n }\n abandonment {\n ...aiAgentDashboardIndicator\n }\n scoreBands {\n band\n count\n percent\n polarity\n variation {\n unit\n value\n }\n }\n agentScoreAvg\n agentScoreAvgBand\n analyzedConversations\n hasActiveDispatches\n activeDispatches {\n sent {\n ...aiAgentDashboardIndicator\n }\n answered {\n ...aiAgentDashboardIndicator\n }\n unanswered {\n ...aiAgentDashboardIndicator\n }\n }\n sentimentAtStart {\n ...aiAgentDashboardSentiment\n }\n sentimentAtEnd {\n ...aiAgentDashboardSentiment\n }\n contactReasons {\n all {\n ...aiAgentDashboardContactReason\n }\n handoff {\n ...aiAgentDashboardContactReason\n }\n abandonment {\n ...aiAgentDashboardContactReason\n }\n }\n procedures {\n key\n name\n count\n level\n }\n knowledgeGaps {\n key\n count\n level\n }\n series {\n date\n endDate\n conversations\n conversationsEligible\n conversationsResolved\n conversationsUnresolved\n conversationsHandoffNeed\n conversationsAbandoned\n resolvedRate\n unresolvedRate\n handoffNeedRate\n abandonmentRate\n }\n truncated\n analysesTruncated\n }\n}\n \n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n \n\n fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {\n sentiment\n count\n percent\n polarity\n variation {\n unit\n value\n }\n}\n \n\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
2219
|
-
export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!) {\n aiAgentConversationOutcome(sessionId: $sessionId) {\n sessionId\n agentId\n agentVersion\n resolution\n resolutionDefinition\n collectedData\n collectedDataAvailable\n turns\n startedAt\n lastTurnAt\n haltReason\n handoffReason\n agentSummary\n promisedNextStep\n classification {\n state\n status\n classification\n subcategory\n technicalFailure\n eligibleForResolution\n consumesAllowance\n inactivityWindowMs\n definitionVersion\n }\n channelType\n reversibleUntil\n actions {\n toolId\n name\n ok\n result\n at\n }\n contactReason {\n name\n useCaseId\n tag\n other\n source\n }\n analysis {\n analysisVersion\n failed\n failureReason\n sentimentStart\n sentimentEnd\n estimatedSatisfaction\n riskAlerts\n knowledgeGaps\n repeatedInformation\n humanRequests\n contactReason\n contactReasonId\n contactReasonTag\n contactReasonOther\n contactReasonSource\n summary\n agentScore\n agentScoreBand\n agentClarity\n customerEffortScore\n model\n costMicroUsd\n analyzedAt\n }\n }\n}\n ";
|
|
1911
|
+
export declare const AiAgentConversationMetricsDocument = "\n query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {\n aiAgentConversationMetrics(input: $input) {\n sessionId\n channel\n turns\n startedAt\n lastTurnAt\n totalTokens\n costMicroUsd\n durationMs\n lastOutcome\n state\n status\n subcategory\n contactReason\n contactReasonTag\n channelType\n }\n}\n ";
|
|
1912
|
+
export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!) {\n aiAgentConversationOutcome(sessionId: $sessionId) {\n sessionId\n agentId\n agentVersion\n resolution\n resolutionDefinition\n collectedData\n collectedDataAvailable\n turns\n startedAt\n lastTurnAt\n haltReason\n handoffReason\n agentSummary\n promisedNextStep\n classification {\n state\n classification\n subcategory\n technicalFailure\n eligibleForResolution\n consumesAllowance\n inactivityWindowMs\n definitionVersion\n }\n channelType\n actions {\n toolId\n name\n ok\n result\n at\n }\n contactReason {\n name\n useCaseId\n tag\n other\n source\n }\n analysis {\n analysisVersion\n failed\n failureReason\n sentimentStart\n sentimentEnd\n estimatedSatisfaction\n riskAlerts\n knowledgeGaps\n repeatedInformation\n humanRequests\n contactReason\n contactReasonId\n contactReasonTag\n contactReasonOther\n contactReasonSource\n summary\n agentScore\n agentScoreBand\n agentClarity\n customerEffortScore\n model\n costMicroUsd\n analyzedAt\n }\n }\n}\n ";
|
|
2220
1913
|
export declare const SaveAiAgentUseCaseDocument = "\n mutation saveAiAgentUseCase($input: SaveAiAgentUseCaseInput!) {\n saveAiAgentUseCase(input: $input) {\n ...aiAgentUseCase\n }\n}\n \n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n tag\n status\n updatedAt\n}\n ";
|
|
2221
1914
|
export declare const SaveAiAgentProcedureDocument = "\n mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {\n saveAiAgentProcedure(input: $input) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n status\n updatedAt\n}\n ";
|
|
2222
1915
|
export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
|
|
@@ -2231,7 +1924,7 @@ export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentSc
|
|
|
2231
1924
|
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2232
1925
|
export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(agentId: $agentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2233
1926
|
export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
|
|
2234
|
-
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n
|
|
1927
|
+
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
2235
1928
|
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n \n\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2236
1929
|
export declare const AiAgentRoutingPreviewDocument = "\n query aiAgentRoutingPreview($input: AiAgentRoutingPreviewInput!) {\n aiAgentRoutingPreview(input: $input) {\n high\n medium\n examples {\n message\n useCaseId\n score\n confidence\n }\n }\n}\n ";
|
|
2237
1930
|
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
|
|
@@ -2268,8 +1961,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2268
1961
|
setAiAgentRetentionPolicy(variables: SetAiAgentRetentionPolicyMutationVariables, options?: C): Promise<SetAiAgentRetentionPolicyMutation>;
|
|
2269
1962
|
aiAgentRetentionPolicy(variables?: AiAgentRetentionPolicyQueryVariables, options?: C): Promise<AiAgentRetentionPolicyQuery>;
|
|
2270
1963
|
aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
|
|
2271
|
-
aiAgentMetricsSeries(variables: AiAgentMetricsSeriesQueryVariables, options?: C): Promise<AiAgentMetricsSeriesQuery>;
|
|
2272
|
-
aiAgentDashboard(variables: AiAgentDashboardQueryVariables, options?: C): Promise<AiAgentDashboardQuery>;
|
|
2273
1964
|
aiAgentConversationOutcome(variables: AiAgentConversationOutcomeQueryVariables, options?: C): Promise<AiAgentConversationOutcomeQuery>;
|
|
2274
1965
|
saveAiAgentUseCase(variables: SaveAiAgentUseCaseMutationVariables, options?: C): Promise<SaveAiAgentUseCaseMutation>;
|
|
2275
1966
|
saveAiAgentProcedure(variables: SaveAiAgentProcedureMutationVariables, options?: C): Promise<SaveAiAgentProcedureMutation>;
|
package/src/sdks/ai.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentMetricsDocument = exports.AiAgentCheckLimitsDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.ResolveAiAgentApprovalDocument = exports.ListAiAgentApprovalsDocument = exports.RememberAiAgentSessionFactsDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.
|
|
6
|
-
exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = void 0;
|
|
4
|
+
exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentMetricsByAgentDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentMetricsReportFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentApprovalFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolEffect = exports.ToolAvailability = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentTechnicalFailure = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentHandoffReason = exports.AiAgentFrequencyLevel = exports.AiAgentConversationSubcategory = exports.AiAgentConversationState = exports.AiAgentConversationClass = exports.AiAgentContactReasonSource = exports.AiAgentCheckRunStatus = exports.AiAgentChannelType = exports.AiAgentAnalysisFailureReason = void 0;
|
|
5
|
+
exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentMetricsDocument = exports.AiAgentCheckLimitsDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.ResolveAiAgentApprovalDocument = exports.ListAiAgentApprovalsDocument = exports.RememberAiAgentSessionFactsDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = void 0;
|
|
7
6
|
exports.getSdk = getSdk;
|
|
8
7
|
var AiAgentAnalysisFailureReason;
|
|
9
8
|
(function (AiAgentAnalysisFailureReason) {
|
|
@@ -30,61 +29,36 @@ var AiAgentContactReasonSource;
|
|
|
30
29
|
})(AiAgentContactReasonSource || (exports.AiAgentContactReasonSource = AiAgentContactReasonSource = {}));
|
|
31
30
|
var AiAgentConversationClass;
|
|
32
31
|
(function (AiAgentConversationClass) {
|
|
33
|
-
AiAgentConversationClass["
|
|
34
|
-
AiAgentConversationClass["
|
|
35
|
-
AiAgentConversationClass["
|
|
32
|
+
AiAgentConversationClass["NaoElegivel"] = "NAO_ELEGIVEL";
|
|
33
|
+
AiAgentConversationClass["NaoResolvida"] = "NAO_RESOLVIDA";
|
|
34
|
+
AiAgentConversationClass["Resolvida"] = "RESOLVIDA";
|
|
36
35
|
})(AiAgentConversationClass || (exports.AiAgentConversationClass = AiAgentConversationClass = {}));
|
|
37
|
-
var AiAgentConversationSortField;
|
|
38
|
-
(function (AiAgentConversationSortField) {
|
|
39
|
-
AiAgentConversationSortField["Date"] = "DATE";
|
|
40
|
-
AiAgentConversationSortField["Status"] = "STATUS";
|
|
41
|
-
AiAgentConversationSortField["Subcategory"] = "SUBCATEGORY";
|
|
42
|
-
})(AiAgentConversationSortField || (exports.AiAgentConversationSortField = AiAgentConversationSortField = {}));
|
|
43
36
|
var AiAgentConversationState;
|
|
44
37
|
(function (AiAgentConversationState) {
|
|
45
|
-
AiAgentConversationState["
|
|
46
|
-
AiAgentConversationState["
|
|
47
|
-
AiAgentConversationState["
|
|
48
|
-
AiAgentConversationState["
|
|
49
|
-
AiAgentConversationState["
|
|
50
|
-
AiAgentConversationState["
|
|
38
|
+
AiAgentConversationState["EmAndamento"] = "EM_ANDAMENTO";
|
|
39
|
+
AiAgentConversationState["EncerradaPorConclusao"] = "ENCERRADA_POR_CONCLUSAO";
|
|
40
|
+
AiAgentConversationState["EncerradaPorFalhaTecnica"] = "ENCERRADA_POR_FALHA_TECNICA";
|
|
41
|
+
AiAgentConversationState["EncerradaPorInatividade"] = "ENCERRADA_POR_INATIVIDADE";
|
|
42
|
+
AiAgentConversationState["EncerradaPorTeto"] = "ENCERRADA_POR_TETO";
|
|
43
|
+
AiAgentConversationState["EncerradaPorTransbordo"] = "ENCERRADA_POR_TRANSBORDO";
|
|
51
44
|
})(AiAgentConversationState || (exports.AiAgentConversationState = AiAgentConversationState = {}));
|
|
52
|
-
var AiAgentConversationStatus;
|
|
53
|
-
(function (AiAgentConversationStatus) {
|
|
54
|
-
AiAgentConversationStatus["InProgress"] = "IN_PROGRESS";
|
|
55
|
-
AiAgentConversationStatus["NotEligible"] = "NOT_ELIGIBLE";
|
|
56
|
-
AiAgentConversationStatus["Resolved"] = "RESOLVED";
|
|
57
|
-
AiAgentConversationStatus["Unresolved"] = "UNRESOLVED";
|
|
58
|
-
})(AiAgentConversationStatus || (exports.AiAgentConversationStatus = AiAgentConversationStatus = {}));
|
|
59
45
|
var AiAgentConversationSubcategory;
|
|
60
46
|
(function (AiAgentConversationSubcategory) {
|
|
61
|
-
AiAgentConversationSubcategory["
|
|
62
|
-
AiAgentConversationSubcategory["
|
|
63
|
-
AiAgentConversationSubcategory["
|
|
64
|
-
AiAgentConversationSubcategory["
|
|
65
|
-
AiAgentConversationSubcategory["
|
|
66
|
-
AiAgentConversationSubcategory["HandoffByCustomerNeed"] = "HANDOFF_BY_CUSTOMER_NEED";
|
|
67
|
-
AiAgentConversationSubcategory["HandoffByProcedure"] = "HANDOFF_BY_PROCEDURE";
|
|
68
|
-
AiAgentConversationSubcategory["HandoffBySelfDiagnosis"] = "HANDOFF_BY_SELF_DIAGNOSIS";
|
|
69
|
-
AiAgentConversationSubcategory["NoCoverage"] = "NO_COVERAGE";
|
|
70
|
-
AiAgentConversationSubcategory["NoKnowledge"] = "NO_KNOWLEDGE";
|
|
71
|
-
AiAgentConversationSubcategory["PresumedResolution"] = "PRESUMED_RESOLUTION";
|
|
47
|
+
AiAgentConversationSubcategory["AbandonoAposEsclarecimento"] = "ABANDONO_APOS_ESCLARECIMENTO";
|
|
48
|
+
AiAgentConversationSubcategory["EncerradaPorTeto"] = "ENCERRADA_POR_TETO";
|
|
49
|
+
AiAgentConversationSubcategory["FalhaTecnica"] = "FALHA_TECNICA";
|
|
50
|
+
AiAgentConversationSubcategory["Indefinido"] = "INDEFINIDO";
|
|
51
|
+
AiAgentConversationSubcategory["InterlocutorAutomatico"] = "INTERLOCUTOR_AUTOMATICO";
|
|
72
52
|
AiAgentConversationSubcategory["PromptInjection"] = "PROMPT_INJECTION";
|
|
73
|
-
AiAgentConversationSubcategory["
|
|
74
|
-
AiAgentConversationSubcategory["
|
|
53
|
+
AiAgentConversationSubcategory["ResolvidaConfirmada"] = "RESOLVIDA_CONFIRMADA";
|
|
54
|
+
AiAgentConversationSubcategory["ResolvidaPresumida"] = "RESOLVIDA_PRESUMIDA";
|
|
55
|
+
AiAgentConversationSubcategory["SaudacaoSemDemanda"] = "SAUDACAO_SEM_DEMANDA";
|
|
56
|
+
AiAgentConversationSubcategory["SemCobertura"] = "SEM_COBERTURA";
|
|
57
|
+
AiAgentConversationSubcategory["SemConhecimento"] = "SEM_CONHECIMENTO";
|
|
58
|
+
AiAgentConversationSubcategory["TransbordoPorAutodiagnostico"] = "TRANSBORDO_POR_AUTODIAGNOSTICO";
|
|
59
|
+
AiAgentConversationSubcategory["TransbordoPorNecessidadeCliente"] = "TRANSBORDO_POR_NECESSIDADE_CLIENTE";
|
|
60
|
+
AiAgentConversationSubcategory["TransbordoPorProcedimento"] = "TRANSBORDO_POR_PROCEDIMENTO";
|
|
75
61
|
})(AiAgentConversationSubcategory || (exports.AiAgentConversationSubcategory = AiAgentConversationSubcategory = {}));
|
|
76
|
-
var AiAgentDashboardPeriod;
|
|
77
|
-
(function (AiAgentDashboardPeriod) {
|
|
78
|
-
AiAgentDashboardPeriod["Days_7"] = "DAYS_7";
|
|
79
|
-
AiAgentDashboardPeriod["Days_30"] = "DAYS_30";
|
|
80
|
-
AiAgentDashboardPeriod["Days_90"] = "DAYS_90";
|
|
81
|
-
AiAgentDashboardPeriod["Today"] = "TODAY";
|
|
82
|
-
})(AiAgentDashboardPeriod || (exports.AiAgentDashboardPeriod = AiAgentDashboardPeriod = {}));
|
|
83
|
-
var AiAgentExecutionAutonomy;
|
|
84
|
-
(function (AiAgentExecutionAutonomy) {
|
|
85
|
-
AiAgentExecutionAutonomy["Autonomous"] = "autonomous";
|
|
86
|
-
AiAgentExecutionAutonomy["NeedsApproval"] = "needsApproval";
|
|
87
|
-
})(AiAgentExecutionAutonomy || (exports.AiAgentExecutionAutonomy = AiAgentExecutionAutonomy = {}));
|
|
88
62
|
/** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
|
|
89
63
|
var AiAgentFrequencyLevel;
|
|
90
64
|
(function (AiAgentFrequencyLevel) {
|
|
@@ -106,54 +80,33 @@ var AiAgentHandoffReason;
|
|
|
106
80
|
AiAgentHandoffReason["Undeclared"] = "undeclared";
|
|
107
81
|
AiAgentHandoffReason["Unresolved"] = "unresolved";
|
|
108
82
|
})(AiAgentHandoffReason || (exports.AiAgentHandoffReason = AiAgentHandoffReason = {}));
|
|
109
|
-
var AiAgentMetricPolarity;
|
|
110
|
-
(function (AiAgentMetricPolarity) {
|
|
111
|
-
AiAgentMetricPolarity["HigherIsBetter"] = "HIGHER_IS_BETTER";
|
|
112
|
-
AiAgentMetricPolarity["HigherIsWorse"] = "HIGHER_IS_WORSE";
|
|
113
|
-
AiAgentMetricPolarity["Neutral"] = "NEUTRAL";
|
|
114
|
-
})(AiAgentMetricPolarity || (exports.AiAgentMetricPolarity = AiAgentMetricPolarity = {}));
|
|
115
|
-
var AiAgentMetricsBucket;
|
|
116
|
-
(function (AiAgentMetricsBucket) {
|
|
117
|
-
AiAgentMetricsBucket["Day"] = "DAY";
|
|
118
|
-
AiAgentMetricsBucket["Week"] = "WEEK";
|
|
119
|
-
})(AiAgentMetricsBucket || (exports.AiAgentMetricsBucket = AiAgentMetricsBucket = {}));
|
|
120
83
|
var AiAgentRiskAlert;
|
|
121
84
|
(function (AiAgentRiskAlert) {
|
|
122
|
-
AiAgentRiskAlert["
|
|
123
|
-
AiAgentRiskAlert["
|
|
85
|
+
AiAgentRiskAlert["Cancelamento"] = "cancelamento";
|
|
86
|
+
AiAgentRiskAlert["Justica"] = "justica";
|
|
124
87
|
AiAgentRiskAlert["Procon"] = "procon";
|
|
125
88
|
AiAgentRiskAlert["ReclameAqui"] = "reclame_aqui";
|
|
126
89
|
})(AiAgentRiskAlert || (exports.AiAgentRiskAlert = AiAgentRiskAlert = {}));
|
|
127
90
|
var AiAgentScoreBand;
|
|
128
91
|
(function (AiAgentScoreBand) {
|
|
129
|
-
AiAgentScoreBand["
|
|
130
|
-
AiAgentScoreBand["
|
|
131
|
-
AiAgentScoreBand["Poor"] = "poor";
|
|
92
|
+
AiAgentScoreBand["Bom"] = "bom";
|
|
93
|
+
AiAgentScoreBand["Excelente"] = "excelente";
|
|
132
94
|
AiAgentScoreBand["Regular"] = "regular";
|
|
95
|
+
AiAgentScoreBand["Ruim"] = "ruim";
|
|
133
96
|
})(AiAgentScoreBand || (exports.AiAgentScoreBand = AiAgentScoreBand = {}));
|
|
134
97
|
var AiAgentSentiment;
|
|
135
98
|
(function (AiAgentSentiment) {
|
|
136
|
-
AiAgentSentiment["
|
|
137
|
-
AiAgentSentiment["
|
|
138
|
-
AiAgentSentiment["
|
|
99
|
+
AiAgentSentiment["Negativo"] = "negativo";
|
|
100
|
+
AiAgentSentiment["Neutro"] = "neutro";
|
|
101
|
+
AiAgentSentiment["Positivo"] = "positivo";
|
|
139
102
|
})(AiAgentSentiment || (exports.AiAgentSentiment = AiAgentSentiment = {}));
|
|
140
|
-
var AiAgentSortDirection;
|
|
141
|
-
(function (AiAgentSortDirection) {
|
|
142
|
-
AiAgentSortDirection["Asc"] = "ASC";
|
|
143
|
-
AiAgentSortDirection["Desc"] = "DESC";
|
|
144
|
-
})(AiAgentSortDirection || (exports.AiAgentSortDirection = AiAgentSortDirection = {}));
|
|
145
103
|
var AiAgentTechnicalFailure;
|
|
146
104
|
(function (AiAgentTechnicalFailure) {
|
|
147
|
-
AiAgentTechnicalFailure["
|
|
148
|
-
AiAgentTechnicalFailure["
|
|
105
|
+
AiAgentTechnicalFailure["Erro_5Xx"] = "ERRO_5XX";
|
|
106
|
+
AiAgentTechnicalFailure["FerramentaIndisponivel"] = "FERRAMENTA_INDISPONIVEL";
|
|
107
|
+
AiAgentTechnicalFailure["LimiteOperacional"] = "LIMITE_OPERACIONAL";
|
|
149
108
|
AiAgentTechnicalFailure["Timeout"] = "TIMEOUT";
|
|
150
|
-
AiAgentTechnicalFailure["ToolUnavailable"] = "TOOL_UNAVAILABLE";
|
|
151
109
|
})(AiAgentTechnicalFailure || (exports.AiAgentTechnicalFailure = AiAgentTechnicalFailure = {}));
|
|
152
|
-
var AiAgentVariationUnit;
|
|
153
|
-
(function (AiAgentVariationUnit) {
|
|
154
|
-
AiAgentVariationUnit["Percent"] = "PERCENT";
|
|
155
|
-
AiAgentVariationUnit["Points"] = "POINTS";
|
|
156
|
-
})(AiAgentVariationUnit || (exports.AiAgentVariationUnit = AiAgentVariationUnit = {}));
|
|
157
110
|
var AiAgentVersionStatus;
|
|
158
111
|
(function (AiAgentVersionStatus) {
|
|
159
112
|
AiAgentVersionStatus["Draft"] = "draft";
|
|
@@ -188,10 +141,10 @@ var ParameterGrounding;
|
|
|
188
141
|
var TonePreset;
|
|
189
142
|
(function (TonePreset) {
|
|
190
143
|
TonePreset["Cordial"] = "cordial";
|
|
191
|
-
TonePreset["
|
|
144
|
+
TonePreset["Descontraido"] = "descontraido";
|
|
145
|
+
TonePreset["Direto"] = "direto";
|
|
192
146
|
TonePreset["Formal"] = "formal";
|
|
193
|
-
TonePreset["
|
|
194
|
-
TonePreset["Technical"] = "technical";
|
|
147
|
+
TonePreset["Tecnico"] = "tecnico";
|
|
195
148
|
})(TonePreset || (exports.TonePreset = TonePreset = {}));
|
|
196
149
|
var ToolAvailability;
|
|
197
150
|
(function (ToolAvailability) {
|
|
@@ -219,8 +172,6 @@ var Typenames;
|
|
|
219
172
|
Typenames["AiAgentConversation"] = "AiAgentConversation";
|
|
220
173
|
Typenames["AiAgentConversationAnalysis"] = "AiAgentConversationAnalysis";
|
|
221
174
|
Typenames["AiAgentConversationPointer"] = "AiAgentConversationPointer";
|
|
222
|
-
Typenames["AiAgentConversationStarted"] = "AiAgentConversationStarted";
|
|
223
|
-
Typenames["AiAgentDispatchingAgent"] = "AiAgentDispatchingAgent";
|
|
224
175
|
Typenames["AiAgentEvalReport"] = "AiAgentEvalReport";
|
|
225
176
|
Typenames["AiAgentExternalTermination"] = "AiAgentExternalTermination";
|
|
226
177
|
Typenames["AiAgentOpenConversation"] = "AiAgentOpenConversation";
|
|
@@ -417,35 +368,6 @@ exports.AiAgentScenarioFragmentDoc = `
|
|
|
417
368
|
expectations
|
|
418
369
|
}
|
|
419
370
|
`;
|
|
420
|
-
exports.AiAgentDashboardIndicatorFragmentDoc = `
|
|
421
|
-
fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {
|
|
422
|
-
value
|
|
423
|
-
polarity
|
|
424
|
-
variation {
|
|
425
|
-
unit
|
|
426
|
-
value
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
`;
|
|
430
|
-
exports.AiAgentDashboardSentimentFragmentDoc = `
|
|
431
|
-
fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {
|
|
432
|
-
sentiment
|
|
433
|
-
count
|
|
434
|
-
percent
|
|
435
|
-
polarity
|
|
436
|
-
variation {
|
|
437
|
-
unit
|
|
438
|
-
value
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
`;
|
|
442
|
-
exports.AiAgentDashboardContactReasonFragmentDoc = `
|
|
443
|
-
fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {
|
|
444
|
-
key
|
|
445
|
-
count
|
|
446
|
-
percent
|
|
447
|
-
}
|
|
448
|
-
`;
|
|
449
371
|
exports.AiAgentApprovalFragmentDoc = `
|
|
450
372
|
fragment aiAgentApproval on AiAgentApproval {
|
|
451
373
|
agentId
|
|
@@ -531,12 +453,6 @@ exports.AiAgentMetricsReportFragmentDoc = `
|
|
|
531
453
|
key
|
|
532
454
|
count
|
|
533
455
|
}
|
|
534
|
-
classificationBreakdown {
|
|
535
|
-
state
|
|
536
|
-
subcategory
|
|
537
|
-
technicalFailure
|
|
538
|
-
count
|
|
539
|
-
}
|
|
540
456
|
conversationsEligible
|
|
541
457
|
conversationsResolvedByDefinition
|
|
542
458
|
resolvedRate
|
|
@@ -819,171 +735,26 @@ exports.AiAgentRetentionPolicyDocument = `
|
|
|
819
735
|
}
|
|
820
736
|
`;
|
|
821
737
|
exports.AiAgentConversationMetricsDocument = `
|
|
822
|
-
query aiAgentConversationMetrics($input:
|
|
738
|
+
query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {
|
|
823
739
|
aiAgentConversationMetrics(input: $input) {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
channelType
|
|
840
|
-
}
|
|
841
|
-
total
|
|
842
|
-
limit
|
|
843
|
-
offset
|
|
844
|
-
facets {
|
|
845
|
-
name
|
|
846
|
-
values {
|
|
847
|
-
value
|
|
848
|
-
count
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
hasRiskAlerts
|
|
852
|
-
dateRange {
|
|
853
|
-
min
|
|
854
|
-
max
|
|
855
|
-
}
|
|
856
|
-
truncated
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
`;
|
|
860
|
-
exports.AiAgentMetricsSeriesDocument = `
|
|
861
|
-
query aiAgentMetricsSeries($input: AiAgentMetricsSeriesInput!) {
|
|
862
|
-
aiAgentMetricsSeries(input: $input) {
|
|
863
|
-
points {
|
|
864
|
-
date
|
|
865
|
-
conversations
|
|
866
|
-
conversationsEligible
|
|
867
|
-
conversationsResolved
|
|
868
|
-
conversationsUnresolved
|
|
869
|
-
conversationsHandoffNeed
|
|
870
|
-
conversationsAbandoned
|
|
871
|
-
resolvedRate
|
|
872
|
-
unresolvedRate
|
|
873
|
-
handoffNeedRate
|
|
874
|
-
abandonmentRate
|
|
875
|
-
}
|
|
876
|
-
truncated
|
|
740
|
+
sessionId
|
|
741
|
+
channel
|
|
742
|
+
turns
|
|
743
|
+
startedAt
|
|
744
|
+
lastTurnAt
|
|
745
|
+
totalTokens
|
|
746
|
+
costMicroUsd
|
|
747
|
+
durationMs
|
|
748
|
+
lastOutcome
|
|
749
|
+
state
|
|
750
|
+
status
|
|
751
|
+
subcategory
|
|
752
|
+
contactReason
|
|
753
|
+
contactReasonTag
|
|
754
|
+
channelType
|
|
877
755
|
}
|
|
878
756
|
}
|
|
879
757
|
`;
|
|
880
|
-
exports.AiAgentDashboardDocument = `
|
|
881
|
-
query aiAgentDashboard($input: AiAgentDashboardInput!) {
|
|
882
|
-
aiAgentDashboard(input: $input) {
|
|
883
|
-
agentId
|
|
884
|
-
period
|
|
885
|
-
timezone
|
|
886
|
-
window {
|
|
887
|
-
from
|
|
888
|
-
to
|
|
889
|
-
}
|
|
890
|
-
previousWindow {
|
|
891
|
-
from
|
|
892
|
-
to
|
|
893
|
-
}
|
|
894
|
-
bucket
|
|
895
|
-
conversations {
|
|
896
|
-
...aiAgentDashboardIndicator
|
|
897
|
-
}
|
|
898
|
-
resolved {
|
|
899
|
-
...aiAgentDashboardIndicator
|
|
900
|
-
}
|
|
901
|
-
unresolved {
|
|
902
|
-
...aiAgentDashboardIndicator
|
|
903
|
-
}
|
|
904
|
-
handoffProcedure {
|
|
905
|
-
...aiAgentDashboardIndicator
|
|
906
|
-
}
|
|
907
|
-
handoffNeed {
|
|
908
|
-
...aiAgentDashboardIndicator
|
|
909
|
-
}
|
|
910
|
-
abandonment {
|
|
911
|
-
...aiAgentDashboardIndicator
|
|
912
|
-
}
|
|
913
|
-
scoreBands {
|
|
914
|
-
band
|
|
915
|
-
count
|
|
916
|
-
percent
|
|
917
|
-
polarity
|
|
918
|
-
variation {
|
|
919
|
-
unit
|
|
920
|
-
value
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
agentScoreAvg
|
|
924
|
-
agentScoreAvgBand
|
|
925
|
-
analyzedConversations
|
|
926
|
-
hasActiveDispatches
|
|
927
|
-
activeDispatches {
|
|
928
|
-
sent {
|
|
929
|
-
...aiAgentDashboardIndicator
|
|
930
|
-
}
|
|
931
|
-
answered {
|
|
932
|
-
...aiAgentDashboardIndicator
|
|
933
|
-
}
|
|
934
|
-
unanswered {
|
|
935
|
-
...aiAgentDashboardIndicator
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
sentimentAtStart {
|
|
939
|
-
...aiAgentDashboardSentiment
|
|
940
|
-
}
|
|
941
|
-
sentimentAtEnd {
|
|
942
|
-
...aiAgentDashboardSentiment
|
|
943
|
-
}
|
|
944
|
-
contactReasons {
|
|
945
|
-
all {
|
|
946
|
-
...aiAgentDashboardContactReason
|
|
947
|
-
}
|
|
948
|
-
handoff {
|
|
949
|
-
...aiAgentDashboardContactReason
|
|
950
|
-
}
|
|
951
|
-
abandonment {
|
|
952
|
-
...aiAgentDashboardContactReason
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
procedures {
|
|
956
|
-
key
|
|
957
|
-
name
|
|
958
|
-
count
|
|
959
|
-
level
|
|
960
|
-
}
|
|
961
|
-
knowledgeGaps {
|
|
962
|
-
key
|
|
963
|
-
count
|
|
964
|
-
level
|
|
965
|
-
}
|
|
966
|
-
series {
|
|
967
|
-
date
|
|
968
|
-
endDate
|
|
969
|
-
conversations
|
|
970
|
-
conversationsEligible
|
|
971
|
-
conversationsResolved
|
|
972
|
-
conversationsUnresolved
|
|
973
|
-
conversationsHandoffNeed
|
|
974
|
-
conversationsAbandoned
|
|
975
|
-
resolvedRate
|
|
976
|
-
unresolvedRate
|
|
977
|
-
handoffNeedRate
|
|
978
|
-
abandonmentRate
|
|
979
|
-
}
|
|
980
|
-
truncated
|
|
981
|
-
analysesTruncated
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
${exports.AiAgentDashboardIndicatorFragmentDoc}
|
|
985
|
-
${exports.AiAgentDashboardSentimentFragmentDoc}
|
|
986
|
-
${exports.AiAgentDashboardContactReasonFragmentDoc}`;
|
|
987
758
|
exports.AiAgentConversationOutcomeDocument = `
|
|
988
759
|
query aiAgentConversationOutcome($sessionId: ID!) {
|
|
989
760
|
aiAgentConversationOutcome(sessionId: $sessionId) {
|
|
@@ -1003,7 +774,6 @@ exports.AiAgentConversationOutcomeDocument = `
|
|
|
1003
774
|
promisedNextStep
|
|
1004
775
|
classification {
|
|
1005
776
|
state
|
|
1006
|
-
status
|
|
1007
777
|
classification
|
|
1008
778
|
subcategory
|
|
1009
779
|
technicalFailure
|
|
@@ -1013,7 +783,6 @@ exports.AiAgentConversationOutcomeDocument = `
|
|
|
1013
783
|
definitionVersion
|
|
1014
784
|
}
|
|
1015
785
|
channelType
|
|
1016
|
-
reversibleUntil
|
|
1017
786
|
actions {
|
|
1018
787
|
toolId
|
|
1019
788
|
name
|
|
@@ -1347,12 +1116,6 @@ function getSdk(requester) {
|
|
|
1347
1116
|
aiAgentConversationMetrics(variables, options) {
|
|
1348
1117
|
return requester(exports.AiAgentConversationMetricsDocument, variables, options);
|
|
1349
1118
|
},
|
|
1350
|
-
aiAgentMetricsSeries(variables, options) {
|
|
1351
|
-
return requester(exports.AiAgentMetricsSeriesDocument, variables, options);
|
|
1352
|
-
},
|
|
1353
|
-
aiAgentDashboard(variables, options) {
|
|
1354
|
-
return requester(exports.AiAgentDashboardDocument, variables, options);
|
|
1355
|
-
},
|
|
1356
1119
|
aiAgentConversationOutcome(variables, options) {
|
|
1357
1120
|
return requester(exports.AiAgentConversationOutcomeDocument, variables, options);
|
|
1358
1121
|
},
|