@droz-js/sdk 0.19.29 → 0.19.30

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
@@ -127,17 +127,502 @@ export type AgentInfo = {
127
127
  name: Scalars['String']['output'];
128
128
  picture?: Maybe<Scalars['String']['output']>;
129
129
  };
130
+ export type AiAgentAuthoringRefInput = {
131
+ agentId: Scalars['ID']['input'];
132
+ id: Scalars['ID']['input'];
133
+ };
134
+ export type AiAgentBudget = {
135
+ /**
136
+ * Teto de gasto da conversa em micro-dolar (1e-6 USD). So vale para chamada com preco conhecido:
137
+ * modelo fora da tabela de preco produz custo desconhecido, nunca zero. Combine com `maxTokens`,
138
+ * que sempre vale.
139
+ */
140
+ maxCostMicroUsd?: Maybe<Scalars['Int']['output']>;
141
+ /**
142
+ * Teto de gasto do agente no periodo (mes calendario UTC), em micro-dolar. Ausente = sem teto de
143
+ * periodo. Independe de `maxCostMicroUsd`, que vale por conversa.
144
+ */
145
+ maxPeriodCostMicroUsd?: Maybe<Scalars['Int']['output']>;
146
+ maxSteps: Scalars['Int']['output'];
147
+ /** Teto de token da conversa inteira. Ausente = sem teto de token. */
148
+ maxTokens?: Maybe<Scalars['Int']['output']>;
149
+ maxToolCalls: Scalars['Int']['output'];
150
+ onExceeded: BudgetExceededAction;
151
+ };
152
+ export type AiAgentBudgetInput = {
153
+ maxCostMicroUsd?: InputMaybe<Scalars['Int']['input']>;
154
+ maxPeriodCostMicroUsd?: InputMaybe<Scalars['Int']['input']>;
155
+ maxSteps: Scalars['Int']['input'];
156
+ maxTokens?: InputMaybe<Scalars['Int']['input']>;
157
+ maxToolCalls: Scalars['Int']['input'];
158
+ onExceeded: BudgetExceededAction;
159
+ };
160
+ export type AiAgentCheckResult = {
161
+ regressions: Array<AiAgentRegression>;
162
+ reports: Array<AiAgentScenarioReport>;
163
+ /** Falso quando um cenário piorou além da tolerância em relação à versão live. */
164
+ safeToPublish: Scalars['Boolean']['output'];
165
+ };
166
+ export type AiAgentCompetingPair = {
167
+ left: Scalars['ID']['output'];
168
+ right: Scalars['ID']['output'];
169
+ /** Similaridade entre as duas descricoes, de 0 a 1. */
170
+ score: Scalars['Number']['output'];
171
+ };
172
+ export type AiAgentConversationMetrics = {
173
+ channel?: Maybe<Scalars['String']['output']>;
174
+ costMicroUsd: Scalars['Number']['output'];
175
+ durationMs: Scalars['Number']['output'];
176
+ lastOutcome: Scalars['String']['output'];
177
+ lastTurnAt: Scalars['Number']['output'];
178
+ sessionId: Scalars['ID']['output'];
179
+ startedAt: Scalars['Number']['output'];
180
+ totalTokens: Scalars['Number']['output'];
181
+ turns: Scalars['Number']['output'];
182
+ };
183
+ export type AiAgentConversationOutcome = {
184
+ agentId: Scalars['ID']['output'];
185
+ agentVersion: Scalars['String']['output'];
186
+ /** Fatos da sessao; chave e valor mascarados quando a politica de retencao pede. */
187
+ collectedData: Scalars['JSON']['output'];
188
+ /** false quando a retencao ja apagou a sessao. */
189
+ collectedDataAvailable: Scalars['Boolean']['output'];
190
+ /** Motivo da parada do ultimo turno, quando houve. */
191
+ haltReason?: Maybe<Scalars['String']['output']>;
192
+ lastTurnAt: Scalars['Number']['output'];
193
+ resolution: Scalars['String']['output'];
194
+ resolutionDefinition: Scalars['String']['output'];
195
+ sessionId: Scalars['ID']['output'];
196
+ startedAt: Scalars['Number']['output'];
197
+ turns: Scalars['Number']['output'];
198
+ };
199
+ /**
200
+ * Como este agente passa o atendimento para uma pessoa.
201
+ *
202
+ * A transicao vive no fluxo do tenant — e a state machine dele que sabe qual estado atende gente —,
203
+ * por isso e configuracao e nao constante da plataforma. Ausente significa que o agente nao passa
204
+ * para ninguem: ele diz que o caso precisa de uma pessoa e usa o comportamento fora de escopo do
205
+ * autor para dizer onde procura-la, em vez de prometer transferencia que nao acontece.
206
+ */
207
+ export type AiAgentHandoff = {
208
+ /** `human` ou `flow`. Ausente = nao declarado: a metrica conta a parte, sem supor destino. */
209
+ target?: Maybe<Scalars['String']['output']>;
210
+ transition: Scalars['String']['output'];
211
+ };
212
+ export type AiAgentHandoffInput = {
213
+ target?: InputMaybe<Scalars['String']['input']>;
214
+ transition: Scalars['String']['input'];
215
+ };
216
+ export type AiAgentIdentity = {
217
+ displayName: Scalars['String']['output'];
218
+ openingMessage?: Maybe<Scalars['String']['output']>;
219
+ outOfScopeBehaviour: Scalars['String']['output'];
220
+ role: Scalars['String']['output'];
221
+ tone: TonePreset;
222
+ toneNotes?: Maybe<Scalars['String']['output']>;
223
+ };
224
+ export type AiAgentIdentityInput = {
225
+ displayName: Scalars['String']['input'];
226
+ openingMessage?: InputMaybe<Scalars['String']['input']>;
227
+ outOfScopeBehaviour: Scalars['String']['input'];
228
+ role: Scalars['String']['input'];
229
+ tone: TonePreset;
230
+ toneNotes?: InputMaybe<Scalars['String']['input']>;
231
+ };
232
+ export type AiAgentKnowledgeBase = {
233
+ id: Scalars['ID']['output'];
234
+ title: Scalars['String']['output'];
235
+ };
236
+ export type AiAgentMetrics = {
237
+ agentId: Scalars['ID']['output'];
238
+ answeredTurns: Scalars['Number']['output'];
239
+ /**
240
+ * Turnos que responderam mesmo com uma conexao falha no meio. E a superficie de risco do guardrail de
241
+ * §4.7 — nao prova resposta inventada, mas e onde ela poderia acontecer.
242
+ */
243
+ answeredWithFailedConnectionTurns: Scalars['Number']['output'];
244
+ avgLlmLatencyMs: Scalars['Number']['output'];
245
+ avgTurnDurationMs: Scalars['Number']['output'];
246
+ /** Turnos cuja resposta foi bloqueada na validacao antes do envio. */
247
+ blockedTurns: Scalars['Number']['output'];
248
+ blocksByCategory: Array<AiAgentMetricsCount>;
249
+ budgetExceededTurns: Scalars['Number']['output'];
250
+ /**
251
+ * Entrada servida pelo cache do proprio provedor: quanto do contexto nao foi pago a preco cheio.
252
+ * Provedor que nao reporta cache vale zero.
253
+ */
254
+ cachedInputTokens: Scalars['Number']['output'];
255
+ /** Turnos respondidos pelo cache, sem chamada ao modelo. E o ganho da otimizacao de §4.9. */
256
+ cachedTurns: Scalars['Number']['output'];
257
+ conversations: Scalars['Number']['output'];
258
+ /**
259
+ * Conversas em que algum turno **pediu** uma pessoa. Pedido, nao confirmacao: o disparo da transicao
260
+ * e best-effort, entao nem toda solicitacao virou transferencia de fato.
261
+ */
262
+ conversationsHandoffRequested: Scalars['Number']['output'];
263
+ /**
264
+ * Nem uma nem outra: parou por prazo, por repeticao, ou ainda esta acontecendo. Existe para nao
265
+ * inflar a resolucao — contar "nao transferiu" como "resolveu" transformaria conversa abandonada
266
+ * em sucesso.
267
+ */
268
+ conversationsInconclusive: Scalars['Number']['output'];
269
+ /** Conversas resolvidas sob a regra declarada em `resolutionDefinition`. */
270
+ conversationsResolved: Scalars['Number']['output'];
271
+ /** Gasto da janela em micro-dolar (1e-6 USD), inteiro. */
272
+ costMicroUsd: Scalars['Number']['output'];
273
+ /**
274
+ * Gasto da janela dividido pelas conversas resolvidas, em micro-dolar. **Ausente** quando nenhuma
275
+ * conversa resolveu no periodo — dividir por zero nao vira zero.
276
+ */
277
+ costMicroUsdPerResolvedConversation?: Maybe<Scalars['Number']['output']>;
278
+ /**
279
+ * Escalonou, mas a transicao nao tem destino declarado. Fica a parte de proposito: somar a um dos
280
+ * dois lados seria supor para onde o fluxo do tenant leva.
281
+ */
282
+ escalatedTargetUndeclared: Scalars['Number']['output'];
283
+ /** Escalonamentos cujo destino o autor declarou como fluxo. */
284
+ escalatedToFlow: Scalars['Number']['output'];
285
+ /** Escalonamentos cujo destino o autor declarou como pessoa. */
286
+ escalatedToHuman: Scalars['Number']['output'];
287
+ from: Scalars['Number']['output'];
288
+ haltReasons: Array<AiAgentMetricsCount>;
289
+ haltedTurns: Scalars['Number']['output'];
290
+ /**
291
+ * Por que a pessoa foi pedida: `customer_request` quando o consumidor pediu ou o agente concluiu que
292
+ * precisava, `tool_failure`, `provider_unavailable`, `budget_exceeded` ou `period_budget_exceeded`.
293
+ */
294
+ handoffsByReason: Array<AiAgentMetricsCount>;
295
+ /** Turnos que terminaram pedindo uma pessoa (pedido, nao transferencia). */
296
+ humanRequestedTurns: Scalars['Number']['output'];
297
+ /** Turnos que precisaram de cliente identificado e nao tinham um — a medida do atrito de identificacao. */
298
+ identificationRequiredTurns: Scalars['Number']['output'];
299
+ inputTokens: Scalars['Number']['output'];
300
+ knowledgeEmpty: Scalars['Number']['output'];
301
+ knowledgeRetrieved: Scalars['Number']['output'];
302
+ knowledgeSkipped: Scalars['Number']['output'];
303
+ knowledgeUnavailable: Scalars['Number']['output'];
304
+ llmCalls: Scalars['Number']['output'];
305
+ outputTokens: Scalars['Number']['output'];
306
+ p95TurnDurationMs: Scalars['Number']['output'];
307
+ /** A regra aplicada para contar resolucao, junto do numero, para ele nao ser lido como cada um quiser. */
308
+ resolutionDefinition: Scalars['String']['output'];
309
+ /**
310
+ * Conversas resolvidas sobre o total, em pontos percentuais. **Ausente** quando nao houve conversa na
311
+ * janela — sem dado e zero por cento nao sao a mesma coisa.
312
+ */
313
+ resolutionRate?: Maybe<Scalars['Number']['output']>;
314
+ to: Scalars['Number']['output'];
315
+ toolCalls: Scalars['Number']['output'];
316
+ /** Chamadas de ferramenta que falharam. */
317
+ toolCallsFailed: Scalars['Number']['output'];
318
+ /** Falhas por classe: timeout, upstream, nao configurada, sem identificacao. */
319
+ toolErrorsByClass: Array<AiAgentMetricsCount>;
320
+ /** Falhas por conexao externa, identificada pelo host — responde "qual integracao esta caindo". */
321
+ toolErrorsByConnection: Array<AiAgentMetricsCount>;
322
+ /** Assuntos mais frequentes da janela, escolhidos no conjunto fechado do `can` de cada agente. */
323
+ topTopics: Array<AiAgentMetricsCount>;
324
+ /** As perguntas mais frequentes sem resposta, agrupadas por texto normalizado. */
325
+ topUnansweredQuestions: Array<AiAgentMetricsCount>;
326
+ totalTokens: Scalars['Number']['output'];
327
+ /** true quando o teto de leitura foi atingido: os numeros cobrem parte do periodo. */
328
+ truncated: Scalars['Boolean']['output'];
329
+ turns: Scalars['Number']['output'];
330
+ turnsByModel: Array<AiAgentMetricsCount>;
331
+ /**
332
+ * A regra aplicada para contar turno sem resposta, junto do numero, para ele nao ser lido como cada
333
+ * um quiser. Deterministica: qualidade da resposta nao e medivel aqui.
334
+ */
335
+ unansweredDefinition: Scalars['String']['output'];
336
+ /** Turnos sem resposta satisfatoria sob a regra declarada em `unansweredDefinition`. */
337
+ unansweredTurns: Scalars['Number']['output'];
338
+ /**
339
+ * Turnos com ao menos uma chamada ao modelo sem preco conhecido. Com isto > 0, `costMicroUsd` e
340
+ * **piso**, nao total — nao decidir preco sem olhar este numero.
341
+ */
342
+ unpricedTurns: Scalars['Number']['output'];
343
+ };
344
+ export type AiAgentMetricsCount = {
345
+ count: Scalars['Number']['output'];
346
+ key: Scalars['String']['output'];
347
+ };
348
+ export type AiAgentMetricsInput = {
349
+ agentId: Scalars['ID']['input'];
350
+ channel?: InputMaybe<Scalars['String']['input']>;
351
+ from: Scalars['Number']['input'];
352
+ to: Scalars['Number']['input'];
353
+ };
354
+ /** A mesma janela, sem agente: a listagem quer todos de uma vez. */
355
+ export type AiAgentMetricsWindowInput = {
356
+ channel?: InputMaybe<Scalars['String']['input']>;
357
+ from: Scalars['Number']['input'];
358
+ to: Scalars['Number']['input'];
359
+ };
360
+ export type AiAgentProcedure = {
361
+ contingency: Scalars['String']['output'];
362
+ /** `autonomous` ou `needsApproval`. Ferramenta irreversivel exige `needsApproval`. */
363
+ executionAutonomy: Scalars['String']['output'];
364
+ /** As etapas como o autor instruiria uma pessoa. O texto e a fonte da verdade (§6.2). */
365
+ guidanceSteps: Array<Scalars['String']['output']>;
366
+ id: Scalars['ID']['output'];
367
+ name: Scalars['String']['output'];
368
+ status: Scalars['String']['output'];
369
+ /** Ferramentas que as etapas usam. Declaradas: e o que da para validar sem interpretar o texto. */
370
+ toolIds: Array<Scalars['ID']['output']>;
371
+ updatedAt: Scalars['Number']['output'];
372
+ };
373
+ export type AiAgentRefInput = {
374
+ agentId: Scalars['ID']['input'];
375
+ };
376
+ export type AiAgentRegression = {
377
+ after: Scalars['Float']['output'];
378
+ before: Scalars['Float']['output'];
379
+ scenarioId: Scalars['ID']['output'];
380
+ };
381
+ export type AiAgentRetentionDays = {
382
+ long_term_memory: Scalars['Int']['output'];
383
+ session_state: Scalars['Int']['output'];
384
+ transcript: Scalars['Int']['output'];
385
+ };
386
+ export type AiAgentRetentionPolicy = {
387
+ days: AiAgentRetentionDays;
388
+ masksPersonalData: Scalars['Boolean']['output'];
389
+ };
390
+ export type AiAgentRoutedExample = {
391
+ /** `high`, `medium` ou `low`. */
392
+ confidence: Scalars['String']['output'];
393
+ message: Scalars['String']['output'];
394
+ score: Scalars['Number']['output'];
395
+ /** Ausente quando nenhum caso de uso reconheceu a mensagem. */
396
+ useCaseId?: Maybe<Scalars['ID']['output']>;
397
+ };
398
+ export type AiAgentRoutingPreview = {
399
+ examples: Array<AiAgentRoutedExample>;
400
+ /** Limiar de confianca alta. */
401
+ high: Scalars['Number']['output'];
402
+ /** Limiar de confianca media; abaixo dele a previa nao aponta caso de uso. */
403
+ medium: Scalars['Number']['output'];
404
+ };
405
+ export type AiAgentRoutingPreviewInput = {
406
+ agentId: Scalars['ID']['input'];
407
+ /** Mensagens a testar. Vazio cai em `subject`; sem os dois, previa vazia e nao erro. */
408
+ examples: Array<Scalars['String']['input']>;
409
+ /** Descricao do assunto: as mensagens sao geradas a partir dela (§5.4). Ignorada se `examples` vier. */
410
+ subject?: InputMaybe<Scalars['String']['input']>;
411
+ };
412
+ export type AiAgentScenario = {
413
+ description: Scalars['String']['output'];
414
+ expectations: Array<Scalars['JSON']['output']>;
415
+ scenarioId: Scalars['ID']['output'];
416
+ /** O que o cliente diz, em ordem. */
417
+ turns: Array<Scalars['String']['output']>;
418
+ };
419
+ export type AiAgentScenarioReport = {
420
+ passed: Scalars['Int']['output'];
421
+ /** Fração de execuções em que todas as expectativas valeram, 0..1. */
422
+ rate: Scalars['Float']['output'];
423
+ runs: Scalars['Int']['output'];
424
+ scenarioId: Scalars['ID']['output'];
425
+ };
426
+ export type AiAgentSpec = {
427
+ budget: AiAgentBudget;
428
+ /** One natural-language permission per item. */
429
+ can: Array<Scalars['String']['output']>;
430
+ /** Restrictions. On conflict these win over `can`, without exception. */
431
+ cannot: Array<Scalars['String']['output']>;
432
+ /** Canais em que o agente atende. Ausente = ainda nao vinculado; declarado vazio e erro. */
433
+ channels?: Maybe<Array<Scalars['String']['output']>>;
434
+ handoff?: Maybe<AiAgentHandoff>;
435
+ identity: AiAgentIdentity;
436
+ /**
437
+ * §4.8: bases do Droz Base vinculadas — ids de **space**, nao de credencial. A consulta e recortada
438
+ * por elas; sem recorte o agente varreria o acervo inteiro do tenant.
439
+ */
440
+ knowledgeBaseIds: Array<Scalars['ID']['output']>;
441
+ /** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
442
+ knowledgeFallback?: Maybe<Scalars['String']['output']>;
443
+ toolIds: Array<Scalars['ID']['output']>;
444
+ };
445
+ export type AiAgentSpecInput = {
446
+ budget: AiAgentBudgetInput;
447
+ can: Array<Scalars['String']['input']>;
448
+ cannot: Array<Scalars['String']['input']>;
449
+ channels?: InputMaybe<Array<Scalars['String']['input']>>;
450
+ handoff?: InputMaybe<AiAgentHandoffInput>;
451
+ identity: AiAgentIdentityInput;
452
+ /**
453
+ * §4.8: bases do Droz Base vinculadas — ids de **space**, nao de credencial. A consulta e recortada
454
+ * por elas; sem recorte o agente varreria o acervo inteiro do tenant.
455
+ */
456
+ knowledgeBaseIds: Array<Scalars['ID']['input']>;
457
+ /** `inform_limitation` (default) ou `general_knowledge`; ausente vale o mais restritivo. */
458
+ knowledgeFallback?: InputMaybe<Scalars['String']['input']>;
459
+ toolIds: Array<Scalars['ID']['input']>;
460
+ };
461
+ export type AiAgentSummary = {
462
+ agentId: Scalars['ID']['output'];
463
+ /** Canais da versao no ar; sem versao no ar, os da mais recente. Vazio quando nenhuma declarou canal. */
464
+ channels: Array<Scalars['String']['output']>;
465
+ /** Absent until a version is published. An agent with no live version answers nobody. */
466
+ liveVersion?: Maybe<Scalars['Int']['output']>;
467
+ name: Scalars['String']['output'];
468
+ /** Acoes esperando aprovacao humana (§5.5.3). Zero tambem quando a fila nao pode ser lida. */
469
+ queuedApprovals: Scalars['Number']['output'];
470
+ /**
471
+ * `draft` (nunca publicado), `live` (no ar) ou `paused` (ja esteve no ar e foi tirado). `liveVersion`
472
+ * sozinho nao distingue quem nunca publicou de quem foi pausado.
473
+ */
474
+ status: Scalars['String']['output'];
475
+ /** Momento da versao mais recente, no ar ou nao — o "ultima alteracao" da listagem. */
476
+ updatedAt: Scalars['Number']['output'];
477
+ };
478
+ export type AiAgentTool = {
479
+ /** `pre_approved` (padrao) ou `human_approval`. */
480
+ approval?: Maybe<Scalars['String']['output']>;
481
+ availability: ToolAvailability;
482
+ /** `url` (default): a plataforma impoe o recorte via `{customerId}` na URL; `credential`: a credencial ja e do cliente (declarado, nunca inferido). */
483
+ customerScope?: Maybe<Scalars['String']['output']>;
484
+ description: Scalars['String']['output'];
485
+ effect: ToolEffect;
486
+ name: Scalars['String']['output'];
487
+ /** `{kind: message, message?}` (default), `{kind: retry, attempts, message?}` ou `{kind: handoff}`. */
488
+ onFailure?: Maybe<Scalars['JSON']['output']>;
489
+ parameters: Array<AiAgentToolParameter>;
490
+ requiresAuthenticatedCustomer: Scalars['Boolean']['output'];
491
+ /** Fields the agent is allowed to see. Anything not listed never reaches the model. */
492
+ returns: Array<Scalars['String']['output']>;
493
+ toolId: Scalars['ID']['output'];
494
+ };
495
+ export type AiAgentToolParameter = {
496
+ description: Scalars['String']['output'];
497
+ grounding: ParameterGrounding;
498
+ name: Scalars['String']['output'];
499
+ required: Scalars['Boolean']['output'];
500
+ type: ToolParameterType;
501
+ };
502
+ export type AiAgentToolParameterInput = {
503
+ description: Scalars['String']['input'];
504
+ groundedBy?: InputMaybe<Array<Scalars['String']['input']>>;
505
+ grounding?: InputMaybe<ParameterGrounding>;
506
+ name: Scalars['String']['input'];
507
+ required: Scalars['Boolean']['input'];
508
+ type: ToolParameterType;
509
+ };
510
+ export type AiAgentToolSpecInput = {
511
+ /** `pre_approved` (padrao) ou `human_approval`. */
512
+ approval?: InputMaybe<Scalars['String']['input']>;
513
+ availability: ToolAvailability;
514
+ credentialRef?: InputMaybe<CredentialRefInput>;
515
+ /** `url` (default): a plataforma impoe o recorte via `{customerId}` na URL; `credential`: a credencial ja e do cliente (declarado, nunca inferido). */
516
+ customerScope?: InputMaybe<Scalars['String']['input']>;
517
+ description: Scalars['String']['input'];
518
+ effect: ToolEffect;
519
+ idempotent: Scalars['Boolean']['input'];
520
+ name: Scalars['String']['input'];
521
+ /** `{kind: message, message?}` (default), `{kind: retry, attempts, message?}` ou `{kind: handoff}`. */
522
+ onFailure?: InputMaybe<Scalars['JSON']['input']>;
523
+ parameters: Array<AiAgentToolParameterInput>;
524
+ requiresAuthenticatedCustomer: Scalars['Boolean']['input'];
525
+ /** Campos que o agente pode ver. O que não estiver aqui nunca chega ao modelo. */
526
+ returns: Array<Scalars['String']['input']>;
527
+ reversible: Scalars['Boolean']['input'];
528
+ toolId: Scalars['ID']['input'];
529
+ };
530
+ export type AiAgentTrace = {
531
+ agentId: Scalars['ID']['output'];
532
+ agentVersion: Scalars['String']['output'];
533
+ answer: Scalars['String']['output'];
534
+ /** Presente so quando o turno parou por limite; ausente quando respondeu. */
535
+ haltReason?: Maybe<Scalars['String']['output']>;
536
+ /** O turno tentou usar ferramenta que exige cliente identificado, sem ter um. */
537
+ identificationRequired?: Maybe<Scalars['Boolean']['output']>;
538
+ input: Scalars['String']['output'];
539
+ knowledgeOrigins: Array<Scalars['String']['output']>;
540
+ /** Versao da regra mestra da plataforma vigente no turno — atribui a conversa a regra sob a qual ela rodou. */
541
+ masterRuleVersion?: Maybe<Scalars['Int']['output']>;
542
+ outcome: Scalars['String']['output'];
543
+ promptBuilderVersion: Scalars['Int']['output'];
544
+ /** Identifica o prompt que gerou este turno sem guardar o prompt inteiro. */
545
+ promptFingerprint: Scalars['String']['output'];
546
+ sessionId: Scalars['ID']['output'];
547
+ startedAt: Scalars['Float']['output'];
548
+ steps: Scalars['Int']['output'];
549
+ toolCalls: Array<AiAgentTracedToolCall>;
550
+ turn: Scalars['Int']['output'];
551
+ };
552
+ export type AiAgentTracedToolCall = {
553
+ /** O sistema externo, pelo host. Sem path nem query, que carregam parametro do cliente. */
554
+ connection?: Maybe<Scalars['String']['output']>;
555
+ /** `unauthenticated`, `not_configured`, `timeout` ou `upstream`. */
556
+ errorClass?: Maybe<Scalars['String']['output']>;
557
+ name: Scalars['String']['output'];
558
+ /**
559
+ * Se a chamada deu certo. Ausente em chamada gravada antes do desfecho estruturado existir — e
560
+ * ausente nao significa falha.
561
+ */
562
+ ok?: Maybe<Scalars['Boolean']['output']>;
563
+ /** Ja restrito aos campos que a ferramenta declarou em `returns`. */
564
+ result: Scalars['String']['output'];
565
+ toolId: Scalars['ID']['output'];
566
+ };
567
+ export type AiAgentUseCase = {
568
+ id: Scalars['ID']['output'];
569
+ name: Scalars['String']['output'];
570
+ procedureId?: Maybe<Scalars['ID']['output']>;
571
+ status: Scalars['String']['output'];
572
+ /**
573
+ * NAO e documentacao: e o texto que o roteador le para classificar a mensagem (§6.1). Descricao vaga
574
+ * produz roteamento ruim.
575
+ */
576
+ subjectDescription: Scalars['String']['output'];
577
+ updatedAt: Scalars['Number']['output'];
578
+ };
579
+ export type AiAgentUseCaseOverlap = {
580
+ /** Do par mais parecido para o menos: e a ordem em que o autor deve olhar. */
581
+ pairs: Array<AiAgentCompetingPair>;
582
+ /** O limiar aplicado, publicado junto do resultado para o aviso nao ser lido como cada um quiser. */
583
+ threshold: Scalars['Number']['output'];
584
+ };
585
+ export type AiAgentVersion = {
586
+ agentId: Scalars['ID']['output'];
587
+ createdAt: Scalars['DateTime']['output'];
588
+ spec: AiAgentSpec;
589
+ status: AiAgentVersionStatus;
590
+ version: Scalars['Int']['output'];
591
+ };
592
+ export type AiAgentVersionRefInput = {
593
+ agentId: Scalars['ID']['input'];
594
+ version: Scalars['Int']['input'];
595
+ };
596
+ export declare enum AiAgentVersionStatus {
597
+ Draft = "draft",
598
+ Live = "live",
599
+ Published = "published",
600
+ Removed = "removed"
601
+ }
130
602
  export declare enum AppInstanceStatus {
131
603
  Active = "Active",
132
604
  Failing = "Failing",
133
605
  Inactive = "Inactive"
134
606
  }
