@droz-js/sdk 0.25.21 → 0.25.23

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/src/sdks/ai.d.ts CHANGED
@@ -138,34 +138,31 @@ export type AiAgentApproval = {
138
138
  customerId?: Maybe<Scalars['String']['output']>;
139
139
  decidedAt?: Maybe<Scalars['Number']['output']>;
140
140
  decidedBy?: Maybe<Scalars['String']['output']>;
141
- /** Epoch ms. Depois disso a pendencia nao pode mais ser decidida. */
142
141
  expiresAt: Scalars['Number']['output'];
143
- /** Epoch ms. Junto de `sessionId`, identifica a pendencia em `resolveAiAgentApproval`. */
144
142
  requestedAt: Scalars['Number']['output'];
145
143
  sessionId: Scalars['ID']['output'];
146
- /** `pending`, `approved`, `rejected` ou `expired`. */
147
- status: Scalars['String']['output'];
144
+ status: AiAgentApprovalStatus;
148
145
  toolId: Scalars['ID']['output'];
149
146
  toolName: Scalars['String']['output'];
150
147
  };
148
+ export declare enum AiAgentApprovalDecision {
149
+ Approved = "approved",
150
+ Rejected = "rejected"
151
+ }
152
+ export declare enum AiAgentApprovalStatus {
153
+ Approved = "approved",
154
+ Expired = "expired",
155
+ Pending = "pending",
156
+ Rejected = "rejected"
157
+ }
151
158
  export type AiAgentAuthoringRefInput = {
152
159
  agentId: Scalars['ID']['input'];
153
160
  id: Scalars['ID']['input'];
154
161
  };
