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