@droz-js/sdk 0.26.17 → 0.26.19

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.26.17",
4
+ "version": "0.26.19",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
@@ -121,6 +121,28 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
121
121
  removeEnvironmentParameter(variables: import("./sdks/drozcommons").Exact<{
122
122
  input: import("./sdks/drozcommons").RemoveEnvironmentParameterInput;
123
123
  }>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveEnvironmentParameterMutation>;
124
+ listPlatformTexts(variables?: import("./sdks/drozcommons").Exact<{
125
+ [key: string]: never;
126
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListPlatformTextsQuery>;
127
+ listPlatformTextVersions(variables: import("./sdks/drozcommons").Exact<{
128
+ key: import("./sdks/drozcommons").PlatformTextKey;
129
+ tenantId?: import("./sdks/drozcommons").InputMaybe<import("./sdks/drozcommons").Scalars["String"]["input"]>;
130
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").ListPlatformTextVersionsQuery>;
131
+ platformTextPublishImpact(variables: import("./sdks/drozcommons").Exact<{
132
+ key: import("./sdks/drozcommons").PlatformTextKey;
133
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").PlatformTextPublishImpactQuery>;
134
+ draftPlatformText(variables: import("./sdks/drozcommons").Exact<{
135
+ input: import("./sdks/drozcommons").DraftPlatformTextInput;
136
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").DraftPlatformTextMutation>;
137
+ publishPlatformTextVersion(variables: import("./sdks/drozcommons").Exact<{
138
+ input: import("./sdks/drozcommons").PlatformTextVersionRefInput;
139
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").PublishPlatformTextVersionMutation>;
140
+ rollbackPlatformTextVersion(variables: import("./sdks/drozcommons").Exact<{
141
+ input: import("./sdks/drozcommons").PlatformTextVersionRefInput;
142
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").RollbackPlatformTextVersionMutation>;
143
+ removePlatformTextOverride(variables: import("./sdks/drozcommons").Exact<{
144
+ input: import("./sdks/drozcommons").RemovePlatformTextOverrideInput;
145
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").RemovePlatformTextOverrideMutation>;
124
146
  listQueueHealthSummary(variables?: import("./sdks/drozcommons").Exact<{
125
147
  [key: string]: never;
126
148
  }>, options?: unknown): Promise<import("./sdks/drozcommons").ListQueueHealthSummaryQuery>;
package/src/drozai.d.ts CHANGED
@@ -61,6 +61,15 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
61
61
  aiAgentRetentionPolicy(variables?: import("./sdks/ai").Exact<{
62
62
  [key: string]: never;
63
63
  }>, options?: unknown): Promise<import("./sdks/ai").AiAgentRetentionPolicyQuery>;
64
+ setAiAgentBusinessHours(variables: import("./sdks/ai").Exact<{
65
+ input: import("./sdks/ai").SetAiAgentBusinessHoursInput;
66
+ }>, options?: unknown): Promise<import("./sdks/ai").SetAiAgentBusinessHoursMutation>;
67
+ aiAgentApprovalQueueAlerts(variables?: import("./sdks/ai").Exact<{
68
+ [key: string]: never;
69
+ }>, options?: unknown): Promise<import("./sdks/ai").AiAgentApprovalQueueAlertsQuery>;
70
+ aiAgentBusinessHours(variables?: import("./sdks/ai").Exact<{
71
+ [key: string]: never;
72
+ }>, options?: unknown): Promise<import("./sdks/ai").AiAgentBusinessHoursQuery>;
64
73
  aiAgentConversationMetrics(variables: import("./sdks/ai").Exact<{
65
74
  input: import("./sdks/ai").AiAgentConversationMetricsInput;
66
75
  }>, options?: unknown): Promise<import("./sdks/ai").AiAgentConversationMetricsQuery>;
package/src/sdks/ai.d.ts CHANGED
@@ -168,11 +168,24 @@ export type AiAgentApprovalPage = {
168
168
  nextCursor?: Maybe<Scalars['String']['output']>;
169
169
  nodes: Array<AiAgentApproval>;
170
170
  };
171
+ export type AiAgentApprovalQueueAlert = {
172
+ aiAgentId: Scalars['ID']['output'];
173
+ approvalQueueId: Scalars['ID']['output'];
174
+ procedureId: Scalars['ID']['output'];
175
+ procedureName: Scalars['String']['output'];
176
+ };
177
+ export declare enum AiAgentApprovalRouting {
178
+ Chat = "CHAT",
179
+ Legacy = "LEGACY"
180
+ }
171
181
  export declare enum AiAgentApprovalStatus {
172
182
  Approved = "approved",
183
+ Cancelled = "cancelled",
173
184
  Expired = "expired",
174
185
  Pending = "pending",
175
- Rejected = "rejected"
186
+ Rejected = "rejected",
187
+ Requesting = "requesting",
188
+ Unavailable = "unavailable"
176
189
  }
177
190
  export type AiAgentAuthoringRefInput = {
178
191
  aiAgentId: Scalars['ID']['input'];
@@ -184,6 +197,7 @@ export type AiAgentAuthoringRules = {
184
197
  maxAuthoredFieldLength: Scalars['Int']['output'];
185
198
  maxAutomaticMessageChars: Scalars['Int']['output'];
186
199
  maxReplySubjectChars: Scalars['Int']['output'];
200
+ maxToneNotesLength: Scalars['Int']['output'];
187
201
  };
188
202
  export type AiAgentBudget = {
189
203
  maxCostMicroUsd?: Maybe<Scalars['Int']['output']>;
@@ -201,6 +215,57 @@ export type AiAgentBudgetInput = {
201
215
  maxToolCalls: Scalars['Int']['input'];
202
216
  onExceeded: BudgetExceededAction;
203
217
  };
218
+ export type AiAgentBusinessHours = {
219
+ alert?: Maybe<AiAgentBusinessHoursAlert>;
220
+ days: Array<AiAgentBusinessHoursDay>;
221
+ product?: Maybe<Scalars['String']['output']>;
222
+ receivedAt?: Maybe<Scalars['DateTime']['output']>;
223
+ recordId?: Maybe<Scalars['String']['output']>;
224
+ source: AiAgentBusinessHoursSource;
225
+ status: AiAgentBusinessHoursStatus;
226
+ };
227
+ export declare enum AiAgentBusinessHoursAlert {
228
+ NotConfigured = "NOT_CONFIGURED",
229
+ NotReceived = "NOT_RECEIVED",
230
+ NoDayOn = "NO_DAY_ON",
231
+ RecordRenamed = "RECORD_RENAMED"
232
+ }
233
+ export type AiAgentBusinessHoursDay = {
234
+ enabled: Scalars['Boolean']['output'];
235
+ slots: Array<AiAgentBusinessHoursSlot>;
236
+ weekday: AiAgentBusinessHoursWeekday;
237
+ };
238
+ export type AiAgentBusinessHoursDayInput = {
239
+ enabled: Scalars['Boolean']['input'];
240
+ slots: Array<AiAgentBusinessHoursSlotInput>;
241
+ weekday: AiAgentBusinessHoursWeekday;
242
+ };
243
+ export type AiAgentBusinessHoursSlot = {
244
+ end: Scalars['String']['output'];
245
+ start: Scalars['String']['output'];
246
+ };
247
+ export type AiAgentBusinessHoursSlotInput = {
248
+ end: Scalars['String']['input'];
249
+ start: Scalars['String']['input'];
250
+ };
251
+ export declare enum AiAgentBusinessHoursSource {
252
+ DrozChat = "DROZ_CHAT",
253
+ Manual = "MANUAL"
254
+ }
255
+ export declare enum AiAgentBusinessHoursStatus {
256
+ Inside = "INSIDE",
257
+ Outside = "OUTSIDE",
258
+ Unknown = "UNKNOWN"
259
+ }
260
+ export declare enum AiAgentBusinessHoursWeekday {
261
+ Friday = "FRIDAY",
262
+ Monday = "MONDAY",
263
+ Saturday = "SATURDAY",
264
+ Sunday = "SUNDAY",
265
+ Thursday = "THURSDAY",
266
+ Tuesday = "TUESDAY",
267
+ Wednesday = "WEDNESDAY"
268
+ }
204
269
  export type AiAgentCampaignInput = {
205
270
  message?: InputMaybe<Scalars['String']['input']>;
206
271
  name?: InputMaybe<Scalars['String']['input']>;
@@ -698,6 +763,7 @@ export type AiAgentObjectionInput = {
698
763
  response: Scalars['String']['input'];
699
764
  };
700
765
  export type AiAgentProcedure = {
766
+ approvalQueueId?: Maybe<Scalars['String']['output']>;
701
767
  approvedReplyTemplate?: Maybe<Scalars['String']['output']>;
702
768
  contingency: Scalars['String']['output'];
703
769
  continuesAfterApproval: Scalars['Boolean']['output'];
@@ -816,6 +882,7 @@ export declare enum AiAgentSortDirection {
816
882
  export type AiAgentSpec = {
817
883
  /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
818
884
  allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
885
+ approvalRouting: AiAgentApprovalRouting;
819
886
  budget: AiAgentBudget;
820
887
  can: Array<Scalars['String']['output']>;
821
888
  cannot: Array<Scalars['String']['output']>;
@@ -832,6 +899,7 @@ export type AiAgentSpec = {
832
899
  export type AiAgentSpecInput = {
833
900
  /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
834
901
  allowWriteTools?: InputMaybe<Scalars['Boolean']['input']>;
902
+ approvalRouting?: InputMaybe<AiAgentApprovalRouting>;
835
903
  budget: AiAgentBudgetInput;
836
904
  can: Array<Scalars['String']['input']>;
837
905
  cannot: Array<Scalars['String']['input']>;
@@ -848,6 +916,7 @@ export type AiAgentSpecInput = {
848
916
  export type AiAgentSummary = {
849
917
  aiAgentId: Scalars['ID']['output'];
850
918
  channels: Array<Scalars['String']['output']>;
919
+ hasHumanIntervention: Scalars['Boolean']['output'];
851
920
  liveVersion?: Maybe<Scalars['Int']['output']>;
852
921
  name: Scalars['String']['output'];
853
922
  queuedApprovals: Scalars['Number']['output'];
@@ -903,6 +972,7 @@ export type AiAgentToolParameter = {
903
972
  type: ToolParameterType;
904
973
  };
905
974
  export type AiAgentToolParameterInput = {
975
+ critical?: InputMaybe<Scalars['Boolean']['input']>;
906
976
  description: Scalars['String']['input'];
907
977
  format?: InputMaybe<ToolParameterFormat>;
908
978
  groundedBy?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -956,9 +1026,9 @@ export type AiAgentTrace = {
956
1026
  input: Scalars['String']['output'];
957
1027
  knowledgeOrigins: Array<Scalars['String']['output']>;
958
1028
  knowledgeQuery?: Maybe<Scalars['String']['output']>;
959
- masterRuleVersion?: Maybe<Scalars['Int']['output']>;
960
1029
  model?: Maybe<Scalars['String']['output']>;
961
1030
  outcome: Scalars['String']['output'];
1031
+ platformTextVersions?: Maybe<Scalars['String']['output']>;
962
1032
  promptBuilderVersion: Scalars['Int']['output'];
963
1033
  promptFingerprint?: Maybe<Scalars['String']['output']>;
964
1034
  reasoningEffort?: Maybe<Scalars['String']['output']>;
@@ -1106,6 +1176,7 @@ export type Mutation = {
1106
1176
  saveAiAgentProcedure: AiAgentProcedure;
1107
1177
  saveAiAgentScenario?: Maybe<AiAgentScenario>;
1108
1178
  saveAiAgentUseCase: AiAgentUseCase;
1179
+ setAiAgentBusinessHours: AiAgentBusinessHours;
1109
1180
  setAiAgentRetentionPolicy: AiAgentRetentionPolicy;
1110
1181
  unpublishAiAgentVersion: Array<AiAgentVersion>;
1111
1182
  unregisterAiAgentTool?: Maybe<Scalars['Boolean']['output']>;
@@ -1179,6 +1250,9 @@ export type MutationSaveAiAgentScenarioArgs = {
1179
1250
  export type MutationSaveAiAgentUseCaseArgs = {
1180
1251
  input: SaveAiAgentUseCaseInput;
1181
1252
  };
1253
+ export type MutationSetAiAgentBusinessHoursArgs = {
1254
+ input: SetAiAgentBusinessHoursInput;
1255
+ };
1182
1256
  export type MutationSetAiAgentRetentionPolicyArgs = {
1183
1257
  input: AiAgentRetentionPolicyInput;
1184
1258
  };
@@ -1246,7 +1320,9 @@ export type QnAInstance = {
1246
1320
  updatedAt: Scalars['DateTime']['output'];
1247
1321
  };
1248
1322
  export type Query = {
1323
+ aiAgentApprovalQueueAlerts: Array<AiAgentApprovalQueueAlert>;
1249
1324
  aiAgentAuthoringRules: AiAgentAuthoringRules;
1325
+ aiAgentBusinessHours: AiAgentBusinessHours;
1250
1326
  aiAgentCheckLimits: AiAgentCheckLimits;
1251
1327
  aiAgentConversationMetrics: AiAgentConversationMetricsPage;
1252
1328
  aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
@@ -1379,6 +1455,7 @@ export type ResolveAiAgentApprovalInput = {
1379
1455
  };
1380
1456
  export type SaveAiAgentProcedureInput = {
1381
1457
  aiAgentId: Scalars['ID']['input'];
1458
+ approvalQueueId?: InputMaybe<Scalars['String']['input']>;
1382
1459
  approvedReplyTemplate?: InputMaybe<Scalars['String']['input']>;
1383
1460
  contingency: Scalars['String']['input'];
1384
1461
  continuesAfterApproval?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1434,6 +1511,10 @@ export type SearchResultsStats = {
1434
1511
  searchTime: Scalars['Float']['output'];
1435
1512
  totalPages: Scalars['Float']['output'];
1436
1513
  };
1514
+ export type SetAiAgentBusinessHoursInput = {
1515
+ days?: InputMaybe<Array<AiAgentBusinessHoursDayInput>>;
1516
+ source: AiAgentBusinessHoursSource;
1517
+ };
1437
1518
  export type StringMatcher = {
1438
1519
  btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
1439
1520
  ct?: Maybe<Scalars['String']['output']>;
@@ -1512,6 +1593,10 @@ export declare enum ToolParameterType {
1512
1593
  export declare enum Typenames {
1513
1594
  AiAgentAnswerCache = "AiAgentAnswerCache",
1514
1595
  AiAgentApproval = "AiAgentApproval",
1596
+ AiAgentApprovalQueueCatalog = "AiAgentApprovalQueueCatalog",
1597
+ AiAgentApprovalSessionLock = "AiAgentApprovalSessionLock",
1598
+ AiAgentApprovalTaskKey = "AiAgentApprovalTaskKey",
1599
+ AiAgentBusinessHours = "AiAgentBusinessHours",
1515
1600
  AiAgentCheckRun = "AiAgentCheckRun",
1516
1601
  AiAgentConsumption = "AiAgentConsumption",
1517
1602
  AiAgentConsumptionMark = "AiAgentConsumptionMark",
@@ -1523,6 +1608,7 @@ export declare enum Typenames {
1523
1608
  AiAgentEvalReport = "AiAgentEvalReport",
1524
1609
  AiAgentExternalTermination = "AiAgentExternalTermination",
1525
1610
  AiAgentOpenConversation = "AiAgentOpenConversation",
1611
+ AiAgentPhoneBinding = "AiAgentPhoneBinding",
1526
1612
  AiAgentProcedure = "AiAgentProcedure",
1527
1613
  AiAgentRetentionPolicy = "AiAgentRetentionPolicy",
1528
1614
  AiAgentScenario = "AiAgentScenario",
@@ -1553,9 +1639,9 @@ export type UpdateQnAInstanceInput = {
1553
1639
  name?: InputMaybe<Scalars['String']['input']>;
1554
1640
  tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>;
1555
1641
  };
1556
- export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'aiAgentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
1642
+ export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'aiAgentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'hasHumanIntervention' | 'status'>;
1557
1643
  export type AiAgentVersionFragment = Pick<AiAgentVersion, 'aiAgentId' | 'version' | 'status' | 'createdAt'>;
1558
- export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator'> & {
1644
+ export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator' | 'approvalRouting'> & {
1559
1645
  identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
1560
1646
  budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
1561
1647
  handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target' | 'toolFailureMessage'>>;
@@ -1625,7 +1711,7 @@ export type RemoveAiAgentMutationVariables = Exact<{
1625
1711
  }>;
1626
1712
  export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
1627
1713
  export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'tag' | 'status' | 'updatedAt'>;
1628
- export type AiAgentProcedureFragment = (Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'objective' | 'nextStep' | 'status' | 'updatedAt'> & {
1714
+ export type AiAgentProcedureFragment = (Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvalQueueId' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'objective' | 'nextStep' | 'status' | 'updatedAt'> & {
1629
1715
  objections: Array<Pick<AiAgentObjection, 'objection' | 'response'>>;
1630
1716
  });
1631
1717
  export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'concludedWhen' | 'emptyResultMessage' | 'customerScope' | 'returns' | 'deliverAsIs' | 'approvalMode'> & {
@@ -1633,7 +1719,7 @@ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'descri
1633
1719
  confirmation?: Maybe<Pick<AiAgentToolConfirmation, 'summaryField' | 'tokenField' | 'tokenArg'>>;
1634
1720
  parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding' | 'format'>>;
1635
1721
  });
1636
- export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'aiAgentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'knowledgeQuery' | 'outcome' | 'haltReason' | 'handoffHeld' | 'unbackedClaim' | 'unbackedClaimKinds' | 'steps' | 'answer' | 'startedAt' | 'model' | 'reasoningEffort'> & {
1722
+ export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'aiAgentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'platformTextVersions' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'knowledgeQuery' | 'outcome' | 'haltReason' | 'handoffHeld' | 'unbackedClaim' | 'unbackedClaimKinds' | 'steps' | 'answer' | 'startedAt' | 'model' | 'reasoningEffort'> & {
1637
1723
  excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
1638
1724
  toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass' | 'held'>>;
1639
1725
  });
@@ -1697,6 +1783,29 @@ export type AiAgentRetentionPolicyQuery = {
1697
1783
  days: Pick<AiAgentRetentionDays, 'transcript' | 'session_state' | 'long_term_memory'>;
1698
1784
  });
1699
1785
  };
1786
+ export type AiAgentBusinessHoursFragment = (Pick<AiAgentBusinessHours, 'source' | 'product' | 'recordId' | 'status' | 'alert' | 'receivedAt'> & {
1787
+ days: Array<(Pick<AiAgentBusinessHoursDay, 'weekday' | 'enabled'> & {
1788
+ slots: Array<Pick<AiAgentBusinessHoursSlot, 'start' | 'end'>>;
1789
+ })>;
1790
+ });
1791
+ export type SetAiAgentBusinessHoursMutationVariables = Exact<{
1792
+ input: SetAiAgentBusinessHoursInput;
1793
+ }>;
1794
+ export type SetAiAgentBusinessHoursMutation = {
1795
+ setAiAgentBusinessHours: AiAgentBusinessHoursFragment;
1796
+ };
1797
+ export type AiAgentApprovalQueueAlertsQueryVariables = Exact<{
1798
+ [key: string]: never;
1799
+ }>;
1800
+ export type AiAgentApprovalQueueAlertsQuery = {
1801
+ aiAgentApprovalQueueAlerts: Array<Pick<AiAgentApprovalQueueAlert, 'aiAgentId' | 'procedureId' | 'procedureName' | 'approvalQueueId'>>;
1802
+ };
1803
+ export type AiAgentBusinessHoursQueryVariables = Exact<{
1804
+ [key: string]: never;
1805
+ }>;
1806
+ export type AiAgentBusinessHoursQuery = {
1807
+ aiAgentBusinessHours: AiAgentBusinessHoursFragment;
1808
+ };
1700
1809
  export type AiAgentConversationMetricsQueryVariables = Exact<{
1701
1810
  input: AiAgentConversationMetricsInput;
1702
1811
  }>;
@@ -1875,7 +1984,7 @@ export type AiAgentAuthoringRulesQueryVariables = Exact<{
1875
1984
  [key: string]: never;
1876
1985
  }>;
1877
1986
  export type AiAgentAuthoringRulesQuery = {
1878
- aiAgentAuthoringRules: Pick<AiAgentAuthoringRules, 'maxAuthoredFieldLength' | 'maxAutomaticMessageChars' | 'maxReplySubjectChars' | 'knowledgeFallbacks' | 'defaultKnowledgeFallback'>;
1987
+ aiAgentAuthoringRules: Pick<AiAgentAuthoringRules, 'maxAuthoredFieldLength' | 'maxToneNotesLength' | 'maxAutomaticMessageChars' | 'maxReplySubjectChars' | 'knowledgeFallbacks' | 'defaultKnowledgeFallback'>;
1879
1988
  };
1880
1989
  export type AiAgentCheckLimitsQueryVariables = Exact<{
1881
1990
  aiAgentId: Scalars['ID']['input'];
@@ -1992,17 +2101,18 @@ export type RemoveQnAInstanceMutationVariables = Exact<{
1992
2101
  export type RemoveQnAInstanceMutation = {
1993
2102
  removeQnAInstance?: Maybe<QnaFragmentFragment>;
1994
2103
  };
1995
- 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 ";
2104
+ export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n aiAgentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n hasHumanIntervention\n status\n}\n ";
1996
2105
  export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\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 toolFailureMessage\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 ";
2106
+ 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 toolFailureMessage\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 approvalRouting\n}\n ";
1998
2107
  export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
1999
2108
  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 ";
2000
2109
  export declare const AiAgentListingMetricsFieldsFragmentDoc = "\n fragment aiAgentListingMetricsFields on AiAgentListingMetrics {\n aiAgentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolvedRate\n costMicroUsd\n}\n ";
2001
2110
  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 ";
2002
- 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 objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
2111
+ 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 approvalQueueId\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
2003
2112
  export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n concludedWhen\n emptyResultMessage\n customerScope\n recordOwner {\n listPath\n ownerField\n ownerParameters\n }\n returns\n deliverAsIs\n approvalMode\n confirmation {\n summaryField\n tokenField\n tokenArg\n }\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
2004
- 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 unbackedClaim\n unbackedClaimKinds\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 held\n }\n}\n ";
2113
+ export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n platformTextVersions\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n unbackedClaim\n unbackedClaimKinds\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 held\n }\n}\n ";
2005
2114
  export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2115
+ export declare const AiAgentBusinessHoursFragmentDoc = "\n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n}\n ";
2006
2116
  export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
2007
2117
  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 ";
2008
2118
  export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
@@ -2010,7 +2120,7 @@ export declare const AiAgentApprovalFragmentDoc = "\n fragment aiAgentApprova
2010
2120
  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 heldCalls {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
2011
2121
  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 ";
2012
2122
  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 ";
2013
- 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 ";
2123
+ 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 hasHumanIntervention\n status\n}\n ";
2014
2124
  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 ";
2015
2125
  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 resolvedRate\n costMicroUsd\n}\n ";
2016
2126
  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 ";
@@ -2020,20 +2130,23 @@ export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAi
2020
2130
  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 ";
2021
2131
  export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
2022
2132
  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 ";
2023
- 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 objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
2133
+ 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 approvalQueueId\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
2024
2134
  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 concludedWhen\n emptyResultMessage\n customerScope\n recordOwner {\n listPath\n ownerField\n ownerParameters\n }\n returns\n deliverAsIs\n approvalMode\n confirmation {\n summaryField\n tokenField\n tokenArg\n }\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
2025
2135
  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 ";
2026
- 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 unbackedClaim\n unbackedClaimKinds\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 held\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2136
+ 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 platformTextVersions\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n unbackedClaim\n unbackedClaimKinds\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 held\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2027
2137
  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 ";
2028
2138
  export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
2029
2139
  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 ";
2030
2140
  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 ";
2141
+ export declare const SetAiAgentBusinessHoursDocument = "\n mutation setAiAgentBusinessHours($input: SetAiAgentBusinessHoursInput!) {\n setAiAgentBusinessHours(input: $input) {\n ...aiAgentBusinessHours\n }\n}\n \n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n}\n ";
2142
+ export declare const AiAgentApprovalQueueAlertsDocument = "\n query aiAgentApprovalQueueAlerts {\n aiAgentApprovalQueueAlerts {\n aiAgentId\n procedureId\n procedureName\n approvalQueueId\n }\n}\n ";
2143
+ export declare const AiAgentBusinessHoursDocument = "\n query aiAgentBusinessHours {\n aiAgentBusinessHours {\n ...aiAgentBusinessHours\n }\n}\n \n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n}\n ";
2031
2144
  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 ";
2032
2145
  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 ";
2033
2146
  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 ";
2034
2147
  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 ";
2035
2148
  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 ";
2036
- 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 objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
2149
+ 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 approvalQueueId\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
2037
2150
  export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
2038
2151
  export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
2039
2152
  export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
@@ -2047,9 +2160,9 @@ export declare const RemoveAiAgentScenarioDocument = "\n mutation removeAiAge
2047
2160
  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 ";
2048
2161
  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 heldCalls {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2049
2162
  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 heldCalls {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2050
- export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n maxAutomaticMessageChars\n maxReplySubjectChars\n knowledgeFallbacks\n defaultKnowledgeFallback\n }\n}\n ";
2163
+ export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n maxToneNotesLength\n maxAutomaticMessageChars\n maxReplySubjectChars\n knowledgeFallbacks\n defaultKnowledgeFallback\n }\n}\n ";
2051
2164
  export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($aiAgentId: ID!) {\n aiAgentCheckLimits(aiAgentId: $aiAgentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
2052
- 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 toolFailureMessage\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 ";
2165
+ 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 toolFailureMessage\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 approvalRouting\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2053
2166
  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 ";
2054
2167
  export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
2055
2168
  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 ";
@@ -2085,6 +2198,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
2085
2198
  reindexAiAgentDashboard(variables: ReindexAiAgentDashboardMutationVariables, options?: C): Promise<ReindexAiAgentDashboardMutation>;
2086
2199
  setAiAgentRetentionPolicy(variables: SetAiAgentRetentionPolicyMutationVariables, options?: C): Promise<SetAiAgentRetentionPolicyMutation>;
2087
2200
  aiAgentRetentionPolicy(variables?: AiAgentRetentionPolicyQueryVariables, options?: C): Promise<AiAgentRetentionPolicyQuery>;
2201
+ setAiAgentBusinessHours(variables: SetAiAgentBusinessHoursMutationVariables, options?: C): Promise<SetAiAgentBusinessHoursMutation>;
2202
+ aiAgentApprovalQueueAlerts(variables?: AiAgentApprovalQueueAlertsQueryVariables, options?: C): Promise<AiAgentApprovalQueueAlertsQuery>;
2203
+ aiAgentBusinessHours(variables?: AiAgentBusinessHoursQueryVariables, options?: C): Promise<AiAgentBusinessHoursQuery>;
2088
2204
  aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
2089
2205
  aiAgentMetricsSeries(variables: AiAgentMetricsSeriesQueryVariables, options?: C): Promise<AiAgentMetricsSeriesQuery>;
2090
2206
  aiAgentDashboard(variables: AiAgentDashboardQueryVariables, options?: C): Promise<AiAgentDashboardQuery>;