607
+ export declare enum BudgetExceededAction {
608
+ DegradeModel = "degrade_model",
609
+ EndWithNotice = "end_with_notice",
610
+ TransferToHuman = "transfer_to_human"
611
+ }
135
612
  export declare enum Can {
136
613
  Manage = "manage",
137
614
  Read = "read",
138
615
  Remove = "remove",
139
616
  Write = "write"
140
617
  }
618
+ export type CheckAiAgentVersionInput = {
619
+ agentId: Scalars['ID']['input'];
620
+ /** De 2 a 20. Uma execução só não prova nada num sistema probabilístico. */
621
+ runsPerScenario?: InputMaybe<Scalars['Int']['input']>;
622
+ /** Cenários a rodar. Ausente roda todos; o resultado cobre só os cenários rodados. */
623
+ scenarioIds?: InputMaybe<Array<Scalars['ID']['input']>>;
624
+ version: Scalars['Int']['input'];
625
+ };
141
626
  export type CreateNlpInstanceInput = {
142
627
  name: Scalars['String']['input'];
143
628
  options: Array<NlpOptionInput>;
@@ -147,6 +632,17 @@ export type CreateQnAInstanceInput = {
147
632
  name: Scalars['String']['input'];
148
633
  tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>;
149
634
  };
635
+ export type CredentialRefInput = {
636
+ /** Nome do parâmetro no cofre do tenant. O valor nunca é armazenado aqui. */
637
+ name: Scalars['String']['input'];
638
+ vault: Scalars['String']['input'];
639
+ };
640
+ export type DraftAiAgentInput = {
641
+ /** Omitted for a brand new agent; supplied to draft the next version of an existing one. */
642
+ agentId?: InputMaybe<Scalars['ID']['input']>;
643
+ name: Scalars['String']['input'];
644
+ spec: AiAgentSpecInput;
645
+ };
150
646
  export type ExtractImageMetadataInput = {
151
647
  imageUrl: Scalars['String']['input'];
152
648
  metadataRequirements: Scalars['JSONObject']['input'];
@@ -166,30 +662,94 @@ export type I18nTextInput = {
166
662
  value: Scalars['String']['input'];
167
663
  };
168
664
  export type Mutation = {
665
+ /** Roda os cenários contra uma versão candidata e registra o resultado. Custa chamadas de modelo. */
666
+ checkAiAgentVersion?: Maybe<AiAgentCheckResult>;
169
667
  createNlpInstance?: Maybe<NlpInstance>;
170
668
  createQnAInstance?: Maybe<QnAInstance>;
669
+ draftAiAgent?: Maybe<AiAgentVersion>;
171
670
  extractImageMetadata: ExtractImageMetadataResult;
671
+ publishAiAgentVersion: Array<AiAgentVersion>;
672
+ registerAiAgentTool?: Maybe<AiAgentTool>;
673
+ /** Apaga o agente e a autoria dele. Agente no ar precisa ser pausado antes. */
674
+ removeAiAgent: Scalars['Boolean']['output'];
675
+ removeAiAgentProcedure: Scalars['Boolean']['output'];
676
+ removeAiAgentUseCase: Scalars['Boolean']['output'];
677
+ removeAiAgentVersion: Array<AiAgentVersion>;
172
678
  removeNlpInstance?: Maybe<NlpInstance>;
173
679
  removeQnAInstance?: Maybe<QnAInstance>;
680
+ /** Decide uma acao que ficou esperando aprovacao humana (§5.5.3). Decidir de novo nao repete a acao. */
681
+ resolveAiAgentApproval: Scalars['Boolean']['output'];
682
+ rollbackAiAgentVersion: Array<AiAgentVersion>;
683
+ saveAiAgentProcedure: AiAgentProcedure;
684
+ saveAiAgentScenario?: Maybe<AiAgentScenario>;
685
+ saveAiAgentUseCase: AiAgentUseCase;
686
+ /** Tira a versao do ar sem apagar (pausar). Publicar de novo e o caminho de volta. */
687
+ unpublishAiAgentVersion: Array<AiAgentVersion>;
688
+ unregisterAiAgentTool?: Maybe<Scalars['Boolean']['output']>;
174
689
  updateNlpInstance?: Maybe<NlpInstance>;
175
690
  updateQnAInstance?: Maybe<QnAInstance>;
176
691
  version?: Maybe<Scalars['String']['output']>;
177
692
  };
693
+ export type MutationCheckAiAgentVersionArgs = {
694
+ input: CheckAiAgentVersionInput;
695
+ };
178
696
  export type MutationCreateNlpInstanceArgs = {
179
697
  input: CreateNlpInstanceInput;
180
698
  };
181
699
  export type MutationCreateQnAInstanceArgs = {
182
700
  input: CreateQnAInstanceInput;
183
701
  };
702
+ export type MutationDraftAiAgentArgs = {
703
+ input: DraftAiAgentInput;
704
+ };
184
705
  export type MutationExtractImageMetadataArgs = {
185
706
  input: ExtractImageMetadataInput;
186
707
  };
708
+ export type MutationPublishAiAgentVersionArgs = {
709
+ input: AiAgentVersionRefInput;
710
+ };
711
+ export type MutationRegisterAiAgentToolArgs = {
712
+ input: RegisterAiAgentToolInput;
713
+ };
714
+ export type MutationRemoveAiAgentArgs = {
715
+ input: AiAgentRefInput;
716
+ };
717
+ export type MutationRemoveAiAgentProcedureArgs = {
718
+ input: AiAgentAuthoringRefInput;
719
+ };
720
+ export type MutationRemoveAiAgentUseCaseArgs = {
721
+ input: AiAgentAuthoringRefInput;
722
+ };
723
+ export type MutationRemoveAiAgentVersionArgs = {
724
+ input: AiAgentVersionRefInput;
725
+ };
187
726
  export type MutationRemoveNlpInstanceArgs = {
188
727
  input: RemoveNlpInstanceInput;
189
728
  };
190
729
  export type MutationRemoveQnAInstanceArgs = {
191
730
  input: RemoveQnAInstanceInput;
192
731
  };
732
+ export type MutationResolveAiAgentApprovalArgs = {
733
+ input: ResolveAiAgentApprovalInput;
734
+ };
735
+ export type MutationRollbackAiAgentVersionArgs = {
736
+ input: AiAgentVersionRefInput;
737
+ };
738
+ export type MutationSaveAiAgentProcedureArgs = {
739
+ input: SaveAiAgentProcedureInput;
740
+ };
741
+ export type MutationSaveAiAgentScenarioArgs = {
742
+ input: SaveAiAgentScenarioInput;
743
+ };
744
+ export type MutationSaveAiAgentUseCaseArgs = {
745
+ input: SaveAiAgentUseCaseInput;
746
+ };
747
+ export type MutationUnpublishAiAgentVersionArgs = {
748
+ input: AiAgentVersionRefInput;
749
+ };
750
+ export type MutationUnregisterAiAgentToolArgs = {
751
+ input: UnregisterAiAgentToolInput;
752
+ };
193
753
  export type MutationUpdateNlpInstanceArgs = {
194
754
  input: UpdateNlpInstanceInput;
195
755
  };
@@ -234,6 +794,10 @@ export type PageInfo = {
234
794
  hasNext: Scalars['Boolean']['output'];
235
795
  next?: Maybe<Scalars['Base64']['output']>;
236
796
  };
797
+ export declare enum ParameterGrounding {
798
+ Free = "free",
799
+ Required = "required"
800
+ }
237
801
  export type QnAInstance = {
238
802
  createdAt: Scalars['DateTime']['output'];
239
803
  credentialsId: Scalars['ID']['output'];
@@ -244,22 +808,90 @@ export type QnAInstance = {
244
808
  updatedAt: Scalars['DateTime']['output'];
245
809
  };
246
810
  export type Query = {
811
+ aiAgentConversationMetrics: Array<AiAgentConversationMetrics>;
812
+ aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
813
+ /**
814
+ * §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
815
+ * credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
816
+ */
817
+ aiAgentKnowledgeBases: Array<AiAgentKnowledgeBase>;
818
+ aiAgentMetrics: AiAgentMetrics;
819
+ /** As metricas da janela para todos os agentes, numa ida so. Agente sem rastro vem com zeros. */
820
+ aiAgentMetricsByAgent: Array<AiAgentMetrics>;
821
+ /**
822
+ * A politica de retencao em vigor para o tenant, com os padroes aplicados quando ele nao
823
+ * configurou a propria. Existe para a politica ser verificavel de fora, nao so estar escrita.
824
+ */
825
+ aiAgentRetentionPolicy: AiAgentRetentionPolicy;
826
+ /** Onde cada mensagem de exemplo cairia (§5.4). Os limiares saem no resultado: `medium` sem o limiar nao diz nada. */
827
+ aiAgentRoutingPreview: AiAgentRoutingPreview;
828
+ /**
829
+ * Os turnos de um atendimento, do primeiro ao ultimo. E o que responde "o que aconteceu nesta
830
+ * conversa" sem depender de ler o DynamoDB por fora.
831
+ */
832
+ aiAgentTrace: Array<AiAgentTrace>;
833
+ /**
834
+ * Casos de uso cujas descricoes competem no roteador (§6.1). Aviso de autoria, nao bloqueio: descricoes
835
+ * parecidas podem ser intencionais.
836
+ */
837
+ aiAgentUseCaseOverlap: AiAgentUseCaseOverlap;
247
838
  app?: Maybe<Scalars['DRN']['output']>;
248
839
  getHttpEndpoint?: Maybe<Scalars['String']['output']>;
249
840
  getNlpInstance?: Maybe<NlpInstance>;
250
841
  getQnAInstance?: Maybe<QnAInstance>;
842
+ /** Os procedimentos do agente (§6.2): o plano em linguagem natural. */
843
+ listAiAgentProcedures: Array<AiAgentProcedure>;
844
+ listAiAgentScenarios: Array<AiAgentScenario>;
845
+ listAiAgentTools: Array<AiAgentTool>;
846
+ /** Os casos de uso do agente (§6.1): os motivos de contato. */
847
+ listAiAgentUseCases: Array<AiAgentUseCase>;
848
+ listAiAgentVersions: Array<AiAgentVersion>;
849
+ listAiAgents: Array<AiAgentSummary>;
251
850
  listNlpInstances: Array<NlpInstance>;
252
851
  listQnAInstances: Array<QnAInstance>;
253
852
  testNlpInstance?: Maybe<TestNlpInstanceResult>;
254
853
  testQnAInstance?: Maybe<TestQnAInstanceResult>;
255
854
  version?: Maybe<Scalars['String']['output']>;
256
855
  };
856
+ export type QueryAiAgentConversationMetricsArgs = {
857
+ input: AiAgentMetricsInput;
858
+ };
859
+ export type QueryAiAgentConversationOutcomeArgs = {
860
+ sessionId: Scalars['ID']['input'];
861
+ };
862
+ export type QueryAiAgentMetricsArgs = {
863
+ input: AiAgentMetricsInput;
864
+ };
865
+ export type QueryAiAgentMetricsByAgentArgs = {
866
+ input: AiAgentMetricsWindowInput;
867
+ };
868
+ export type QueryAiAgentRoutingPreviewArgs = {
869
+ input: AiAgentRoutingPreviewInput;
870
+ };
871
+ export type QueryAiAgentTraceArgs = {
872
+ sessionId: Scalars['ID']['input'];
873
+ };
874
+ export type QueryAiAgentUseCaseOverlapArgs = {
875
+ agentId: Scalars['ID']['input'];
876
+ };
257
877
  export type QueryGetNlpInstanceArgs = {
258
878
  id: Scalars['ID']['input'];
259
879
  };
260
880
  export type QueryGetQnAInstanceArgs = {
261
881
  id: Scalars['ID']['input'];
262
882
  };
883
+ export type QueryListAiAgentProceduresArgs = {
884
+ agentId: Scalars['ID']['input'];
885
+ };
886
+ export type QueryListAiAgentScenariosArgs = {
887
+ agentId: Scalars['ID']['input'];
888
+ };
889
+ export type QueryListAiAgentUseCasesArgs = {
890
+ agentId: Scalars['ID']['input'];
891
+ };
892
+ export type QueryListAiAgentVersionsArgs = {
893
+ agentId: Scalars['ID']['input'];
894
+ };
263
895
  export type QueryTestNlpInstanceArgs = {
264
896
  id: Scalars['ID']['input'];
265
897
  sample: Scalars['String']['input'];
@@ -269,12 +901,53 @@ export type QueryTestQnAInstanceArgs = {
269
901
  id: Scalars['ID']['input'];
270
902
  input: Scalars['String']['input'];
271
903
  };
904
+ export type RegisterAiAgentToolInput = {
905
+ method: Scalars['String']['input'];
906
+ spec: AiAgentToolSpecInput;
907
+ /** Pode conter {param} para parâmetros declarados e {customerId}. Precisa ser https e público. */
908
+ url: Scalars['String']['input'];
909
+ };
272
910
  export type RemoveNlpInstanceInput = {
273
911
  id: Scalars['ID']['input'];
274
912
  };
275
913
  export type RemoveQnAInstanceInput = {
276
914
  id: Scalars['ID']['input'];
277
915
  };
916
+ export type ResolveAiAgentApprovalInput = {
917
+ agentId: Scalars['ID']['input'];
918
+ decidedBy: Scalars['String']['input'];
919
+ /** `approved` executa a acao guardada; `rejected` avisa o consumidor e nao executa nada. */
920
+ decision: Scalars['String']['input'];
921
+ /** Identifica a pendencia junto da sessao: e o momento em que a acao foi enfileirada. */
922
+ requestedAt: Scalars['Number']['input'];
923
+ sessionId: Scalars['ID']['input'];
924
+ };
925
+ export type SaveAiAgentProcedureInput = {
926
+ agentId: Scalars['ID']['input'];
927
+ contingency: Scalars['String']['input'];
928
+ executionAutonomy: Scalars['String']['input'];
929
+ guidanceSteps: Array<Scalars['String']['input']>;
930
+ id: Scalars['ID']['input'];
931
+ name: Scalars['String']['input'];
932
+ status: Scalars['String']['input'];
933
+ toolIds: Array<Scalars['ID']['input']>;
934
+ };
935
+ export type SaveAiAgentScenarioInput = {
936
+ agentId: Scalars['ID']['input'];
937
+ description: Scalars['String']['input'];
938
+ /** Expectativas de comportamento. `blocked_by_rule` ainda não é observável e é recusada. */
939
+ expectations: Array<Scalars['JSON']['input']>;
940
+ scenarioId: Scalars['ID']['input'];
941
+ turns: Array<Scalars['String']['input']>;
942
+ };
943
+ export type SaveAiAgentUseCaseInput = {
944
+ agentId: Scalars['ID']['input'];
945
+ id: Scalars['ID']['input'];
946
+ name: Scalars['String']['input'];
947
+ procedureId?: InputMaybe<Scalars['ID']['input']>;
948
+ status: Scalars['String']['input'];
949
+ subjectDescription: Scalars['String']['input'];
950
+ };
278
951
  export type SearchResultsFacet = {
279
952
  name: Scalars['String']['output'];
280
953
  stats?: Maybe<SearchResultsFacetStats>;
@@ -342,7 +1015,39 @@ export type TokenUsage = {
342
1015
  prompt?: Maybe<Scalars['Int']['output']>;
343
1016
  total?: Maybe<Scalars['Int']['output']>;
344
1017
  };
1018
+ export declare enum TonePreset {
1019
+ Cordial = "cordial",
1020
+ Descontraido = "descontraido",
1021
+ Direto = "direto",
1022
+ Formal = "formal",
1023
+ Tecnico = "tecnico"
1024
+ }
1025
+ export declare enum ToolAvailability {
1026
+ Available = "available",
1027
+ Unavailable = "unavailable"
1028
+ }
1029
+ export declare enum ToolEffect {
1030
+ Read = "read",
1031
+ Write = "write"
1032
+ }
1033
+ export declare enum ToolParameterType {
1034
+ Boolean = "boolean",
1035
+ Number = "number",
1036
+ String = "string"
1037
+ }
345
1038
  export declare enum Typenames {
1039
+ AiAgentAnswerCache = "AiAgentAnswerCache",
1040
+ AiAgentApproval = "AiAgentApproval",
1041
+ AiAgentEvalReport = "AiAgentEvalReport",
1042
+ AiAgentProcedure = "AiAgentProcedure",
1043
+ AiAgentRetentionPolicy = "AiAgentRetentionPolicy",
1044
+ AiAgentScenario = "AiAgentScenario",
1045
+ AiAgentSession = "AiAgentSession",
1046
+ AiAgentSpend = "AiAgentSpend",
1047
+ AiAgentTool = "AiAgentTool",
1048
+ AiAgentTrace = "AiAgentTrace",
1049
+ AiAgentUseCase = "AiAgentUseCase",
1050
+ AiAgentVersion = "AiAgentVersion",
346
1051
  Any = "Any",
347
1052
  GraphqlConnections = "GraphqlConnections",
348
1053
  GraphqlSubscriptions = "GraphqlSubscriptions",
@@ -350,6 +1055,9 @@ export declare enum Typenames {
350
1055
  NlpEmbeddings = "NlpEmbeddings",
351
1056
  QnA = "QnA"
352
1057
  }
1058
+ export type UnregisterAiAgentToolInput = {
1059
+ toolId: Scalars['ID']['input'];
1060
+ };
353
1061
  export type UpdateNlpInstanceInput = {
354
1062
  id: Scalars['ID']['input'];
355
1063
  name?: InputMaybe<Scalars['String']['input']>;
@@ -361,6 +1069,211 @@ export type UpdateQnAInstanceInput = {
361
1069
  name?: InputMaybe<Scalars['String']['input']>;
362
1070
  tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>;
363
1071
  };
1072
+ export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'agentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
1073
+ export type AiAgentVersionFragment = Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'>;
1074
+ export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels'> & {
1075
+ identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
1076
+ budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
1077
+ handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
1078
+ });
1079
+ export type AiAgentVersionWithSpecFragment = (Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'> & {
1080
+ spec: AiAgentSpecFragment;
1081
+ });
1082
+ export type AiAgentListingMetricsFragment = Pick<AiAgentMetrics, 'agentId' | 'conversations' | 'conversationsResolved' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'costMicroUsd'>;
1083
+ export type ListAiAgentsQueryVariables = Exact<{
1084
+ [key: string]: never;
1085
+ }>;
1086
+ export type ListAiAgentsQuery = {
1087
+ listAiAgents: Array<AiAgentSummaryFragment>;
1088
+ };
1089
+ export type ListAiAgentVersionsQueryVariables = Exact<{
1090
+ agentId: Scalars['ID']['input'];
1091
+ }>;
1092
+ export type ListAiAgentVersionsQuery = {
1093
+ listAiAgentVersions: Array<AiAgentVersionFragment>;
1094
+ };
1095
+ export type AiAgentMetricsByAgentQueryVariables = Exact<{
1096
+ input: AiAgentMetricsWindowInput;
1097
+ }>;
1098
+ export type AiAgentMetricsByAgentQuery = {
1099
+ aiAgentMetricsByAgent: Array<AiAgentListingMetricsFragment>;
1100
+ };
1101
+ export type DraftAiAgentMutationVariables = Exact<{
1102
+ input: DraftAiAgentInput;
1103
+ }>;
1104
+ export type DraftAiAgentMutation = {
1105
+ draftAiAgent?: Maybe<AiAgentVersionFragment>;
1106
+ };
1107
+ export type PublishAiAgentVersionMutationVariables = Exact<{
1108
+ input: AiAgentVersionRefInput;
1109
+ }>;
1110
+ export type PublishAiAgentVersionMutation = {
1111
+ publishAiAgentVersion: Array<AiAgentVersionFragment>;
1112
+ };
1113
+ export type UnpublishAiAgentVersionMutationVariables = Exact<{
1114
+ input: AiAgentVersionRefInput;
1115
+ }>;
1116
+ export type UnpublishAiAgentVersionMutation = {
1117
+ unpublishAiAgentVersion: Array<AiAgentVersionFragment>;
1118
+ };
1119
+ export type RollbackAiAgentVersionMutationVariables = Exact<{
1120
+ input: AiAgentVersionRefInput;
1121
+ }>;
1122
+ export type RollbackAiAgentVersionMutation = {
1123
+ rollbackAiAgentVersion: Array<AiAgentVersionFragment>;
1124
+ };
1125
+ export type RemoveAiAgentVersionMutationVariables = Exact<{
1126
+ input: AiAgentVersionRefInput;
1127
+ }>;
1128
+ export type RemoveAiAgentVersionMutation = {
1129
+ removeAiAgentVersion: Array<AiAgentVersionFragment>;
1130
+ };
1131
+ export type RemoveAiAgentMutationVariables = Exact<{
1132
+ input: AiAgentRefInput;
1133
+ }>;
1134
+ export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
1135
+ export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'status' | 'updatedAt'>;
1136
+ export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'status' | 'updatedAt'>;
1137
+ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'customerScope' | 'returns' | 'approval'> & {
1138
+ parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding'>>;
1139
+ });
1140
+ export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt'> & {
1141
+ toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'connection' | 'errorClass'>>;
1142
+ });
1143
+ export type AiAgentScenarioFragment = Pick<AiAgentScenario, 'scenarioId' | 'description' | 'turns' | 'expectations'>;
1144
+ export type ListAiAgentUseCasesQueryVariables = Exact<{
1145
+ agentId: Scalars['ID']['input'];
1146
+ }>;
1147
+ export type ListAiAgentUseCasesQuery = {
1148
+ listAiAgentUseCases: Array<AiAgentUseCaseFragment>;
1149
+ };
1150
+ export type ListAiAgentProceduresQueryVariables = Exact<{
1151
+ agentId: Scalars['ID']['input'];
1152
+ }>;
1153
+ export type ListAiAgentProceduresQuery = {
1154
+ listAiAgentProcedures: Array<AiAgentProcedureFragment>;
1155
+ };
1156
+ export type ListAiAgentToolsQueryVariables = Exact<{
1157
+ [key: string]: never;
1158
+ }>;
1159
+ export type ListAiAgentToolsQuery = {
1160
+ listAiAgentTools: Array<AiAgentToolFragment>;
1161
+ };
1162
+ export type AiAgentUseCaseOverlapQueryVariables = Exact<{
1163
+ agentId: Scalars['ID']['input'];
1164
+ }>;
1165
+ export type AiAgentUseCaseOverlapQuery = {
1166
+ aiAgentUseCaseOverlap: (Pick<AiAgentUseCaseOverlap, 'threshold'> & {
1167
+ pairs: Array<Pick<AiAgentCompetingPair, 'left' | 'right' | 'score'>>;
1168
+ });
1169
+ };
1170
+ export type AiAgentTraceQueryVariables = Exact<{
1171
+ sessionId: Scalars['ID']['input'];
1172
+ }>;
1173
+ export type AiAgentTraceQuery = {
1174
+ aiAgentTrace: Array<AiAgentTraceFragment>;
1175
+ };
1176
+ export type ListAiAgentScenariosQueryVariables = Exact<{
1177
+ agentId: Scalars['ID']['input'];
1178
+ }>;
1179
+ export type ListAiAgentScenariosQuery = {
1180
+ listAiAgentScenarios: Array<AiAgentScenarioFragment>;
1181
+ };
1182
+ export type AiAgentRetentionPolicyQueryVariables = Exact<{
1183
+ [key: string]: never;
1184
+ }>;
1185
+ export type AiAgentRetentionPolicyQuery = {
1186
+ aiAgentRetentionPolicy: (Pick<AiAgentRetentionPolicy, 'masksPersonalData'> & {
1187
+ days: Pick<AiAgentRetentionDays, 'transcript' | 'session_state' | 'long_term_memory'>;
1188
+ });
1189
+ };
1190
+ export type AiAgentConversationMetricsQueryVariables = Exact<{
1191
+ input: AiAgentMetricsInput;
1192
+ }>;
1193
+ export type AiAgentConversationMetricsQuery = {
1194
+ aiAgentConversationMetrics: Array<Pick<AiAgentConversationMetrics, 'sessionId' | 'channel' | 'turns' | 'startedAt' | 'lastTurnAt' | 'totalTokens' | 'costMicroUsd' | 'durationMs' | 'lastOutcome'>>;
1195
+ };
1196
+ export type AiAgentConversationOutcomeQueryVariables = Exact<{
1197
+ sessionId: Scalars['ID']['input'];
1198
+ }>;
1199
+ export type AiAgentConversationOutcomeQuery = {
1200
+ aiAgentConversationOutcome?: Maybe<Pick<AiAgentConversationOutcome, 'sessionId' | 'agentId' | 'agentVersion' | 'resolution' | 'resolutionDefinition' | 'collectedData' | 'collectedDataAvailable' | 'turns' | 'startedAt' | 'lastTurnAt' | 'haltReason'>>;
1201
+ };
1202
+ export type SaveAiAgentUseCaseMutationVariables = Exact<{
1203
+ input: SaveAiAgentUseCaseInput;
1204
+ }>;
1205
+ export type SaveAiAgentUseCaseMutation = {
1206
+ saveAiAgentUseCase: AiAgentUseCaseFragment;
1207
+ };
1208
+ export type SaveAiAgentProcedureMutationVariables = Exact<{
1209
+ input: SaveAiAgentProcedureInput;
1210
+ }>;
1211
+ export type SaveAiAgentProcedureMutation = {
1212
+ saveAiAgentProcedure: AiAgentProcedureFragment;
1213
+ };
1214
+ export type RemoveAiAgentUseCaseMutationVariables = Exact<{
1215
+ input: AiAgentAuthoringRefInput;
1216
+ }>;
1217
+ export type RemoveAiAgentUseCaseMutation = Pick<Mutation, 'removeAiAgentUseCase'>;
1218
+ export type RemoveAiAgentProcedureMutationVariables = Exact<{
1219
+ input: AiAgentAuthoringRefInput;
1220
+ }>;
1221
+ export type RemoveAiAgentProcedureMutation = Pick<Mutation, 'removeAiAgentProcedure'>;
1222
+ export type ResolveAiAgentApprovalMutationVariables = Exact<{
1223
+ input: ResolveAiAgentApprovalInput;
1224
+ }>;
1225
+ export type ResolveAiAgentApprovalMutation = Pick<Mutation, 'resolveAiAgentApproval'>;
1226
+ export type RegisterAiAgentToolMutationVariables = Exact<{
1227
+ input: RegisterAiAgentToolInput;
1228
+ }>;
1229
+ export type RegisterAiAgentToolMutation = {
1230
+ registerAiAgentTool?: Maybe<AiAgentToolFragment>;
1231
+ };
1232
+ export type UnregisterAiAgentToolMutationVariables = Exact<{
1233
+ input: UnregisterAiAgentToolInput;
1234
+ }>;
1235
+ export type UnregisterAiAgentToolMutation = Pick<Mutation, 'unregisterAiAgentTool'>;
1236
+ export type SaveAiAgentScenarioMutationVariables = Exact<{
1237
+ input: SaveAiAgentScenarioInput;
1238
+ }>;
1239
+ export type SaveAiAgentScenarioMutation = {
1240
+ saveAiAgentScenario?: Maybe<AiAgentScenarioFragment>;
1241
+ };
1242
+ export type CheckAiAgentVersionMutationVariables = Exact<{
1243
+ input: CheckAiAgentVersionInput;
1244
+ }>;
1245
+ export type CheckAiAgentVersionMutation = {
1246
+ checkAiAgentVersion?: Maybe<(Pick<AiAgentCheckResult, 'safeToPublish'> & {
1247
+ reports: Array<Pick<AiAgentScenarioReport, 'scenarioId' | 'runs' | 'passed' | 'rate'>>;
1248
+ regressions: Array<Pick<AiAgentRegression, 'scenarioId' | 'before' | 'after'>>;
1249
+ })>;
1250
+ };
1251
+ export type AiAgentMetricsQueryVariables = Exact<{
1252
+ input: AiAgentMetricsInput;
1253
+ }>;
1254
+ export type AiAgentMetricsQuery = {
1255
+ aiAgentMetrics: AiAgentListingMetricsFragment;
1256
+ };
1257
+ export type AiAgentVersionSpecQueryVariables = Exact<{
1258
+ agentId: Scalars['ID']['input'];
1259
+ }>;
1260
+ export type AiAgentVersionSpecQuery = {
1261
+ listAiAgentVersions: Array<AiAgentVersionWithSpecFragment>;
1262
+ };
1263
+ export type AiAgentRoutingPreviewQueryVariables = Exact<{
1264
+ input: AiAgentRoutingPreviewInput;
1265
+ }>;
1266
+ export type AiAgentRoutingPreviewQuery = {
1267
+ aiAgentRoutingPreview: (Pick<AiAgentRoutingPreview, 'high' | 'medium'> & {
1268
+ examples: Array<Pick<AiAgentRoutedExample, 'message' | 'useCaseId' | 'score' | 'confidence'>>;
1269
+ });
1270
+ };
1271
+ export type AiAgentKnowledgeBasesQueryVariables = Exact<{
1272
+ [key: string]: never;
1273
+ }>;
1274
+ export type AiAgentKnowledgeBasesQuery = {
1275
+ aiAgentKnowledgeBases: Array<Pick<AiAgentKnowledgeBase, 'id' | 'title'>>;
1276
+ };
364
1277
  export type ExtractImageMetadataMutationVariables = Exact<{
365
1278
  input: ExtractImageMetadataInput;
366
1279
  }>;
@@ -450,8 +1363,49 @@ export type RemoveQnAInstanceMutationVariables = Exact<{
450
1363
  export type RemoveQnAInstanceMutation = {
451
1364
  removeQnAInstance?: Maybe<QnaFragmentFragment>;
452
1365
  };
1366
+ 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 ";
1367
+ export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1368
+ 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}\n ";
1369
+ export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n}\n ";
1370
+ 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 ";
1371
+ export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n status\n updatedAt\n}\n ";
1372
+ export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n status\n updatedAt\n}\n ";
1373
+ export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n }\n}\n ";
1374
+ 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 toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
1375
+ export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n turns\n expectations\n}\n ";
453
1376
  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 ";
