@droz-js/sdk 0.21.0 → 0.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/drozai.d.ts +3 -0
- package/src/sdks/ai.d.ts +161 -6
- package/src/sdks/ai.js +143 -2
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -63,6 +63,9 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
63
63
|
aiAgentMetricsSeries(variables: import("./sdks/ai").Exact<{
|
|
64
64
|
input: import("./sdks/ai").AiAgentMetricsSeriesInput;
|
|
65
65
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentMetricsSeriesQuery>;
|
|
66
|
+
aiAgentDashboard(variables: import("./sdks/ai").Exact<{
|
|
67
|
+
input: import("./sdks/ai").AiAgentDashboardInput;
|
|
68
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentDashboardQuery>;
|
|
66
69
|
aiAgentConversationOutcome(variables: import("./sdks/ai").Exact<{
|
|
67
70
|
sessionId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
68
71
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentConversationOutcomeQuery>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -222,6 +222,12 @@ export declare enum AiAgentCheckRunStatus {
|
|
|
222
222
|
Running = "running",
|
|
223
223
|
Succeeded = "succeeded"
|
|
224
224
|
}
|
|
225
|
+
export type AiAgentClassificationCount = {
|
|
226
|
+
count: Scalars['Number']['output'];
|
|
227
|
+
state: AiAgentConversationState;
|
|
228
|
+
subcategory?: Maybe<AiAgentConversationSubcategory>;
|
|
229
|
+
technicalFailure?: Maybe<AiAgentTechnicalFailure>;
|
|
230
|
+
};
|
|
225
231
|
export type AiAgentCompetingPair = {
|
|
226
232
|
left: Scalars['ID']['output'];
|
|
227
233
|
right: Scalars['ID']['output'];
|
|
@@ -400,6 +406,91 @@ export declare enum AiAgentConversationSubcategory {
|
|
|
400
406
|
TransbordoPorNecessidadeCliente = "TRANSBORDO_POR_NECESSIDADE_CLIENTE",
|
|
401
407
|
TransbordoPorProcedimento = "TRANSBORDO_POR_PROCEDIMENTO"
|
|
402
408
|
}
|
|
409
|
+
export type AiAgentDashboard = {
|
|
410
|
+
abandonment: AiAgentDashboardIndicator;
|
|
411
|
+
agentId: Scalars['ID']['output'];
|
|
412
|
+
analysesTruncated: Scalars['Boolean']['output'];
|
|
413
|
+
bucket: AiAgentMetricsBucket;
|
|
414
|
+
contactReasons: AiAgentDashboardContactReasons;
|
|
415
|
+
conversations: AiAgentDashboardIndicator;
|
|
416
|
+
handoffNeed: AiAgentDashboardIndicator;
|
|
417
|
+
handoffProcedure: AiAgentDashboardIndicator;
|
|
418
|
+
period: AiAgentDashboardPeriod;
|
|
419
|
+
previousWindow: AiAgentDashboardWindow;
|
|
420
|
+
resolved: AiAgentDashboardIndicator;
|
|
421
|
+
scoreBands: Array<AiAgentDashboardScoreBand>;
|
|
422
|
+
sentimentAtEnd: Array<AiAgentDashboardSentiment>;
|
|
423
|
+
sentimentAtStart: Array<AiAgentDashboardSentiment>;
|
|
424
|
+
series: Array<AiAgentDashboardSeriesPoint>;
|
|
425
|
+
timezone: Scalars['String']['output'];
|
|
426
|
+
/** true when the read cap was reached in any window: the numbers cover part of the period. */
|
|
427
|
+
truncated: Scalars['Boolean']['output'];
|
|
428
|
+
unresolved: AiAgentDashboardIndicator;
|
|
429
|
+
window: AiAgentDashboardWindow;
|
|
430
|
+
};
|
|
431
|
+
/** Sorted by count, highest first. */
|
|
432
|
+
export type AiAgentDashboardContactReason = {
|
|
433
|
+
count: Scalars['Number']['output'];
|
|
434
|
+
key: Scalars['String']['output'];
|
|
435
|
+
percent: Scalars['Float']['output'];
|
|
436
|
+
};
|
|
437
|
+
export type AiAgentDashboardContactReasons = {
|
|
438
|
+
abandonment: Array<AiAgentDashboardContactReason>;
|
|
439
|
+
all: Array<AiAgentDashboardContactReason>;
|
|
440
|
+
handoff: Array<AiAgentDashboardContactReason>;
|
|
441
|
+
};
|
|
442
|
+
/** `value` is absent when the window has no data. */
|
|
443
|
+
export type AiAgentDashboardIndicator = {
|
|
444
|
+
polarity: AiAgentMetricPolarity;
|
|
445
|
+
value?: Maybe<Scalars['Float']['output']>;
|
|
446
|
+
variation: AiAgentVariation;
|
|
447
|
+
};
|
|
448
|
+
/** The current window ends now. The previous window has the same number of days and ends right before the current one starts. */
|
|
449
|
+
export type AiAgentDashboardInput = {
|
|
450
|
+
agentId: Scalars['ID']['input'];
|
|
451
|
+
channel?: InputMaybe<Scalars['String']['input']>;
|
|
452
|
+
period: AiAgentDashboardPeriod;
|
|
453
|
+
timezone: Scalars['String']['input'];
|
|
454
|
+
};
|
|
455
|
+
export declare enum AiAgentDashboardPeriod {
|
|
456
|
+
Days_7 = "DAYS_7",
|
|
457
|
+
Days_30 = "DAYS_30",
|
|
458
|
+
Days_90 = "DAYS_90"
|
|
459
|
+
}
|
|
460
|
+
/** `percent` is the share of the band in the window total, with one decimal. Absent when the total is zero. */
|
|
461
|
+
export type AiAgentDashboardScoreBand = {
|
|
462
|
+
band: AiAgentScoreBand;
|
|
463
|
+
count: Scalars['Number']['output'];
|
|
464
|
+
percent?: Maybe<Scalars['Float']['output']>;
|
|
465
|
+
polarity: AiAgentMetricPolarity;
|
|
466
|
+
variation: AiAgentVariation;
|
|
467
|
+
};
|
|
468
|
+
export type AiAgentDashboardSentiment = {
|
|
469
|
+
count: Scalars['Number']['output'];
|
|
470
|
+
percent?: Maybe<Scalars['Float']['output']>;
|
|
471
|
+
polarity: AiAgentMetricPolarity;
|
|
472
|
+
sentiment: AiAgentSentiment;
|
|
473
|
+
variation: AiAgentVariation;
|
|
474
|
+
};
|
|
475
|
+
/** `date` and `endDate` are local dates (YYYY-MM-DD) of the first and last day of the bucket, inside the window. */
|
|
476
|
+
export type AiAgentDashboardSeriesPoint = {
|
|
477
|
+
abandonmentRate?: Maybe<Scalars['Number']['output']>;
|
|
478
|
+
conversations: Scalars['Number']['output'];
|
|
479
|
+
conversationsAbandoned: Scalars['Number']['output'];
|
|
480
|
+
conversationsEligible: Scalars['Number']['output'];
|
|
481
|
+
conversationsHandoffNeed: Scalars['Number']['output'];
|
|
482
|
+
conversationsResolved: Scalars['Number']['output'];
|
|
483
|
+
conversationsUnresolved: Scalars['Number']['output'];
|
|
484
|
+
date: Scalars['String']['output'];
|
|
485
|
+
endDate: Scalars['String']['output'];
|
|
486
|
+
handoffNeedRate?: Maybe<Scalars['Number']['output']>;
|
|
487
|
+
resolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
488
|
+
unresolvedRate?: Maybe<Scalars['Number']['output']>;
|
|
489
|
+
};
|
|
490
|
+
export type AiAgentDashboardWindow = {
|
|
491
|
+
from: Scalars['Number']['output'];
|
|
492
|
+
to: Scalars['Number']['output'];
|
|
493
|
+
};
|
|
403
494
|
/** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
|
|
404
495
|
export declare enum AiAgentFrequencyLevel {
|
|
405
496
|
Frequent = "FREQUENT",
|
|
@@ -461,6 +552,11 @@ export type AiAgentKnowledgeBase = {
|
|
|
461
552
|
isPublic: Scalars['Boolean']['output'];
|
|
462
553
|
title: Scalars['String']['output'];
|
|
463
554
|
};
|
|
555
|
+
export declare enum AiAgentMetricPolarity {
|
|
556
|
+
HigherIsBetter = "HIGHER_IS_BETTER",
|
|
557
|
+
HigherIsWorse = "HIGHER_IS_WORSE",
|
|
558
|
+
Neutral = "NEUTRAL"
|
|
559
|
+
}
|
|
464
560
|
export type AiAgentMetrics = {
|
|
465
561
|
/** Pontos percentuais inteiros sobre `conversationsEligible`; ausente sem conversa elegível. */
|
|
466
562
|
abandonmentRate?: Maybe<Scalars['Number']['output']>;
|
|
@@ -492,9 +588,11 @@ export type AiAgentMetrics = {
|
|
|
492
588
|
cachedInputTokens: Scalars['Number']['output'];
|
|
493
589
|
/** Turnos respondidos pelo cache, sem chamada ao modelo. E o ganho da otimizacao de §4.9. */
|
|
494
590
|
cachedTurns: Scalars['Number']['output'];
|
|
591
|
+
classificationBreakdown: Array<AiAgentClassificationCount>;
|
|
495
592
|
classificationDefinitionVersion: Scalars['String']['output'];
|
|
496
593
|
contactReasons: AiAgentContactReasons;
|
|
497
594
|
conversations: Scalars['Number']['output'];
|
|
595
|
+
/** @deprecated A chave junta subcategoria e falha tecnica numa string. Use classificationBreakdown. */
|
|
498
596
|
conversationsByClassification: Array<AiAgentMetricsCount>;
|
|
499
597
|
conversationsEligible: Scalars['Number']['output'];
|
|
500
598
|
/**
|
|
@@ -651,6 +749,7 @@ export type AiAgentMetricsWindowInput = {
|
|
|
651
749
|
};
|
|
652
750
|
export type AiAgentProcedure = {
|
|
653
751
|
contingency: Scalars['String']['output'];
|
|
752
|
+
endsConversationAfterInforming: Scalars['Boolean']['output'];
|
|
654
753
|
/** `autonomous` ou `needsApproval`. Ferramenta irreversivel exige `needsApproval`. */
|
|
655
754
|
executionAutonomy: Scalars['String']['output'];
|
|
656
755
|
/** As etapas como o autor instruiria uma pessoa. O texto e a fonte da verdade (§6.2). */
|
|
@@ -976,6 +1075,15 @@ export type AiAgentUseCaseOverlap = {
|
|
|
976
1075
|
/** O limiar aplicado, publicado junto do resultado para o aviso nao ser lido como cada um quiser. */
|
|
977
1076
|
threshold: Scalars['Number']['output'];
|
|
978
1077
|
};
|
|
1078
|
+
/** `value` is absent when there is no base to compare: no previous data, or a previous count of zero for PERCENT. */
|
|
1079
|
+
export type AiAgentVariation = {
|
|
1080
|
+
unit: AiAgentVariationUnit;
|
|
1081
|
+
value?: Maybe<Scalars['Number']['output']>;
|
|
1082
|
+
};
|
|
1083
|
+
export declare enum AiAgentVariationUnit {
|
|
1084
|
+
Percent = "PERCENT",
|
|
1085
|
+
Points = "POINTS"
|
|
1086
|
+
}
|
|
979
1087
|
export type AiAgentVersion = {
|
|
980
1088
|
agentId: Scalars['ID']['output'];
|
|
981
1089
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -1225,6 +1333,7 @@ export type Query = {
|
|
|
1225
1333
|
aiAgentCheckLimits: AiAgentCheckLimits;
|
|
1226
1334
|
aiAgentConversationMetrics: AiAgentConversationMetricsPage;
|
|
1227
1335
|
aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
|
|
1336
|
+
aiAgentDashboard: AiAgentDashboard;
|
|
1228
1337
|
/**
|
|
1229
1338
|
* §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
|
|
1230
1339
|
* credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
|
|
@@ -1285,6 +1394,9 @@ export type QueryAiAgentConversationMetricsArgs = {
|
|
|
1285
1394
|
export type QueryAiAgentConversationOutcomeArgs = {
|
|
1286
1395
|
sessionId: Scalars['ID']['input'];
|
|
1287
1396
|
};
|
|
1397
|
+
export type QueryAiAgentDashboardArgs = {
|
|
1398
|
+
input: AiAgentDashboardInput;
|
|
1399
|
+
};
|
|
1288
1400
|
export type QueryAiAgentMetricsArgs = {
|
|
1289
1401
|
input: AiAgentMetricsInput;
|
|
1290
1402
|
};
|
|
@@ -1371,6 +1483,7 @@ export type ResolveAiAgentApprovalInput = {
|
|
|
1371
1483
|
export type SaveAiAgentProcedureInput = {
|
|
1372
1484
|
agentId: Scalars['ID']['input'];
|
|
1373
1485
|
contingency: Scalars['String']['input'];
|
|
1486
|
+
endsConversationAfterInforming?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1374
1487
|
executionAutonomy: Scalars['String']['input'];
|
|
1375
1488
|
guidanceSteps: Array<Scalars['String']['input']>;
|
|
1376
1489
|
id: Scalars['ID']['input'];
|
|
@@ -1503,8 +1616,11 @@ export declare enum Typenames {
|
|
|
1503
1616
|
AiAgentAnswerCache = "AiAgentAnswerCache",
|
|
1504
1617
|
AiAgentApproval = "AiAgentApproval",
|
|
1505
1618
|
AiAgentCheckRun = "AiAgentCheckRun",
|
|
1619
|
+
AiAgentConversation = "AiAgentConversation",
|
|
1506
1620
|
AiAgentConversationAnalysis = "AiAgentConversationAnalysis",
|
|
1621
|
+
AiAgentConversationPointer = "AiAgentConversationPointer",
|
|
1507
1622
|
AiAgentEvalReport = "AiAgentEvalReport",
|
|
1623
|
+
AiAgentOpenConversation = "AiAgentOpenConversation",
|
|
1508
1624
|
AiAgentProcedure = "AiAgentProcedure",
|
|
1509
1625
|
AiAgentRetentionPolicy = "AiAgentRetentionPolicy",
|
|
1510
1626
|
AiAgentScenario = "AiAgentScenario",
|
|
@@ -1605,7 +1721,7 @@ export type RemoveAiAgentMutationVariables = Exact<{
|
|
|
1605
1721
|
}>;
|
|
1606
1722
|
export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
|
|
1607
1723
|
export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'tag' | 'status' | 'updatedAt'>;
|
|
1608
|
-
export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'status' | 'updatedAt'>;
|
|
1724
|
+
export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'status' | 'updatedAt'>;
|
|
1609
1725
|
export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'customerScope' | 'returns' | 'approval'> & {
|
|
1610
1726
|
parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding'>>;
|
|
1611
1727
|
});
|
|
@@ -1684,6 +1800,39 @@ export type AiAgentMetricsSeriesQuery = {
|
|
|
1684
1800
|
points: Array<Pick<AiAgentMetricsSeriesPoint, 'date' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
|
|
1685
1801
|
});
|
|
1686
1802
|
};
|
|
1803
|
+
export type AiAgentDashboardQueryVariables = Exact<{
|
|
1804
|
+
input: AiAgentDashboardInput;
|
|
1805
|
+
}>;
|
|
1806
|
+
export type AiAgentDashboardQuery = {
|
|
1807
|
+
aiAgentDashboard: (Pick<AiAgentDashboard, 'agentId' | 'period' | 'timezone' | 'bucket' | 'truncated' | 'analysesTruncated'> & {
|
|
1808
|
+
window: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
|
|
1809
|
+
previousWindow: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
|
|
1810
|
+
conversations: AiAgentDashboardIndicatorFragment;
|
|
1811
|
+
resolved: AiAgentDashboardIndicatorFragment;
|
|
1812
|
+
unresolved: AiAgentDashboardIndicatorFragment;
|
|
1813
|
+
handoffProcedure: AiAgentDashboardIndicatorFragment;
|
|
1814
|
+
handoffNeed: AiAgentDashboardIndicatorFragment;
|
|
1815
|
+
abandonment: AiAgentDashboardIndicatorFragment;
|
|
1816
|
+
scoreBands: Array<(Pick<AiAgentDashboardScoreBand, 'band' | 'count' | 'percent' | 'polarity'> & {
|
|
1817
|
+
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1818
|
+
})>;
|
|
1819
|
+
sentimentAtStart: Array<AiAgentDashboardSentimentFragment>;
|
|
1820
|
+
sentimentAtEnd: Array<AiAgentDashboardSentimentFragment>;
|
|
1821
|
+
contactReasons: {
|
|
1822
|
+
all: Array<AiAgentDashboardContactReasonFragment>;
|
|
1823
|
+
handoff: Array<AiAgentDashboardContactReasonFragment>;
|
|
1824
|
+
abandonment: Array<AiAgentDashboardContactReasonFragment>;
|
|
1825
|
+
};
|
|
1826
|
+
series: Array<Pick<AiAgentDashboardSeriesPoint, 'date' | 'endDate' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
|
|
1827
|
+
});
|
|
1828
|
+
};
|
|
1829
|
+
export type AiAgentDashboardIndicatorFragment = (Pick<AiAgentDashboardIndicator, 'value' | 'polarity'> & {
|
|
1830
|
+
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1831
|
+
});
|
|
1832
|
+
export type AiAgentDashboardSentimentFragment = (Pick<AiAgentDashboardSentiment, 'sentiment' | 'count' | 'percent' | 'polarity'> & {
|
|
1833
|
+
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1834
|
+
});
|
|
1835
|
+
export type AiAgentDashboardContactReasonFragment = Pick<AiAgentDashboardContactReason, 'key' | 'count' | 'percent'>;
|
|
1687
1836
|
export type AiAgentConversationOutcomeQueryVariables = Exact<{
|
|
1688
1837
|
sessionId: Scalars['ID']['input'];
|
|
1689
1838
|
}>;
|
|
@@ -1785,6 +1934,7 @@ export type AiAgentCheckLimitsQuery = {
|
|
|
1785
1934
|
};
|
|
1786
1935
|
export type AiAgentMetricsReportFragment = (Pick<AiAgentMetrics, 'agentId' | 'from' | 'to' | 'truncated' | 'conversations' | 'conversationsResolved' | 'conversationsInconclusive' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'conversationsEligible' | 'conversationsResolvedByDefinition' | 'resolvedRate' | 'unresolvedRate' | 'handoffProcedureRate' | 'handoffNeedRate' | 'abandonmentRate' | 'classificationDefinitionVersion' | 'analyzedConversations' | 'estimatedSatisfactionAvg' | 'analysisCostMicroUsd' | 'failedAnalyses' | 'analysesTruncated' | 'agentScoreAvg' | 'agentScoreAvgBand' | 'agentClarityAvg' | 'customerEffortScoreAvg' | 'escalatedToHuman' | 'escalatedToFlow' | 'escalatedTargetUndeclared' | 'humanRequestedTurns' | 'costMicroUsd' | 'costMicroUsdPerResolvedConversation' | 'unpricedTurns' | 'inputTokens' | 'outputTokens' | 'totalTokens' | 'cachedInputTokens' | 'cachedTurns' | 'llmCalls' | 'avgTurnDurationMs' | 'p95TurnDurationMs' | 'avgLlmLatencyMs' | 'turns' | 'answeredTurns' | 'answeredWithFailedConnectionTurns' | 'unansweredTurns' | 'unansweredDefinition' | 'blockedTurns' | 'haltedTurns' | 'budgetExceededTurns' | 'identificationRequiredTurns' | 'toolCalls' | 'toolCallsFailed' | 'knowledgeRetrieved' | 'knowledgeEmpty' | 'knowledgeUnavailable' | 'knowledgeSkipped'> & {
|
|
1787
1936
|
conversationsByClassification: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
1937
|
+
classificationBreakdown: Array<Pick<AiAgentClassificationCount, 'state' | 'subcategory' | 'technicalFailure' | 'count'>>;
|
|
1788
1938
|
sentimentAtStart: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
|
|
1789
1939
|
sentimentAtEnd: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
|
|
1790
1940
|
riskAlerts: Array<Pick<AiAgentRiskAlertCount, 'key' | 'count'>>;
|
|
@@ -1926,13 +2076,16 @@ export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentTo
|
|
|
1926
2076
|
export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n ";
|
|
1927
2077
|
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 ";
|
|
1928
2078
|
export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n tag\n status\n updatedAt\n}\n ";
|
|
1929
|
-
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 ";
|
|
2079
|
+
export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n status\n updatedAt\n}\n ";
|
|
1930
2080
|
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 ";
|
|
1931
2081
|
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
|
|
1932
2082
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2083
|
+
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2084
|
+
export declare const AiAgentDashboardSentimentFragmentDoc = "\n fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {\n sentiment\n count\n percent\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2085
|
+
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
1933
2086
|
export declare const AiAgentApprovalFragmentDoc = "\n fragment aiAgentApproval on AiAgentApproval {\n agentId\n sessionId\n toolId\n toolName\n args\n channelId\n customerId\n requestedAt\n expiresAt\n status\n decidedBy\n decidedAt\n}\n ";
|
|
1934
2087
|
export declare const AiAgentCheckRunFragmentDoc = "\n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
1935
|
-
export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
2088
|
+
export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
1936
2089
|
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 ";
|
|
1937
2090
|
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 ";
|
|
1938
2091
|
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 ";
|
|
@@ -1945,7 +2098,7 @@ export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAi
|
|
|
1945
2098
|
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 ";
|
|
1946
2099
|
export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
|
|
1947
2100
|
export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCases($agentId: ID!) {\n listAiAgentUseCases(agentId: $agentId) {\n ...aiAgentUseCase\n }\n}\n \n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n tag\n status\n updatedAt\n}\n ";
|
|
1948
|
-
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 ";
|
|
2101
|
+
export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($agentId: ID!) {\n listAiAgentProcedures(agentId: $agentId) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n status\n updatedAt\n}\n ";
|
|
1949
2102
|
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 ";
|
|
1950
2103
|
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 ";
|
|
1951
2104
|
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 excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
@@ -1954,9 +2107,10 @@ export declare const SetAiAgentRetentionPolicyDocument = "\n mutation setAiAg
|
|
|
1954
2107
|
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 ";
|
|
1955
2108
|
export declare const AiAgentConversationMetricsDocument = "\n query aiAgentConversationMetrics($input: AiAgentConversationMetricsInput!) {\n aiAgentConversationMetrics(input: $input) {\n items {\n sessionId\n channel\n turns\n startedAt\n lastTurnAt\n totalTokens\n costMicroUsd\n durationMs\n lastOutcome\n state\n status\n subcategory\n contactReason\n contactReasonTag\n channelType\n }\n total\n limit\n offset\n truncated\n }\n}\n ";
|
|
1956
2109
|
export declare const AiAgentMetricsSeriesDocument = "\n query aiAgentMetricsSeries($input: AiAgentMetricsSeriesInput!) {\n aiAgentMetricsSeries(input: $input) {\n points {\n date\n conversations\n conversationsEligible\n conversationsResolved\n conversationsUnresolved\n conversationsHandoffNeed\n conversationsAbandoned\n resolvedRate\n unresolvedRate\n handoffNeedRate\n abandonmentRate\n }\n truncated\n }\n}\n ";
|
|
2110
|
+
export declare const AiAgentDashboardDocument = "\n query aiAgentDashboard($input: AiAgentDashboardInput!) {\n aiAgentDashboard(input: $input) {\n agentId\n period\n timezone\n window {\n from\n to\n }\n previousWindow {\n from\n to\n }\n bucket\n conversations {\n ...aiAgentDashboardIndicator\n }\n resolved {\n ...aiAgentDashboardIndicator\n }\n unresolved {\n ...aiAgentDashboardIndicator\n }\n handoffProcedure {\n ...aiAgentDashboardIndicator\n }\n handoffNeed {\n ...aiAgentDashboardIndicator\n }\n abandonment {\n ...aiAgentDashboardIndicator\n }\n scoreBands {\n band\n count\n percent\n polarity\n variation {\n unit\n value\n }\n }\n sentimentAtStart {\n ...aiAgentDashboardSentiment\n }\n sentimentAtEnd {\n ...aiAgentDashboardSentiment\n }\n contactReasons {\n all {\n ...aiAgentDashboardContactReason\n }\n handoff {\n ...aiAgentDashboardContactReason\n }\n abandonment {\n ...aiAgentDashboardContactReason\n }\n }\n series {\n date\n endDate\n conversations\n conversationsEligible\n conversationsResolved\n conversationsUnresolved\n conversationsHandoffNeed\n conversationsAbandoned\n resolvedRate\n unresolvedRate\n handoffNeedRate\n abandonmentRate\n }\n truncated\n analysesTruncated\n }\n}\n \n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n \n\n fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {\n sentiment\n count\n percent\n polarity\n variation {\n unit\n value\n }\n}\n \n\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
1957
2111
|
export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!) {\n aiAgentConversationOutcome(sessionId: $sessionId) {\n sessionId\n agentId\n agentVersion\n resolution\n resolutionDefinition\n collectedData\n collectedDataAvailable\n turns\n startedAt\n lastTurnAt\n haltReason\n handoffReason\n agentSummary\n promisedNextStep\n classification {\n state\n classification\n subcategory\n technicalFailure\n eligibleForResolution\n consumesAllowance\n inactivityWindowMs\n definitionVersion\n }\n channelType\n actions {\n toolId\n name\n ok\n result\n at\n }\n contactReason {\n name\n useCaseId\n tag\n other\n source\n }\n analysis {\n analysisVersion\n failed\n failureReason\n sentimentStart\n sentimentEnd\n estimatedSatisfaction\n riskAlerts\n knowledgeGaps\n repeatedInformation\n humanRequests\n contactReason\n contactReasonId\n contactReasonTag\n contactReasonOther\n contactReasonSource\n summary\n agentScore\n agentScoreBand\n agentClarity\n customerEffortScore\n model\n costMicroUsd\n analyzedAt\n }\n }\n}\n ";
|
|
1958
2112
|
export declare const SaveAiAgentUseCaseDocument = "\n mutation saveAiAgentUseCase($input: SaveAiAgentUseCaseInput!) {\n saveAiAgentUseCase(input: $input) {\n ...aiAgentUseCase\n }\n}\n \n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n tag\n status\n updatedAt\n}\n ";
|
|
1959
|
-
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 ";
|
|
2113
|
+
export declare const SaveAiAgentProcedureDocument = "\n mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {\n saveAiAgentProcedure(input: $input) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n status\n updatedAt\n}\n ";
|
|
1960
2114
|
export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
|
|
1961
2115
|
export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
|
|
1962
2116
|
export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
|
|
@@ -1969,7 +2123,7 @@ export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentSc
|
|
|
1969
2123
|
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1970
2124
|
export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(agentId: $agentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1971
2125
|
export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
|
|
1972
|
-
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
2126
|
+
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
1973
2127
|
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n \n\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1974
2128
|
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 ";
|
|
1975
2129
|
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
|
|
@@ -2007,6 +2161,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2007
2161
|
aiAgentRetentionPolicy(variables?: AiAgentRetentionPolicyQueryVariables, options?: C): Promise<AiAgentRetentionPolicyQuery>;
|
|
2008
2162
|
aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
|
|
2009
2163
|
aiAgentMetricsSeries(variables: AiAgentMetricsSeriesQueryVariables, options?: C): Promise<AiAgentMetricsSeriesQuery>;
|
|
2164
|
+
aiAgentDashboard(variables: AiAgentDashboardQueryVariables, options?: C): Promise<AiAgentDashboardQuery>;
|
|
2010
2165
|
aiAgentConversationOutcome(variables: AiAgentConversationOutcomeQueryVariables, options?: C): Promise<AiAgentConversationOutcomeQuery>;
|
|
2011
2166
|
saveAiAgentUseCase(variables: SaveAiAgentUseCaseMutationVariables, options?: C): Promise<SaveAiAgentUseCaseMutation>;
|
|
2012
2167
|
saveAiAgentProcedure(variables: SaveAiAgentProcedureMutationVariables, options?: C): Promise<SaveAiAgentProcedureMutation>;
|
package/src/sdks/ai.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
4
|
+
exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentMetricsReportFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentApprovalFragmentDoc = exports.AiAgentDashboardContactReasonFragmentDoc = exports.AiAgentDashboardSentimentFragmentDoc = exports.AiAgentDashboardIndicatorFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolEffect = exports.ToolAvailability = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentVariationUnit = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentMetricsBucket = exports.AiAgentMetricPolarity = exports.AiAgentHandoffReason = exports.AiAgentFrequencyLevel = exports.AiAgentDashboardPeriod = exports.AiAgentConversationSubcategory = exports.AiAgentConversationStatus = exports.AiAgentConversationState = exports.AiAgentConversationSortField = exports.AiAgentConversationClass = exports.AiAgentContactReasonSource = exports.AiAgentCheckRunStatus = exports.AiAgentChannelType = exports.AiAgentAnalysisFailureReason = void 0;
|
|
5
|
+
exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentMetricsDocument = exports.AiAgentCheckLimitsDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.ResolveAiAgentApprovalDocument = exports.ListAiAgentApprovalsDocument = exports.RememberAiAgentSessionFactsDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentDashboardDocument = exports.AiAgentMetricsSeriesDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentMetricsByAgentDocument = exports.ListAiAgentVersionsDocument = void 0;
|
|
6
|
+
exports.serviceName = exports.RemoveQnAInstanceDocument = void 0;
|
|
6
7
|
exports.getSdk = getSdk;
|
|
7
8
|
var AiAgentAnalysisFailureReason;
|
|
8
9
|
(function (AiAgentAnalysisFailureReason) {
|
|
@@ -72,6 +73,12 @@ var AiAgentConversationSubcategory;
|
|
|
72
73
|
AiAgentConversationSubcategory["TransbordoPorNecessidadeCliente"] = "TRANSBORDO_POR_NECESSIDADE_CLIENTE";
|
|
73
74
|
AiAgentConversationSubcategory["TransbordoPorProcedimento"] = "TRANSBORDO_POR_PROCEDIMENTO";
|
|
74
75
|
})(AiAgentConversationSubcategory || (exports.AiAgentConversationSubcategory = AiAgentConversationSubcategory = {}));
|
|
76
|
+
var AiAgentDashboardPeriod;
|
|
77
|
+
(function (AiAgentDashboardPeriod) {
|
|
78
|
+
AiAgentDashboardPeriod["Days_7"] = "DAYS_7";
|
|
79
|
+
AiAgentDashboardPeriod["Days_30"] = "DAYS_30";
|
|
80
|
+
AiAgentDashboardPeriod["Days_90"] = "DAYS_90";
|
|
81
|
+
})(AiAgentDashboardPeriod || (exports.AiAgentDashboardPeriod = AiAgentDashboardPeriod = {}));
|
|
75
82
|
/** Selo de frequência de um item das listas do dashboard: Muito frequente, Frequente ou Pouco frequente. */
|
|
76
83
|
var AiAgentFrequencyLevel;
|
|
77
84
|
(function (AiAgentFrequencyLevel) {
|
|
@@ -93,6 +100,12 @@ var AiAgentHandoffReason;
|
|
|
93
100
|
AiAgentHandoffReason["Undeclared"] = "undeclared";
|
|
94
101
|
AiAgentHandoffReason["Unresolved"] = "unresolved";
|
|
95
102
|
})(AiAgentHandoffReason || (exports.AiAgentHandoffReason = AiAgentHandoffReason = {}));
|
|
103
|
+
var AiAgentMetricPolarity;
|
|
104
|
+
(function (AiAgentMetricPolarity) {
|
|
105
|
+
AiAgentMetricPolarity["HigherIsBetter"] = "HIGHER_IS_BETTER";
|
|
106
|
+
AiAgentMetricPolarity["HigherIsWorse"] = "HIGHER_IS_WORSE";
|
|
107
|
+
AiAgentMetricPolarity["Neutral"] = "NEUTRAL";
|
|
108
|
+
})(AiAgentMetricPolarity || (exports.AiAgentMetricPolarity = AiAgentMetricPolarity = {}));
|
|
96
109
|
var AiAgentMetricsBucket;
|
|
97
110
|
(function (AiAgentMetricsBucket) {
|
|
98
111
|
AiAgentMetricsBucket["Day"] = "DAY";
|
|
@@ -130,6 +143,11 @@ var AiAgentTechnicalFailure;
|
|
|
130
143
|
AiAgentTechnicalFailure["LimiteOperacional"] = "LIMITE_OPERACIONAL";
|
|
131
144
|
AiAgentTechnicalFailure["Timeout"] = "TIMEOUT";
|
|
132
145
|
})(AiAgentTechnicalFailure || (exports.AiAgentTechnicalFailure = AiAgentTechnicalFailure = {}));
|
|
146
|
+
var AiAgentVariationUnit;
|
|
147
|
+
(function (AiAgentVariationUnit) {
|
|
148
|
+
AiAgentVariationUnit["Percent"] = "PERCENT";
|
|
149
|
+
AiAgentVariationUnit["Points"] = "POINTS";
|
|
150
|
+
})(AiAgentVariationUnit || (exports.AiAgentVariationUnit = AiAgentVariationUnit = {}));
|
|
133
151
|
var AiAgentVersionStatus;
|
|
134
152
|
(function (AiAgentVersionStatus) {
|
|
135
153
|
AiAgentVersionStatus["Draft"] = "draft";
|
|
@@ -190,8 +208,11 @@ var Typenames;
|
|
|
190
208
|
Typenames["AiAgentAnswerCache"] = "AiAgentAnswerCache";
|
|
191
209
|
Typenames["AiAgentApproval"] = "AiAgentApproval";
|
|
192
210
|
Typenames["AiAgentCheckRun"] = "AiAgentCheckRun";
|
|
211
|
+
Typenames["AiAgentConversation"] = "AiAgentConversation";
|
|
193
212
|
Typenames["AiAgentConversationAnalysis"] = "AiAgentConversationAnalysis";
|
|
213
|
+
Typenames["AiAgentConversationPointer"] = "AiAgentConversationPointer";
|
|
194
214
|
Typenames["AiAgentEvalReport"] = "AiAgentEvalReport";
|
|
215
|
+
Typenames["AiAgentOpenConversation"] = "AiAgentOpenConversation";
|
|
195
216
|
Typenames["AiAgentProcedure"] = "AiAgentProcedure";
|
|
196
217
|
Typenames["AiAgentRetentionPolicy"] = "AiAgentRetentionPolicy";
|
|
197
218
|
Typenames["AiAgentScenario"] = "AiAgentScenario";
|
|
@@ -307,6 +328,7 @@ exports.AiAgentProcedureFragmentDoc = `
|
|
|
307
328
|
toolIds
|
|
308
329
|
contingency
|
|
309
330
|
executionAutonomy
|
|
331
|
+
endsConversationAfterInforming
|
|
310
332
|
status
|
|
311
333
|
updatedAt
|
|
312
334
|
}
|
|
@@ -371,6 +393,35 @@ exports.AiAgentScenarioFragmentDoc = `
|
|
|
371
393
|
expectations
|
|
372
394
|
}
|
|
373
395
|
`;
|
|
396
|
+
exports.AiAgentDashboardIndicatorFragmentDoc = `
|
|
397
|
+
fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {
|
|
398
|
+
value
|
|
399
|
+
polarity
|
|
400
|
+
variation {
|
|
401
|
+
unit
|
|
402
|
+
value
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
`;
|
|
406
|
+
exports.AiAgentDashboardSentimentFragmentDoc = `
|
|
407
|
+
fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {
|
|
408
|
+
sentiment
|
|
409
|
+
count
|
|
410
|
+
percent
|
|
411
|
+
polarity
|
|
412
|
+
variation {
|
|
413
|
+
unit
|
|
414
|
+
value
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
`;
|
|
418
|
+
exports.AiAgentDashboardContactReasonFragmentDoc = `
|
|
419
|
+
fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {
|
|
420
|
+
key
|
|
421
|
+
count
|
|
422
|
+
percent
|
|
423
|
+
}
|
|
424
|
+
`;
|
|
374
425
|
exports.AiAgentApprovalFragmentDoc = `
|
|
375
426
|
fragment aiAgentApproval on AiAgentApproval {
|
|
376
427
|
agentId
|
|
@@ -456,6 +507,12 @@ exports.AiAgentMetricsReportFragmentDoc = `
|
|
|
456
507
|
key
|
|
457
508
|
count
|
|
458
509
|
}
|
|
510
|
+
classificationBreakdown {
|
|
511
|
+
state
|
|
512
|
+
subcategory
|
|
513
|
+
technicalFailure
|
|
514
|
+
count
|
|
515
|
+
}
|
|
459
516
|
conversationsEligible
|
|
460
517
|
conversationsResolvedByDefinition
|
|
461
518
|
resolvedRate
|
|
@@ -784,6 +841,87 @@ exports.AiAgentMetricsSeriesDocument = `
|
|
|
784
841
|
}
|
|
785
842
|
}
|
|
786
843
|
`;
|
|
844
|
+
exports.AiAgentDashboardDocument = `
|
|
845
|
+
query aiAgentDashboard($input: AiAgentDashboardInput!) {
|
|
846
|
+
aiAgentDashboard(input: $input) {
|
|
847
|
+
agentId
|
|
848
|
+
period
|
|
849
|
+
timezone
|
|
850
|
+
window {
|
|
851
|
+
from
|
|
852
|
+
to
|
|
853
|
+
}
|
|
854
|
+
previousWindow {
|
|
855
|
+
from
|
|
856
|
+
to
|
|
857
|
+
}
|
|
858
|
+
bucket
|
|
859
|
+
conversations {
|
|
860
|
+
...aiAgentDashboardIndicator
|
|
861
|
+
}
|
|
862
|
+
resolved {
|
|
863
|
+
...aiAgentDashboardIndicator
|
|
864
|
+
}
|
|
865
|
+
unresolved {
|
|
866
|
+
...aiAgentDashboardIndicator
|
|
867
|
+
}
|
|
868
|
+
handoffProcedure {
|
|
869
|
+
...aiAgentDashboardIndicator
|
|
870
|
+
}
|
|
871
|
+
handoffNeed {
|
|
872
|
+
...aiAgentDashboardIndicator
|
|
873
|
+
}
|
|
874
|
+
abandonment {
|
|
875
|
+
...aiAgentDashboardIndicator
|
|
876
|
+
}
|
|
877
|
+
scoreBands {
|
|
878
|
+
band
|
|
879
|
+
count
|
|
880
|
+
percent
|
|
881
|
+
polarity
|
|
882
|
+
variation {
|
|
883
|
+
unit
|
|
884
|
+
value
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
sentimentAtStart {
|
|
888
|
+
...aiAgentDashboardSentiment
|
|
889
|
+
}
|
|
890
|
+
sentimentAtEnd {
|
|
891
|
+
...aiAgentDashboardSentiment
|
|
892
|
+
}
|
|
893
|
+
contactReasons {
|
|
894
|
+
all {
|
|
895
|
+
...aiAgentDashboardContactReason
|
|
896
|
+
}
|
|
897
|
+
handoff {
|
|
898
|
+
...aiAgentDashboardContactReason
|
|
899
|
+
}
|
|
900
|
+
abandonment {
|
|
901
|
+
...aiAgentDashboardContactReason
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
series {
|
|
905
|
+
date
|
|
906
|
+
endDate
|
|
907
|
+
conversations
|
|
908
|
+
conversationsEligible
|
|
909
|
+
conversationsResolved
|
|
910
|
+
conversationsUnresolved
|
|
911
|
+
conversationsHandoffNeed
|
|
912
|
+
conversationsAbandoned
|
|
913
|
+
resolvedRate
|
|
914
|
+
unresolvedRate
|
|
915
|
+
handoffNeedRate
|
|
916
|
+
abandonmentRate
|
|
917
|
+
}
|
|
918
|
+
truncated
|
|
919
|
+
analysesTruncated
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
${exports.AiAgentDashboardIndicatorFragmentDoc}
|
|
923
|
+
${exports.AiAgentDashboardSentimentFragmentDoc}
|
|
924
|
+
${exports.AiAgentDashboardContactReasonFragmentDoc}`;
|
|
787
925
|
exports.AiAgentConversationOutcomeDocument = `
|
|
788
926
|
query aiAgentConversationOutcome($sessionId: ID!) {
|
|
789
927
|
aiAgentConversationOutcome(sessionId: $sessionId) {
|
|
@@ -1148,6 +1286,9 @@ function getSdk(requester) {
|
|
|
1148
1286
|
aiAgentMetricsSeries(variables, options) {
|
|
1149
1287
|
return requester(exports.AiAgentMetricsSeriesDocument, variables, options);
|
|
1150
1288
|
},
|
|
1289
|
+
aiAgentDashboard(variables, options) {
|
|
1290
|
+
return requester(exports.AiAgentDashboardDocument, variables, options);
|
|
1291
|
+
},
|
|
1151
1292
|
aiAgentConversationOutcome(variables, options) {
|
|
1152
1293
|
return requester(exports.AiAgentConversationOutcomeDocument, variables, options);
|
|
1153
1294
|
},
|