@droz-js/sdk 0.25.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.25.3",
4
+ "version": "0.25.5",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
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").AiAgentConversationMetricsInput;
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
- NotEligible = "NOT_ELIGIBLE",
311
- Resolved = "RESOLVED",
312
- Unresolved = "UNRESOLVED"
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: AiAgentConversationStatus;
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,162 +357,34 @@ 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
- ClosedByCap = "CLOSED_BY_CAP",
427
- ClosedByConclusion = "CLOSED_BY_CONCLUSION",
428
- ClosedByHandoff = "CLOSED_BY_HANDOFF",
429
- ClosedByInactivity = "CLOSED_BY_INACTIVITY",
430
- ClosedByTechnicalFailure = "CLOSED_BY_TECHNICAL_FAILURE",
431
- InProgress = "IN_PROGRESS"
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
- AbandonedAfterClarification = "ABANDONED_AFTER_CLARIFICATION",
441
- AutomatedInterlocutor = "AUTOMATED_INTERLOCUTOR",
442
- CapReached = "CAP_REACHED",
443
- ConfirmedResolution = "CONFIRMED_RESOLUTION",
444
- GreetingWithoutDemand = "GREETING_WITHOUT_DEMAND",
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
- TechnicalFailure = "TECHNICAL_FAILURE",
453
- Undefined = "UNDEFINED"
454
- }
455
- export type AiAgentDashboard = {
456
- abandonment: AiAgentDashboardIndicator;
457
- /** Absent when no dispatch was sent in the window. Absent is not zero. */
458
- activeDispatches?: Maybe<AiAgentDashboardActiveDispatches>;
459
- agentId: Scalars['ID']['output'];
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"
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"
528
387
  }
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
388
  /** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
571
389
  export declare enum AiAgentFrequencyLevel {
572
390
  Frequent = "FREQUENT",
@@ -628,11 +446,6 @@ export type AiAgentKnowledgeBase = {
628
446
  isPublic: Scalars['Boolean']['output'];
629
447
  title: Scalars['String']['output'];
630
448
  };
631
- export declare enum AiAgentMetricPolarity {
632
- HigherIsBetter = "HIGHER_IS_BETTER",
633
- HigherIsWorse = "HIGHER_IS_WORSE",
634
- Neutral = "NEUTRAL"
635
- }
636
449
  export type AiAgentMetrics = {
637
450
  /** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
638
451
  abandonmentRate?: Maybe<Scalars['Number']['output']>;
@@ -664,11 +477,9 @@ export type AiAgentMetrics = {
664
477
  cachedInputTokens: Scalars['Number']['output'];
665
478
  /** Turnos respondidos pelo cache, sem chamada ao modelo. E o ganho da otimizacao de §4.9. */
666
479
  cachedTurns: Scalars['Number']['output'];
667
- classificationBreakdown: Array<AiAgentClassificationCount>;
668
480
  classificationDefinitionVersion: Scalars['String']['output'];
669
481
  contactReasons: AiAgentContactReasons;
670
482
  conversations: Scalars['Number']['output'];
671
- /** @deprecated A chave junta subcategoria e falha tecnica numa string. Use classificationBreakdown. */
672
483
  conversationsByClassification: Array<AiAgentMetricsCount>;
673
484
  conversationsEligible: Scalars['Number']['output'];
674
485
  /**
@@ -775,10 +586,6 @@ export type AiAgentMetrics = {
775
586
  /** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
776
587
  unresolvedRate?: Maybe<Scalars['Number']['output']>;
777
588
  };
778
- export declare enum AiAgentMetricsBucket {
779
- Day = "DAY",
780
- Week = "WEEK"
781
- }
782
589
  export type AiAgentMetricsCount = {
783
590
  count: Scalars['Number']['output'];
784
591
  key: Scalars['String']['output'];
@@ -789,34 +596,6 @@ export type AiAgentMetricsInput = {
789
596
  from: Scalars['Number']['input'];
790
597
  to: Scalars['Number']['input'];
791
598
  };
792
- export type AiAgentMetricsSeries = {
793
- points: Array<AiAgentMetricsSeriesPoint>;
794
- /** true quando o teto de leitura foi atingido: a série cobre parte do período. */
795
- truncated: Scalars['Boolean']['output'];
796
- };
797
- /** IANA name of the viewer time zone, e.g. America/Sao_Paulo. A week starts on Monday. */
798
- export type AiAgentMetricsSeriesInput = {
799
- agentId: Scalars['ID']['input'];
800
- bucket: AiAgentMetricsBucket;
801
- channel?: InputMaybe<Scalars['String']['input']>;
802
- from: Scalars['Number']['input'];
803
- timezone: Scalars['String']['input'];
804
- to: Scalars['Number']['input'];
805
- };
806
- export type AiAgentMetricsSeriesPoint = {
807
- abandonmentRate?: Maybe<Scalars['Number']['output']>;
808
- conversations: Scalars['Number']['output'];
809
- conversationsAbandoned: Scalars['Number']['output'];
810
- conversationsEligible: Scalars['Number']['output'];
811
- conversationsHandoffNeed: Scalars['Number']['output'];
812
- conversationsResolved: Scalars['Number']['output'];
813
- conversationsUnresolved: Scalars['Number']['output'];
814
- /** Local date (YYYY-MM-DD) of the first day of the bucket. */
815
- date: Scalars['String']['output'];
816
- handoffNeedRate?: Maybe<Scalars['Number']['output']>;
817
- resolvedRate?: Maybe<Scalars['Number']['output']>;
818
- unresolvedRate?: Maybe<Scalars['Number']['output']>;
819
- };
820
599
  /** A mesma janela, sem agente: a listagem quer todos de uma vez. */