454
1377
  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 ";
1378
+ 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 ";
1379
+ export declare const ListAiAgentVersionsDocument = "\n query listAiAgentVersions($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1380
+ export declare const AiAgentMetricsByAgentDocument = "\n query aiAgentMetricsByAgent($input: AiAgentMetricsWindowInput!) {\n aiAgentMetricsByAgent(input: $input) {\n ...aiAgentListingMetrics\n }\n}\n \n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
1381
+ export declare const DraftAiAgentDocument = "\n mutation draftAiAgent($input: DraftAiAgentInput!) {\n draftAiAgent(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1382
+ export declare const PublishAiAgentVersionDocument = "\n mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {\n publishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1383
+ export declare const UnpublishAiAgentVersionDocument = "\n mutation unpublishAiAgentVersion($input: AiAgentVersionRefInput!) {\n unpublishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1384
+ export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAiAgentVersion($input: AiAgentVersionRefInput!) {\n rollbackAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1385
+ export declare const RemoveAiAgentVersionDocument = "\n mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {\n removeAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1386
+ export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
1387
+ 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 status\n updatedAt\n}\n ";
1388
+ 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 status\n updatedAt\n}\n ";
1389
+ 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 }\n}\n ";
1390
+ 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 ";
1391
+ export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!) {\n aiAgentTrace(sessionId: $sessionId) {\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 toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
1392
+ 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 turns\n expectations\n}\n ";
1393
+ export declare const AiAgentRetentionPolicyDocument = "\n query aiAgentRetentionPolicy {\n aiAgentRetentionPolicy {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
1394
+ export declare const AiAgentConversationMetricsDocument = "\n query aiAgentConversationMetrics($input: AiAgentMetricsInput!) {\n aiAgentConversationMetrics(input: $input) {\n sessionId\n channel\n turns\n startedAt\n lastTurnAt\n totalTokens\n costMicroUsd\n durationMs\n lastOutcome\n }\n}\n ";
1395
+ export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!) {\n aiAgentConversationOutcome(sessionId: $sessionId) {\n sessionId\n agentId\n agentVersion\n resolution\n resolutionDefinition\n collectedData\n collectedDataAvailable\n turns\n startedAt\n lastTurnAt\n haltReason\n }\n}\n ";
1396
+ export declare const SaveAiAgentUseCaseDocument = "\n mutation saveAiAgentUseCase($input: SaveAiAgentUseCaseInput!) {\n saveAiAgentUseCase(input: $input) {\n ...aiAgentUseCase\n }\n}\n \n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n status\n updatedAt\n}\n ";
1397
+ export declare const SaveAiAgentProcedureDocument = "\n mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {\n saveAiAgentProcedure(input: $input) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n status\n updatedAt\n}\n ";
1398
+ export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
1399
+ export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
1400
+ export declare const ResolveAiAgentApprovalDocument = "\n mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {\n resolveAiAgentApproval(input: $input)\n}\n ";
1401
+ 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 }\n}\n ";
1402
+ export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
1403
+ 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 turns\n expectations\n}\n ";
1404
+ export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n safeToPublish\n reports {\n scenarioId\n runs\n passed\n rate\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
1405
+ export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentListingMetrics\n }\n}\n \n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
1406
+ 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}\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}\n ";
1407
+ 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 ";
1408
+ export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n }\n}\n ";
455
1409
  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 ";
