@droz-js/sdk 0.24.4 → 0.24.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.24.4",
4
+ "version": "0.24.7",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
package/src/sdks/ai.d.ts CHANGED
@@ -323,6 +323,10 @@ export type AiAgentConversationClassification = {
323
323
  subcategory?: Maybe<AiAgentConversationSubcategory>;
324
324
  technicalFailure?: Maybe<AiAgentTechnicalFailure>;
325
325
  };
326
+ export type AiAgentConversationDateRange = {
327
+ max: Scalars['Number']['output'];
328
+ min: Scalars['Number']['output'];
329
+ };
326
330
  export type AiAgentConversationFacet = {
327
331
  name: Scalars['String']['output'];
328
332
  values: Array<AiAgentConversationFacetValue>;
@@ -352,6 +356,8 @@ export type AiAgentConversationMetricsInput = {
352
356
  activeDispatch?: InputMaybe<Scalars['Boolean']['input']>;
353
357
  agentId: Scalars['ID']['input'];
354
358
  channel?: InputMaybe<Scalars['String']['input']>;
359
+ dateFrom?: InputMaybe<Scalars['Number']['input']>;
360
+ dateTo?: InputMaybe<Scalars['Number']['input']>;
355
361
  from: Scalars['Number']['input'];
356
362
  hasRiskAlert?: InputMaybe<Scalars['Boolean']['input']>;
357
363
  limit?: InputMaybe<Scalars['Number']['input']>;
@@ -368,6 +374,8 @@ export type AiAgentConversationMetricsInput = {
368
374
  useCaseId?: InputMaybe<Array<Scalars['ID']['input']>>;
369
375
  };
370
376
  export type AiAgentConversationMetricsPage = {
377
+ /** Intervalo de `lastTurnAt` do conjunto filtrado pelos outros filtros, sem `dateFrom` e `dateTo`. Ausente quando o conjunto é vazio. */
378
+ dateRange?: Maybe<AiAgentConversationDateRange>;
371
379
  /** Cada faceta conta sobre o conjunto filtrado pelos outros filtros, sem o seu próprio. */
372
380
  facets: Array<AiAgentConversationFacet>;
373
381
  items: Array<AiAgentConversationMetrics>;
@@ -1697,6 +1705,7 @@ export declare enum Typenames {
1697
1705
  AiAgentConversation = "AiAgentConversation",
1698
1706
  AiAgentConversationAnalysis = "AiAgentConversationAnalysis",
1699
1707
  AiAgentConversationPointer = "AiAgentConversationPointer",
1708
+ AiAgentConversationStarted = "AiAgentConversationStarted",
1700
1709
  AiAgentDispatchingAgent = "AiAgentDispatchingAgent",
1701
1710
  AiAgentEvalReport = "AiAgentEvalReport",
1702
1711
  AiAgentExternalTermination = "AiAgentExternalTermination",
@@ -1874,6 +1883,7 @@ export type AiAgentConversationMetricsQuery = {
1874
1883
  facets: Array<(Pick<AiAgentConversationFacet, 'name'> & {
1875
1884
  values: Array<Pick<AiAgentConversationFacetValue, 'value' | 'count'>>;
1876
1885
  })>;
1886
+ dateRange?: Maybe<Pick<AiAgentConversationDateRange, 'min' | 'max'>>;
1877
1887
  });
1878
1888
  };
1879
1889
  export type AiAgentMetricsSeriesQueryVariables = Exact<{
@@ -2196,7 +2206,7 @@ export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId
2196
2206
  export declare const ListAiAgentScenariosDocument = "\n query listAiAgentScenarios($agentId: ID!) {\n listAiAgentScenarios(agentId: $agentId) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2197
2207
  export declare const SetAiAgentRetentionPolicyDocument = "\n mutation setAiAgentRetentionPolicy($input: AiAgentRetentionPolicyInput!) {\n setAiAgentRetentionPolicy(input: $input) {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
2198
2208
  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 ";
2199
- 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 facets {\n name\n values {\n value\n count\n }\n }\n truncated\n }\n}\n ";
2209
+ 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 facets {\n name\n values {\n value\n count\n }\n }\n dateRange {\n min\n max\n }\n truncated\n }\n}\n ";
2200
2210
  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 ";
2201
2211
  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 agentScoreAvg\n agentScoreAvgBand\n analyzedConversations\n hasActiveDispatches\n activeDispatches {\n sent {\n ...aiAgentDashboardIndicator\n }\n answered {\n ...aiAgentDashboardIndicator\n }\n unanswered {\n ...aiAgentDashboardIndicator\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 ";
2202
2212
  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 status\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 ";
package/src/sdks/ai.js CHANGED
@@ -214,6 +214,7 @@ var Typenames;
214
214
  Typenames["AiAgentConversation"] = "AiAgentConversation";
215
215
  Typenames["AiAgentConversationAnalysis"] = "AiAgentConversationAnalysis";
216
216
  Typenames["AiAgentConversationPointer"] = "AiAgentConversationPointer";
217
+ Typenames["AiAgentConversationStarted"] = "AiAgentConversationStarted";
217
218
  Typenames["AiAgentDispatchingAgent"] = "AiAgentDispatchingAgent";
218
219
  Typenames["AiAgentEvalReport"] = "AiAgentEvalReport";
219
220
  Typenames["AiAgentExternalTermination"] = "AiAgentExternalTermination";
@@ -842,6 +843,10 @@ exports.AiAgentConversationMetricsDocument = `
842
843
  count
843
844
  }
844
845
  }
846
+ dateRange {
847
+ min
848
+ max
849
+ }
845
850
  truncated
846
851
  }
847
852
  }