@droz-js/sdk 0.19.26 → 0.19.29

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