456
1410
  export declare const GetNlpInstanceDocument = "\n query getNlpInstance($id: ID!) {\n getNlpInstance(id: $id) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
457
1411
  export declare const ListNlpInstancesDocument = "\n query listNlpInstances {\n listNlpInstances {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
@@ -467,6 +1421,37 @@ export declare const UpdateQnAInstanceDocument = "\n mutation updateQnAInstan
467
1421
  export declare const RemoveQnAInstanceDocument = "\n mutation removeQnAInstance($input: RemoveQnAInstanceInput!) {\n removeQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n ";
468
1422
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
469
1423
  export declare function getSdk<C>(requester: Requester<C>): {
1424
+ listAiAgents(variables?: ListAiAgentsQueryVariables, options?: C): Promise<ListAiAgentsQuery>;
1425
+ listAiAgentVersions(variables: ListAiAgentVersionsQueryVariables, options?: C): Promise<ListAiAgentVersionsQuery>;
1426
+ aiAgentMetricsByAgent(variables: AiAgentMetricsByAgentQueryVariables, options?: C): Promise<AiAgentMetricsByAgentQuery>;
1427
+ draftAiAgent(variables: DraftAiAgentMutationVariables, options?: C): Promise<DraftAiAgentMutation>;
1428
+ publishAiAgentVersion(variables: PublishAiAgentVersionMutationVariables, options?: C): Promise<PublishAiAgentVersionMutation>;
1429
+ unpublishAiAgentVersion(variables: UnpublishAiAgentVersionMutationVariables, options?: C): Promise<UnpublishAiAgentVersionMutation>;
1430
+ rollbackAiAgentVersion(variables: RollbackAiAgentVersionMutationVariables, options?: C): Promise<RollbackAiAgentVersionMutation>;
1431
+ removeAiAgentVersion(variables: RemoveAiAgentVersionMutationVariables, options?: C): Promise<RemoveAiAgentVersionMutation>;
1432
+ removeAiAgent(variables: RemoveAiAgentMutationVariables, options?: C): Promise<RemoveAiAgentMutation>;
1433
+ listAiAgentUseCases(variables: ListAiAgentUseCasesQueryVariables, options?: C): Promise<ListAiAgentUseCasesQuery>;
1434
+ listAiAgentProcedures(variables: ListAiAgentProceduresQueryVariables, options?: C): Promise<ListAiAgentProceduresQuery>;
1435
+ listAiAgentTools(variables?: ListAiAgentToolsQueryVariables, options?: C): Promise<ListAiAgentToolsQuery>;
1436
+ aiAgentUseCaseOverlap(variables: AiAgentUseCaseOverlapQueryVariables, options?: C): Promise<AiAgentUseCaseOverlapQuery>;
1437
+ aiAgentTrace(variables: AiAgentTraceQueryVariables, options?: C): Promise<AiAgentTraceQuery>;
1438
+ listAiAgentScenarios(variables: ListAiAgentScenariosQueryVariables, options?: C): Promise<ListAiAgentScenariosQuery>;
1439
+ aiAgentRetentionPolicy(variables?: AiAgentRetentionPolicyQueryVariables, options?: C): Promise<AiAgentRetentionPolicyQuery>;
1440
+ aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
1441
+ aiAgentConversationOutcome(variables: AiAgentConversationOutcomeQueryVariables, options?: C): Promise<AiAgentConversationOutcomeQuery>;
1442
+ saveAiAgentUseCase(variables: SaveAiAgentUseCaseMutationVariables, options?: C): Promise<SaveAiAgentUseCaseMutation>;
1443
+ saveAiAgentProcedure(variables: SaveAiAgentProcedureMutationVariables, options?: C): Promise<SaveAiAgentProcedureMutation>;
1444
+ removeAiAgentUseCase(variables: RemoveAiAgentUseCaseMutationVariables, options?: C): Promise<RemoveAiAgentUseCaseMutation>;
1445
+ removeAiAgentProcedure(variables: RemoveAiAgentProcedureMutationVariables, options?: C): Promise<RemoveAiAgentProcedureMutation>;
1446
+ resolveAiAgentApproval(variables: ResolveAiAgentApprovalMutationVariables, options?: C): Promise<ResolveAiAgentApprovalMutation>;
1447
+ registerAiAgentTool(variables: RegisterAiAgentToolMutationVariables, options?: C): Promise<RegisterAiAgentToolMutation>;
1448
+ unregisterAiAgentTool(variables: UnregisterAiAgentToolMutationVariables, options?: C): Promise<UnregisterAiAgentToolMutation>;
1449
+ saveAiAgentScenario(variables: SaveAiAgentScenarioMutationVariables, options?: C): Promise<SaveAiAgentScenarioMutation>;
1450
+ checkAiAgentVersion(variables: CheckAiAgentVersionMutationVariables, options?: C): Promise<CheckAiAgentVersionMutation>;
1451
+ aiAgentMetrics(variables: AiAgentMetricsQueryVariables, options?: C): Promise<AiAgentMetricsQuery>;
1452
+ aiAgentVersionSpec(variables: AiAgentVersionSpecQueryVariables, options?: C): Promise<AiAgentVersionSpecQuery>;
1453
+ aiAgentRoutingPreview(variables: AiAgentRoutingPreviewQueryVariables, options?: C): Promise<AiAgentRoutingPreviewQuery>;
1454
+ aiAgentKnowledgeBases(variables?: AiAgentKnowledgeBasesQueryVariables, options?: C): Promise<AiAgentKnowledgeBasesQuery>;
470
1455
  extractImageMetadata(variables: ExtractImageMetadataMutationVariables, options?: C): Promise<ExtractImageMetadataMutation>;
471
1456
  getNlpInstance(variables: GetNlpInstanceQueryVariables, options?: C): Promise<GetNlpInstanceQuery>;
472
1457
  listNlpInstances(variables?: ListNlpInstancesQueryVariables, options?: C): Promise<ListNlpInstancesQuery>;