@droz-js/sdk 0.21.5 → 0.22.0
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/sdks/ai.d.ts +18 -1
- package/src/sdks/ai.js +11 -0
package/package.json
CHANGED
package/src/sdks/ai.d.ts
CHANGED
|
@@ -415,8 +415,10 @@ export type AiAgentDashboard = {
|
|
|
415
415
|
conversations: AiAgentDashboardIndicator;
|
|
416
416
|
handoffNeed: AiAgentDashboardIndicator;
|
|
417
417
|
handoffProcedure: AiAgentDashboardIndicator;
|
|
418
|
+
knowledgeGaps: Array<AiAgentDashboardKnowledgeGap>;
|
|
418
419
|
period: AiAgentDashboardPeriod;
|
|
419
420
|
previousWindow: AiAgentDashboardWindow;
|
|
421
|
+
procedures: Array<AiAgentDashboardProcedure>;
|
|
420
422
|
resolved: AiAgentDashboardIndicator;
|
|
421
423
|
scoreBands: Array<AiAgentDashboardScoreBand>;
|
|
422
424
|
sentimentAtEnd: Array<AiAgentDashboardSentiment>;
|
|
@@ -452,11 +454,24 @@ export type AiAgentDashboardInput = {
|
|
|
452
454
|
period: AiAgentDashboardPeriod;
|
|
453
455
|
timezone: Scalars['String']['input'];
|
|
454
456
|
};
|
|
457
|
+
/** Counted once per conversation. `level` is over the conversations that consulted the knowledge base. */
|
|
458
|
+
export type AiAgentDashboardKnowledgeGap = {
|
|
459
|
+
count: Scalars['Number']['output'];
|
|
460
|
+
key: Scalars['String']['output'];
|
|
461
|
+
level: AiAgentFrequencyLevel;
|
|
462
|
+
};
|
|
455
463
|
export declare enum AiAgentDashboardPeriod {
|
|
456
464
|
Days_7 = "DAYS_7",
|
|
457
465
|
Days_30 = "DAYS_30",
|
|
458
466
|
Days_90 = "DAYS_90"
|
|
459
467
|
}
|
|
468
|
+
/** The procedure of the use case assigned to each conversation. `level` is over all conversations of the window. */
|
|
469
|
+
export type AiAgentDashboardProcedure = {
|
|
470
|
+
count: Scalars['Number']['output'];
|
|
471
|
+
key: Scalars['ID']['output'];
|
|
472
|
+
level: AiAgentFrequencyLevel;
|
|
473
|
+
name: Scalars['String']['output'];
|
|
474
|
+
};
|
|
460
475
|
/** `percent` is the share of the band in the window total, with one decimal. Absent when the total is zero. */
|
|
461
476
|
export type AiAgentDashboardScoreBand = {
|
|
462
477
|
band: AiAgentScoreBand;
|
|
@@ -1823,6 +1838,8 @@ export type AiAgentDashboardQuery = {
|
|
|
1823
1838
|
handoff: Array<AiAgentDashboardContactReasonFragment>;
|
|
1824
1839
|
abandonment: Array<AiAgentDashboardContactReasonFragment>;
|
|
1825
1840
|
};
|
|
1841
|
+
procedures: Array<Pick<AiAgentDashboardProcedure, 'key' | 'name' | 'count' | 'level'>>;
|
|
1842
|
+
knowledgeGaps: Array<Pick<AiAgentDashboardKnowledgeGap, 'key' | 'count' | 'level'>>;
|
|
1826
1843
|
series: Array<Pick<AiAgentDashboardSeriesPoint, 'date' | 'endDate' | 'conversations' | 'conversationsEligible' | 'conversationsResolved' | 'conversationsUnresolved' | 'conversationsHandoffNeed' | 'conversationsAbandoned' | 'resolvedRate' | 'unresolvedRate' | 'handoffNeedRate' | 'abandonmentRate'>>;
|
|
1827
1844
|
});
|
|
1828
1845
|
};
|
|
@@ -2107,7 +2124,7 @@ export declare const SetAiAgentRetentionPolicyDocument = "\n mutation setAiAg
|
|
|
2107
2124
|
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 ";
|
|
2108
2125
|
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 ";
|
|
2109
2126
|
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 ";
|
|
2127
|
+
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 procedures {\n key\n name\n count\n level\n }\n knowledgeGaps {\n key\n count\n level\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 ";
|
|
2111
2128
|
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 ";
|
|
2112
2129
|
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 ";
|
|
2113
2130
|
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 ";
|
package/src/sdks/ai.js
CHANGED
|
@@ -901,6 +901,17 @@ exports.AiAgentDashboardDocument = `
|
|
|
901
901
|
...aiAgentDashboardContactReason
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
+
procedures {
|
|
905
|
+
key
|
|
906
|
+
name
|
|
907
|
+
count
|
|
908
|
+
level
|
|
909
|
+
}
|
|
910
|
+
knowledgeGaps {
|
|
911
|
+
key
|
|
912
|
+
count
|
|
913
|
+
level
|
|
914
|
+
}
|
|
904
915
|
series {
|
|
905
916
|
date
|
|
906
917
|
endDate
|