@droz-js/sdk 0.25.23 → 0.26.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.25.23",
4
+ "version": "0.26.0",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
package/src/drozai.d.ts CHANGED
@@ -10,7 +10,7 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
10
10
  [key: string]: never;
11
11
  }>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentsQuery>;
12
12
  listAiAgentVersions(variables: import("./sdks/ai").Exact<{
13
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
13
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
14
14
  }>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentVersionsQuery>;
15
15
  aiAgentMetricsByAgent(variables: import("./sdks/ai").Exact<{
16
16
  input: import("./sdks/ai").AiAgentMetricsWindowInput;
@@ -37,23 +37,23 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
37
37
  input: import("./sdks/ai").AiAgentRefInput;
38
38
  }>, options?: unknown): Promise<import("./sdks/ai").RemoveAiAgentMutation>;
39
39
  listAiAgentUseCases(variables: import("./sdks/ai").Exact<{
40
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
40
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
41
41
  }>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentUseCasesQuery>;
42
42
  listAiAgentProcedures(variables: import("./sdks/ai").Exact<{
43
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
43
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
44
44
  }>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentProceduresQuery>;
45
45
  listAiAgentTools(variables?: import("./sdks/ai").Exact<{
46
46
  [key: string]: never;
47
47
  }>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentToolsQuery>;
48
48
  aiAgentUseCaseOverlap(variables: import("./sdks/ai").Exact<{
49
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
49
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
50
50
  }>, options?: unknown): Promise<import("./sdks/ai").AiAgentUseCaseOverlapQuery>;
51
51
  aiAgentTrace(variables: import("./sdks/ai").Exact<{
52
52
  sessionId: import("./sdks/ai").Scalars["ID"]["input"];
53
53
  conversationId?: import("./sdks/ai").InputMaybe<import("./sdks/ai").Scalars["ID"]["input"]>;
54
54
  }>, options?: unknown): Promise<import("./sdks/ai").AiAgentTraceQuery>;
55
55
  listAiAgentScenarios(variables: import("./sdks/ai").Exact<{
56
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
56
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
57
57
  }>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentScenariosQuery>;
58
58
  reindexAiAgentDashboard(variables: import("./sdks/ai").Exact<{
59
59
  input: import("./sdks/ai").ReindexAiAgentDashboardInput;
@@ -93,7 +93,7 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
93
93
  input: import("./sdks/ai").RememberAiAgentSessionFactsInput;
94
94
  }>, options?: unknown): Promise<import("./sdks/ai").RememberAiAgentSessionFactsMutation>;
95
95
  listAiAgentApprovals(variables: import("./sdks/ai").Exact<{
96
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
96
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
97
97
  status?: import("./sdks/ai").InputMaybe<import("./sdks/ai").AiAgentApprovalStatus>;
98
98
  }>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentApprovalsQuery>;
99
99
  resolveAiAgentApproval(variables: import("./sdks/ai").Exact<{
@@ -115,17 +115,17 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
115
115
  input: import("./sdks/ai").CheckAiAgentVersionInput;
116
116
  }>, options?: unknown): Promise<import("./sdks/ai").CheckAiAgentVersionMutation>;
117
117
  getAiAgentCheckRun(variables: import("./sdks/ai").Exact<{
118
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
118
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
119
119
  runId: import("./sdks/ai").Scalars["ID"]["input"];
120
120
  }>, options?: unknown): Promise<import("./sdks/ai").GetAiAgentCheckRunQuery>;
121
121
  aiAgentCheckLimits(variables: import("./sdks/ai").Exact<{
122
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
122
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
123
123
  }>, options?: unknown): Promise<import("./sdks/ai").AiAgentCheckLimitsQuery>;
124
124
  aiAgentMetrics(variables: import("./sdks/ai").Exact<{
125
125
  input: import("./sdks/ai").AiAgentMetricsInput;
126
126
  }>, options?: unknown): Promise<import("./sdks/ai").AiAgentMetricsQuery>;
127
127
  aiAgentVersionSpec(variables: import("./sdks/ai").Exact<{
128
- agentId: import("./sdks/ai").Scalars["ID"]["input"];
128
+ aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
129
129
  }>, options?: unknown): Promise<import("./sdks/ai").AiAgentVersionSpecQuery>;
130
130
  aiAgentRoutingPreview(variables: import("./sdks/ai").Exact<{
131
131
  input: import("./sdks/ai").AiAgentRoutingPreviewInput;
package/src/sdks/ai.d.ts CHANGED
@@ -132,7 +132,7 @@ export declare enum AiAgentAnalysisFailureReason {
132
132
  ModelError = "model_error"
133
133
  }
134
134
  export type AiAgentApproval = {
135
- agentId: Scalars['ID']['output'];
135
+ aiAgentId: Scalars['ID']['output'];
136
136
  args: Scalars['JSON']['output'];
137
137
  channelId: Scalars['String']['output'];
138
138
  customerId?: Maybe<Scalars['String']['output']>;
@@ -156,7 +156,7 @@ export declare enum AiAgentApprovalStatus {
156
156
  Rejected = "rejected"
157
157
  }
158
158
  export type AiAgentAuthoringRefInput = {
159
- agentId: Scalars['ID']['input'];
159
+ aiAgentId: Scalars['ID']['input'];
160
160
  id: Scalars['ID']['input'];
161
161
  };
162
162
  export type AiAgentBudget = {
@@ -175,6 +175,11 @@ export type AiAgentBudgetInput = {
175
175
  maxToolCalls: Scalars['Int']['input'];
176
176
  onExceeded: BudgetExceededAction;
177
177
  };
178
+ export type AiAgentCampaignInput = {
179
+ message?: InputMaybe<Scalars['String']['input']>;
180
+ name?: InputMaybe<Scalars['String']['input']>;
181
+ offer?: InputMaybe<Scalars['String']['input']>;
182
+ };
178
183
  export type AiAgentChannelTiming = {
179
184
  abandonAfterMs?: Maybe<Scalars['Number']['output']>;
180
185
  channel: Scalars['String']['output'];
@@ -214,7 +219,7 @@ export type AiAgentCheckResult = {
214
219
  safeToPublish: Scalars['Boolean']['output'];
215
220
  };
216
221
  export type AiAgentCheckRun = {
217
- agentId: Scalars['ID']['output'];
222
+ aiAgentId: Scalars['ID']['output'];
218
223
  completedRuns: Scalars['Int']['output'];
219
224
  error?: Maybe<Scalars['String']['output']>;
220
225
  excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
@@ -342,7 +347,7 @@ export type AiAgentConversationMetrics = {
342
347
  };
343
348
  export type AiAgentConversationMetricsInput = {
344
349
  activeDispatch?: InputMaybe<Scalars['Boolean']['input']>;
345
- agentId: Scalars['ID']['input'];
350
+ aiAgentId: Scalars['ID']['input'];
346
351
  channel?: InputMaybe<Scalars['String']['input']>;
347
352
  dateFrom?: InputMaybe<Scalars['Number']['input']>;
348
353
  dateTo?: InputMaybe<Scalars['Number']['input']>;
@@ -373,9 +378,9 @@ export type AiAgentConversationMetricsPage = {
373
378
  };
374
379
  export type AiAgentConversationOutcome = {
375
380
  actions: Array<AiAgentConversationAction>;
376
- agentId: Scalars['ID']['output'];
377
381
  agentSummary?: Maybe<Scalars['String']['output']>;
378
382
  agentVersion: Scalars['String']['output'];
383
+ aiAgentId: Scalars['ID']['output'];
379
384
  analysis?: Maybe<AiAgentConversationAnalysis>;
380
385
  channelType?: Maybe<AiAgentChannelType>;
381
386
  classification: AiAgentConversationClassification;
@@ -438,10 +443,12 @@ export declare enum AiAgentConversationSubcategory {
438
443
  IndeterminateWrite = "INDETERMINATE_WRITE",
439
444
  NoCoverage = "NO_COVERAGE",
440
445
  NoKnowledge = "NO_KNOWLEDGE",
446
+ OfferAccepted = "OFFER_ACCEPTED",
441
447
  OrphanBoard = "ORPHAN_BOARD",
442
448
  PartialAnswer = "PARTIAL_ANSWER",
443
449
  PresumedResolution = "PRESUMED_RESOLUTION",
444
450
  PromptInjection = "PROMPT_INJECTION",
451
+ QualifiedLeadHandoff = "QUALIFIED_LEAD_HANDOFF",
445
452
  RevertedByRecontact = "REVERTED_BY_RECONTACT",
446
453
  Spam = "SPAM",
447
454
  TechnicalFailure = "TECHNICAL_FAILURE",
@@ -451,9 +458,9 @@ export declare enum AiAgentConversationSubcategory {
451
458
  export type AiAgentDashboard = {
452
459
  abandonment: AiAgentDashboardIndicator;
453
460
  activeDispatches?: Maybe<AiAgentDashboardActiveDispatches>;
454
- agentId: Scalars['ID']['output'];
455
461
  agentScoreAvg?: Maybe<Scalars['Float']['output']>;
456
462
  agentScoreAvgBand?: Maybe<AiAgentScoreBand>;
463
+ aiAgentId: Scalars['ID']['output'];
457
464
  analysesTruncated: Scalars['Boolean']['output'];
458
465
  analyzedConversations: Scalars['Number']['output'];
459
466
  bucket: AiAgentMetricsBucket;
@@ -465,8 +472,10 @@ export type AiAgentDashboard = {
465
472
  handoffProcedure: AiAgentDashboardIndicator;
466
473
  hasActiveDispatches: Scalars['Boolean']['output'];
467
474
  knowledgeGaps: Array<AiAgentDashboardKnowledgeGap>;
475
+ offerAccepted: AiAgentDashboardIndicator;
468
476
  previousWindow: AiAgentDashboardWindow;
469
477
  procedures: Array<AiAgentDashboardProcedure>;
478
+ qualifiedLead: AiAgentDashboardIndicator;
470
479
  resolved: AiAgentDashboardIndicator;
471
480
  scoreBands: Array<AiAgentDashboardScoreBand>;
472
481
  sentimentAtEnd: Array<AiAgentDashboardSentiment>;
@@ -498,7 +507,7 @@ export type AiAgentDashboardIndicator = {
498
507
  variation: AiAgentVariation;
499
508
  };
500
509
  export type AiAgentDashboardInput = {
501
- agentId: Scalars['ID']['input'];
510
+ aiAgentId: Scalars['ID']['input'];
502
511
  channel?: InputMaybe<Scalars['String']['input']>;
503
512
  from: Scalars['Number']['input'];
504
513
  timezone: Scalars['String']['input'];
@@ -573,6 +582,7 @@ export declare enum AiAgentHandoffReason {
573
582
  PeriodBudgetExceeded = "period_budget_exceeded",
574
583
  PolicyRequiresHuman = "policy_requires_human",
575
584
  ProviderUnavailable = "provider_unavailable",
585
+ QualifiedLead = "qualified_lead",
576
586
  ToolFailure = "tool_failure",
577
587
  Undeclared = "undeclared",
578
588
  Unresolved = "unresolved"
@@ -597,13 +607,21 @@ export type AiAgentIdentityInput = {
597
607
  tone: TonePreset;
598
608
  toneNotes?: InputMaybe<Scalars['String']['input']>;
599
609
  };
610
+ export type AiAgentInsistence = {
611
+ handoffOnRequest: Scalars['Int']['output'];
612
+ retriesAfterRefusal: Scalars['Int']['output'];
613
+ };
614
+ export type AiAgentInsistenceInput = {
615
+ handoffOnRequest: Scalars['Int']['input'];
616
+ retriesAfterRefusal: Scalars['Int']['input'];
617
+ };
600
618
  export type AiAgentKnowledgeBase = {
601
619
  id: Scalars['ID']['output'];
602
620
  isPublic: Scalars['Boolean']['output'];
603
621
  title: Scalars['String']['output'];
604
622
  };
605
623
  export type AiAgentListingMetrics = {
606
- agentId: Scalars['ID']['output'];
624
+ aiAgentId: Scalars['ID']['output'];
607
625
  conversations: Scalars['Number']['output'];
608
626
  conversationsHandoffRequested: Scalars['Number']['output'];
609
627
  conversationsResolved: Scalars['Number']['output'];
@@ -618,10 +636,10 @@ export declare enum AiAgentMetricPolarity {
618
636
  export type AiAgentMetrics = {
619
637
  abandonmentRate?: Maybe<Scalars['Number']['output']>;
620
638
  agentClarityAvg?: Maybe<Scalars['Float']['output']>;
621
- agentId: Scalars['ID']['output'];
622
639
  agentScoreAvg?: Maybe<Scalars['Float']['output']>;
623
640
  agentScoreAvgBand?: Maybe<AiAgentScoreBand>;
624
641
  agentScoreBands: Array<AiAgentScoreBandCount>;
642
+ aiAgentId: Scalars['ID']['output'];
625
643
  analysesTruncated: Scalars['Boolean']['output'];
626
644
  analysisCostMicroUsd: Scalars['Number']['output'];
627
645
  analyzedConversations: Scalars['Number']['output'];
@@ -668,8 +686,10 @@ export type AiAgentMetrics = {
668
686
  knowledgeSkipped: Scalars['Number']['output'];
669
687
  knowledgeUnavailable: Scalars['Number']['output'];
670
688
  llmCalls: Scalars['Number']['output'];
689
+ offerAcceptedRate?: Maybe<Scalars['Number']['output']>;
671
690
  outputTokens: Scalars['Number']['output'];
672
691
  p95TurnDurationMs: Scalars['Number']['output'];
692
+ qualifiedLeadRate?: Maybe<Scalars['Number']['output']>;
673
693
  resolutionDefinition: Scalars['String']['output'];
674
694
  /** @deprecated Regra v2, por sessão. Use resolvedRate, por conversa e pela classificação da conversa. */
675
695
  resolutionRate?: Maybe<Scalars['Number']['output']>;
@@ -704,7 +724,7 @@ export type AiAgentMetricsCount = {
704
724
  key: Scalars['String']['output'];
705
725
  };
706
726
  export type AiAgentMetricsInput = {
707
- agentId: Scalars['ID']['input'];
727
+ aiAgentId: Scalars['ID']['input'];
708
728
  channel?: InputMaybe<Scalars['String']['input']>;
709
729
  from: Scalars['Number']['input'];
710
730
  to: Scalars['Number']['input'];
@@ -714,7 +734,7 @@ export type AiAgentMetricsSeries = {
714
734
  truncated: Scalars['Boolean']['output'];
715
735
  };
716
736
  export type AiAgentMetricsSeriesInput = {
717
- agentId: Scalars['ID']['input'];
737
+ aiAgentId: Scalars['ID']['input'];
718
738
  bucket: AiAgentMetricsBucket;
719
739
  channel?: InputMaybe<Scalars['String']['input']>;
720
740
  from: Scalars['Number']['input'];
@@ -756,7 +776,7 @@ export type AiAgentProcedure = {
756
776
  updatedAt: Scalars['Number']['output'];
757
777
  };
758
778
  export type AiAgentRefInput = {
759
- agentId: Scalars['ID']['input'];
779
+ aiAgentId: Scalars['ID']['input'];
760
780
  };
761
781
  export type AiAgentRegression = {
762
782
  after: Scalars['Float']['output'];
@@ -808,7 +828,7 @@ export type AiAgentRoutingPreview = {
808
828
  medium: Scalars['Number']['output'];
809
829
  };
810
830
  export type AiAgentRoutingPreviewInput = {
811
- agentId: Scalars['ID']['input'];
831
+ aiAgentId: Scalars['ID']['input'];
812
832
  examples: Array<Scalars['String']['input']>;
813
833
  subject?: InputMaybe<Scalars['String']['input']>;
814
834
  };
@@ -873,10 +893,11 @@ export type AiAgentSpec = {
873
893
  conversationTiming?: Maybe<Array<AiAgentChannelTiming>>;
874
894
  handoff?: Maybe<AiAgentHandoff>;
875
895
  identity: AiAgentIdentity;
896
+ insistence?: Maybe<AiAgentInsistence>;
876
897
  knowledgeBaseIds: Array<Scalars['ID']['output']>;
877
898
  knowledgeFallback?: Maybe<Scalars['String']['output']>;
878
899
  toolIds: Array<Scalars['ID']['output']>;
879
- typingIndicator?: Maybe<Scalars['Boolean']['output']>;
900
+ typingIndicator: Scalars['Boolean']['output'];
880
901
  };
881
902
  export type AiAgentSpecInput = {
882
903
  /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
@@ -888,13 +909,16 @@ export type AiAgentSpecInput = {
888
909
  conversationTiming?: InputMaybe<Array<AiAgentChannelTimingInput>>;
889
910
  handoff?: InputMaybe<AiAgentHandoffInput>;
890
911
  identity: AiAgentIdentityInput;
912
+ insistence?: InputMaybe<AiAgentInsistenceInput>;
891
913
  knowledgeBaseIds: Array<Scalars['ID']['input']>;
892
914
  knowledgeFallback?: InputMaybe<Scalars['String']['input']>;
893
915
  toolIds: Array<Scalars['ID']['input']>;
894
916
  typingIndicator?: InputMaybe<Scalars['Boolean']['input']>;
895
917
  };
896
918
  export type AiAgentSummary = {
919
+ /** @deprecated Use aiAgentId. */
897
920
  agentId: Scalars['ID']['output'];
921
+ aiAgentId: Scalars['ID']['output'];
898
922
  channels: Array<Scalars['String']['output']>;
899
923
  liveVersion?: Maybe<Scalars['Int']['output']>;
900
924
  name: Scalars['String']['output'];
@@ -961,12 +985,13 @@ export type AiAgentToolSpecInput = {
961
985
  toolId: Scalars['ID']['input'];
962
986
  };
963
987
  export type AiAgentTrace = {
964
- agentId: Scalars['ID']['output'];
965
988
  agentVersion: Scalars['String']['output'];
989
+ aiAgentId: Scalars['ID']['output'];
966
990
  answer: Scalars['String']['output'];
967
991
  channelType?: Maybe<AiAgentChannelType>;
968
992
  excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
969
993
  haltReason?: Maybe<Scalars['String']['output']>;
994
+ handoffHeld?: Maybe<Scalars['Boolean']['output']>;
970
995
  identificationRequired?: Maybe<Scalars['Boolean']['output']>;
971
996
  input: Scalars['String']['output'];
972
997
  knowledgeOrigins: Array<Scalars['String']['output']>;
@@ -1014,7 +1039,7 @@ export declare enum AiAgentVariationUnit {
1014
1039
  Points = "POINTS"
1015
1040
  }
1016
1041
  export type AiAgentVersion = {
1017
- agentId: Scalars['ID']['output'];
1042
+ aiAgentId: Scalars['ID']['output'];
1018
1043
  createdAt: Scalars['DateTime']['output'];
1019
1044
  excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
1020
1045
  spec: AiAgentSpec;
@@ -1022,7 +1047,7 @@ export type AiAgentVersion = {
1022
1047
  version: Scalars['Int']['output'];
1023
1048
  };
1024
1049
  export type AiAgentVersionRefInput = {
1025
- agentId: Scalars['ID']['input'];
1050
+ aiAgentId: Scalars['ID']['input'];
1026
1051
  version: Scalars['Int']['input'];
1027
1052
  };
1028
1053
  export declare enum AiAgentVersionStatus {
@@ -1048,7 +1073,7 @@ export declare enum Can {
1048
1073
  Write = "write"
1049
1074
  }
1050
1075
  export type CheckAiAgentVersionInput = {
1051
- agentId: Scalars['ID']['input'];
1076
+ aiAgentId: Scalars['ID']['input'];
1052
1077
  runsPerScenario?: InputMaybe<Scalars['Int']['input']>;
1053
1078
  scenarioIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1054
1079
  version: Scalars['Int']['input'];
@@ -1067,7 +1092,7 @@ export type CredentialRefInput = {
1067
1092
  vault: Scalars['String']['input'];
1068
1093
  };
1069
1094
  export type DraftAiAgentInput = {
1070
- agentId?: InputMaybe<Scalars['ID']['input']>;
1095
+ aiAgentId?: InputMaybe<Scalars['ID']['input']>;
1071
1096
  name: Scalars['String']['input'];
1072
1097
  spec: AiAgentSpecInput;
1073
1098
  };
@@ -1280,7 +1305,7 @@ export type Query = {
1280
1305
  version?: Maybe<Scalars['String']['output']>;
1281
1306
  };
1282
1307
  export type QueryAiAgentCheckLimitsArgs = {
1283
- agentId: Scalars['ID']['input'];
1308
+ aiAgentId: Scalars['ID']['input'];
1284
1309
  };
1285
1310
  export type QueryAiAgentConversationMetricsArgs = {
1286
1311
  input: AiAgentConversationMetricsInput;
@@ -1312,10 +1337,10 @@ export type QueryAiAgentTraceArgs = {
1312
1337
  sessionId: Scalars['ID']['input'];
1313
1338
  };
1314
1339
  export type QueryAiAgentUseCaseOverlapArgs = {
1315
- agentId: Scalars['ID']['input'];
1340
+ aiAgentId: Scalars['ID']['input'];
1316
1341
  };
1317
1342
  export type QueryGetAiAgentCheckRunArgs = {
1318
- agentId: Scalars['ID']['input'];
1343
+ aiAgentId: Scalars['ID']['input'];
1319
1344
  runId: Scalars['ID']['input'];
1320
1345
  };
1321
1346
  export type QueryGetNlpInstanceArgs = {
@@ -1325,20 +1350,20 @@ export type QueryGetQnAInstanceArgs = {
1325
1350
  id: Scalars['ID']['input'];
1326
1351
  };
1327
1352
  export type QueryListAiAgentApprovalsArgs = {
1328
- agentId: Scalars['ID']['input'];
1353
+ aiAgentId: Scalars['ID']['input'];
1329
1354
  status?: InputMaybe<AiAgentApprovalStatus>;
1330
1355
  };
1331
1356
  export type QueryListAiAgentProceduresArgs = {
1332
- agentId: Scalars['ID']['input'];
1357
+ aiAgentId: Scalars['ID']['input'];
1333
1358
  };
1334
1359
  export type QueryListAiAgentScenariosArgs = {
1335
- agentId: Scalars['ID']['input'];
1360
+ aiAgentId: Scalars['ID']['input'];
1336
1361
  };
1337
1362
  export type QueryListAiAgentUseCasesArgs = {
1338
- agentId: Scalars['ID']['input'];
1363
+ aiAgentId: Scalars['ID']['input'];
1339
1364
  };
1340
1365
  export type QueryListAiAgentVersionsArgs = {
1341
- agentId: Scalars['ID']['input'];
1366
+ aiAgentId: Scalars['ID']['input'];
1342
1367
  };
1343
1368
  export type QueryTestNlpInstanceArgs = {
1344
1369
  id: Scalars['ID']['input'];
@@ -1357,12 +1382,13 @@ export type ReindexAiAgentDashboardInput = {
1357
1382
  sinceDays?: InputMaybe<Scalars['Number']['input']>;
1358
1383
  };
1359
1384
  export type RememberAiAgentSessionFactsInput = {
1360
- agentId: Scalars['ID']['input'];
1385
+ aiAgentId: Scalars['ID']['input'];
1386
+ campaign?: InputMaybe<AiAgentCampaignInput>;
1361
1387
  facts: Scalars['JSON']['input'];
1362
1388
  sessionId: Scalars['ID']['input'];
1363
1389
  };
1364
1390
  export type RemoveAiAgentScenarioInput = {
1365
- agentId: Scalars['ID']['input'];
1391
+ aiAgentId: Scalars['ID']['input'];
1366
1392
  scenarioId: Scalars['ID']['input'];
1367
1393
  };
1368
1394
  export type RemoveNlpInstanceInput = {
@@ -1372,14 +1398,14 @@ export type RemoveQnAInstanceInput = {
1372
1398
  id: Scalars['ID']['input'];
1373
1399
  };
1374
1400
  export type ResolveAiAgentApprovalInput = {
1375
- agentId: Scalars['ID']['input'];
1401
+ aiAgentId: Scalars['ID']['input'];
1376
1402
  decidedBy?: InputMaybe<Scalars['String']['input']>;
1377
1403
  decision: AiAgentApprovalDecision;
1378
1404
  requestedAt: Scalars['Number']['input'];
1379
1405
  sessionId: Scalars['ID']['input'];
1380
1406
  };
1381
1407
  export type SaveAiAgentProcedureInput = {
1382
- agentId: Scalars['ID']['input'];
1408
+ aiAgentId: Scalars['ID']['input'];
1383
1409
  approvedReplyTemplate?: InputMaybe<Scalars['String']['input']>;
1384
1410
  contingency: Scalars['String']['input'];
1385
1411
  continuesAfterApproval?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1395,7 +1421,7 @@ export type SaveAiAgentProcedureInput = {
1395
1421
  toolIds: Array<Scalars['ID']['input']>;
1396
1422
  };
1397
1423
  export type SaveAiAgentScenarioInput = {
1398
- agentId: Scalars['ID']['input'];
1424
+ aiAgentId: Scalars['ID']['input'];
1399
1425
  customerId?: InputMaybe<Scalars['ID']['input']>;
1400
1426
  description: Scalars['String']['input'];
1401
1427
  expectations: Array<Scalars['JSON']['input']>;
@@ -1403,7 +1429,7 @@ export type SaveAiAgentScenarioInput = {
1403
1429
  turns: Array<Scalars['String']['input']>;
1404
1430
  };
1405
1431
  export type SaveAiAgentUseCaseInput = {
1406
- agentId: Scalars['ID']['input'];
1432
+ aiAgentId: Scalars['ID']['input'];
1407
1433
  id: Scalars['ID']['input'];
1408
1434
  name: Scalars['String']['input'];
1409
1435
  procedureId?: InputMaybe<Scalars['ID']['input']>;
@@ -1546,21 +1572,22 @@ export type UpdateQnAInstanceInput = {
1546
1572
  name?: InputMaybe<Scalars['String']['input']>;
1547
1573
  tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>;
1548
1574
  };
1549
- export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'agentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
1550
- export type AiAgentVersionFragment = Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'>;
1575
+ export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'aiAgentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
1576
+ export type AiAgentVersionFragment = Pick<AiAgentVersion, 'aiAgentId' | 'version' | 'status' | 'createdAt'>;
1551
1577
  export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator'> & {
1552
1578
  identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
1553
1579
  budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
1554
1580
  handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
1581
+ insistence?: Maybe<Pick<AiAgentInsistence, 'retriesAfterRefusal' | 'handoffOnRequest'>>;
1555
1582
  conversationTiming?: Maybe<Array<Pick<AiAgentChannelTiming, 'channel' | 'abandonAfterMs' | 'remindAfterMs' | 'metaWindowMs' | 'reminderMessage' | 'renewalMessage'>>>;
1556
1583
  });
1557
1584
  export type AiAgentToolExclusionFragment = Pick<AiAgentToolExclusion, 'toolId' | 'reason'>;
1558
- export type AiAgentVersionWithSpecFragment = (Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'> & {
1585
+ export type AiAgentVersionWithSpecFragment = (Pick<AiAgentVersion, 'aiAgentId' | 'version' | 'status' | 'createdAt'> & {
1559
1586
  spec: AiAgentSpecFragment;
1560
1587
  excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
1561
1588
  });
1562
- export type AiAgentListingMetricsFragment = Pick<AiAgentMetrics, 'agentId' | 'conversations' | 'conversationsResolved' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'costMicroUsd'>;
1563
- export type AiAgentListingMetricsFieldsFragment = Pick<AiAgentListingMetrics, 'agentId' | 'conversations' | 'conversationsResolved' | 'conversationsHandoffRequested' | 'resolutionRate' | 'costMicroUsd'>;
1589
+ export type AiAgentListingMetricsFragment = Pick<AiAgentMetrics, 'aiAgentId' | 'conversations' | 'conversationsResolved' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'costMicroUsd'>;
1590
+ export type AiAgentListingMetricsFieldsFragment = Pick<AiAgentListingMetrics, 'aiAgentId' | 'conversations' | 'conversationsResolved' | 'conversationsHandoffRequested' | 'resolutionRate' | 'costMicroUsd'>;
1564
1591
  export type ListAiAgentsQueryVariables = Exact<{
1565
1592
  [key: string]: never;
1566
1593
  }>;
@@ -1568,7 +1595,7 @@ export type ListAiAgentsQuery = {
1568
1595
  listAiAgents: Array<AiAgentSummaryFragment>;
1569
1596
  };
1570
1597
  export type ListAiAgentVersionsQueryVariables = Exact<{
1571
- agentId: Scalars['ID']['input'];
1598
+ aiAgentId: Scalars['ID']['input'];
1572
1599
  }>;
1573
1600
  export type ListAiAgentVersionsQuery = {
1574
1601
  listAiAgentVersions: Array<AiAgentVersionFragment>;
@@ -1628,19 +1655,19 @@ export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'g
1628
1655
  export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'emptyResultMessage' | 'customerScope' | 'returns' | 'approval'> & {
1629
1656
  parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding' | 'format'>>;
1630
1657
  });
1631
- export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'knowledgeQuery' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt' | 'model' | 'reasoningEffort'> & {
1658
+ export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'aiAgentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'knowledgeQuery' | 'outcome' | 'haltReason' | 'handoffHeld' | 'steps' | 'answer' | 'startedAt' | 'model' | 'reasoningEffort'> & {
1632
1659
  excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
1633
1660
  toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass'>>;
1634
1661
  });
1635
1662
  export type AiAgentScenarioFragment = Pick<AiAgentScenario, 'scenarioId' | 'description' | 'customerId' | 'turns' | 'expectations'>;
1636
1663
  export type ListAiAgentUseCasesQueryVariables = Exact<{
1637
- agentId: Scalars['ID']['input'];
1664
+ aiAgentId: Scalars['ID']['input'];
1638
1665
  }>;
1639
1666
  export type ListAiAgentUseCasesQuery = {
1640
1667
  listAiAgentUseCases: Array<AiAgentUseCaseFragment>;
1641
1668
  };
1642
1669
  export type ListAiAgentProceduresQueryVariables = Exact<{
1643
- agentId: Scalars['ID']['input'];
1670
+ aiAgentId: Scalars['ID']['input'];
1644
1671
  }>;
1645
1672
  export type ListAiAgentProceduresQuery = {
1646
1673
  listAiAgentProcedures: Array<AiAgentProcedureFragment>;
@@ -1652,7 +1679,7 @@ export type ListAiAgentToolsQuery = {
1652
1679
  listAiAgentTools: Array<AiAgentToolFragment>;
1653
1680
  };
1654
1681
  export type AiAgentUseCaseOverlapQueryVariables = Exact<{
1655
- agentId: Scalars['ID']['input'];
1682
+ aiAgentId: Scalars['ID']['input'];
1656
1683
  }>;
1657
1684
  export type AiAgentUseCaseOverlapQuery = {
1658
1685
  aiAgentUseCaseOverlap: (Pick<AiAgentUseCaseOverlap, 'threshold'> & {
@@ -1667,7 +1694,7 @@ export type AiAgentTraceQuery = {
1667
1694
  aiAgentTrace: Array<AiAgentTraceFragment>;
1668
1695
  };
1669
1696
  export type ListAiAgentScenariosQueryVariables = Exact<{
1670
- agentId: Scalars['ID']['input'];
1697
+ aiAgentId: Scalars['ID']['input'];
1671
1698
  }>;
1672
1699
  export type ListAiAgentScenariosQuery = {
1673
1700
  listAiAgentScenarios: Array<AiAgentScenarioFragment>;
@@ -1716,7 +1743,7 @@ export type AiAgentDashboardQueryVariables = Exact<{
1716
1743
  input: AiAgentDashboardInput;
1717
1744
  }>;
1718
1745
  export type AiAgentDashboardQuery = {
1719
- aiAgentDashboard: (Pick<AiAgentDashboard, 'agentId' | 'timezone' | 'bucket' | 'agentScoreAvg' | 'agentScoreAvgBand' | 'analyzedConversations' | 'conversationsProvisional' | 'conversationsAwaitingClassification' | 'hasActiveDispatches' | 'truncated' | 'analysesTruncated'> & {
1746
+ aiAgentDashboard: (Pick<AiAgentDashboard, 'aiAgentId' | 'timezone' | 'bucket' | 'agentScoreAvg' | 'agentScoreAvgBand' | 'analyzedConversations' | 'conversationsProvisional' | 'conversationsAwaitingClassification' | 'hasActiveDispatches' | 'truncated' | 'analysesTruncated'> & {
1720
1747
  window: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
1721
1748
  previousWindow: Pick<AiAgentDashboardWindow, 'from' | 'to'>;
1722
1749
  conversations: AiAgentDashboardIndicatorFragment;
@@ -1724,6 +1751,8 @@ export type AiAgentDashboardQuery = {
1724
1751
  unresolved: AiAgentDashboardIndicatorFragment;
1725
1752
  handoffProcedure: AiAgentDashboardIndicatorFragment;
1726
1753
  handoffNeed: AiAgentDashboardIndicatorFragment;
1754
+ qualifiedLead: AiAgentDashboardIndicatorFragment;
1755
+ offerAccepted: AiAgentDashboardIndicatorFragment;
1727
1756
  abandonment: AiAgentDashboardIndicatorFragment;
1728
1757
  scoreBands: Array<(Pick<AiAgentDashboardScoreBand, 'band' | 'count' | 'percent' | 'polarity'> & {
1729
1758
  variation: Pick<AiAgentVariation, 'unit' | 'value'>;
@@ -1757,7 +1786,7 @@ export type AiAgentConversationOutcomeQueryVariables = Exact<{
1757
1786
  conversationId?: InputMaybe<Scalars['ID']['input']>;
1758
1787
  }>;
1759
1788
  export type AiAgentConversationOutcomeQuery = {
1760
- aiAgentConversationOutcome?: Maybe<(Pick<AiAgentConversationOutcome, 'conversationId' | 'sessionId' | 'agentId' | 'agentVersion' | 'resolution' | 'resolutionDefinition' | 'collectedData' | 'collectedDataAvailable' | 'turns' | 'startedAt' | 'lastTurnAt' | 'haltReason' | 'handoffReason' | 'agentSummary' | 'promisedNextStep' | 'channelType' | 'reversibleUntil'> & {
1789
+ aiAgentConversationOutcome?: Maybe<(Pick<AiAgentConversationOutcome, 'conversationId' | 'sessionId' | 'aiAgentId' | 'agentVersion' | 'resolution' | 'resolutionDefinition' | 'collectedData' | 'collectedDataAvailable' | 'turns' | 'startedAt' | 'lastTurnAt' | 'haltReason' | 'handoffReason' | 'agentSummary' | 'promisedNextStep' | 'channelType' | 'reversibleUntil'> & {
1761
1790
  classification: Pick<AiAgentConversationClassification, 'state' | 'status' | 'classification' | 'subcategory' | 'technicalFailure' | 'eligibleForResolution' | 'consumesAllowance' | 'inactivityWindowMs' | 'definitionVersion'>;
1762
1791
  actions: Array<Pick<AiAgentConversationAction, 'toolId' | 'name' | 'ok' | 'result' | 'at'>>;
1763
1792
  contactReason?: Maybe<Pick<AiAgentContactReason, 'name' | 'useCaseId' | 'tag' | 'other' | 'source'>>;
@@ -1788,9 +1817,9 @@ export type RememberAiAgentSessionFactsMutationVariables = Exact<{
1788
1817
  input: RememberAiAgentSessionFactsInput;
1789
1818
  }>;
1790
1819
  export type RememberAiAgentSessionFactsMutation = Pick<Mutation, 'rememberAiAgentSessionFacts'>;
1791
- export type AiAgentApprovalFragment = Pick<AiAgentApproval, 'agentId' | 'sessionId' | 'toolId' | 'toolName' | 'args' | 'channelId' | 'customerId' | 'requestedAt' | 'expiresAt' | 'status' | 'decidedBy' | 'decidedAt'>;
1820
+ export type AiAgentApprovalFragment = Pick<AiAgentApproval, 'aiAgentId' | 'sessionId' | 'toolId' | 'toolName' | 'args' | 'channelId' | 'customerId' | 'requestedAt' | 'expiresAt' | 'status' | 'decidedBy' | 'decidedAt'>;
1792
1821
  export type ListAiAgentApprovalsQueryVariables = Exact<{
1793
- agentId: Scalars['ID']['input'];
1822
+ aiAgentId: Scalars['ID']['input'];
1794
1823
  status?: InputMaybe<AiAgentApprovalStatus>;
1795
1824
  }>;
1796
1825
  export type ListAiAgentApprovalsQuery = {
@@ -1820,7 +1849,7 @@ export type SaveAiAgentScenarioMutationVariables = Exact<{
1820
1849
  export type SaveAiAgentScenarioMutation = {
1821
1850
  saveAiAgentScenario?: Maybe<AiAgentScenarioFragment>;
1822
1851
  };
1823
- export type AiAgentCheckRunFragment = (Pick<AiAgentCheckRun, 'runId' | 'agentId' | 'version' | 'status' | 'requestedAt' | 'startedAt' | 'finishedAt' | 'totalRuns' | 'completedRuns' | 'error'> & {
1852
+ export type AiAgentCheckRunFragment = (Pick<AiAgentCheckRun, 'runId' | 'aiAgentId' | 'version' | 'status' | 'requestedAt' | 'startedAt' | 'finishedAt' | 'totalRuns' | 'completedRuns' | 'error'> & {
1824
1853
  excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
1825
1854
  result?: Maybe<(Pick<AiAgentCheckResult, 'safeToPublish'> & {
1826
1855
  authoring?: Maybe<Pick<AiAgentCheckAuthoring, 'useCases' | 'procedures' | 'updatedAt'>>;
@@ -1842,19 +1871,19 @@ export type CheckAiAgentVersionMutation = {
1842
1871
  checkAiAgentVersion?: Maybe<AiAgentCheckRunFragment>;
1843
1872
  };
1844
1873
  export type GetAiAgentCheckRunQueryVariables = Exact<{
1845
- agentId: Scalars['ID']['input'];
1874
+ aiAgentId: Scalars['ID']['input'];
1846
1875
  runId: Scalars['ID']['input'];
1847
1876
  }>;
1848
1877
  export type GetAiAgentCheckRunQuery = {
1849
1878
  getAiAgentCheckRun?: Maybe<AiAgentCheckRunFragment>;
1850
1879
  };
1851
1880
  export type AiAgentCheckLimitsQueryVariables = Exact<{
1852
- agentId: Scalars['ID']['input'];
1881
+ aiAgentId: Scalars['ID']['input'];
1853
1882
  }>;
1854
1883
  export type AiAgentCheckLimitsQuery = {
1855
1884
  aiAgentCheckLimits: Pick<AiAgentCheckLimits, 'minRunsPerScenario' | 'maxRunsPerScenario' | 'maxSuiteRuns' | 'scenarioCount'>;
1856
1885
  };
1857
- export type AiAgentMetricsReportFragment = (Pick<AiAgentMetrics, 'agentId' | 'from' | 'to' | 'truncated' | 'conversations' | 'conversationsResolved' | 'conversationsInconclusive' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'conversationsEligible' | 'conversationsResolvedByDefinition' | 'conversationsProvisional' | 'conversationsAwaitingClassification' | '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'> & {
1886
+ export type AiAgentMetricsReportFragment = (Pick<AiAgentMetrics, 'aiAgentId' | 'from' | 'to' | 'truncated' | 'conversations' | 'conversationsResolved' | 'conversationsInconclusive' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'conversationsEligible' | 'conversationsResolvedByDefinition' | 'conversationsProvisional' | 'conversationsAwaitingClassification' | 'resolvedRate' | 'unresolvedRate' | 'handoffProcedureRate' | 'handoffNeedRate' | 'qualifiedLeadRate' | 'offerAcceptedRate' | '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'> & {
1858
1887
  classificationBreakdown: Array<Pick<AiAgentClassificationCount, 'state' | 'subcategory' | 'technicalFailure' | 'count'>>;
1859
1888
  classificationDefinitionVersions: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
1860
1889
  sentimentAtStart: Array<Pick<AiAgentSentimentCount, 'key' | 'count'>>;
@@ -1884,7 +1913,7 @@ export type AiAgentMetricsQuery = {
1884
1913
  aiAgentMetrics: AiAgentMetricsReportFragment;
1885
1914
  };
1886
1915
  export type AiAgentVersionSpecQueryVariables = Exact<{
1887
- agentId: Scalars['ID']['input'];
1916
+ aiAgentId: Scalars['ID']['input'];
1888
1917
  }>;
1889
1918
  export type AiAgentVersionSpecQuery = {
1890
1919
  listAiAgentVersions: Array<AiAgentVersionWithSpecFragment>;
@@ -1992,65 +2021,65 @@ export type RemoveQnAInstanceMutationVariables = Exact<{
1992
2021
  export type RemoveQnAInstanceMutation = {
1993
2022
  removeQnAInstance?: Maybe<QnaFragmentFragment>;
1994
2023
  };
1995
- export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
1996
- export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1997
- export declare const AiAgentSpecFragmentDoc = "\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 conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n}\n ";
2024
+ export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n aiAgentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
2025
+ export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
2026
+ export declare const AiAgentSpecFragmentDoc = "\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 insistence {\n retriesAfterRefusal\n handoffOnRequest\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n}\n ";
1998
2027
  export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
1999
- 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 ";
2000
- 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 ";
2001
- export declare const AiAgentListingMetricsFieldsFragmentDoc = "\n fragment aiAgentListingMetricsFields on AiAgentListingMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n costMicroUsd\n}\n ";
2028
+ export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n ";
2029
+ export declare const AiAgentListingMetricsFragmentDoc = "\n fragment aiAgentListingMetrics on AiAgentMetrics {\n aiAgentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
2030
+ export declare const AiAgentListingMetricsFieldsFragmentDoc = "\n fragment aiAgentListingMetricsFields on AiAgentListingMetrics {\n aiAgentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n costMicroUsd\n}\n ";
2002
2031
  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 ";
2003
2032
  export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n status\n updatedAt\n}\n ";
2004
2033
  export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
2005
- 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 knowledgeQuery\n outcome\n haltReason\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n ";
2034
+ export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n ";
2006
2035
  export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2007
2036
  export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
2008
2037
  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 ";
2009
2038
  export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
2010
- 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 ";
2011
- 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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
2012
- 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 classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 turnsByModelAndReasoningEffort {\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 ";
2039
+ export declare const AiAgentApprovalFragmentDoc = "\n fragment aiAgentApproval on AiAgentApproval {\n aiAgentId\n sessionId\n toolId\n toolName\n args\n channelId\n customerId\n requestedAt\n expiresAt\n status\n decidedBy\n decidedAt\n}\n ";
2040
+ export declare const AiAgentCheckRunFragmentDoc = "\n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
2041
+ export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n aiAgentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n qualifiedLeadRate\n offerAcceptedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 turnsByModelAndReasoningEffort {\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 ";
2013
2042
  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 ";
2014
2043
  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 ";
2015
- 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 ";
2016
- export declare const ListAiAgentVersionsDocument = "\n query listAiAgentVersions($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
2017
- export declare const AiAgentMetricsByAgentDocument = "\n query aiAgentMetricsByAgent($input: AiAgentMetricsWindowInput!) {\n aiAgentMetricsByAgent(input: $input) {\n ...aiAgentListingMetrics\n }\n}\n \n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
2018
- export declare const AiAgentListingMetricsDocument = "\n query aiAgentListingMetrics($input: AiAgentMetricsWindowInput!) {\n aiAgentListingMetrics(input: $input) {\n ...aiAgentListingMetricsFields\n }\n}\n \n fragment aiAgentListingMetricsFields on AiAgentListingMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n costMicroUsd\n}\n ";
2019
- export declare const DraftAiAgentDocument = "\n mutation draftAiAgent($input: DraftAiAgentInput!) {\n draftAiAgent(input: $input) {\n ...aiAgentVersion\n excludedTools {\n ...aiAgentToolExclusion\n }\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2020
- export declare const PublishAiAgentVersionDocument = "\n mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {\n publishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n excludedTools {\n ...aiAgentToolExclusion\n }\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2021
- export declare const UnpublishAiAgentVersionDocument = "\n mutation unpublishAiAgentVersion($input: AiAgentVersionRefInput!) {\n unpublishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
2022
- export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAiAgentVersion($input: AiAgentVersionRefInput!) {\n rollbackAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
2023
- 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 ";
2044
+ export declare const ListAiAgentsDocument = "\n query listAiAgents {\n listAiAgents {\n ...aiAgentSummary\n }\n}\n \n fragment aiAgentSummary on AiAgentSummary {\n aiAgentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
2045
+ export declare const ListAiAgentVersionsDocument = "\n query listAiAgentVersions($aiAgentId: ID!) {\n listAiAgentVersions(aiAgentId: $aiAgentId) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
2046
+ export declare const AiAgentMetricsByAgentDocument = "\n query aiAgentMetricsByAgent($input: AiAgentMetricsWindowInput!) {\n aiAgentMetricsByAgent(input: $input) {\n ...aiAgentListingMetrics\n }\n}\n \n fragment aiAgentListingMetrics on AiAgentMetrics {\n aiAgentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
2047
+ export declare const AiAgentListingMetricsDocument = "\n query aiAgentListingMetrics($input: AiAgentMetricsWindowInput!) {\n aiAgentListingMetrics(input: $input) {\n ...aiAgentListingMetricsFields\n }\n}\n \n fragment aiAgentListingMetricsFields on AiAgentListingMetrics {\n aiAgentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n costMicroUsd\n}\n ";
2048
+ export declare const DraftAiAgentDocument = "\n mutation draftAiAgent($input: DraftAiAgentInput!) {\n draftAiAgent(input: $input) {\n ...aiAgentVersion\n excludedTools {\n ...aiAgentToolExclusion\n }\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2049
+ export declare const PublishAiAgentVersionDocument = "\n mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {\n publishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n excludedTools {\n ...aiAgentToolExclusion\n }\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2050
+ export declare const UnpublishAiAgentVersionDocument = "\n mutation unpublishAiAgentVersion($input: AiAgentVersionRefInput!) {\n unpublishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
2051
+ export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAiAgentVersion($input: AiAgentVersionRefInput!) {\n rollbackAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
2052
+ export declare const RemoveAiAgentVersionDocument = "\n mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {\n removeAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
2024
2053
  export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
2025
- 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 ";
2026
- 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 continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n status\n updatedAt\n}\n ";
2054
+ export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCases($aiAgentId: ID!) {\n listAiAgentUseCases(aiAgentId: $aiAgentId) {\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 ";
2055
+ export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($aiAgentId: ID!) {\n listAiAgentProcedures(aiAgentId: $aiAgentId) {\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 continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n status\n updatedAt\n}\n ";
2027
2056
  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 emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
2028
- 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 ";
2029
- export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\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 knowledgeQuery\n outcome\n haltReason\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2030
- 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 ";
2057
+ export declare const AiAgentUseCaseOverlapDocument = "\n query aiAgentUseCaseOverlap($aiAgentId: ID!) {\n aiAgentUseCaseOverlap(aiAgentId: $aiAgentId) {\n threshold\n pairs {\n left\n right\n score\n }\n }\n}\n ";
2058
+ export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2059
+ export declare const ListAiAgentScenariosDocument = "\n query listAiAgentScenarios($aiAgentId: ID!) {\n listAiAgentScenarios(aiAgentId: $aiAgentId) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2031
2060
  export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
2032
2061
  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 ";
2033
2062
  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 ";
2034
2063
  export declare const AiAgentConversationMetricsDocument = "\n query aiAgentConversationMetrics($input: AiAgentConversationMetricsInput!) {\n aiAgentConversationMetrics(input: $input) {\n items {\n conversationId\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 reversibleUntil\n provisional\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 hasRiskAlerts\n dateRange {\n min\n max\n }\n truncated\n }\n}\n ";
2035
2064
  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 ";
2036
- export declare const AiAgentDashboardDocument = "\n query aiAgentDashboard($input: AiAgentDashboardInput!) {\n aiAgentDashboard(input: $input) {\n agentId\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 conversationsProvisional\n conversationsAwaitingClassification\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 ";
2037
- export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!, $conversationId: ID) {\n aiAgentConversationOutcome(\n sessionId: $sessionId\n conversationId: $conversationId\n ) {\n conversationId\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 reversibleUntil\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 ";
2065
+ export declare const AiAgentDashboardDocument = "\n query aiAgentDashboard($input: AiAgentDashboardInput!) {\n aiAgentDashboard(input: $input) {\n aiAgentId\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 qualifiedLead {\n ...aiAgentDashboardIndicator\n }\n offerAccepted {\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 conversationsProvisional\n conversationsAwaitingClassification\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 ";
2066
+ export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!, $conversationId: ID) {\n aiAgentConversationOutcome(\n sessionId: $sessionId\n conversationId: $conversationId\n ) {\n conversationId\n sessionId\n aiAgentId\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 reversibleUntil\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 ";
2038
2067
  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 ";
2039
2068
  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 continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n status\n updatedAt\n}\n ";
2040
2069
  export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
2041
2070
  export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
2042
2071
  export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
2043
- export declare const ListAiAgentApprovalsDocument = "\n query listAiAgentApprovals($agentId: ID!, $status: AiAgentApprovalStatus) {\n listAiAgentApprovals(agentId: $agentId, status: $status) {\n ...aiAgentApproval\n }\n}\n \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 ";
2072
+ export declare const ListAiAgentApprovalsDocument = "\n query listAiAgentApprovals($aiAgentId: ID!, $status: AiAgentApprovalStatus) {\n listAiAgentApprovals(aiAgentId: $aiAgentId, status: $status) {\n ...aiAgentApproval\n }\n}\n \n fragment aiAgentApproval on AiAgentApproval {\n aiAgentId\n sessionId\n toolId\n toolName\n args\n channelId\n customerId\n requestedAt\n expiresAt\n status\n decidedBy\n decidedAt\n}\n ";
2044
2073
  export declare const ResolveAiAgentApprovalDocument = "\n mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {\n resolveAiAgentApproval(input: $input)\n}\n ";
2045
2074
  export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {\n registerAiAgentTool(input: $input) {\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 emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
2046
2075
  export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
2047
2076
  export declare const RemoveAiAgentScenarioDocument = "\n mutation removeAiAgentScenario($input: RemoveAiAgentScenarioInput!) {\n removeAiAgentScenario(input: $input)\n}\n ";
2048
2077
  export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {\n saveAiAgentScenario(input: $input) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2049
- 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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\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 ";
2050
- 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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\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 ";
2051
- export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
2052
- 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 classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 turnsByModelAndReasoningEffort {\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 ";
2053
- 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 conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2078
+ 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 aiAgentId\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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\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 ";
2079
+ export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($aiAgentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(aiAgentId: $aiAgentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\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 authoring {\n useCases\n procedures\n updatedAt\n }\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 rejectedCalls {\n toolName\n reason\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 ";
2080
+ export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($aiAgentId: ID!) {\n aiAgentCheckLimits(aiAgentId: $aiAgentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
2081
+ export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n aiAgentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n qualifiedLeadRate\n offerAcceptedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 turnsByModelAndReasoningEffort {\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 ";
2082
+ export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($aiAgentId: ID!) {\n listAiAgentVersions(aiAgentId: $aiAgentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n aiAgentId\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 insistence {\n retriesAfterRefusal\n handoffOnRequest\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2054
2083
  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 ";
2055
2084
  export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
2056
2085
  export declare const ExtractImageMetadataDocument = "\n mutation extractImageMetadata($input: ExtractImageMetadataInput!) {\n extractImageMetadata(input: $input) {\n success\n model\n extractedMetadata\n tokenUsage {\n prompt\n completion\n total\n }\n }\n}\n ";
package/src/sdks/ai.js CHANGED
@@ -94,10 +94,12 @@ var AiAgentConversationSubcategory;
94
94
  AiAgentConversationSubcategory["IndeterminateWrite"] = "INDETERMINATE_WRITE";
95
95
  AiAgentConversationSubcategory["NoCoverage"] = "NO_COVERAGE";
96
96
  AiAgentConversationSubcategory["NoKnowledge"] = "NO_KNOWLEDGE";
97
+ AiAgentConversationSubcategory["OfferAccepted"] = "OFFER_ACCEPTED";
97
98
  AiAgentConversationSubcategory["OrphanBoard"] = "ORPHAN_BOARD";
98
99
  AiAgentConversationSubcategory["PartialAnswer"] = "PARTIAL_ANSWER";
99
100
  AiAgentConversationSubcategory["PresumedResolution"] = "PRESUMED_RESOLUTION";
100
101
  AiAgentConversationSubcategory["PromptInjection"] = "PROMPT_INJECTION";
102
+ AiAgentConversationSubcategory["QualifiedLeadHandoff"] = "QUALIFIED_LEAD_HANDOFF";
101
103
  AiAgentConversationSubcategory["RevertedByRecontact"] = "REVERTED_BY_RECONTACT";
102
104
  AiAgentConversationSubcategory["Spam"] = "SPAM";
103
105
  AiAgentConversationSubcategory["TechnicalFailure"] = "TECHNICAL_FAILURE";
@@ -125,6 +127,7 @@ var AiAgentHandoffReason;
125
127
  AiAgentHandoffReason["PeriodBudgetExceeded"] = "period_budget_exceeded";
126
128
  AiAgentHandoffReason["PolicyRequiresHuman"] = "policy_requires_human";
127
129
  AiAgentHandoffReason["ProviderUnavailable"] = "provider_unavailable";
130
+ AiAgentHandoffReason["QualifiedLead"] = "qualified_lead";
128
131
  AiAgentHandoffReason["ToolFailure"] = "tool_failure";
129
132
  AiAgentHandoffReason["Undeclared"] = "undeclared";
130
133
  AiAgentHandoffReason["Unresolved"] = "unresolved";
@@ -270,7 +273,7 @@ var Typenames;
270
273
  })(Typenames || (exports.Typenames = Typenames = {}));
271
274
  exports.AiAgentSummaryFragmentDoc = `
272
275
  fragment aiAgentSummary on AiAgentSummary {
273
- agentId
276
+ aiAgentId
274
277
  name
275
278
  liveVersion
276
279
  channels
@@ -281,7 +284,7 @@ exports.AiAgentSummaryFragmentDoc = `
281
284
  `;
282
285
  exports.AiAgentVersionFragmentDoc = `
283
286
  fragment aiAgentVersion on AiAgentVersion {
284
- agentId
287
+ aiAgentId
285
288
  version
286
289
  status
287
290
  createdAt
@@ -314,6 +317,10 @@ exports.AiAgentSpecFragmentDoc = `
314
317
  transition
315
318
  target
316
319
  }
320
+ insistence {
321
+ retriesAfterRefusal
322
+ handoffOnRequest
323
+ }
317
324
  channels
318
325
  conversationTiming {
319
326
  channel
@@ -334,7 +341,7 @@ exports.AiAgentToolExclusionFragmentDoc = `
334
341
  `;
335
342
  exports.AiAgentVersionWithSpecFragmentDoc = `
336
343
  fragment aiAgentVersionWithSpec on AiAgentVersion {
337
- agentId
344
+ aiAgentId
338
345
  version
339
346
  status
340
347
  createdAt
@@ -348,7 +355,7 @@ exports.AiAgentVersionWithSpecFragmentDoc = `
348
355
  `;
349
356
  exports.AiAgentListingMetricsFragmentDoc = `
350
357
  fragment aiAgentListingMetrics on AiAgentMetrics {
351
- agentId
358
+ aiAgentId
352
359
  conversations
353
360
  conversationsResolved
354
361
  conversationsHandoffRequested
@@ -359,7 +366,7 @@ exports.AiAgentListingMetricsFragmentDoc = `
359
366
  `;
360
367
  exports.AiAgentListingMetricsFieldsFragmentDoc = `
361
368
  fragment aiAgentListingMetricsFields on AiAgentListingMetrics {
362
- agentId
369
+ aiAgentId
363
370
  conversations
364
371
  conversationsResolved
365
372
  conversationsHandoffRequested
@@ -423,7 +430,7 @@ exports.AiAgentTraceFragmentDoc = `
423
430
  fragment aiAgentTrace on AiAgentTrace {
424
431
  sessionId
425
432
  turn
426
- agentId
433
+ aiAgentId
427
434
  agentVersion
428
435
  input
429
436
  promptBuilderVersion
@@ -434,6 +441,7 @@ exports.AiAgentTraceFragmentDoc = `
434
441
  knowledgeQuery
435
442
  outcome
436
443
  haltReason
444
+ handoffHeld
437
445
  steps
438
446
  answer
439
447
  startedAt
@@ -493,7 +501,7 @@ exports.AiAgentDashboardContactReasonFragmentDoc = `
493
501
  `;
494
502
  exports.AiAgentApprovalFragmentDoc = `
495
503
  fragment aiAgentApproval on AiAgentApproval {
496
- agentId
504
+ aiAgentId
497
505
  sessionId
498
506
  toolId
499
507
  toolName
@@ -510,7 +518,7 @@ exports.AiAgentApprovalFragmentDoc = `
510
518
  exports.AiAgentCheckRunFragmentDoc = `
511
519
  fragment aiAgentCheckRun on AiAgentCheckRun {
512
520
  runId
513
- agentId
521
+ aiAgentId
514
522
  version
515
523
  status
516
524
  requestedAt
@@ -572,7 +580,7 @@ exports.AiAgentCheckRunFragmentDoc = `
572
580
  `;
573
581
  exports.AiAgentMetricsReportFragmentDoc = `
574
582
  fragment aiAgentMetricsReport on AiAgentMetrics {
575
- agentId
583
+ aiAgentId
576
584
  from
577
585
  to
578
586
  truncated
@@ -596,6 +604,8 @@ exports.AiAgentMetricsReportFragmentDoc = `
596
604
  unresolvedRate
597
605
  handoffProcedureRate
598
606
  handoffNeedRate
607
+ qualifiedLeadRate
608
+ offerAcceptedRate
599
609
  abandonmentRate
600
610
  classificationDefinitionVersion
601
611
  classificationDefinitionVersions {
@@ -746,8 +756,8 @@ exports.ListAiAgentsDocument = `
746
756
  }
747
757
  ${exports.AiAgentSummaryFragmentDoc}`;
748
758
  exports.ListAiAgentVersionsDocument = `
749
- query listAiAgentVersions($agentId: ID!) {
750
- listAiAgentVersions(agentId: $agentId) {
759
+ query listAiAgentVersions($aiAgentId: ID!) {
760
+ listAiAgentVersions(aiAgentId: $aiAgentId) {
751
761
  ...aiAgentVersion
752
762
  }
753
763
  }
@@ -815,15 +825,15 @@ exports.RemoveAiAgentDocument = `
815
825
  }
816
826
  `;
817
827
  exports.ListAiAgentUseCasesDocument = `
818
- query listAiAgentUseCases($agentId: ID!) {
819
- listAiAgentUseCases(agentId: $agentId) {
828
+ query listAiAgentUseCases($aiAgentId: ID!) {
829
+ listAiAgentUseCases(aiAgentId: $aiAgentId) {
820
830
  ...aiAgentUseCase
821
831
  }
822
832
  }
823
833
  ${exports.AiAgentUseCaseFragmentDoc}`;
824
834
  exports.ListAiAgentProceduresDocument = `
825
- query listAiAgentProcedures($agentId: ID!) {
826
- listAiAgentProcedures(agentId: $agentId) {
835
+ query listAiAgentProcedures($aiAgentId: ID!) {
836
+ listAiAgentProcedures(aiAgentId: $aiAgentId) {
827
837
  ...aiAgentProcedure
828
838
  }
829
839
  }
@@ -836,8 +846,8 @@ exports.ListAiAgentToolsDocument = `
836
846
  }
837
847
  ${exports.AiAgentToolFragmentDoc}`;
838
848
  exports.AiAgentUseCaseOverlapDocument = `
839
- query aiAgentUseCaseOverlap($agentId: ID!) {
840
- aiAgentUseCaseOverlap(agentId: $agentId) {
849
+ query aiAgentUseCaseOverlap($aiAgentId: ID!) {
850
+ aiAgentUseCaseOverlap(aiAgentId: $aiAgentId) {
841
851
  threshold
842
852
  pairs {
843
853
  left
@@ -856,8 +866,8 @@ exports.AiAgentTraceDocument = `
856
866
  ${exports.AiAgentTraceFragmentDoc}
857
867
  ${exports.AiAgentToolExclusionFragmentDoc}`;
858
868
  exports.ListAiAgentScenariosDocument = `
859
- query listAiAgentScenarios($agentId: ID!) {
860
- listAiAgentScenarios(agentId: $agentId) {
869
+ query listAiAgentScenarios($aiAgentId: ID!) {
870
+ listAiAgentScenarios(aiAgentId: $aiAgentId) {
861
871
  ...aiAgentScenario
862
872
  }
863
873
  }
@@ -956,7 +966,7 @@ exports.AiAgentMetricsSeriesDocument = `
956
966
  exports.AiAgentDashboardDocument = `
957
967
  query aiAgentDashboard($input: AiAgentDashboardInput!) {
958
968
  aiAgentDashboard(input: $input) {
959
- agentId
969
+ aiAgentId
960
970
  timezone
961
971
  window {
962
972
  from
@@ -982,6 +992,12 @@ exports.AiAgentDashboardDocument = `
982
992
  handoffNeed {
983
993
  ...aiAgentDashboardIndicator
984
994
  }
995
+ qualifiedLead {
996
+ ...aiAgentDashboardIndicator
997
+ }
998
+ offerAccepted {
999
+ ...aiAgentDashboardIndicator
1000
+ }
985
1001
  abandonment {
986
1002
  ...aiAgentDashboardIndicator
987
1003
  }
@@ -1069,7 +1085,7 @@ exports.AiAgentConversationOutcomeDocument = `
1069
1085
  ) {
1070
1086
  conversationId
1071
1087
  sessionId
1072
- agentId
1088
+ aiAgentId
1073
1089
  agentVersion
1074
1090
  resolution
1075
1091
  resolutionDefinition
@@ -1167,8 +1183,8 @@ exports.RememberAiAgentSessionFactsDocument = `
1167
1183
  }
1168
1184
  `;
1169
1185
  exports.ListAiAgentApprovalsDocument = `
1170
- query listAiAgentApprovals($agentId: ID!, $status: AiAgentApprovalStatus) {
1171
- listAiAgentApprovals(agentId: $agentId, status: $status) {
1186
+ query listAiAgentApprovals($aiAgentId: ID!, $status: AiAgentApprovalStatus) {
1187
+ listAiAgentApprovals(aiAgentId: $aiAgentId, status: $status) {
1172
1188
  ...aiAgentApproval
1173
1189
  }
1174
1190
  }
@@ -1211,16 +1227,16 @@ exports.CheckAiAgentVersionDocument = `
1211
1227
  ${exports.AiAgentCheckRunFragmentDoc}
1212
1228
  ${exports.AiAgentToolExclusionFragmentDoc}`;
1213
1229
  exports.GetAiAgentCheckRunDocument = `
1214
- query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {
1215
- getAiAgentCheckRun(agentId: $agentId, runId: $runId) {
1230
+ query getAiAgentCheckRun($aiAgentId: ID!, $runId: ID!) {
1231
+ getAiAgentCheckRun(aiAgentId: $aiAgentId, runId: $runId) {
1216
1232
  ...aiAgentCheckRun
1217
1233
  }
1218
1234
  }
1219
1235
  ${exports.AiAgentCheckRunFragmentDoc}
1220
1236
  ${exports.AiAgentToolExclusionFragmentDoc}`;
1221
1237
  exports.AiAgentCheckLimitsDocument = `
1222
- query aiAgentCheckLimits($agentId: ID!) {
1223
- aiAgentCheckLimits(agentId: $agentId) {
1238
+ query aiAgentCheckLimits($aiAgentId: ID!) {
1239
+ aiAgentCheckLimits(aiAgentId: $aiAgentId) {
1224
1240
  minRunsPerScenario
1225
1241
  maxRunsPerScenario
1226
1242
  maxSuiteRuns
@@ -1236,8 +1252,8 @@ exports.AiAgentMetricsDocument = `
1236
1252
  }
1237
1253
  ${exports.AiAgentMetricsReportFragmentDoc}`;
1238
1254
  exports.AiAgentVersionSpecDocument = `
1239
- query aiAgentVersionSpec($agentId: ID!) {
1240
- listAiAgentVersions(agentId: $agentId) {
1255
+ query aiAgentVersionSpec($aiAgentId: ID!) {
1256
+ listAiAgentVersions(aiAgentId: $aiAgentId) {
1241
1257
  ...aiAgentVersionWithSpec
1242
1258
  }
1243
1259
  }
@@ -227,6 +227,7 @@ export type CreateDrozBotTicketInput = {
227
227
  /** @deprecated Use aiAgentId */
228
228
  agentId?: InputMaybe<Scalars['ID']['input']>;
229
229
  aiAgentId?: InputMaybe<Scalars['ID']['input']>;
230
+ campaign?: InputMaybe<DrozBotCampaignInput>;
230
231
  channel?: InputMaybe<ConversationChannelKind>;
231
232
  collectedFacts?: InputMaybe<Scalars['JSON']['input']>;
232
233
  comment?: InputMaybe<Scalars['String']['input']>;
@@ -255,6 +256,11 @@ export declare enum DrozBotAssessType {
255
256
  Csat = "CSAT",
256
257
  Nps = "NPS"
257
258
  }
259
+ export type DrozBotCampaignInput = {
260
+ message?: InputMaybe<Scalars['String']['input']>;
261
+ name?: InputMaybe<Scalars['String']['input']>;
262
+ offer?: InputMaybe<Scalars['String']['input']>;
263
+ };
258
264
  export type DrozBotCustomer = {
259
265
  id: Scalars['ID']['output'];
260
266
  name: Scalars['String']['output'];