@droz-js/sdk 0.21.0 → 0.21.2
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 +152 -2
- package/src/sdks/ai.js +139 -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
|
/**
|
|
@@ -976,6 +1074,15 @@ export type AiAgentUseCaseOverlap = {
|
|
|
976
1074
|
/** O limiar aplicado, publicado junto do resultado para o aviso nao ser lido como cada um quiser. */
|
|
977
1075
|
threshold: Scalars['Number']['output'];
|
|
978
1076
|
};
|
|
1077
|
+
/** `value` is absent when there is no base to compare: no previous data, or a previous count of zero for PERCENT. */
|
|
1078
|
+
export type AiAgentVariation = {
|
|
1079
|
+
unit: AiAgentVariationUnit;
|
|
1080
|
+
value?: Maybe<Scalars['Number']['output']>;
|
|
1081
|
+
};
|
|
1082
|
+
export declare enum AiAgentVariationUnit {
|
|
1083
|
+
Percent = "PERCENT",
|
|
1084
|
+
Points = "POINTS"
|
|
1085
|
+
}
|
|
979
1086
|
export type AiAgentVersion = {
|
|
980
1087
|
agentId: Scalars['ID']['output'];
|
|
981
1088
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -1225,6 +1332,7 @@ export type Query = {
|
|
|
1225
1332
|
aiAgentCheckLimits: AiAgentCheckLimits;
|
|
1226
1333
|
aiAgentConversationMetrics: AiAgentConversationMetricsPage;
|
|
1227
1334
|
aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
|
|
1335
|
+
aiAgentDashboard: AiAgentDashboard;
|
|
1228
1336
|
/**
|
|
1229
1337
|
* §4.8: as bases do Droz Base do tenant. A chamada e entre services, com App Token — nao ha
|
|
1230
1338
|
* credencial de cliente. O recorte do agente e a selecao do autor em `knowledgeBaseIds`.
|
|
@@ -1285,6 +1393,9 @@ export type QueryAiAgentConversationMetricsArgs = {
|
|
|
1285
1393
|
export type QueryAiAgentConversationOutcomeArgs = {
|
|
1286
1394
|
sessionId: Scalars['ID']['input'];
|
|
1287
1395
|
};
|
|
1396
|
+
export type QueryAiAgentDashboardArgs = {
|
|
1397
|
+
input: AiAgentDashboardInput;
|
|
1398
|
+
};
|
|
1288
1399
|
export type QueryAiAgentMetricsArgs = {
|
|
1289
1400
|
input: AiAgentMetricsInput;
|
|
1290
1401
|
};
|
|
@@ -1684,6 +1795,39 @@ export type AiAgentMetricsSeriesQuery = {
|
|
|
1684
1795
|
points: Array<Pick<AiAgentMetricsSeriesPoint, 'date' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
|
|
1685
1796
|
});
|
|
1686
1797
|
};
|
|
1798
|
+
export type AiAgentDashboardQueryVariables = Exact<{
|
|
1799
|
+
input: AiAgentDashboardInput;
|
|
1800
|
+
}>;
|
|
1801
|
+
export type AiAgentDashboardQuery = {
|
|
1802
|
+
aiAgentDashboard: (Pick<AiAgentDashboard, 'agentId' | 'period' | 'timezone' | 'bucket' | 'truncated' | 'analysesTruncated'> & {
|
|
1803
|
+
window: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
|
|
1804
|
+
previousWindow: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
|
|
1805
|
+
conversations: AiAgentDashboardIndicatorFragment;
|
|
1806
|
+
resolved: AiAgentDashboardIndicatorFragment;
|
|
1807
|
+
unresolved: AiAgentDashboardIndicatorFragment;
|
|
1808
|
+
handoffProcedure: AiAgentDashboardIndicatorFragment;
|
|
1809
|
+
handoffNeed: AiAgentDashboardIndicatorFragment;
|
|
1810
|
+
abandonment: AiAgentDashboardIndicatorFragment;
|
|
1811
|
+
scoreBands: Array<(Pick<AiAgentDashboardScoreBand, 'band' | 'count' | 'percent' | 'polarity'> & {
|
|
1812
|
+
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1813
|
+
})>;
|
|
1814
|
+
sentimentAtStart: Array<AiAgentDashboardSentimentFragment>;
|
|
1815
|
+
sentimentAtEnd: Array<AiAgentDashboardSentimentFragment>;
|
|
1816
|
+
contactReasons: {
|
|
1817
|
+
all: Array<AiAgentDashboardContactReasonFragment>;
|
|
1818
|
+
handoff: Array<AiAgentDashboardContactReasonFragment>;
|
|
1819
|
+
abandonment: Array<AiAgentDashboardContactReasonFragment>;
|
|
1820
|
+
};
|
|
1821
|
+
series: Array<Pick<AiAgentDashboardSeriesPoint, 'date' | 'endDate' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
|
|
1822
|
+
});
|
|
1823
|
+
};
|
|
1824
|
+
export type AiAgentDashboardIndicatorFragment = (Pick<AiAgentDashboardIndicator, 'value' | 'polarity'> & {
|
|
1825
|
+
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1826
|
+
});
|
|
1827
|
+
export type AiAgentDashboardSentimentFragment = (Pick<AiAgentDashboardSentiment, 'sentiment' | 'count' | 'percent' | 'polarity'> & {
|
|
1828
|
+
variation: Pick<AiAgentVariation, 'unit' | 'value'>;
|
|
1829
|
+
});
|
|
1830
|
+
export type AiAgentDashboardContactReasonFragment = Pick<AiAgentDashboardContactReason, 'key' | 'count' | 'percent'>;
|
|
1687
1831
|
export type AiAgentConversationOutcomeQueryVariables = Exact<{
|
|
1688
1832
|
sessionId: Scalars['ID']['input'];
|
|
1689
1833
|
}>;
|
|
@@ -1785,6 +1929,7 @@ export type AiAgentCheckLimitsQuery = {
|
|
|
1785
1929
|
};
|
|
1786
1930
|
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
1931
|
conversationsByClassification: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
1932
|
+
classificationBreakdown: Array<Pick<AiAgentClassificationCount, 'state' | 'subcategory' | 'technicalFailure' | 'count'>>;
|
|
1788
1933
|
sentimentAtStart: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
|
|
1789
1934
|
sentimentAtEnd: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
|
|
1790
1935
|
riskAlerts: Array<Pick<AiAgentRiskAlertCount, 'key' | 'count'>>;
|
|
@@ -1930,9 +2075,12 @@ export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProced
|
|
|
1930
2075
|
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
2076
|
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
2077
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2078
|
+
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2079
|
+
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 ";
|
|
2080
|
+
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
1933
2081
|
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
2082
|
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 ";
|
|
2083
|
+
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
2084
|
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
2085
|
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
2086
|
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 ";
|
|
@@ -1954,6 +2102,7 @@ export declare const SetAiAgentRetentionPolicyDocument = "\n mutation setAiAg
|
|
|
1954
2102
|
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
2103
|
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
2104
|
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 ";
|
|
2105
|
+
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
2106
|
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
2107
|
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
2108
|
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 ";
|
|
@@ -1969,7 +2118,7 @@ export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentSc
|
|
|
1969
2118
|
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
2119
|
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
2120
|
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 ";
|
|
2121
|
+
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
2122
|
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
2123
|
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
2124
|
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
|
|
@@ -2007,6 +2156,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2007
2156
|
aiAgentRetentionPolicy(variables?: AiAgentRetentionPolicyQueryVariables, options?: C): Promise<AiAgentRetentionPolicyQuery>;
|
|
2008
2157
|
aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
|
|
2009
2158
|
aiAgentMetricsSeries(variables: AiAgentMetricsSeriesQueryVariables, options?: C): Promise<AiAgentMetricsSeriesQuery>;
|
|
2159
|
+
aiAgentDashboard(variables: AiAgentDashboardQueryVariables, options?: C): Promise<AiAgentDashboardQuery>;
|
|
2010
2160
|
aiAgentConversationOutcome(variables: AiAgentConversationOutcomeQueryVariables, options?: C): Promise<AiAgentConversationOutcomeQuery>;
|
|
2011
2161
|
saveAiAgentUseCase(variables: SaveAiAgentUseCaseMutationVariables, options?: C): Promise<SaveAiAgentUseCaseMutation>;
|
|
2012
2162
|
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";
|
|
@@ -371,6 +389,35 @@ exports.AiAgentScenarioFragmentDoc = `
|
|
|
371
389
|
expectations
|
|
372
390
|
}
|
|
373
391
|
`;
|
|
392
|
+
exports.AiAgentDashboardIndicatorFragmentDoc = `
|
|
393
|
+
fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {
|
|
394
|
+
value
|
|
395
|
+
polarity
|
|
396
|
+
variation {
|
|
397
|
+
unit
|
|
398
|
+
value
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
`;
|
|
402
|
+
exports.AiAgentDashboardSentimentFragmentDoc = `
|
|
403
|
+
fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {
|
|
404
|
+
sentiment
|
|
405
|
+
count
|
|
406
|
+
percent
|
|
407
|
+
polarity
|
|
408
|
+
variation {
|
|
409
|
+
unit
|
|
410
|
+
value
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
`;
|
|
414
|
+
exports.AiAgentDashboardContactReasonFragmentDoc = `
|
|
415
|
+
fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {
|
|
416
|
+
key
|
|
417
|
+
count
|
|
418
|
+
percent
|
|
419
|
+
}
|
|
420
|
+
`;
|
|
374
421
|
exports.AiAgentApprovalFragmentDoc = `
|
|
375
422
|
fragment aiAgentApproval on AiAgentApproval {
|
|
376
423
|
agentId
|
|
@@ -456,6 +503,12 @@ exports.AiAgentMetricsReportFragmentDoc = `
|
|
|
456
503
|
key
|
|
457
504
|
count
|
|
458
505
|
}
|
|
506
|
+
classificationBreakdown {
|
|
507
|
+
state
|
|
508
|
+
subcategory
|
|
509
|
+
technicalFailure
|
|
510
|
+
count
|
|
511
|
+
}
|
|
459
512
|
conversationsEligible
|
|
460
513
|
conversationsResolvedByDefinition
|
|
461
514
|
resolvedRate
|
|
@@ -784,6 +837,87 @@ exports.AiAgentMetricsSeriesDocument = `
|
|
|
784
837
|
}
|
|
785
838
|
}
|
|
786
839
|
`;
|
|
840
|
+
exports.AiAgentDashboardDocument = `
|
|
841
|
+
query aiAgentDashboard($input: AiAgentDashboardInput!) {
|
|
842
|
+
aiAgentDashboard(input: $input) {
|
|
843
|
+
agentId
|
|
844
|
+
period
|
|
845
|
+
timezone
|
|
846
|
+
window {
|
|
847
|
+
from
|
|
848
|
+
to
|
|
849
|
+
}
|
|
850
|
+
previousWindow {
|
|
851
|
+
from
|
|
852
|
+
to
|
|
853
|
+
}
|
|
854
|
+
bucket
|
|
855
|
+
conversations {
|
|
856
|
+
...aiAgentDashboardIndicator
|
|
857
|
+
}
|
|
858
|
+
resolved {
|
|
859
|
+
...aiAgentDashboardIndicator
|
|
860
|
+
}
|
|
861
|
+
unresolved {
|
|
862
|
+
...aiAgentDashboardIndicator
|
|
863
|
+
}
|
|
864
|
+
handoffProcedure {
|
|
865
|
+
...aiAgentDashboardIndicator
|
|
866
|
+
}
|
|
867
|
+
handoffNeed {
|
|
868
|
+
...aiAgentDashboardIndicator
|
|
869
|
+
}
|
|
870
|
+
abandonment {
|
|
871
|
+
...aiAgentDashboardIndicator
|
|
872
|
+
}
|
|
873
|
+
scoreBands {
|
|
874
|
+
band
|
|
875
|
+
count
|
|
876
|
+
percent
|
|
877
|
+
polarity
|
|
878
|
+
variation {
|
|
879
|
+
unit
|
|
880
|
+
value
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
sentimentAtStart {
|
|
884
|
+
...aiAgentDashboardSentiment
|
|
885
|
+
}
|
|
886
|
+
sentimentAtEnd {
|
|
887
|
+
...aiAgentDashboardSentiment
|
|
888
|
+
}
|
|
889
|
+
contactReasons {
|
|
890
|
+
all {
|
|
891
|
+
...aiAgentDashboardContactReason
|
|
892
|
+
}
|
|
893
|
+
handoff {
|
|
894
|
+
...aiAgentDashboardContactReason
|
|
895
|
+
}
|
|
896
|
+
abandonment {
|
|
897
|
+
...aiAgentDashboardContactReason
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
series {
|
|
901
|
+
date
|
|
902
|
+
endDate
|
|
903
|
+
conversations
|
|
904
|
+
conversationsEligible
|
|
905
|
+
conversationsResolved
|
|
906
|
+
conversationsUnresolved
|
|
907
|
+
conversationsHandoffNeed
|
|
908
|
+
conversationsAbandoned
|
|
909
|
+
resolvedRate
|
|
910
|
+
unresolvedRate
|
|
911
|
+
handoffNeedRate
|
|
912
|
+
abandonmentRate
|
|
913
|
+
}
|
|
914
|
+
truncated
|
|
915
|
+
analysesTruncated
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
${exports.AiAgentDashboardIndicatorFragmentDoc}
|
|
919
|
+
${exports.AiAgentDashboardSentimentFragmentDoc}
|
|
920
|
+
${exports.AiAgentDashboardContactReasonFragmentDoc}`;
|
|
787
921
|
exports.AiAgentConversationOutcomeDocument = `
|
|
788
922
|
query aiAgentConversationOutcome($sessionId: ID!) {
|
|
789
923
|
aiAgentConversationOutcome(sessionId: $sessionId) {
|
|
@@ -1148,6 +1282,9 @@ function getSdk(requester) {
|
|
|
1148
1282
|
aiAgentMetricsSeries(variables, options) {
|
|
1149
1283
|
return requester(exports.AiAgentMetricsSeriesDocument, variables, options);
|
|
1150
1284
|
},
|
|
1285
|
+
aiAgentDashboard(variables, options) {
|
|
1286
|
+
return requester(exports.AiAgentDashboardDocument, variables, options);
|
|
1287
|
+
},
|
|
1151
1288
|
aiAgentConversationOutcome(variables, options) {
|
|
1152
1289
|
return requester(exports.AiAgentConversationOutcomeDocument, variables, options);
|
|
1153
1290
|
},
|