@droz-js/sdk 0.24.4 → 0.24.6

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.6",
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>;
@@ -1874,6 +1882,7 @@ export type AiAgentConversationMetricsQuery = {
1874
1882
  facets: Array<(Pick<AiAgentConversationFacet, 'name'> & {
1875
1883
  values: Array<Pick<AiAgentConversationFacetValue, 'value' | 'count'>>;
1876
1884
  })>;
1885
+ dateRange?: Maybe<Pick<AiAgentConversationDateRange, 'min' | 'max'>>;
1877
1886
  });
1878
1887
  };
1879
1888
  export type AiAgentMetricsSeriesQueryVariables = Exact<{
@@ -2196,7 +2205,7 @@ export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId
2196
2205
  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
2206
  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
2207
  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 ";
2208
+ 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
2209
  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
2210
  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
2211
  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
@@ -842,6 +842,10 @@ exports.AiAgentConversationMetricsDocument = `
842
842
  count
843
843
  }
844
844
  }
845
+ dateRange {
846
+ min
847
+ max
848
+ }
845
849
  truncated
846
850
  }
847
851
  }