821
600
  export type AiAgentMetricsWindowInput = {
822
601
  channel?: InputMaybe<Scalars['String']['input']>;
@@ -869,8 +648,8 @@ export type AiAgentRetentionPolicyInput = {
869
648
  masksPersonalData: Scalars['Boolean']['input'];
870
649
  };
871
650
  export declare enum AiAgentRiskAlert {
872
- Cancellation = "cancellation",
873
- LegalAction = "legal_action",
651
+ Cancelamento = "cancelamento",
652
+ Justica = "justica",
874
653
  Procon = "procon",
875
654
  ReclameAqui = "reclame_aqui"
876
655
  }
@@ -948,28 +727,24 @@ export type AiAgentScenarioTurn = {
948
727
  turn: Scalars['Int']['output'];
949
728
  };
950
729
  export declare enum AiAgentScoreBand {
951
- Excellent = "excellent",
952
- Good = "good",
953
- Poor = "poor",
954
- Regular = "regular"
730
+ Bom = "bom",
731
+ Excelente = "excelente",
732
+ Regular = "regular",
733
+ Ruim = "ruim"
955
734
  }
956
735
  export type AiAgentScoreBandCount = {
957
736
  count: Scalars['Number']['output'];
958
737
  key: AiAgentScoreBand;
959
738
  };
960
739
  export declare enum AiAgentSentiment {
961
- Negative = "negative",
962
- Neutral = "neutral",
963
- Positive = "positive"
740
+ Negativo = "negativo",
741
+ Neutro = "neutro",
742
+ Positivo = "positivo"
964
743
  }
965
744
  export type AiAgentSentimentCount = {
966
745
  count: Scalars['Number']['output'];
967
746
  key: AiAgentSentiment;
968
747
  };
969
- export declare enum AiAgentSortDirection {
970
- Asc = "ASC",
971
- Desc = "DESC"
972
- }
973
748
  export type AiAgentSpec = {
974
749
  /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
975
750
  allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
@@ -1031,10 +806,10 @@ export type AiAgentSummary = {
1031
806
  updatedAt: Scalars['Number']['output'];
1032
807
  };
1033
808
  export declare enum AiAgentTechnicalFailure {
1034
- Error_5Xx = "ERROR_5XX",
1035
- OperationalLimit = "OPERATIONAL_LIMIT",
1036
- Timeout = "TIMEOUT",
1037
- ToolUnavailable = "TOOL_UNAVAILABLE"
809
+ Erro_5Xx = "ERRO_5XX",
810
+ FerramentaIndisponivel = "FERRAMENTA_INDISPONIVEL",
811
+ LimiteOperacional = "LIMITE_OPERACIONAL",
812
+ Timeout = "TIMEOUT"
1038
813
  }
1039
814
  export type AiAgentTool = {
1040
815
  /** `pre_approved` (padrao) ou `human_approval`. */
@@ -1112,7 +887,7 @@ export type AiAgentTrace = {
1112
887
  outcome: Scalars['String']['output'];
1113
888
  promptBuilderVersion: Scalars['Int']['output'];
1114
889
  /** Identifica o prompt que gerou este turno sem guardar o prompt inteiro. */
1115
- promptFingerprint?: Maybe<Scalars['String']['output']>;
890
+ promptFingerprint: Scalars['String']['output'];
1116
891
  sessionId: Scalars['ID']['output'];
1117
892
  startedAt: Scalars['Float']['output'];
1118
893
  steps: Scalars['Int']['output'];
@@ -1158,15 +933,6 @@ export type AiAgentUseCaseOverlap = {
1158
933
  /** O limiar aplicado, publicado junto do resultado para o aviso nao ser lido como cada um quiser. */
1159
934
  threshold: Scalars['Number']['output'];
1160
935
  };
1161
- /** `value` is absent when there is no base to compare: no previous data, or a previous count of zero for PERCENT. */
1162
- export type AiAgentVariation = {
1163
- unit: AiAgentVariationUnit;
1164
- value?: Maybe<Scalars['Number']['output']>;
1165
- };
1166
- export declare enum AiAgentVariationUnit {
1167
- Percent = "PERCENT",
1168
- Points = "POINTS"
1169
- }
1170
936
  export type AiAgentVersion = {
1171
937
  agentId: Scalars['ID']['output'];
1172
938
  createdAt: Scalars['DateTime']['output'];
@@ -1414,9 +1180,8 @@ export type QnAInstance = {
1414
1180
  export type Query = {
1415
1181
  /** O que a suíte deste agente aceita hoje. O teto por cenário já vem dividido pelos cenários dele. */
1416
1182
  aiAgentCheckLimits: AiAgentCheckLimits;
1417
- aiAgentConversationMetrics: AiAgentConversationMetricsPage;
1183
+ aiAgentConversationMetrics: Array<AiAgentConversationMetrics>;
1418
1184
  aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
1419
- aiAgentDashboard: AiAgentDashboard;
1420
1185
  /**
1421
1186
  * §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
1422
1187
  * credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
@@ -1425,7 +1190,6 @@ export type Query = {
1425
1190
  aiAgentMetrics: AiAgentMetrics;
1426
1191
  /** As metricas da janela para todos os agentes, numa ida so. Agente sem rastro vem com zeros. */
1427
1192
  aiAgentMetricsByAgent: Array<AiAgentMetrics>;
1428
- aiAgentMetricsSeries: AiAgentMetricsSeries;
1429
1193
  /**
1430
1194
  * A politica de retencao em vigor para o tenant, com os padroes aplicados quando ele nao
1431
1195
  * configurou a propria. Existe para a politica ser verificavel de fora, nao so estar escrita.
@@ -1472,23 +1236,17 @@ export type QueryAiAgentCheckLimitsArgs = {
1472
1236
  agentId: Scalars['ID']['input'];
1473
1237
  };
1474
1238
  export type QueryAiAgentConversationMetricsArgs = {
1475
- input: AiAgentConversationMetricsInput;
1239
+ input: AiAgentMetricsInput;
1476
1240
  };
1477
1241
  export type QueryAiAgentConversationOutcomeArgs = {
1478
1242
  sessionId: Scalars['ID']['input'];
1479
1243
  };
1480
- export type QueryAiAgentDashboardArgs = {
1481
- input: AiAgentDashboardInput;
1482
- };
1483
1244
  export type QueryAiAgentMetricsArgs = {
1484
1245
  input: AiAgentMetricsInput;
1485
1246
  };
1486
1247
  export type QueryAiAgentMetricsByAgentArgs = {
1487
1248
  input: AiAgentMetricsWindowInput;
1488
1249
  };
1489
- export type QueryAiAgentMetricsSeriesArgs = {
1490
- input: AiAgentMetricsSeriesInput;
1491
- };
1492
1250
  export type QueryAiAgentRoutingPreviewArgs = {
1493
1251
  input: AiAgentRoutingPreviewInput;
1494
1252
  };
@@ -1682,10 +1440,10 @@ export type TokenUsage = {
1682
1440
  };
1683
1441
  export declare enum TonePreset {
1684
1442
  Cordial = "cordial",
1685
- Direct = "direct",
1443
+ Descontraido = "descontraido",
1444
+ Direto = "direto",
1686
1445
  Formal = "formal",
1687
- Relaxed = "relaxed",
1688
- Technical = "technical"
1446
+ Tecnico = "tecnico"
1689
1447
  }
1690
1448
  export declare enum ToolAvailability {
1691
1449
  Available = "available",
@@ -1709,8 +1467,6 @@ export declare enum Typenames {
1709
1467
  AiAgentConversation = "AiAgentConversation",
1710
1468
  AiAgentConversationAnalysis = "AiAgentConversationAnalysis",
1711
1469
  AiAgentConversationPointer = "AiAgentConversationPointer",
1712
- AiAgentConversationStarted = "AiAgentConversationStarted",
1713
- AiAgentDispatchingAgent = "AiAgentDispatchingAgent",
1714
1470
  AiAgentEvalReport = "AiAgentEvalReport",
1715
1471
  AiAgentExternalTermination = "AiAgentExternalTermination",
1716
1472
  AiAgentOpenConversation = "AiAgentOpenConversation",
@@ -1879,71 +1635,17 @@ export type AiAgentRetentionPolicyQuery = {
1879
1635
  });
1880
1636
  };
1881
1637
  export type AiAgentConversationMetricsQueryVariables = Exact<{
1882
- input: AiAgentConversationMetricsInput;
1638
+ input: AiAgentMetricsInput;
1883
1639
  }>;
1884
1640
  export type AiAgentConversationMetricsQuery = {
1885
- aiAgentConversationMetrics: (Pick<AiAgentConversationMetricsPage, 'total' | 'limit' | 'offset' | 'hasRiskAlerts' | 'truncated'> & {
1886
- items: Array<Pick<AiAgentConversationMetrics, 'sessionId' | 'channel' | 'turns' | 'startedAt' | 'lastTurnAt' | 'totalTokens' | 'costMicroUsd' | 'durationMs' | 'lastOutcome' | 'state' | 'status' | 'subcategory' | 'contactReason' | 'contactReasonTag' | 'channelType'>>;
1887
- facets: Array<(Pick<AiAgentConversationFacet, 'name'> & {
1888
- values: Array<Pick<AiAgentConversationFacetValue, 'value' | 'count'>>;
1889
- })>;
1890
- dateRange?: Maybe<Pick<AiAgentConversationDateRange, 'min' | 'max'>>;
1891
- });
1892
- };
1893
- export type AiAgentMetricsSeriesQueryVariables = Exact<{
1894
- input: AiAgentMetricsSeriesInput;
1895
- }>;
1896
- export type AiAgentMetricsSeriesQuery = {
1897
- aiAgentMetricsSeries: (Pick<AiAgentMetricsSeries, 'truncated'> & {
1898
- points: Array<Pick<AiAgentMetricsSeriesPoint, 'date' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
1899
- });
1641
+ aiAgentConversationMetrics: Array<Pick<AiAgentConversationMetrics, 'sessionId' | 'channel' | 'turns' | 'startedAt' | 'lastTurnAt' | 'totalTokens' | 'costMicroUsd' | 'durationMs' | 'lastOutcome' | 'state' | 'status' | 'subcategory' | 'contactReason' | 'contactReasonTag' | 'channelType'>>;
1900
1642
  };
1901
- export type AiAgentDashboardQueryVariables = Exact<{
1902
- input: AiAgentDashboardInput;
1903
- }>;
1904
- export type AiAgentDashboardQuery = {
1905
- aiAgentDashboard: (Pick<AiAgentDashboard, 'agentId' | 'period' | 'timezone' | 'bucket' | 'agentScoreAvg' | 'agentScoreAvgBand' | 'analyzedConversations' | 'hasActiveDispatches' | 'truncated' | 'analysesTruncated'> & {
1906
- window: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
1907
- previousWindow: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
1908
- conversations: AiAgentDashboardIndicatorFragment;
1909
- resolved: AiAgentDashboardIndicatorFragment;
1910
- unresolved: AiAgentDashboardIndicatorFragment;
1911
- handoffProcedure: AiAgentDashboardIndicatorFragment;
1912
- handoffNeed: AiAgentDashboardIndicatorFragment;
1913
- abandonment: AiAgentDashboardIndicatorFragment;
1914
- scoreBands: Array<(Pick<AiAgentDashboardScoreBand, 'band' | 'count' | 'percent' | 'polarity'> & {
1915
- variation: Pick<AiAgentVariation, 'unit' | 'value'>;
1916
- })>;
1917
- activeDispatches?: Maybe<{
1918
- sent: AiAgentDashboardIndicatorFragment;
1919
- answered: AiAgentDashboardIndicatorFragment;
1920
- unanswered: AiAgentDashboardIndicatorFragment;
1921
- }>;
1922
- sentimentAtStart: Array<AiAgentDashboardSentimentFragment>;
1923
- sentimentAtEnd: Array<AiAgentDashboardSentimentFragment>;
1924
- contactReasons: {
1925
- all: Array<AiAgentDashboardContactReasonFragment>;
1926
- handoff: Array<AiAgentDashboardContactReasonFragment>;
1927
- abandonment: Array<AiAgentDashboardContactReasonFragment>;
1928
- };
1929
- procedures: Array<Pick<AiAgentDashboardProcedure, 'key' | 'name' | 'count' | 'level'>>;
1930
- knowledgeGaps: Array<Pick<AiAgentDashboardKnowledgeGap, 'key' | 'count' | 'level'>>;
1931
- series: Array<Pick<AiAgentDashboardSeriesPoint, 'date' | 'endDate' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
1932
- });
1933
- };
1934
- export type AiAgentDashboardIndicatorFragment = (Pick<AiAgentDashboardIndicator, 'value' | 'polarity'> & {
1935
- variation: Pick<AiAgentVariation, 'unit' | 'value'>;
1936
- });
1937
- export type AiAgentDashboardSentimentFragment = (Pick<AiAgentDashboardSentiment, 'sentiment' | 'count' | 'percent' | 'polarity'> & {
1938
- variation: Pick<AiAgentVariation, 'unit' | 'value'>;
1939
- });
1940
- export type AiAgentDashboardContactReasonFragment = Pick<AiAgentDashboardContactReason, 'key' | 'count' | 'percent'>;
1941
1643
  export type AiAgentConversationOutcomeQueryVariables = Exact<{
1942
1644
  sessionId: Scalars['ID']['input'];
1943
1645
  }>;
1944
1646
  export type AiAgentConversationOutcomeQuery = {
1945
- aiAgentConversationOutcome?: Maybe<(Pick<AiAgentConversationOutcome, 'sessionId' | 'agentId' | 'agentVersion' | 'resolution' | 'resolutionDefinition' | 'collectedData' | 'collectedDataAvailable' | 'turns' | 'startedAt' | 'lastTurnAt' | 'haltReason' | 'handoffReason' | 'agentSummary' | 'promisedNextStep' | 'channelType' | 'reversibleUntil'> & {
1946
- classification: Pick<AiAgentConversationClassification, 'state' | 'status' | 'classification' | 'subcategory' | 'technicalFailure' | 'eligibleForResolution' | 'consumesAllowance' | 'inactivityWindowMs' | 'definitionVersion'>;
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'>;
1947
1649
  actions: Array<Pick<AiAgentConversationAction, 'toolId' | 'name' | 'ok' | 'result' | 'at'>>;
1948
1650
  contactReason?: Maybe<Pick<AiAgentContactReason, 'name' | 'useCaseId' | 'tag' | 'other' | 'source'>>;
1949
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'>>;
@@ -2039,7 +1741,6 @@ export type AiAgentCheckLimitsQuery = {
2039
1741
  };
2040
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'> & {
2041
1743
  conversationsByClassification: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
2042
- classificationBreakdown: Array<Pick<AiAgentClassificationCount, 'state' | 'subcategory' | 'technicalFailure' | 'count'>>;
2043
1744
  sentimentAtStart: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
2044
1745
  sentimentAtEnd: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
2045
1746
  riskAlerts: Array<Pick<AiAgentRiskAlertCount, 'key' | 'count'>>;
@@ -2185,12 +1886,9 @@ export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProced
2185
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 ";
2186
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 ";
2187
1888
  export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2188
- export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
2189
- 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 ";
2190
- export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
2191
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 ";
2192
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 ";
2193
- 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 classificationBreakdown {\n state\n subcategory\n technicalFailure\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 ";
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 ";
2194
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 ";
2195
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 ";
2196
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 ";
@@ -2210,10 +1908,8 @@ export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId
2210
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 ";
2211
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 ";
2212
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 ";
2213
- export declare const AiAgentConversationMetricsDocument = "\n query aiAgentConversationMetrics($input: AiAgentConversationMetricsInput!) {\n aiAgentConversationMetrics(input: $input) {\n items {\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 total\n limit\n offset\n facets {\n name\n values {\n value\n count\n }\n }\n hasRiskAlerts\n dateRange {\n min\n max\n }\n truncated\n }\n}\n ";
2214
- export declare const AiAgentMetricsSeriesDocument = "\n query aiAgentMetricsSeries($input: AiAgentMetricsSeriesInput!) {\n aiAgentMetricsSeries(input: $input) {\n points {\n date\n conversations\n conversationsEligible\n conversationsResolved\n conversationsUnresolved\n conversationsHandoffNeed\n conversationsAbandoned\n resolvedRate\n unresolvedRate\n handoffNeedRate\n abandonmentRate\n }\n truncated\n }\n}\n ";
2215
- 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 ";
2216
- 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 ";
2217
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 ";
2218
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 ";
2219
1915
  export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
@@ -2228,7 +1924,7 @@ export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentSc
2228
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 ";
2229
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 ";
2230
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 ";
2231
- 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 classificationBreakdown {\n state\n subcategory\n technicalFailure\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 ";
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 ";
2232
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 ";
2233
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 ";
2234
1930
  export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
@@ -2265,8 +1961,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
2265
1961
  setAiAgentRetentionPolicy(variables: SetAiAgentRetentionPolicyMutationVariables, options?: C): Promise<SetAiAgentRetentionPolicyMutation>;
2266
1962
  aiAgentRetentionPolicy(variables?: AiAgentRetentionPolicyQueryVariables, options?: C): Promise<AiAgentRetentionPolicyQuery>;
2267
1963
  aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
2268
- aiAgentMetricsSeries(variables: AiAgentMetricsSeriesQueryVariables, options?: C): Promise<AiAgentMetricsSeriesQuery>;
2269
- aiAgentDashboard(variables: AiAgentDashboardQueryVariables, options?: C): Promise<AiAgentDashboardQuery>;
2270
1964
  aiAgentConversationOutcome(variables: AiAgentConversationOutcomeQueryVariables, options?: C): Promise<AiAgentConversationOutcomeQuery>;
2271
1965
  saveAiAgentUseCase(variables: SaveAiAgentUseCaseMutationVariables, options?: C): Promise<SaveAiAgentUseCaseMutation>;
2272
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.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentMetricsReportFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentApprovalFragmentDoc = exports.AiAgentDashboardContactReasonFragmentDoc = exports.AiAgentDashboardSentimentFragmentDoc = exports.AiAgentDashboardIndicatorFragmentDoc = 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.AiAgentVariationUnit = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentMetricsBucket = exports.AiAgentMetricPolarity = exports.AiAgentHandoffReason = exports.AiAgentFrequencyLevel = exports.AiAgentDashboardPeriod = exports.AiAgentConversationSubcategory = exports.AiAgentConversationStatus = exports.AiAgentConversationState = exports.AiAgentConversationSortField = exports.AiAgentConversationClass = exports.AiAgentContactReasonSource = exports.AiAgentCheckRunStatus = exports.AiAgentChannelType = exports.AiAgentAnalysisFailureReason = void 0;
5
- 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.AiAgentDashboardDocument = exports.AiAgentMetricsSeriesDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentMetricsByAgentDocument = exports.ListAiAgentVersionsDocument = void 0;
6
- exports.serviceName = exports.RemoveQnAInstanceDocument = 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,56 +29,36 @@ var AiAgentContactReasonSource;
30
29
  })(AiAgentContactReasonSource || (exports.AiAgentContactReasonSource = AiAgentContactReasonSource = {}));
31
30
  var AiAgentConversationClass;
32
31
  (function (AiAgentConversationClass) {
33
- AiAgentConversationClass["NotEligible"] = "NOT_ELIGIBLE";
34
- AiAgentConversationClass["Resolved"] = "RESOLVED";
35
- AiAgentConversationClass["Unresolved"] = "UNRESOLVED";
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["ClosedByCap"] = "CLOSED_BY_CAP";
46
- AiAgentConversationState["ClosedByConclusion"] = "CLOSED_BY_CONCLUSION";
47
- AiAgentConversationState["ClosedByHandoff"] = "CLOSED_BY_HANDOFF";
48
- AiAgentConversationState["ClosedByInactivity"] = "CLOSED_BY_INACTIVITY";
49
- AiAgentConversationState["ClosedByTechnicalFailure"] = "CLOSED_BY_TECHNICAL_FAILURE";
50
- AiAgentConversationState["InProgress"] = "IN_PROGRESS";
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["AbandonedAfterClarification"] = "ABANDONED_AFTER_CLARIFICATION";
62
- AiAgentConversationSubcategory["AutomatedInterlocutor"] = "AUTOMATED_INTERLOCUTOR";
63
- AiAgentConversationSubcategory["CapReached"] = "CAP_REACHED";
64
- AiAgentConversationSubcategory["ConfirmedResolution"] = "CONFIRMED_RESOLUTION";
65
- AiAgentConversationSubcategory["GreetingWithoutDemand"] = "GREETING_WITHOUT_DEMAND";
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["TechnicalFailure"] = "TECHNICAL_FAILURE";
74
- AiAgentConversationSubcategory["Undefined"] = "UNDEFINED";
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
62
  /** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
84
63
  var AiAgentFrequencyLevel;
85
64
  (function (AiAgentFrequencyLevel) {
@@ -101,54 +80,33 @@ var AiAgentHandoffReason;
101
80
  AiAgentHandoffReason["Undeclared"] = "undeclared";
102
81
  AiAgentHandoffReason["Unresolved"] = "unresolved";
103
82
  })(AiAgentHandoffReason || (exports.AiAgentHandoffReason = AiAgentHandoffReason = {}));
104
- var AiAgentMetricPolarity;
105
- (function (AiAgentMetricPolarity) {
106
- AiAgentMetricPolarity["HigherIsBetter"] = "HIGHER_IS_BETTER";
107
- AiAgentMetricPolarity["HigherIsWorse"] = "HIGHER_IS_WORSE";
108
- AiAgentMetricPolarity["Neutral"] = "NEUTRAL";
109
- })(AiAgentMetricPolarity || (exports.AiAgentMetricPolarity = AiAgentMetricPolarity = {}));
110
- var AiAgentMetricsBucket;
111
- (function (AiAgentMetricsBucket) {
112
- AiAgentMetricsBucket["Day"] = "DAY";
113
- AiAgentMetricsBucket["Week"] = "WEEK";
114
- })(AiAgentMetricsBucket || (exports.AiAgentMetricsBucket = AiAgentMetricsBucket = {}));
115
83
  var AiAgentRiskAlert;
116
84
  (function (AiAgentRiskAlert) {
117
- AiAgentRiskAlert["Cancellation"] = "cancellation";
118
- AiAgentRiskAlert["LegalAction"] = "legal_action";
85
+ AiAgentRiskAlert["Cancelamento"] = "cancelamento";
86
+ AiAgentRiskAlert["Justica"] = "justica";
119
87
  AiAgentRiskAlert["Procon"] = "procon";
120
88
  AiAgentRiskAlert["ReclameAqui"] = "reclame_aqui";
121
89
  })(AiAgentRiskAlert || (exports.AiAgentRiskAlert = AiAgentRiskAlert = {}));
122
90
  var AiAgentScoreBand;
123
91
  (function (AiAgentScoreBand) {
124
- AiAgentScoreBand["Excellent"] = "excellent";
125
- AiAgentScoreBand["Good"] = "good";
126
- AiAgentScoreBand["Poor"] = "poor";
92
+ AiAgentScoreBand["Bom"] = "bom";
93
+ AiAgentScoreBand["Excelente"] = "excelente";
127
94
  AiAgentScoreBand["Regular"] = "regular";
95
+ AiAgentScoreBand["Ruim"] = "ruim";
128
96
  })(AiAgentScoreBand || (exports.AiAgentScoreBand = AiAgentScoreBand = {}));
129
97
  var AiAgentSentiment;
130
98
  (function (AiAgentSentiment) {
131
- AiAgentSentiment["Negative"] = "negative";
132
- AiAgentSentiment["Neutral"] = "neutral";
133
- AiAgentSentiment["Positive"] = "positive";
99
+ AiAgentSentiment["Negativo"] = "negativo";
100
+ AiAgentSentiment["Neutro"] = "neutro";
101
+ AiAgentSentiment["Positivo"] = "positivo";
134
102
  })(AiAgentSentiment || (exports.AiAgentSentiment = AiAgentSentiment = {}));
135
- var AiAgentSortDirection;
136
- (function (AiAgentSortDirection) {
137
- AiAgentSortDirection["Asc"] = "ASC";
138
- AiAgentSortDirection["Desc"] = "DESC";
139
- })(AiAgentSortDirection || (exports.AiAgentSortDirection = AiAgentSortDirection = {}));
140
103
  var AiAgentTechnicalFailure;
141
104
  (function (AiAgentTechnicalFailure) {
142
- AiAgentTechnicalFailure["Error_5Xx"] = "ERROR_5XX";
143
- AiAgentTechnicalFailure["OperationalLimit"] = "OPERATIONAL_LIMIT";
105
+ AiAgentTechnicalFailure["Erro_5Xx"] = "ERRO_5XX";
106
+ AiAgentTechnicalFailure["FerramentaIndisponivel"] = "FERRAMENTA_INDISPONIVEL";
107
+ AiAgentTechnicalFailure["LimiteOperacional"] = "LIMITE_OPERACIONAL";
144
108
  AiAgentTechnicalFailure["Timeout"] = "TIMEOUT";
145
- AiAgentTechnicalFailure["ToolUnavailable"] = "TOOL_UNAVAILABLE";
146
109
  })(AiAgentTechnicalFailure || (exports.AiAgentTechnicalFailure = AiAgentTechnicalFailure = {}));
147
- var AiAgentVariationUnit;
148
- (function (AiAgentVariationUnit) {
149
- AiAgentVariationUnit["Percent"] = "PERCENT";
150
- AiAgentVariationUnit["Points"] = "POINTS";
151
- })(AiAgentVariationUnit || (exports.AiAgentVariationUnit = AiAgentVariationUnit = {}));
152
110
  var AiAgentVersionStatus;
153
111
  (function (AiAgentVersionStatus) {
154
112
  AiAgentVersionStatus["Draft"] = "draft";
@@ -183,10 +141,10 @@ var ParameterGrounding;
183
141
  var TonePreset;
184
142
  (function (TonePreset) {
185
143
  TonePreset["Cordial"] = "cordial";
186
- TonePreset["Direct"] = "direct";
144
+ TonePreset["Descontraido"] = "descontraido";
145
+ TonePreset["Direto"] = "direto";
187
146
  TonePreset["Formal"] = "formal";
188
- TonePreset["Relaxed"] = "relaxed";
189
- TonePreset["Technical"] = "technical";
147
+ TonePreset["Tecnico"] = "tecnico";
190
148
  })(TonePreset || (exports.TonePreset = TonePreset = {}));
191
149
  var ToolAvailability;
192
150
  (function (ToolAvailability) {
@@ -214,8 +172,6 @@ var Typenames;
214
172
  Typenames["AiAgentConversation"] = "AiAgentConversation";
215
173
  Typenames["AiAgentConversationAnalysis"] = "AiAgentConversationAnalysis";
216
174
  Typenames["AiAgentConversationPointer"] = "AiAgentConversationPointer";
217
- Typenames["AiAgentConversationStarted"] = "AiAgentConversationStarted";
218
- Typenames["AiAgentDispatchingAgent"] = "AiAgentDispatchingAgent";
219
175
  Typenames["AiAgentEvalReport"] = "AiAgentEvalReport";
220
176
  Typenames["AiAgentExternalTermination"] = "AiAgentExternalTermination";
221
177
  Typenames["AiAgentOpenConversation"] = "AiAgentOpenConversation";
@@ -412,35 +368,6 @@ exports.AiAgentScenarioFragmentDoc = `
412
368
  expectations
413
369
  }
414
370
  `;
415
- exports.AiAgentDashboardIndicatorFragmentDoc = `
416
- fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {
417
- value
418
- polarity
419
- variation {
420
- unit
421
- value
422
- }
423
- }
424
- `;
425
- exports.AiAgentDashboardSentimentFragmentDoc = `
426
- fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {
427
- sentiment
428
- count
429
- percent
430
- polarity
431
- variation {
432
- unit
433
- value
434
- }
435
- }
436
- `;
437
- exports.AiAgentDashboardContactReasonFragmentDoc = `
438
- fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {
439
- key
440
- count
441
- percent
442
- }
443
- `;
444
371
  exports.AiAgentApprovalFragmentDoc = `
445
372
  fragment aiAgentApproval on AiAgentApproval {
446
373
  agentId
@@ -526,12 +453,6 @@ exports.AiAgentMetricsReportFragmentDoc = `
526
453
  key
527
454
  count
528
455
  }
529
- classificationBreakdown {
530
- state
531
- subcategory
532
- technicalFailure
533
- count
534
- }
535
456
  conversationsEligible
536
457
  conversationsResolvedByDefinition
537
458
  resolvedRate
@@ -814,171 +735,26 @@ exports.AiAgentRetentionPolicyDocument = `
814
735
  }
815
736
  `;
816
737
  exports.AiAgentConversationMetricsDocument = `
817
- query aiAgentConversationMetrics($input: AiAgentConversationMetricsInput!) {
738
+ query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {
818
739
  aiAgentConversationMetrics(input: $input) {
819
- items {
820
- sessionId
821
- channel
822
- turns
823
- startedAt
824
- lastTurnAt
825
- totalTokens
826
- costMicroUsd
827
- durationMs
828
- lastOutcome
829
- state
830
- status
831
- subcategory
832
- contactReason
833
- contactReasonTag
834
- channelType
835
- }
836
- total
837
- limit
838
- offset
839
- facets {
840
- name
841
- values {
842
- value
843
- count
844
- }
845
- }
846
- hasRiskAlerts
847
- dateRange {
848
- min
849
- max
850
- }
851
- truncated
852
- }
853
- }
854
- `;
855
- exports.AiAgentMetricsSeriesDocument = `
856
- query aiAgentMetricsSeries($input: AiAgentMetricsSeriesInput!) {
857
- aiAgentMetricsSeries(input: $input) {
858
- points {
859
- date
860
- conversations
861
- conversationsEligible
862
- conversationsResolved
863
- conversationsUnresolved
864
- conversationsHandoffNeed
865
- conversationsAbandoned
866
- resolvedRate
867
- unresolvedRate
868
- handoffNeedRate
869
- abandonmentRate
870
- }
871
- 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
872
755
  }
873
756
  }
874
757
  `;
875
- exports.AiAgentDashboardDocument = `
876
- query aiAgentDashboard($input: AiAgentDashboardInput!) {
877
- aiAgentDashboard(input: $input) {
878
- agentId
879
- period
880
- timezone
881
- window {
882
- from
883
- to
884
- }
885
- previousWindow {
886
- from
887
- to
888
- }
889
- bucket
890
- conversations {
891
- ...aiAgentDashboardIndicator
892
- }
893
- resolved {
894
- ...aiAgentDashboardIndicator
895
- }
896
- unresolved {
897
- ...aiAgentDashboardIndicator
898
- }
899
- handoffProcedure {
900
- ...aiAgentDashboardIndicator
901
- }
902
- handoffNeed {
903
- ...aiAgentDashboardIndicator
904
- }
905
- abandonment {
906
- ...aiAgentDashboardIndicator
907
- }
908
- scoreBands {
909
- band
910
- count
911
- percent
912
- polarity
913
- variation {
914
- unit
915
- value
916
- }
917
- }
918
- agentScoreAvg
919
- agentScoreAvgBand
920
- analyzedConversations
921
- hasActiveDispatches
922
- activeDispatches {
923
- sent {
924
- ...aiAgentDashboardIndicator
925
- }
926
- answered {
927
- ...aiAgentDashboardIndicator
928
- }
929
- unanswered {
930
- ...aiAgentDashboardIndicator
931
- }
932
- }
933
- sentimentAtStart {
934
- ...aiAgentDashboardSentiment
935
- }
936
- sentimentAtEnd {
937
- ...aiAgentDashboardSentiment
938
- }
939
- contactReasons {
940
- all {
941
- ...aiAgentDashboardContactReason
942
- }
943
- handoff {
944
- ...aiAgentDashboardContactReason
945
- }
946
- abandonment {
947
- ...aiAgentDashboardContactReason
948
- }
949
- }
950
- procedures {
951
- key
952
- name
953
- count
954
- level
955
- }
956
- knowledgeGaps {
957
- key
958
- count
959
- level
960
- }
961
- series {
962
- date
963
- endDate
964
- conversations
965
- conversationsEligible
966
- conversationsResolved
967
- conversationsUnresolved
968
- conversationsHandoffNeed
969
- conversationsAbandoned
970
- resolvedRate
971
- unresolvedRate
972
- handoffNeedRate
973
- abandonmentRate
974
- }
975
- truncated
976
- analysesTruncated
977
- }
978
- }
979
- ${exports.AiAgentDashboardIndicatorFragmentDoc}
980
- ${exports.AiAgentDashboardSentimentFragmentDoc}
981
- ${exports.AiAgentDashboardContactReasonFragmentDoc}`;
982
758
  exports.AiAgentConversationOutcomeDocument = `
983
759
  query aiAgentConversationOutcome($sessionId: ID!) {
984
760
  aiAgentConversationOutcome(sessionId: $sessionId) {
@@ -998,7 +774,6 @@ exports.AiAgentConversationOutcomeDocument = `
998
774
  promisedNextStep
999
775
  classification {
1000
776
  state
1001
- status
1002
777
  classification
1003
778
  subcategory
1004
779
  technicalFailure
@@ -1008,7 +783,6 @@ exports.AiAgentConversationOutcomeDocument = `
1008
783
  definitionVersion
1009
784
  }
1010
785
  channelType
1011
- reversibleUntil
1012
786
  actions {
1013
787
  toolId
1014
788
  name
@@ -1342,12 +1116,6 @@ function getSdk(requester) {
1342
1116
  aiAgentConversationMetrics(variables, options) {
1343
1117
  return requester(exports.AiAgentConversationMetricsDocument, variables, options);
1344
1118
  },
1345
- aiAgentMetricsSeries(variables, options) {
1346
- return requester(exports.AiAgentMetricsSeriesDocument, variables, options);
1347
- },
1348
- aiAgentDashboard(variables, options) {
1349
- return requester(exports.AiAgentDashboardDocument, variables, options);
1350
- },
1351
1119
  aiAgentConversationOutcome(variables, options) {
1352
1120
  return requester(exports.AiAgentConversationOutcomeDocument, variables, options);
1353
1121
  },