155
162
  export type AiAgentBudget = {
156
- /**
157
- * Teto de gasto da conversa em micro-dolar (1e-6 USD). So vale para chamada com preco conhecido:
158
- * modelo fora da tabela de preco produz custo desconhecido, nunca zero. Combine com `maxTokens`,
159
- * que sempre vale.
160
- */
161
163
  maxCostMicroUsd?: Maybe<Scalars['Int']['output']>;
162
- /**
163
- * Teto de gasto do agente no periodo (mes calendario UTC), em micro-dolar. Ausente = sem teto de
164
- * periodo. Independe de `maxCostMicroUsd`, que vale por conversa.
165
- */
166
164
  maxPeriodCostMicroUsd?: Maybe<Scalars['Int']['output']>;
167
165
  maxSteps: Scalars['Int']['output'];
168
- /** Teto de token da conversa inteira. Ausente = sem teto de token. */
169
166
  maxTokens?: Maybe<Scalars['Int']['output']>;
170
167
  maxToolCalls: Scalars['Int']['output'];
171
168
  onExceeded: BudgetExceededAction;
@@ -199,36 +196,34 @@ export declare enum AiAgentChannelType {
199
196
  Web = "web",
200
197
  Whatsapp = "whatsapp"
201
198
  }
199
+ export type AiAgentCheckAuthoring = {
200
+ procedures: Scalars['Int']['output'];
201
+ updatedAt?: Maybe<Scalars['Number']['output']>;
202
+ useCases: Scalars['Int']['output'];
203
+ };
202
204
  export type AiAgentCheckLimits = {
203
- /** Já dividido pelos cenários deste agente: é o maior valor que a suíte dele sustenta. */
204
205
  maxRunsPerScenario: Scalars['Int']['output'];
205
- /** Teto do total, cenários × execuções. */
206
206
  maxSuiteRuns: Scalars['Int']['output'];
207
207
  minRunsPerScenario: Scalars['Int']['output'];
208
208
  scenarioCount: Scalars['Int']['output'];
209
209
  };
210
210
  export type AiAgentCheckResult = {
211
+ authoring?: Maybe<AiAgentCheckAuthoring>;
211
212
  regressions: Array<AiAgentRegression>;
212
213
  reports: Array<AiAgentScenarioReport>;
213
- /** Falso quando um cenário piorou além da tolerância em relação à versão live. */
214
214
  safeToPublish: Scalars['Boolean']['output'];
215
215
  };
216
216
  export type AiAgentCheckRun = {
217
217
  agentId: Scalars['ID']['output'];
218
- /** Execuções já terminadas. Avança durante a suíte, não só no fim. */
219
218
  completedRuns: Scalars['Int']['output'];
220
- /** Presente só quando a execução falhou. */
221
219
  error?: Maybe<Scalars['String']['output']>;
222
- /** Ferramentas vinculadas que a versão avaliada não oferece ao modelo, pelo catálogo atual. Nulo quando a versão foi removida. */
223
220
  excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
224
221
  finishedAt?: Maybe<Scalars['Number']['output']>;
225
222
  requestedAt: Scalars['Number']['output'];
226
- /** Presente só quando a execução terminou bem. */
227
223
  result?: Maybe<AiAgentCheckResult>;
228
224
  runId: Scalars['ID']['output'];
229
225
  startedAt?: Maybe<Scalars['Number']['output']>;
230
226
  status: AiAgentCheckRunStatus;
231
- /** Execuções que a suíte terá ao todo, definido no momento do pedido. */
232
227
  totalRuns: Scalars['Int']['output'];
233
228
  version: Scalars['Int']['output'];
234
229
  };
@@ -247,13 +242,10 @@ export type AiAgentClassificationCount = {
247
242
  export type AiAgentCompetingPair = {
248
243
  left: Scalars['ID']['output'];
249
244
  right: Scalars['ID']['output'];
250
- /** Similaridade entre as duas descricoes, de 0 a 1. */
251
245
  score: Scalars['Number']['output'];
252
246
  };
253
247
  export type AiAgentContactReason = {
254
- /** Nome do caso de uso publicado, item do `can` ou `Outro`. Analise anterior a versao 2 pode trazer `Fora do escopo`. */
255
248
  name: Scalars['String']['output'];
256
- /** Mascarado quando a politica de retencao pede. */
257
249
  other?: Maybe<Scalars['String']['output']>;
258
250
  source: AiAgentContactReasonSource;
259
251
  tag?: Maybe<Scalars['String']['output']>;
@@ -272,14 +264,12 @@ export type AiAgentConversationAction = {
272
264
  at: Scalars['Number']['output'];
273
265
  name: Scalars['String']['output'];
274
266
  ok: Scalars['Boolean']['output'];
275
- /** Campos que a ferramenta declarou devolver; mascarado quando a politica de retencao pede. */
276
267
  result: Scalars['String']['output'];
277
268
  toolId: Scalars['ID']['output'];
278
269
  };
279
270
  export type AiAgentConversationAnalysis = {
280
271
  agentClarity?: Maybe<Scalars['Int']['output']>;
281
272
  agentScore?: Maybe<Scalars['Int']['output']>;
282
- /** `excelente` a partir de 85, `bom` de 60, `regular` de 40. */
283
273
  agentScoreBand?: Maybe<AiAgentScoreBand>;
284
274
  analysisVersion: Scalars['Int']['output'];
285
275
  analyzedAt: Scalars['Number']['output'];
@@ -289,21 +279,17 @@ export type AiAgentConversationAnalysis = {
289
279
  contactReasonSource?: Maybe<AiAgentContactReasonSource>;
290
280
  contactReasonTag?: Maybe<Scalars['String']['output']>;
291
281
  costMicroUsd?: Maybe<Scalars['Number']['output']>;
292
- /** De 0 a 100; 100 e o cliente nao ter precisado se esforcar. */
293
282
  customerEffortScore?: Maybe<Scalars['Int']['output']>;
294
- /** Estimativa do modelo, de 1 a 5; nao e a pesquisa respondida pelo cliente. */
295
283
  estimatedSatisfaction?: Maybe<Scalars['Int']['output']>;
296
284
  failed?: Maybe<Scalars['Boolean']['output']>;
297
285
  failureReason?: Maybe<AiAgentAnalysisFailureReason>;
298
286
  humanRequests?: Maybe<Scalars['Int']['output']>;
299
- /** Mascaradas quando a politica de retencao pede. */
300
287
  knowledgeGaps: Array<Scalars['String']['output']>;
301
288
  model?: Maybe<Scalars['String']['output']>;
302
289
  repeatedInformation?: Maybe<Scalars['Boolean']['output']>;
303
290
  riskAlerts: Array<AiAgentRiskAlert>;
304
291
  sentimentEnd?: Maybe<AiAgentSentiment>;
305
292
  sentimentStart?: Maybe<AiAgentSentiment>;
306
- /** Mascarado quando a politica de retencao pede. */
307
293
  summary?: Maybe<Scalars['String']['output']>;
308
294
  };
309
295
  export declare enum AiAgentConversationClass {
@@ -312,7 +298,6 @@ export declare enum AiAgentConversationClass {
312
298
  Unresolved = "UNRESOLVED"
313
299
  }
314
300
  export type AiAgentConversationClassification = {
315
- /** Ausente enquanto a conversa esta em andamento. */
316
301
  classification?: Maybe<AiAgentConversationClass>;
317
302
  consumesAllowance: Scalars['Boolean']['output'];
318
303
  definitionVersion: Scalars['String']['output'];
@@ -340,7 +325,6 @@ export type AiAgentConversationMetrics = {
340
325
  channelType?: Maybe<AiAgentChannelType>;
341
326
  contactReason?: Maybe<Scalars['String']['output']>;
342
327
  contactReasonTag?: Maybe<Scalars['String']['output']>;
343
- /** Ausente quando a sessão não tem conversa registrada: a linha cobre a sessão inteira. */
344
328
  conversationId?: Maybe<Scalars['ID']['output']>;
345
329
  costMicroUsd: Scalars['Number']['output'];
346
330
  durationMs: Scalars['Number']['output'];
@@ -378,49 +362,33 @@ export type AiAgentConversationMetricsInput = {
378
362
  useCaseId?: InputMaybe<Array<Scalars['ID']['input']>>;
379
363
  };
380
364
  export type AiAgentConversationMetricsPage = {
381
- /** Intervalo de `lastTurnAt` do conjunto filtrado pelos outros filtros, sem `dateFrom` e `dateTo`. Ausente quando o conjunto é vazio. */
382
365
  dateRange?: Maybe<AiAgentConversationDateRange>;
383
- /** Cada faceta conta sobre o conjunto filtrado pelos outros filtros, sem o seu próprio. */
384
366
  facets: Array<AiAgentConversationFacet>;
385
- /** true quando há conversa com alerta de risco no conjunto filtrado pelos outros filtros, sem `hasRiskAlert`. Mesma base do facet `riskAlert`. */
386
367
  hasRiskAlerts: Scalars['Boolean']['output'];
387
368
  items: Array<AiAgentConversationMetrics>;
388
369
  limit: Scalars['Number']['output'];
389
370
  offset: Scalars['Number']['output'];
390
371
  total: Scalars['Number']['output'];
391
- /** true quando o teto de leitura foi atingido: a página cobre parte do período. */
392
372
  truncated: Scalars['Boolean']['output'];
393
373
  };
394
374
  export type AiAgentConversationOutcome = {
395
375
  actions: Array<AiAgentConversationAction>;
396
376
  agentId: Scalars['ID']['output'];
397
- /** Escrito pelo modelo ao transferir ou encerrar; nao substitui o que foi medido. */
398
377
  agentSummary?: Maybe<Scalars['String']['output']>;
399
378
  agentVersion: Scalars['String']['output'];
400
- /** Ausente ate a conversa encerrada ser analisada. */
401
379
  analysis?: Maybe<AiAgentConversationAnalysis>;
402
380
  channelType?: Maybe<AiAgentChannelType>;
403
381
  classification: AiAgentConversationClassification;
404
- /** Fatos da sessao; chave e valor mascarados quando a politica de retencao pede. */
405
382
  collectedData: Scalars['JSON']['output'];
406
- /** false quando a retencao ja apagou a sessao. */
407
383
  collectedDataAvailable: Scalars['Boolean']['output'];
408
384
  contactReason?: Maybe<AiAgentContactReason>;
409
- /**
410
- * Presente quando a ficha foi pedida por conversa: turnos, classificação e resolução só dela. A análise é
411
- * gravada por sessão e só vem na última conversa da sessão.
412
- */
413
385
  conversationId?: Maybe<Scalars['ID']['output']>;
414
- /** Motivo da parada do ultimo turno, quando houve. */
415
386
  haltReason?: Maybe<Scalars['String']['output']>;
416
- /** Motivo do ultimo pedido de pessoa, com os mesmos valores de `handoffsByReason`. */
417
387
  handoffReason?: Maybe<AiAgentHandoffReason>;
418
388
  lastTurnAt: Scalars['Number']['output'];
419
- /** O que o agente disse ao consumidor que vai acontecer. */
420
389
  promisedNextStep?: Maybe<Scalars['String']['output']>;
421
390
  resolution: Scalars['String']['output'];
422
391
  resolutionDefinition: Scalars['String']['output'];
423
- /** Fim da janela de reversão por recontato. Ausente quando a conversa não reverte. */
424
392
  reversibleUntil?: Maybe<Scalars['Number']['output']>;
425
393
  sessionId: Scalars['ID']['output'];
426
394
  startedAt: Scalars['Number']['output'];
@@ -482,10 +450,8 @@ export declare enum AiAgentConversationSubcategory {
482
450
  }
483
451
  export type AiAgentDashboard = {
484
452
  abandonment: AiAgentDashboardIndicator;
485
- /** Absent when no dispatch was sent in the window. Absent is not zero. */
486
453
  activeDispatches?: Maybe<AiAgentDashboardActiveDispatches>;
487
454
  agentId: Scalars['ID']['output'];
488
- /** Absent when no conversation was analyzed in the window. Absent is not zero. */
489
455
  agentScoreAvg?: Maybe<Scalars['Float']['output']>;
490
456
  agentScoreAvgBand?: Maybe<AiAgentScoreBand>;
491
457
  analysesTruncated: Scalars['Boolean']['output'];
@@ -497,7 +463,6 @@ export type AiAgentDashboard = {
497
463
  conversationsProvisional: Scalars['Number']['output'];
498
464
  handoffNeed: AiAgentDashboardIndicator;
499
465
  handoffProcedure: AiAgentDashboardIndicator;
500
- /** Do agente, não da janela. Vira true na primeira conversa aberta pela resposta a um disparo ativo. */
501
466
  hasActiveDispatches: Scalars['Boolean']['output'];
502
467
  knowledgeGaps: Array<AiAgentDashboardKnowledgeGap>;
503
468
  previousWindow: AiAgentDashboardWindow;
@@ -508,18 +473,15 @@ export type AiAgentDashboard = {
508
473
  sentimentAtStart: Array<AiAgentDashboardSentiment>;
509
474
  series: Array<AiAgentDashboardSeriesPoint>;
510
475
  timezone: Scalars['String']['output'];
511
- /** true when the numbers cover part of the period: the read cap was reached in any window, or the search index does not cover the whole window. */
512
476
  truncated: Scalars['Boolean']['output'];
513
477
  unresolved: AiAgentDashboardIndicator;
514
478
  window: AiAgentDashboardWindow;
515
479
  };
516
- /** `answered` and `unanswered` are the share of the dispatches whose window is closed, one decimal. Absent while none is closed. */
517
480
  export type AiAgentDashboardActiveDispatches = {
518
481
  answered: AiAgentDashboardIndicator;
519
482
  sent: AiAgentDashboardIndicator;
520
483
  unanswered: AiAgentDashboardIndicator;
521
484
  };
522
- /** Sorted by count, highest first. */
523
485
  export type AiAgentDashboardContactReason = {
524
486
  count: Scalars['Number']['output'];
525
487
  key: Scalars['String']['output'];
@@ -530,7 +492,6 @@ export type AiAgentDashboardContactReasons = {
530
492
  all: Array<AiAgentDashboardContactReason>;
531
493
  handoff: Array<AiAgentDashboardContactReason>;
532
494
  };
533
- /** `value` is absent when the window has no data. */
534
495
  export type AiAgentDashboardIndicator = {
535
496
  polarity: AiAgentMetricPolarity;
536
497
  value?: Maybe<Scalars['Float']['output']>;
@@ -543,20 +504,17 @@ export type AiAgentDashboardInput = {
543
504
  timezone: Scalars['String']['input'];
544
505
  to: Scalars['Number']['input'];
545
506
  };
546
- /** Counted once per conversation. `level` is over the conversations that consulted the knowledge base. */
547
507
  export type AiAgentDashboardKnowledgeGap = {
548
508
  count: Scalars['Number']['output'];
549
509
  key: Scalars['String']['output'];
550
510
  level: AiAgentFrequencyLevel;
551
511
  };
552
- /** The procedure of the use case assigned to each conversation. `level` is over all conversations of the window. */
553
512
  export type AiAgentDashboardProcedure = {
554
513
  count: Scalars['Number']['output'];
555
514
  key: Scalars['ID']['output'];
556
515
  level: AiAgentFrequencyLevel;
557
516
  name: Scalars['String']['output'];
558
517
  };
559
- /** `percent` is the share of the band in the window total, with one decimal. Absent when the total is zero. */
560
518
  export type AiAgentDashboardScoreBand = {
561
519
  band: AiAgentScoreBand;
562
520
  count: Scalars['Number']['output'];
@@ -571,7 +529,6 @@ export type AiAgentDashboardSentiment = {
571
529
  sentiment: AiAgentSentiment;
572
530
  variation: AiAgentVariation;
573
531
  };
574
- /** `date` and `endDate` are local dates (YYYY-MM-DD) of the first and last day of the bucket, inside the window. */
575
532
  export type AiAgentDashboardSeriesPoint = {
576
533
  abandonmentRate?: Maybe<Scalars['Number']['output']>;
577
534
  conversations: Scalars['Number']['output'];
@@ -594,22 +551,12 @@ export declare enum AiAgentExecutionAutonomy {
594
551
  Autonomous = "autonomous",
595
552
  NeedsApproval = "needsApproval"
596
553
  }
597
- /** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
598
554
  export declare enum AiAgentFrequencyLevel {
599
555
  Frequent = "FREQUENT",
600
556
  Rare = "RARE",
601
557
  VeryFrequent = "VERY_FREQUENT"
602
558
  }
603
- /**
604
- * Como este agente passa o atendimento para uma pessoa.
605
- *
606
- * A transicao vive no fluxo do tenant — e a state machine dele que sabe qual estado atende gente —,
607
- * por isso e configuracao e nao constante da plataforma. Ausente significa que o agente nao passa
608
- * para ninguem: ele diz que o caso precisa de uma pessoa e usa o comportamento fora de escopo do
609
- * autor para dizer onde procura-la, em vez de prometer transferencia que nao acontece.
610
- */
611
559
  export type AiAgentHandoff = {
612
- /** `human` ou `flow`. Ausente = nao declarado: a metrica conta a parte, sem supor destino. */
613
560
  target?: Maybe<Scalars['String']['output']>;
614
561
  transition: Scalars['String']['output'];
615
562
  };
@@ -669,98 +616,51 @@ export declare enum AiAgentMetricPolarity {
669
616
  Neutral = "NEUTRAL"
670
617
  }
671
618
  export type AiAgentMetrics = {
672
- /** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
673
619
  abandonmentRate?: Maybe<Scalars['Number']['output']>;
674
620
  agentClarityAvg?: Maybe<Scalars['Float']['output']>;
675
621
  agentId: Scalars['ID']['output'];
676
622
  agentScoreAvg?: Maybe<Scalars['Float']['output']>;
677
623
  agentScoreAvgBand?: Maybe<AiAgentScoreBand>;
678
624
  agentScoreBands: Array<AiAgentScoreBandCount>;
679
- /** true quando os numeros de analise cobrem so parte do periodo. */
680
625
  analysesTruncated: Scalars['Boolean']['output'];
681
626
  analysisCostMicroUsd: Scalars['Number']['output'];
682
627
  analyzedConversations: Scalars['Number']['output'];
683
628
  answeredTurns: Scalars['Number']['output'];
684
- /**
685
- * Turnos que responderam mesmo com uma conexao falha no meio. E a superficie de risco do guardrail de
686
- * §4.7 — nao prova resposta inventada, mas e onde ela poderia acontecer.
687
- */
688
629
  answeredWithFailedConnectionTurns: Scalars['Number']['output'];
689
630
  avgLlmLatencyMs: Scalars['Number']['output'];
690
631
  avgTurnDurationMs: Scalars['Number']['output'];
691
- /** Turnos cuja resposta foi bloqueada na validacao antes do envio. */
692
632
  blockedTurns: Scalars['Number']['output'];
693
633
  blocksByCategory: Array<AiAgentMetricsCount>;
694
634
  budgetExceededTurns: Scalars['Number']['output'];
695
- /**
696
- * Entrada servida pelo cache do proprio provedor: quanto do contexto nao foi pago a preco cheio.
697
- * Provedor que nao reporta cache vale zero.
698
- */
699
635
  cachedInputTokens: Scalars['Number']['output'];
700
- /** Turnos respondidos pelo cache, sem chamada ao modelo. E o ganho da otimizacao de §4.9. */
701
636
  cachedTurns: Scalars['Number']['output'];
702
637
  classificationBreakdown: Array<AiAgentClassificationCount>;
703
- /** Versão da definição que classificou as conversas da janela. Mais de uma vem separada por vírgula, da mais nova para a mais antiga. */
704
638
  classificationDefinitionVersion: Scalars['String']['output'];
705
639
  classificationDefinitionVersions: Array<AiAgentMetricsCount>;
706
640
  contactReasons: AiAgentContactReasons;
707
- /** Conversas com turno na janela. Uma sessão pode ter mais de uma conversa. */
708
641
  conversations: Scalars['Number']['output'];
709
642
  conversationsAwaitingClassification: Scalars['Number']['output'];
710
- /** @deprecated A chave junta subcategoria e falha tecnica numa string. Use classificationBreakdown. */
711
- conversationsByClassification: Array<AiAgentMetricsCount>;
712
643
  conversationsEligible: Scalars['Number']['output'];
713
- /**
714
- * Conversas em que algum turno **pediu** uma pessoa. Pedido, nao confirmacao: o disparo da transicao
715
- * e best-effort, entao nem toda solicitacao virou transferencia de fato.
716
- */
717
644
  conversationsHandoffRequested: Scalars['Number']['output'];
718
- /**
719
- * Nem uma nem outra: parou por prazo, por repeticao, ou ainda esta acontecendo. Existe para nao
720
- * inflar a resolucao — contar "nao transferiu" como "resolveu" transformaria conversa abandonada
721
- * em sucesso.
722
- */
723
645
  conversationsInconclusive: Scalars['Number']['output'];
724
646
  conversationsProvisional: Scalars['Number']['output'];
725
- /** Conversas resolvidas sob a regra declarada em `resolutionDefinition`. */
726
647
  conversationsResolved: Scalars['Number']['output'];
727
648
  conversationsResolvedByDefinition: Scalars['Number']['output'];
728
- /** Gasto da janela em micro-dolar (1e-6 USD), inteiro. */
729
649
  costMicroUsd: Scalars['Number']['output'];
730
- /**
731
- * Gasto da janela dividido pelas conversas resolvidas, em micro-dolar. **Ausente** quando nenhuma
732
- * conversa resolveu no periodo — dividir por zero nao vira zero.
733
- */
734
650
  costMicroUsdPerResolvedConversation?: Maybe<Scalars['Number']['output']>;
735
651
  customerEffortScoreAvg?: Maybe<Scalars['Float']['output']>;
736
- /**
737
- * Escalonou, mas a transicao nao tem destino declarado. Fica a parte de proposito: somar a um dos
738
- * dois lados seria supor para onde o fluxo do tenant leva.
739
- */
740
652
  escalatedTargetUndeclared: Scalars['Number']['output'];
741
- /** Escalonamentos cujo destino o autor declarou como fluxo. */
742
653
  escalatedToFlow: Scalars['Number']['output'];
743
- /** Escalonamentos cujo destino o autor declarou como pessoa. */
744
654
  escalatedToHuman: Scalars['Number']['output'];
745
655
  estimatedSatisfactionAvg?: Maybe<Scalars['Float']['output']>;
746
656
  failedAnalyses: Scalars['Number']['output'];
747
657
  from: Scalars['Number']['output'];
748
658
  haltReasons: Array<AiAgentMetricsCount>;
749
659
  haltedTurns: Scalars['Number']['output'];
750
- /** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
751
660
  handoffNeedRate?: Maybe<Scalars['Number']['output']>;
752
- /** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
753
661
  handoffProcedureRate?: Maybe<Scalars['Number']['output']>;
754
- /**
755
- * Por que a pessoa foi pedida. Declarado pelo agente: `customer_request`, `out_of_scope`,
756
- * `knowledge_gap`, `policy_requires_human`, `cannot_resolve`, `tool_failure`; `undeclared` quando ele
757
- * transferiu sem declarar. Da plataforma: `tool_failure`, `provider_unavailable`, `budget_exceeded`,
758
- * `period_budget_exceeded` e `unresolved` quando o agente parou sem concluir.
759
- */
760
662
  handoffsByReason: Array<AiAgentHandoffReasonCount>;
761
- /** Turnos que terminaram pedindo uma pessoa (pedido, nao transferencia). */
762
663
  humanRequestedTurns: Scalars['Number']['output'];
763
- /** Turnos que precisaram de cliente identificado e nao tinham um — a medida do atrito de identificacao. */
764
664
  identificationRequiredTurns: Scalars['Number']['output'];
765
665
  inputTokens: Scalars['Number']['output'];
766
666
  knowledgeEmpty: Scalars['Number']['output'];
@@ -770,50 +670,29 @@ export type AiAgentMetrics = {
770
670
  llmCalls: Scalars['Number']['output'];
771
671
  outputTokens: Scalars['Number']['output'];
772
672
  p95TurnDurationMs: Scalars['Number']['output'];
773
- /** A regra aplicada para contar resolucao, junto do numero, para ele nao ser lido como cada um quiser. */
774
673
  resolutionDefinition: Scalars['String']['output'];
775
- /**
776
- * Sessões resolvidas pela regra v2 sobre o total de sessões, em pontos percentuais. **Ausente** quando não
777
- * houve sessão na janela: sem dado e zero por cento não são a mesma coisa.
778
- * @deprecated Regra v2, por sessão. Use resolvedRate, por conversa e pela classificação da conversa.
779
- */
674
+ /** @deprecated Regra v2, por sessão. Use resolvedRate, por conversa e pela classificação da conversa. */
780
675
  resolutionRate?: Maybe<Scalars['Number']['output']>;
781
- /** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
782
676
  resolvedRate?: Maybe<Scalars['Number']['output']>;
783
677
  riskAlerts: Array<AiAgentRiskAlertCount>;
784
678
  sentimentAtEnd: Array<AiAgentSentimentCount>;
785
679
  sentimentAtStart: Array<AiAgentSentimentCount>;
786
680
  to: Scalars['Number']['output'];
787
681
  toolCalls: Scalars['Number']['output'];
788
- /** Chamadas de ferramenta que falharam. */
789
682
  toolCallsFailed: Scalars['Number']['output'];
790
- /** Falhas por classe, com os valores de `AiAgentTracedToolCall.errorClass`. */
791
683
  toolErrorsByClass: Array<AiAgentMetricsCount>;
792
- /** Falhas por conexao externa, identificada pelo host — responde "qual integracao esta caindo". */
793
684
  toolErrorsByConnection: Array<AiAgentMetricsCount>;
794
685
  topKnowledgeGaps: Array<AiAgentMetricsCount>;
795
- /** Assuntos mais frequentes da janela, escolhidos no conjunto fechado do `can` de cada agente. */
796
686
  topTopics: Array<AiAgentMetricsCount>;
797
- /** As perguntas mais frequentes sem resposta, agrupadas por texto normalizado. */
798
687
  topUnansweredQuestions: Array<AiAgentMetricsCount>;
799
688
  totalTokens: Scalars['Number']['output'];
800
- /** true quando o teto de leitura foi atingido: os numeros cobrem parte do periodo. */
801
689
  truncated: Scalars['Boolean']['output'];
802
690
  turns: Scalars['Number']['output'];
803
691
  turnsByModel: Array<AiAgentMetricsCount>;
804
- /**
805
- * A regra aplicada para contar turno sem resposta, junto do numero, para ele nao ser lido como cada
806
- * um quiser. Deterministica: qualidade da resposta nao e medivel aqui.
807
- */
692
+ turnsByModelAndReasoningEffort: Array<AiAgentMetricsCount>;
808
693
  unansweredDefinition: Scalars['String']['output'];
809
- /** Turnos sem resposta satisfatoria sob a regra declarada em `unansweredDefinition`. */
810
694
  unansweredTurns: Scalars['Number']['output'];
811
- /**
812
- * Turnos com ao menos uma chamada ao modelo sem preco conhecido. Com isto > 0, `costMicroUsd` e
813
- * **piso**, nao total — nao decidir preco sem olhar este numero.
814
- */
815
695
  unpricedTurns: Scalars['Number']['output'];
816
- /** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
817
696
  unresolvedRate?: Maybe<Scalars['Number']['output']>;
818
697
  };
819
698
  export declare enum AiAgentMetricsBucket {
@@ -832,10 +711,8 @@ export type AiAgentMetricsInput = {
832
711
  };
833
712
  export type AiAgentMetricsSeries = {
834
713
  points: Array<AiAgentMetricsSeriesPoint>;
835
- /** true quando o teto de leitura foi atingido: a série cobre parte do período. */
836
714
  truncated: Scalars['Boolean']['output'];
837
715
  };
838
- /** IANA name of the viewer time zone, e.g. America/Sao_Paulo. A week starts on Monday. */
839
716
  export type AiAgentMetricsSeriesInput = {
840
717
  agentId: Scalars['ID']['input'];
841
718
  bucket: AiAgentMetricsBucket;
@@ -852,13 +729,11 @@ export type AiAgentMetricsSeriesPoint = {
852
729
  conversationsHandoffNeed: Scalars['Number']['output'];
853
730
  conversationsResolved: Scalars['Number']['output'];
854
731
  conversationsUnresolved: Scalars['Number']['output'];
855
- /** Local date (YYYY-MM-DD) of the first day of the bucket. */
856
732
  date: Scalars['String']['output'];
857
733
  handoffNeedRate?: Maybe<Scalars['Number']['output']>;
858
734
  resolvedRate?: Maybe<Scalars['Number']['output']>;
859
735
  unresolvedRate?: Maybe<Scalars['Number']['output']>;
860
736
  };
861
- /** A mesma janela, sem agente: a listagem quer todos de uma vez. */
862
737
  export type AiAgentMetricsWindowInput = {
863
738
  channel?: InputMaybe<Scalars['String']['input']>;
864
739
  from: Scalars['Number']['input'];
@@ -872,13 +747,11 @@ export type AiAgentProcedure = {
872
747
  endsConversationAfterInforming: Scalars['Boolean']['output'];
873
748
  executionAutonomy: AiAgentExecutionAutonomy;
874
749
  expiredReplyTemplate?: Maybe<Scalars['String']['output']>;
875
- /** As etapas como o autor instruiria uma pessoa. O texto e a fonte da verdade (§6.2). */
876
750
  guidanceSteps: Array<Scalars['String']['output']>;
877
751
  id: Scalars['ID']['output'];
878
752
  name: Scalars['String']['output'];
879
753
  replyEmailSubject?: Maybe<Scalars['String']['output']>;
880
754
  status: Scalars['String']['output'];
881
- /** Ferramentas que as etapas usam. Declaradas: e o que da para validar sem interpretar o texto. */
882
755
  toolIds: Array<Scalars['ID']['output']>;
883
756
  updatedAt: Scalars['Number']['output'];
884
757
  };
@@ -890,6 +763,11 @@ export type AiAgentRegression = {
890
763
  before: Scalars['Float']['output'];
891
764
  scenarioId: Scalars['ID']['output'];
892
765
  };
766
+ export type AiAgentRejectedCall = {
767
+ count: Scalars['Int']['output'];
768
+ reason: Scalars['String']['output'];
769
+ toolName: Scalars['String']['output'];
770
+ };
893
771
  export type AiAgentRetentionDays = {
894
772
  long_term_memory: Scalars['Int']['output'];
895
773
  session_state: Scalars['Int']['output'];
@@ -919,72 +797,47 @@ export type AiAgentRiskAlertCount = {
919
797
  key: AiAgentRiskAlert;
920
798
  };
921
799
  export type AiAgentRoutedExample = {
922
- /** `high`, `medium` ou `low`. */
923
800
  confidence: Scalars['String']['output'];
924
801
  message: Scalars['String']['output'];
925
802
  score: Scalars['Number']['output'];
926
- /** Ausente quando nenhum caso de uso reconheceu a mensagem. */
927
803
  useCaseId?: Maybe<Scalars['ID']['output']>;
928
804
  };
929
805
  export type AiAgentRoutingPreview = {
930
806
  examples: Array<AiAgentRoutedExample>;
931
- /** Limiar de confianca alta. */
932
807
  high: Scalars['Number']['output'];
933
- /** Limiar de confianca media; abaixo dele a previa nao aponta caso de uso. */
934
808
  medium: Scalars['Number']['output'];
935
809
  };
936
810
  export type AiAgentRoutingPreviewInput = {
937
811
  agentId: Scalars['ID']['input'];
938
- /** Mensagens a testar. Vazio cai em `subject`; sem os dois, previa vazia e nao erro. */
939
812
  examples: Array<Scalars['String']['input']>;
940
- /** Descricao do assunto: as mensagens sao geradas a partir dela (§5.4). Ignorada se `examples` vier. */
941
813
  subject?: InputMaybe<Scalars['String']['input']>;
942
814
  };
943
815
  export type AiAgentScenario = {
944
- /** Quem é o cliente nesta conversa. Ausente roda como anônimo. */
945
816
  customerId?: Maybe<Scalars['ID']['output']>;
946
817
  description: Scalars['String']['output'];
947
818
  expectations: Array<Scalars['JSON']['output']>;
948
819
  scenarioId: Scalars['ID']['output'];
949
- /** O que o cliente diz, em ordem. */
950
820
  turns: Array<Scalars['String']['output']>;
951
821
  };
952
822
  export type AiAgentScenarioReport = {
953
- /** Execuções que o prazo interrompeu antes de poderem ser julgadas. */
954
823
  cut: Scalars['Int']['output'];
955
- /**
956
- * Por que a conversa foi para uma pessoa, contado entre as execuções julgadas. Os motivos declarados
957
- * pelo agente (`customer_request`, `out_of_scope`, `knowledge_gap`, `policy_requires_human`,
958
- * `cannot_resolve`) são entrega por decisão dele; `provider_unavailable` e `unresolved` são desistência.
959
- * A taxa sozinha não separa as duas.
960
- */
961
824
  handoffReasons: Array<AiAgentMetricsCount>;
962
- /** Execuções efetivamente julgadas. Zero significa que este cenário não produziu evidência. */
963
825
  measured: Scalars['Int']['output'];
964
826
  passed: Scalars['Int']['output'];
965
- /** Fração das execuções MEDIDAS em que todas as expectativas valeram, 0..1. Sem sentido com measured 0. */
966
827
  rate: Scalars['Float']['output'];
967
828
  runs: Scalars['Int']['output'];
968
829
  scenarioId: Scalars['ID']['output'];
969
- /** Um item por turno do cenário, na ordem, agregado entre as execuções. */
970
830
  turns: Array<AiAgentScenarioTurn>;
971
831
  };
972
832
  export type AiAgentScenarioTurn = {
973
- /** Execuções em que o agente respondeu neste turno. */
974
833
  answered: Scalars['Int']['output'];
975
- /** Categorias que bloquearam a resposta deste turno, e em quantas execuções. */
976
834
  blockCategories: Array<AiAgentMetricsCount>;
977
- /** Execuções em que a resposta deste turno foi bloqueada antes do envio. */
978
835
  blocked: Scalars['Int']['output'];
979
- /** Execuções em que a resposta deste turno se apoiou em conhecimento ou ferramenta. */
980
836
  grounded: Scalars['Int']['output'];
981
- /** Execuções em que uma ferramenta deste turno foi recusada por falta de cliente identificado. */
982
837
  identificationRequired: Scalars['Int']['output'];
983
- /** Execuções que chegaram a este turno. */
838
+ rejectedCalls?: Maybe<Array<AiAgentRejectedCall>>;
984
839
  runs: Scalars['Int']['output'];
985
- /** Ferramentas chamadas neste turno, e em quantas execuções. */
986
840
  toolNames: Array<AiAgentMetricsCount>;
987
- /** 1 para o primeiro turno do cenário. */
988
841
  turn: Scalars['Int']['output'];
989
842
  };
990
843
  export declare enum AiAgentScoreBand {
@@ -1014,24 +867,16 @@ export type AiAgentSpec = {
1014
867
  /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
1015
868
  allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
1016
869
  budget: AiAgentBudget;
1017
- /** One natural-language permission per item. */
1018
870
  can: Array<Scalars['String']['output']>;
1019
- /** Restrictions. On conflict these win over `can`, without exception. */
1020
871
  cannot: Array<Scalars['String']['output']>;
1021
- /** Canais em que o agente atende. Ausente = ainda nao vinculado; declarado vazio e erro. */
1022
872
  channels?: Maybe<Array<Scalars['String']['output']>>;
1023
873
  conversationTiming?: Maybe<Array<AiAgentChannelTiming>>;
1024
874
  handoff?: Maybe<AiAgentHandoff>;
1025
875
  identity: AiAgentIdentity;
1026
- /**
1027
- * §4.8: bases do Droz Base vinculadas — ids de **space**, nao de credencial. A consulta e recortada
1028
- * por elas. Vazia, o agente sem nenhum vinculo consulta o acervo do tenant e o agente so-ferramenta
1029
- * nao consulta nada.
1030
- */
1031
876
  knowledgeBaseIds: Array<Scalars['ID']['output']>;
1032
- /** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
1033
877
  knowledgeFallback?: Maybe<Scalars['String']['output']>;
1034
878
  toolIds: Array<Scalars['ID']['output']>;
879
+ typingIndicator?: Maybe<Scalars['Boolean']['output']>;
1035
880
  };
1036
881
  export type AiAgentSpecInput = {
1037
882
  /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
@@ -1043,31 +888,18 @@ export type AiAgentSpecInput = {
1043
888
  conversationTiming?: InputMaybe<Array<AiAgentChannelTimingInput>>;
1044
889
  handoff?: InputMaybe<AiAgentHandoffInput>;
1045
890
  identity: AiAgentIdentityInput;
1046
- /**
1047
- * §4.8: bases do Droz Base vinculadas — ids de **space**, nao de credencial. A consulta e recortada
1048
- * por elas. Vazia, o agente sem nenhum vinculo consulta o acervo do tenant e o agente so-ferramenta
1049
- * nao consulta nada.
1050
- */
1051
891
  knowledgeBaseIds: Array<Scalars['ID']['input']>;
1052
- /** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
1053
892
  knowledgeFallback?: InputMaybe<Scalars['String']['input']>;
1054
893
  toolIds: Array<Scalars['ID']['input']>;
894
+ typingIndicator?: InputMaybe<Scalars['Boolean']['input']>;
1055
895
  };
1056
896
  export type AiAgentSummary = {
1057
897
  agentId: Scalars['ID']['output'];
1058
- /** Canais da versao no ar; sem versao no ar, os da mais recente. Vazio quando nenhuma declarou canal. */
1059
898
  channels: Array<Scalars['String']['output']>;
1060
- /** Absent until a version is published. An agent with no live version answers nobody. */
1061
899
  liveVersion?: Maybe<Scalars['Int']['output']>;
1062
900
  name: Scalars['String']['output'];
1063
- /** Acoes esperando aprovacao humana (§5.5.3). Zero tambem quando a fila nao pode ser lida. */
1064
901
  queuedApprovals: Scalars['Number']['output'];
1065
- /**
1066
- * `draft` (nunca publicado), `live` (no ar) ou `paused` (ja esteve no ar e foi tirado). `liveVersion`
1067
- * sozinho nao distingue quem nunca publicou de quem foi pausado.
1068
- */
1069
902
  status: Scalars['String']['output'];
1070
- /** Momento da versao mais recente, no ar ou nao — o "ultima alteracao" da listagem. */
1071
903
  updatedAt: Scalars['Number']['output'];
1072
904
  };
1073
905
  export declare enum AiAgentTechnicalFailure {
@@ -1077,31 +909,27 @@ export declare enum AiAgentTechnicalFailure {
1077
909
  ToolUnavailable = "TOOL_UNAVAILABLE"
1078
910
  }
1079
911
  export type AiAgentTool = {
1080
- /** `pre_approved` (padrao) ou `human_approval`. */
1081
912
  approval?: Maybe<Scalars['String']['output']>;
1082
913
  availability: ToolAvailability;
1083
- /** `url` (default): a plataforma impoe o recorte via `{customerId}` na URL; `credential`: a credencial ja e do cliente (declarado, nunca inferido). */
1084
914
  customerScope?: Maybe<Scalars['String']['output']>;
1085
915
  description: Scalars['String']['output'];
1086
916
  effect: ToolEffect;
917
+ emptyResultMessage?: Maybe<Scalars['String']['output']>;
1087
918
  name: Scalars['String']['output'];
1088
- /** `{kind: message, message?}` (default), `{kind: retry, attempts, message?}` ou `{kind: handoff}`. */
1089
919
  onFailure?: Maybe<Scalars['JSON']['output']>;
1090
920
  parameters: Array<AiAgentToolParameter>;
1091
921
  requiresAuthenticatedCustomer: Scalars['Boolean']['output'];
1092
- /** Fields the agent is allowed to see. Anything not listed never reaches the model. */
1093
922
  returns: Array<Scalars['String']['output']>;
1094
923
  toolId: Scalars['ID']['output'];
1095
924
  };
1096
925
  export type AiAgentToolExclusion = {
1097
- /** `not_bound`, `unavailable` ou `human_approval_unavailable`. */
1098
926
  reason: Scalars['String']['output'];
1099
927
  toolId: Scalars['ID']['output'];
1100
928
  };
1101
929
  export type AiAgentToolParameter = {
1102
930
  description: Scalars['String']['output'];
1103
931
  format?: Maybe<ToolParameterFormat>;
1104
- grounding: ParameterGrounding;
932
+ grounding?: Maybe<ParameterGrounding>;
1105
933
  name: Scalars['String']['output'];
1106
934
  required: Scalars['Boolean']['output'];
1107
935
  type: ToolParameterType;
@@ -1116,22 +944,18 @@ export type AiAgentToolParameterInput = {
1116
944
  type: ToolParameterType;
1117
945
  };
1118
946
  export type AiAgentToolSpecInput = {
1119
- /** `pre_approved` (padrao) ou `human_approval`. */
1120
947
  approval?: InputMaybe<Scalars['String']['input']>;
1121
948
  availability: ToolAvailability;
1122
949
  credentialRef?: InputMaybe<CredentialRefInput>;
1123
- /** `url` (default): a plataforma impoe o recorte via `{customerId}` na URL; `credential`: a credencial ja e do cliente (declarado, nunca inferido). */
1124
950
  customerScope?: InputMaybe<Scalars['String']['input']>;
1125
951
  description: Scalars['String']['input'];
1126
- /** Ignorado: a plataforma calcula pelo método do conector (GET consulta, os demais agem). */
1127
952
  effect?: InputMaybe<ToolEffect>;
953
+ emptyResultMessage?: InputMaybe<Scalars['String']['input']>;
1128
954
  idempotent: Scalars['Boolean']['input'];
1129
955
  name: Scalars['String']['input'];
1130
- /** `{kind: message, message?}` (default), `{kind: retry, attempts, message?}` ou `{kind: handoff}`. */
1131
956
  onFailure?: InputMaybe<Scalars['JSON']['input']>;
1132
957
  parameters: Array<AiAgentToolParameterInput>;
1133
958
  requiresAuthenticatedCustomer: Scalars['Boolean']['input'];
1134
- /** Campos que o agente pode ver. O que não estiver aqui nunca chega ao modelo. */
1135
959
  returns: Array<Scalars['String']['input']>;
1136
960
  reversible: Scalars['Boolean']['input'];
1137
961
  toolId: Scalars['ID']['input'];
@@ -1141,20 +965,18 @@ export type AiAgentTrace = {
1141
965
  agentVersion: Scalars['String']['output'];
1142
966
  answer: Scalars['String']['output'];
1143
967
  channelType?: Maybe<AiAgentChannelType>;
1144
- /** Ausente no turno que não selecionou ferramentas (cache, contraparte automática) e no registrado antes do campo existir. */
1145
968
  excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
1146
- /** Presente so quando o turno parou por limite; ausente quando respondeu. */
1147
969
  haltReason?: Maybe<Scalars['String']['output']>;
1148
- /** O turno tentou usar ferramenta que exige cliente identificado, sem ter um. */
1149
970
  identificationRequired?: Maybe<Scalars['Boolean']['output']>;
1150
971
  input: Scalars['String']['output'];
1151
972
  knowledgeOrigins: Array<Scalars['String']['output']>;
1152
- /** Versao da regra mestra da plataforma vigente no turno — atribui a conversa a regra sob a qual ela rodou. */
973
+ knowledgeQuery?: Maybe<Scalars['String']['output']>;
1153
974
  masterRuleVersion?: Maybe<Scalars['Int']['output']>;
975
+ model?: Maybe<Scalars['String']['output']>;
1154
976
  outcome: Scalars['String']['output'];
1155
977
  promptBuilderVersion: Scalars['Int']['output'];
1156
- /** Identifica o prompt que gerou este turno sem guardar o prompt inteiro. */
1157
978
  promptFingerprint?: Maybe<Scalars['String']['output']>;
979
+ reasoningEffort?: Maybe<Scalars['String']['output']>;
1158
980
  sessionId: Scalars['ID']['output'];
1159
981
  startedAt: Scalars['Float']['output'];
1160
982
  steps: Scalars['Int']['output'];
@@ -1162,21 +984,11 @@ export type AiAgentTrace = {
1162
984
  turn: Scalars['Int']['output'];
1163
985
  };
1164
986
  export type AiAgentTracedToolCall = {
1165
- /** O sistema externo, pelo host. Sem path nem query, que carregam parametro do cliente. */
1166
987
  connection?: Maybe<Scalars['String']['output']>;
1167
- /**
1168
- * `unauthenticated`, `not_configured`, `not_migrated`, `needs_approval`, `rejected_arguments`, `timeout`, `upstream` ou `indeterminate_write`.
1169
- * `timeout` cobre o tempo esgotado no sistema do cliente e na chamada ao apiconnectors.
1170
- * `indeterminate_write` e o timeout de escrita nao idempotente: nao se sabe se a acao foi feita.
1171
- */
988
+ empty?: Maybe<Scalars['Boolean']['output']>;
1172
989
  errorClass?: Maybe<Scalars['String']['output']>;
1173
990
  name: Scalars['String']['output'];
1174
- /**
1175
- * Se a chamada deu certo. Ausente em chamada gravada antes do desfecho estruturado existir — e
1176
- * ausente nao significa falha.
1177
- */
1178
991
  ok?: Maybe<Scalars['Boolean']['output']>;
1179
- /** Ja restrito aos campos que a ferramenta declarou em `returns`. */
1180
992
  result: Scalars['String']['output'];
1181
993
  toolId: Scalars['ID']['output'];
1182
994
  };
@@ -1185,22 +997,14 @@ export type AiAgentUseCase = {
1185
997
  name: Scalars['String']['output'];
1186
998
  procedureId?: Maybe<Scalars['ID']['output']>;
1187
999
  status: Scalars['String']['output'];
1188
- /**
1189
- * NAO e documentacao: e o texto que o roteador le para classificar a mensagem (§6.1). Descricao vaga
1190
- * produz roteamento ruim.
1191
- */
1192
1000
  subjectDescription: Scalars['String']['output'];
1193
- /** Minusculas e digitos, separados por - ou _. */
1194
1001
  tag?: Maybe<Scalars['String']['output']>;
1195
1002
  updatedAt: Scalars['Number']['output'];
1196
1003
  };
1197
1004
  export type AiAgentUseCaseOverlap = {
1198
- /** Do par mais parecido para o menos: e a ordem em que o autor deve olhar. */
1199
1005
  pairs: Array<AiAgentCompetingPair>;
1200
- /** O limiar aplicado, publicado junto do resultado para o aviso nao ser lido como cada um quiser. */
1201
1006
  threshold: Scalars['Number']['output'];
1202
1007
  };
1203
- /** `value` is absent when there is no base to compare: no previous data, or a previous count of zero for PERCENT. */
1204
1008
  export type AiAgentVariation = {
1205
1009
  unit: AiAgentVariationUnit;
1206
1010
  value?: Maybe<Scalars['Number']['output']>;
@@ -1212,7 +1016,6 @@ export declare enum AiAgentVariationUnit {
1212
1016
  export type AiAgentVersion = {
1213
1017
  agentId: Scalars['ID']['output'];
1214
1018
  createdAt: Scalars['DateTime']['output'];
1215
- /** Ferramentas vinculadas que esta versão não oferece ao modelo, pelo catálogo atual. Nulo quando o catálogo não pôde ser lido. */
1216
1019
  excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
1217
1020
  spec: AiAgentSpec;
1218
1021
  status: AiAgentVersionStatus;
@@ -1246,9 +1049,7 @@ export declare enum Can {
1246
1049
  }
1247
1050
  export type CheckAiAgentVersionInput = {
1248
1051
  agentId: Scalars['ID']['input'];
1249
- /** De 2 a 20. Uma execução só não prova nada num sistema probabilístico. */
1250
1052
  runsPerScenario?: InputMaybe<Scalars['Int']['input']>;
1251
- /** Cenários a rodar. Ausente roda todos; o resultado cobre só os cenários rodados. */
1252
1053
  scenarioIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1253
1054
  version: Scalars['Int']['input'];
1254
1055
  };
@@ -1262,12 +1063,10 @@ export type CreateQnAInstanceInput = {
1262
1063
  tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>;
1263
1064
  };
1264
1065
  export type CredentialRefInput = {
1265
- /** Nome do parâmetro no cofre do tenant. O valor nunca é armazenado aqui. */
1266
1066
  name: Scalars['String']['input'];
1267
1067
  vault: Scalars['String']['input'];
1268
1068
  };
1269
1069
  export type DraftAiAgentInput = {
1270
- /** Omitted for a brand new agent; supplied to draft the next version of an existing one. */
1271
1070
  agentId?: InputMaybe<Scalars['ID']['input']>;
1272
1071
  name: Scalars['String']['input'];
1273
1072
  spec: AiAgentSpecInput;
@@ -1291,37 +1090,28 @@ export type I18nTextInput = {
1291
1090
  value: Scalars['String']['input'];
1292
1091
  };
1293
1092
  export type Mutation = {
1294
- /**
1295
- * Enfileira a suíte contra uma versão candidata e devolve a execução em `queued`. Rodar custa
1296
- * chamadas de modelo e leva minutos, então o resultado se lê depois por `getAiAgentCheckRun`.
1297
- */
1298
1093
  checkAiAgentVersion?: Maybe<AiAgentCheckRun>;
1299
1094
  createNlpInstance?: Maybe<NlpInstance>;
1300
1095
  createQnAInstance?: Maybe<QnAInstance>;
1301
1096
  draftAiAgent?: Maybe<AiAgentVersion>;
1302
1097
  extractImageMetadata: ExtractImageMetadataResult;
1303
1098
  publishAiAgentVersion: Array<AiAgentVersion>;
1304
- /** Cadastre o backend da ferramenta como Connector (Nexo > Conectores) primeiro, depois amarre o spec do agente a ele aqui. */
1305
1099
  registerAiAgentTool?: Maybe<AiAgentTool>;
1306
1100
  reindexAiAgentDashboard: Scalars['Number']['output'];
1307
1101
  rememberAiAgentSessionFacts: Scalars['Boolean']['output'];
1308
- /** Apaga o agente e a autoria dele. Agente no ar precisa ser pausado antes. */
1309
1102
  removeAiAgent: Scalars['Boolean']['output'];
1310
1103
  removeAiAgentProcedure: Scalars['Boolean']['output'];
1311
- /** O relatório já gravado para o cenário não é removido. */
1312
1104
  removeAiAgentScenario: Scalars['Boolean']['output'];
1313
1105
  removeAiAgentUseCase: Scalars['Boolean']['output'];
1314
1106
  removeAiAgentVersion: Array<AiAgentVersion>;
1315
1107
  removeNlpInstance?: Maybe<NlpInstance>;
1316
1108
  removeQnAInstance?: Maybe<QnAInstance>;
1317
- /** Decide uma acao que ficou esperando aprovacao humana (§5.5.3). Decidir de novo nao repete a acao. */
1318
1109
  resolveAiAgentApproval: Scalars['Boolean']['output'];
1319
1110
  rollbackAiAgentVersion: Array<AiAgentVersion>;
1320
1111
  saveAiAgentProcedure: AiAgentProcedure;
1321
1112
  saveAiAgentScenario?: Maybe<AiAgentScenario>;
1322
1113
  saveAiAgentUseCase: AiAgentUseCase;
1323
1114
  setAiAgentRetentionPolicy: AiAgentRetentionPolicy;
1324
- /** Tira a versao do ar sem apagar (pausar). Publicar de novo e o caminho de volta. */
1325
1115
  unpublishAiAgentVersion: Array<AiAgentVersion>;
1326
1116
  unregisterAiAgentTool?: Maybe<Scalars['Boolean']['output']>;
1327
1117
  updateNlpInstance?: Maybe<NlpInstance>;
@@ -1458,54 +1248,28 @@ export type QnAInstance = {
1458
1248
  updatedAt: Scalars['DateTime']['output'];
1459
1249
  };
1460
1250
  export type Query = {
1461
- /** O que a suíte deste agente aceita hoje. O teto por cenário já vem dividido pelos cenários dele. */
1462
1251
  aiAgentCheckLimits: AiAgentCheckLimits;
1463
1252
  aiAgentConversationMetrics: AiAgentConversationMetricsPage;
1464
1253
  aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
1465
1254
  aiAgentDashboard: AiAgentDashboard;
1466
- /**
1467
- * §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
1468
- * credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
1469
- */
1470
1255
  aiAgentKnowledgeBases: Array<AiAgentKnowledgeBase>;
1471
1256
  aiAgentListingMetrics: Array<AiAgentListingMetrics>;
1472
1257
  aiAgentMetrics: AiAgentMetrics;
1473
- /** As metricas da janela para todos os agentes, numa ida so. Agente sem rastro vem com zeros. */
1474
1258
  aiAgentMetricsByAgent: Array<AiAgentMetrics>;
1475
1259
  aiAgentMetricsSeries: AiAgentMetricsSeries;
1476
- /**
1477
- * A politica de retencao em vigor para o tenant, com os padroes aplicados quando ele nao
1478
- * configurou a propria. Existe para a politica ser verificavel de fora, nao so estar escrita.
1479
- */
1480
1260
  aiAgentRetentionPolicy: AiAgentRetentionPolicy;
1481
- /** Onde cada mensagem de exemplo cairia (§5.4). Os limiares saem no resultado: `medium` sem o limiar nao diz nada. */
1482
1261
  aiAgentRoutingPreview: AiAgentRoutingPreview;
1483
- /**
1484
- * Os turnos de um atendimento, do primeiro ao ultimo. E o que responde "o que aconteceu nesta
1485
- * conversa" sem depender de ler o DynamoDB por fora.
1486
- */
1487
1262
  aiAgentTrace: Array<AiAgentTrace>;
1488
- /**
1489
- * Casos de uso cujas descricoes competem no roteador (§6.1). Aviso de autoria, nao bloqueio: descricoes
1490
- * parecidas podem ser intencionais.
1491
- */
1492
1263
  aiAgentUseCaseOverlap: AiAgentUseCaseOverlap;
1493
1264
  app?: Maybe<Scalars['DRN']['output']>;
1494
- /** Uma execução da suíte. Ausente quando o identificador não é de uma execução deste agente. */
1495
1265
  getAiAgentCheckRun?: Maybe<AiAgentCheckRun>;
1496
1266
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
1497
1267
  getNlpInstance?: Maybe<NlpInstance>;
1498
1268
  getQnAInstance?: Maybe<QnAInstance>;
1499
- /**
1500
- * A fila e o historico de aprovacao humana do agente, da mais recente para a mais antiga. `status`
1501
- * filtra por `pending`, `approved`, `rejected` ou `expired`; pendente fora do prazo ja vem `expired`.
1502
- */
1503
1269
  listAiAgentApprovals: Array<AiAgentApproval>;
1504
- /** Os procedimentos do agente (§6.2): o plano em linguagem natural. */
1505
1270
  listAiAgentProcedures: Array<AiAgentProcedure>;
1506
1271
  listAiAgentScenarios: Array<AiAgentScenario>;
1507
1272
  listAiAgentTools: Array<AiAgentTool>;
1508
- /** Os casos de uso do agente (§6.1): os motivos de contato. */
1509
1273
  listAiAgentUseCases: Array<AiAgentUseCase>;
1510
1274
  listAiAgentVersions: Array<AiAgentVersion>;
1511
1275
  listAiAgents: Array<AiAgentSummary>;
@@ -1562,7 +1326,7 @@ export type QueryGetQnAInstanceArgs = {
1562
1326
  };
1563
1327
  export type QueryListAiAgentApprovalsArgs = {
1564
1328
  agentId: Scalars['ID']['input'];
1565
- status?: InputMaybe<Scalars['String']['input']>;
1329
+ status?: InputMaybe<AiAgentApprovalStatus>;
1566
1330
  };
1567
1331
  export type QueryListAiAgentProceduresArgs = {
1568
1332
  agentId: Scalars['ID']['input'];
@@ -1586,7 +1350,6 @@ export type QueryTestQnAInstanceArgs = {
1586
1350
  input: Scalars['String']['input'];
1587
1351
  };
1588
1352
  export type RegisterAiAgentToolInput = {
1589
- /** Connector ja cadastrado (Nexo > Conectores) que executa a chamada HTTP desta ferramenta. */
1590
1353
  connectorId: Scalars['ID']['input'];
1591
1354
  spec: AiAgentToolSpecInput;
1592
1355
  };
@@ -1610,11 +1373,8 @@ export type RemoveQnAInstanceInput = {
1610
1373
  };
1611
1374
  export type ResolveAiAgentApprovalInput = {
1612
1375
  agentId: Scalars['ID']['input'];
1613
- /** Ignorado: quem decidiu e o usuario autenticado. */
1614
1376
  decidedBy?: InputMaybe<Scalars['String']['input']>;
1615
- /** `approved` executa a acao guardada; `rejected` avisa o consumidor e nao executa nada. */
1616
- decision: Scalars['String']['input'];
1617
- /** Identifica a pendencia junto da sessao: e o momento em que a acao foi enfileirada. */
1377
+ decision: AiAgentApprovalDecision;
1618
1378
  requestedAt: Scalars['Number']['input'];
1619
1379
  sessionId: Scalars['ID']['input'];
1620
1380
  };
@@ -1636,24 +1396,8 @@ export type SaveAiAgentProcedureInput = {
1636
1396
  };
1637
1397
  export type SaveAiAgentScenarioInput = {
1638
1398
  agentId: Scalars['ID']['input'];
1639
- /**
1640
- * Quem é o cliente nesta conversa. Ausente roda como anônimo. Ferramenta que exige cliente
1641
- * identificado substitui este valor na URL ou na credencial, e o simulador chama a integração
1642
- * real com ele — não é um identificador de mentira sem efeito.
1643
- */
1644
1399
  customerId?: InputMaybe<Scalars['ID']['input']>;
1645
1400
  description: Scalars['String']['input'];
1646
- /**
1647
- * Expectativas de comportamento, uma por objeto, cada uma com `kind`. `tool_called` aceita
1648
- * `toolName` e `withArgs`; `tool_not_called` aceita `toolName`; `blocked_by_rule` aceita `category`
1649
- * para exigir o motivo; `stopped_for` aceita `reason`; `answer_omits` exige `terms`, e vale quando
1650
- * nenhum termo aparece em nenhuma resposta da execucao, sem acento e sem caixa. `transferred` vale
1651
- * para qualquer passagem a uma pessoa — pedida pelo agente ou por orcamento estourado — e aceita
1652
- * `reason` para cobrar um motivo especifico (`customer_request`, `tool_failure`,
1653
- * `provider_unavailable`, `budget_exceeded`, `period_budget_exceeded`, `unresolved`).
1654
- * `not_transferred`, `answer_grounded` e `identification_required` nao levam campo — este ultimo
1655
- * vale quando alguma ferramenta do cenario foi recusada por falta de cliente identificado.
1656
- */
1657
1401
  expectations: Array<Scalars['JSON']['input']>;
1658
1402
  scenarioId: Scalars['ID']['input'];
1659
1403
  turns: Array<Scalars['String']['input']>;
@@ -1665,7 +1409,6 @@ export type SaveAiAgentUseCaseInput = {
1665
1409
  procedureId?: InputMaybe<Scalars['ID']['input']>;
1666
1410
  status: Scalars['String']['input'];
1667
1411
  subjectDescription: Scalars['String']['input'];
1668
- /** Ausente apaga a tag gravada. */
1669
1412
  tag?: InputMaybe<Scalars['String']['input']>;
1670
1413
  };
1671
1414
  export type SearchResultsFacet = {
@@ -1754,6 +1497,7 @@ export declare enum ToolParameterFormat {
1754
1497
  CpfCnpj = "cpf_cnpj"
1755
1498
  }
1756
1499
  export declare enum ToolParameterType {
1500
+ Attachment = "attachment",
1757
1501
  Boolean = "boolean",
1758
1502
  Number = "number",
1759
1503
  String = "string"
@@ -1804,7 +1548,7 @@ export type UpdateQnAInstanceInput = {
1804
1548
  };
1805
1549
  export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'agentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
1806
1550
  export type AiAgentVersionFragment = Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'>;
1807
- export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels'> & {
1551
+ export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator'> & {
1808
1552
  identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
1809
1553
  budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
1810
1554
  handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
@@ -1881,12 +1625,12 @@ export type RemoveAiAgentMutationVariables = Exact<{
1881
1625
  export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
1882
1626
  export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'tag' | 'status' | 'updatedAt'>;
1883
1627
  export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'status' | 'updatedAt'>;
1884
- export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'customerScope' | 'returns' | 'approval'> & {
1628
+ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'emptyResultMessage' | 'customerScope' | 'returns' | 'approval'> & {
1885
1629
  parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding' | 'format'>>;
1886
1630
  });
1887
- export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt'> & {
1631
+ export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'knowledgeQuery' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt' | 'model' | 'reasoningEffort'> & {
1888
1632
  excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
1889
- toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'connection' | 'errorClass'>>;
1633
+ toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass'>>;
1890
1634
  });
1891
1635
  export type AiAgentScenarioFragment = Pick<AiAgentScenario, 'scenarioId' | 'description' | 'customerId' | 'turns' | 'expectations'>;
1892
1636
  export type ListAiAgentUseCasesQueryVariables = Exact<{
@@ -2047,7 +1791,7 @@ export type RememberAiAgentSessionFactsMutation = Pick<Mutation, 'rememberAiAgen
2047
1791
  export type AiAgentApprovalFragment = Pick<AiAgentApproval, 'agentId' | 'sessionId' | 'toolId' | 'toolName' | 'args' | 'channelId' | 'customerId' | 'requestedAt' | 'expiresAt' | 'status' | 'decidedBy' | 'decidedAt'>;
2048
1792
  export type ListAiAgentApprovalsQueryVariables = Exact<{
2049
1793
  agentId: Scalars['ID']['input'];
2050
- status?: InputMaybe<Scalars['String']['input']>;
1794
+ status?: InputMaybe<AiAgentApprovalStatus>;
2051
1795
  }>;
2052
1796
  export type ListAiAgentApprovalsQuery = {
2053
1797
  listAiAgentApprovals: Array<AiAgentApprovalFragment>;
@@ -2079,10 +1823,12 @@ export type SaveAiAgentScenarioMutation = {
2079
1823
  export type AiAgentCheckRunFragment = (Pick<AiAgentCheckRun, 'runId' | 'agentId' | 'version' | 'status' | 'requestedAt' | 'startedAt' | 'finishedAt' | 'totalRuns' | 'completedRuns' | 'error'> & {
2080
1824
  excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
2081
1825
  result?: Maybe<(Pick<AiAgentCheckResult, 'safeToPublish'> & {
1826
+ authoring?: Maybe<Pick<AiAgentCheckAuthoring, 'useCases' | 'procedures' | 'updatedAt'>>;
2082
1827
  reports: Array<(Pick<AiAgentScenarioReport, 'scenarioId' | 'runs' | 'cut' | 'measured' | 'passed' | 'rate'> & {
2083
1828
  handoffReasons: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
2084
1829
  turns: Array<(Pick<AiAgentScenarioTurn, 'turn' | 'runs' | 'answered' | 'grounded' | 'blocked' | 'identificationRequired'> & {
2085
1830
  toolNames: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
1831
+ rejectedCalls?: Maybe<Array<Pick<AiAgentRejectedCall, 'toolName' | 'reason' | 'count'>>>;
2086
1832
  blockCategories: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
2087
1833
  })>;
2088
1834
  })>;
@@ -2109,7 +1855,6 @@ export type AiAgentCheckLimitsQuery = {
2109
1855
  aiAgentCheckLimits: Pick<AiAgentCheckLimits, 'minRunsPerScenario' | 'maxRunsPerScenario' | 'maxSuiteRuns' | 'scenarioCount'>;
2110
1856
  };
2111
1857
  export type AiAgentMetricsReportFragment = (Pick<AiAgentMetrics, 'agentId' | 'from' | 'to' | 'truncated' | 'conversations' | 'conversationsResolved' | 'conversationsInconclusive' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'conversationsEligible' | 'conversationsResolvedByDefinition' | 'conversationsProvisional' | 'conversationsAwaitingClassification' | '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'> & {
2112
- conversationsByClassification: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
2113
1858
  classificationBreakdown: Array<Pick<AiAgentClassificationCount, 'state' | 'subcategory' | 'technicalFailure' | 'count'>>;
2114
1859
  classificationDefinitionVersions: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
2115
1860
  sentimentAtStart: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
@@ -2124,6 +1869,7 @@ export type AiAgentMetricsReportFragment = (Pick<AiAgentMetrics, 'agentId' | 'fr
2124
1869
  };
2125
1870
  handoffsByReason: Array<Pick<AiAgentHandoffReasonCount, 'key' | 'count'>>;
2126
1871
  turnsByModel: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
1872
+ turnsByModelAndReasoningEffort: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
2127
1873
  topTopics: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
2128
1874
  topUnansweredQuestions: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
2129
1875
  blocksByCategory: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
@@ -2248,22 +1994,22 @@ export type RemoveQnAInstanceMutation = {
2248
1994
  };
2249
1995
  export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
2250
1996
  export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
2251
- export declare const AiAgentSpecFragmentDoc = "\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 ";
1997
+ export declare const AiAgentSpecFragmentDoc = "\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 typingIndicator\n}\n ";
2252
1998
  export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2253
1999
  export declare const AiAgentVersionWithSpecFragmentDoc = "\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 ";
2254
2000
  export declare const AiAgentListingMetricsFragmentDoc = "\n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
2255
2001
  export declare const AiAgentListingMetricsFieldsFragmentDoc = "\n fragment aiAgentListingMetricsFields on AiAgentListingMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n costMicroUsd\n}\n ";
2256
2002
  export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n tag\n status\n updatedAt\n}\n ";
2257
2003
  export declare const AiAgentProcedureFragmentDoc = "\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 ";
2258
- 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 format\n }\n}\n ";
2259
- 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 ";
2004
+ export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
2005
+ 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 knowledgeQuery\n outcome\n haltReason\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n ";
2260
2006
  export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2261
2007
  export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
2262
2008
  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 ";
2263
2009
  export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
2264
2010
  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 ";
2265
- 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 ";
2266
- 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 conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 ";
2011
+ 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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
2012
+ 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 classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 turnsByModelAndReasoningEffort {\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 ";
2267
2013
  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 ";
2268
2014
  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 ";
2269
2015
  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 ";
@@ -2278,9 +2024,9 @@ export declare const RemoveAiAgentVersionDocument = "\n mutation removeAiAgen
2278
2024
  export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
2279
2025
  export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCases($agentId: ID!) {\n listAiAgentUseCases(agentId: $agentId) {\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 ";
2280
2026
  export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($agentId: ID!) {\n listAiAgentProcedures(agentId: $agentId) {\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 ";
2281
- export declare const ListAiAgentToolsDocument = "\n query listAiAgentTools {\n listAiAgentTools {\n ...aiAgentTool\n }\n}\n \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 format\n }\n}\n ";
2027
+ export declare const ListAiAgentToolsDocument = "\n query listAiAgentTools {\n listAiAgentTools {\n ...aiAgentTool\n }\n}\n \n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
2282
2028
  export declare const AiAgentUseCaseOverlapDocument = "\n query aiAgentUseCaseOverlap($agentId: ID!) {\n aiAgentUseCaseOverlap(agentId: $agentId) {\n threshold\n pairs {\n left\n right\n score\n }\n }\n}\n ";
2283
- export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTrace\n }\n}\n \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 \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2029
+ export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTrace\n }\n}\n \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 knowledgeQuery\n outcome\n haltReason\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2284
2030
  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 ";
2285
2031
  export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
2286
2032
  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 ";
@@ -2294,17 +2040,17 @@ export declare const SaveAiAgentProcedureDocument = "\n mutation saveAiAgentP
2294
2040
  export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
2295
2041
  export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
2296
2042
  export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
2297
- export declare const ListAiAgentApprovalsDocument = "\n query listAiAgentApprovals($agentId: ID!, $status: String) {\n listAiAgentApprovals(agentId: $agentId, status: $status) {\n ...aiAgentApproval\n }\n}\n \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 ";
2043
+ export declare const ListAiAgentApprovalsDocument = "\n query listAiAgentApprovals($agentId: ID!, $status: AiAgentApprovalStatus) {\n listAiAgentApprovals(agentId: $agentId, status: $status) {\n ...aiAgentApproval\n }\n}\n \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 ";
2298
2044
  export declare const ResolveAiAgentApprovalDocument = "\n mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {\n resolveAiAgentApproval(input: $input)\n}\n ";
2299
- export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {\n registerAiAgentTool(input: $input) {\n ...aiAgentTool\n }\n}\n \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 format\n }\n}\n ";
2045
+ export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {\n registerAiAgentTool(input: $input) {\n ...aiAgentTool\n }\n}\n \n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
2300
2046
  export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
2301
2047
  export declare const RemoveAiAgentScenarioDocument = "\n mutation removeAiAgentScenario($input: RemoveAiAgentScenarioInput!) {\n removeAiAgentScenario(input: $input)\n}\n ";
2302
2048
  export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {\n saveAiAgentScenario(input: $input) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2303
- 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 ";
2304
- 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 ";
2049
+ 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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\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 ";
2050
+ 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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\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 ";
2305
2051
  export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
2306
- 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 conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 ";
2307
- 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 ";
2052
+ 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 classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 turnsByModelAndReasoningEffort {\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 ";
2053
+ 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 typingIndicator\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2308
2054
  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 ";
2309
2055
  export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
2310
2056
  export declare const ExtractImageMetadataDocument = "\n mutation extractImageMetadata($input: ExtractImageMetadataInput!) {\n extractImageMetadata(input: $input) {\n success\n model\n extractedMetadata\n tokenUsage {\n prompt\n completion\n total\n }\n }\n}\n ";