@droz-js/sdk 0.26.22 → 0.26.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/drozai.d.ts +13 -0
- package/src/drozchat-ws.d.ts +47 -0
- package/src/drozchat.d.ts +47 -0
- package/src/sdks/ai.d.ts +183 -18
- package/src/sdks/ai.js +149 -3
- package/src/sdks/drozchat.d.ts +424 -0
- package/src/sdks/drozchat.js +328 -4
- package/src/sdks/drozcommons.d.ts +1 -0
- package/src/sdks/drozcommons.js +1 -0
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'];
|
|
@@ -202,6 +215,57 @@ export type AiAgentBudgetInput = {
|
|
|
202
215
|
maxToolCalls: Scalars['Int']['input'];
|
|
203
216
|
onExceeded: BudgetExceededAction;
|
|
204
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
|
+
}
|
|
205
269
|
export type AiAgentCampaignInput = {
|
|
206
270
|
message?: InputMaybe<Scalars['String']['input']>;
|
|
207
271
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -698,7 +762,18 @@ export type AiAgentObjectionInput = {
|
|
|
698
762
|
objection: Scalars['String']['input'];
|
|
699
763
|
response: Scalars['String']['input'];
|
|
700
764
|
};
|
|
765
|
+
export type AiAgentPlatformTextRef = {
|
|
766
|
+
key: AiAgentPromptTextKey;
|
|
767
|
+
scope: AiAgentPlatformTextScope;
|
|
768
|
+
version: Scalars['Int']['output'];
|
|
769
|
+
};
|
|
770
|
+
export declare enum AiAgentPlatformTextScope {
|
|
771
|
+
Code = "code",
|
|
772
|
+
Global = "global",
|
|
773
|
+
Tenant = "tenant"
|
|
774
|
+
}
|
|
701
775
|
export type AiAgentProcedure = {
|
|
776
|
+
approvalQueueId?: Maybe<Scalars['String']['output']>;
|
|
702
777
|
approvedReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
703
778
|
contingency: Scalars['String']['output'];
|
|
704
779
|
continuesAfterApproval: Scalars['Boolean']['output'];
|
|
@@ -717,6 +792,20 @@ export type AiAgentProcedure = {
|
|
|
717
792
|
toolIds: Array<Scalars['ID']['output']>;
|
|
718
793
|
updatedAt: Scalars['Number']['output'];
|
|
719
794
|
};
|
|
795
|
+
export declare enum AiAgentPromptTextKey {
|
|
796
|
+
CampaignHeader = "campaignHeader",
|
|
797
|
+
CannotTransfer = "cannotTransfer",
|
|
798
|
+
CustomerDataRule = "customerDataRule",
|
|
799
|
+
HeldHandoffRule = "heldHandoffRule",
|
|
800
|
+
MasterRule = "masterRule",
|
|
801
|
+
PersonalDataMarkerRule = "personalDataMarkerRule",
|
|
802
|
+
PrecedenceFooter = "precedenceFooter",
|
|
803
|
+
PrecedenceHeader = "precedenceHeader",
|
|
804
|
+
RefusalAcceptRule = "refusalAcceptRule",
|
|
805
|
+
RefusalRetryRule = "refusalRetryRule",
|
|
806
|
+
ReplyLanguageRule = "replyLanguageRule",
|
|
807
|
+
StopMessagesRule = "stopMessagesRule"
|
|
808
|
+
}
|
|
720
809
|
export type AiAgentRefInput = {
|
|
721
810
|
aiAgentId: Scalars['ID']['input'];
|
|
722
811
|
};
|
|
@@ -817,6 +906,7 @@ export declare enum AiAgentSortDirection {
|
|
|
817
906
|
export type AiAgentSpec = {
|
|
818
907
|
/** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
|
|
819
908
|
allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
|
|
909
|
+
approvalRouting: AiAgentApprovalRouting;
|
|
820
910
|
budget: AiAgentBudget;
|
|
821
911
|
can: Array<Scalars['String']['output']>;
|
|
822
912
|
cannot: Array<Scalars['String']['output']>;
|
|
@@ -833,6 +923,7 @@ export type AiAgentSpec = {
|
|
|
833
923
|
export type AiAgentSpecInput = {
|
|
834
924
|
/** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
|
|
835
925
|
allowWriteTools?: InputMaybe<Scalars['Boolean']['input']>;
|
|
926
|
+
approvalRouting?: InputMaybe<AiAgentApprovalRouting>;
|
|
836
927
|
budget: AiAgentBudgetInput;
|
|
837
928
|
can: Array<Scalars['String']['input']>;
|
|
838
929
|
cannot: Array<Scalars['String']['input']>;
|
|
@@ -849,6 +940,7 @@ export type AiAgentSpecInput = {
|
|
|
849
940
|
export type AiAgentSummary = {
|
|
850
941
|
aiAgentId: Scalars['ID']['output'];
|
|
851
942
|
channels: Array<Scalars['String']['output']>;
|
|
943
|
+
hasHumanIntervention: Scalars['Boolean']['output'];
|
|
852
944
|
liveVersion?: Maybe<Scalars['Int']['output']>;
|
|
853
945
|
name: Scalars['String']['output'];
|
|
854
946
|
queuedApprovals: Scalars['Number']['output'];
|
|
@@ -862,8 +954,6 @@ export declare enum AiAgentTechnicalFailure {
|
|
|
862
954
|
ToolUnavailable = "TOOL_UNAVAILABLE"
|
|
863
955
|
}
|
|
864
956
|
export type AiAgentTool = {
|
|
865
|
-
/** @deprecated Use approvalMode */
|
|
866
|
-
approval?: Maybe<Scalars['String']['output']>;
|
|
867
957
|
approvalMode?: Maybe<ToolApprovalMode>;
|
|
868
958
|
availability: ToolAvailability;
|
|
869
959
|
concludedWhen?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -904,6 +994,7 @@ export type AiAgentToolParameter = {
|
|
|
904
994
|
type: ToolParameterType;
|
|
905
995
|
};
|
|
906
996
|
export type AiAgentToolParameterInput = {
|
|
997
|
+
critical?: InputMaybe<Scalars['Boolean']['input']>;
|
|
907
998
|
description: Scalars['String']['input'];
|
|
908
999
|
format?: InputMaybe<ToolParameterFormat>;
|
|
909
1000
|
groundedBy?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -923,8 +1014,6 @@ export type AiAgentToolRecordOwnerInput = {
|
|
|
923
1014
|
ownerParameters: Array<Scalars['String']['input']>;
|
|
924
1015
|
};
|
|
925
1016
|
export type AiAgentToolSpecInput = {
|
|
926
|
-
/** @deprecated Use approvalMode */
|
|
927
|
-
approval?: InputMaybe<Scalars['String']['input']>;
|
|
928
1017
|
approvalMode?: InputMaybe<ToolApprovalMode>;
|
|
929
1018
|
availability: ToolAvailability;
|
|
930
1019
|
concludedWhen?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -946,6 +1035,7 @@ export type AiAgentToolSpecInput = {
|
|
|
946
1035
|
toolId: Scalars['ID']['input'];
|
|
947
1036
|
};
|
|
948
1037
|
export type AiAgentTrace = {
|
|
1038
|
+
agentPromptTexts: Array<AiAgentPlatformTextRef>;
|
|
949
1039
|
agentVersion: Scalars['String']['output'];
|
|
950
1040
|
aiAgentId: Scalars['ID']['output'];
|
|
951
1041
|
answer: Scalars['String']['output'];
|
|
@@ -981,11 +1071,23 @@ export type AiAgentTracedToolCall = {
|
|
|
981
1071
|
result: Scalars['String']['output'];
|
|
982
1072
|
toolId: Scalars['ID']['output'];
|
|
983
1073
|
};
|
|
1074
|
+
export declare enum AiAgentTranscriptAuthor {
|
|
1075
|
+
Agent = "agent",
|
|
1076
|
+
Bot = "bot",
|
|
1077
|
+
Customer = "customer",
|
|
1078
|
+
Opening = "opening"
|
|
1079
|
+
}
|
|
1080
|
+
export type AiAgentTranscriptMessage = {
|
|
1081
|
+
author: AiAgentTranscriptAuthor;
|
|
1082
|
+
startedAt: Scalars['Float']['output'];
|
|
1083
|
+
text: Scalars['String']['output'];
|
|
1084
|
+
};
|
|
984
1085
|
export declare enum AiAgentUnbackedClaimAction {
|
|
985
1086
|
Delivered = "delivered",
|
|
986
1087
|
Replaced = "replaced",
|
|
987
1088
|
Retried = "retried",
|
|
988
|
-
Transferred = "transferred"
|
|
1089
|
+
Transferred = "transferred",
|
|
1090
|
+
Trimmed = "trimmed"
|
|
989
1091
|
}
|
|
990
1092
|
export type AiAgentUseCase = {
|
|
991
1093
|
id: Scalars['ID']['output'];
|
|
@@ -1108,6 +1210,7 @@ export type Mutation = {
|
|
|
1108
1210
|
saveAiAgentProcedure: AiAgentProcedure;
|
|
1109
1211
|
saveAiAgentScenario?: Maybe<AiAgentScenario>;
|
|
1110
1212
|
saveAiAgentUseCase: AiAgentUseCase;
|
|
1213
|
+
setAiAgentBusinessHours: AiAgentBusinessHours;
|
|
1111
1214
|
setAiAgentRetentionPolicy: AiAgentRetentionPolicy;
|
|
1112
1215
|
unpublishAiAgentVersion: Array<AiAgentVersion>;
|
|
1113
1216
|
unregisterAiAgentTool?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1181,6 +1284,9 @@ export type MutationSaveAiAgentScenarioArgs = {
|
|
|
1181
1284
|
export type MutationSaveAiAgentUseCaseArgs = {
|
|
1182
1285
|
input: SaveAiAgentUseCaseInput;
|
|
1183
1286
|
};
|
|
1287
|
+
export type MutationSetAiAgentBusinessHoursArgs = {
|
|
1288
|
+
input: SetAiAgentBusinessHoursInput;
|
|
1289
|
+
};
|
|
1184
1290
|
export type MutationSetAiAgentRetentionPolicyArgs = {
|
|
1185
1291
|
input: AiAgentRetentionPolicyInput;
|
|
1186
1292
|
};
|
|
@@ -1235,6 +1341,7 @@ export type PageInfo = {
|
|
|
1235
1341
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
1236
1342
|
};
|
|
1237
1343
|
export declare enum ParameterGrounding {
|
|
1344
|
+
Chosen = "chosen",
|
|
1238
1345
|
Free = "free",
|
|
1239
1346
|
Required = "required"
|
|
1240
1347
|
}
|
|
@@ -1248,7 +1355,9 @@ export type QnAInstance = {
|
|
|
1248
1355
|
updatedAt: Scalars['DateTime']['output'];
|
|
1249
1356
|
};
|
|
1250
1357
|
export type Query = {
|
|
1358
|
+
aiAgentApprovalQueueAlerts: Array<AiAgentApprovalQueueAlert>;
|
|
1251
1359
|
aiAgentAuthoringRules: AiAgentAuthoringRules;
|
|
1360
|
+
aiAgentBusinessHours: AiAgentBusinessHours;
|
|
1252
1361
|
aiAgentCheckLimits: AiAgentCheckLimits;
|
|
1253
1362
|
aiAgentConversationMetrics: AiAgentConversationMetricsPage;
|
|
1254
1363
|
aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
|
|
@@ -1259,6 +1368,7 @@ export type Query = {
|
|
|
1259
1368
|
aiAgentRetentionPolicy: AiAgentRetentionPolicy;
|
|
1260
1369
|
aiAgentRoutingPreview: AiAgentRoutingPreview;
|
|
1261
1370
|
aiAgentTrace: Array<AiAgentTrace>;
|
|
1371
|
+
aiAgentTranscript: Array<AiAgentTranscriptMessage>;
|
|
1262
1372
|
aiAgentUseCaseOverlap: AiAgentUseCaseOverlap;
|
|
1263
1373
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
1264
1374
|
getAiAgentCheckRun?: Maybe<AiAgentCheckRun>;
|
|
@@ -1305,6 +1415,10 @@ export type QueryAiAgentTraceArgs = {
|
|
|
1305
1415
|
conversationId?: InputMaybe<Scalars['ID']['input']>;
|
|
1306
1416
|
sessionId: Scalars['ID']['input'];
|
|
1307
1417
|
};
|
|
1418
|
+
export type QueryAiAgentTranscriptArgs = {
|
|
1419
|
+
conversationId?: InputMaybe<Scalars['ID']['input']>;
|
|
1420
|
+
sessionId: Scalars['ID']['input'];
|
|
1421
|
+
};
|
|
1308
1422
|
export type QueryAiAgentUseCaseOverlapArgs = {
|
|
1309
1423
|
aiAgentId: Scalars['ID']['input'];
|
|
1310
1424
|
};
|
|
@@ -1381,6 +1495,7 @@ export type ResolveAiAgentApprovalInput = {
|
|
|
1381
1495
|
};
|
|
1382
1496
|
export type SaveAiAgentProcedureInput = {
|
|
1383
1497
|
aiAgentId: Scalars['ID']['input'];
|
|
1498
|
+
approvalQueueId?: InputMaybe<Scalars['String']['input']>;
|
|
1384
1499
|
approvedReplyTemplate?: InputMaybe<Scalars['String']['input']>;
|
|
1385
1500
|
contingency: Scalars['String']['input'];
|
|
1386
1501
|
continuesAfterApproval?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -1436,6 +1551,10 @@ export type SearchResultsStats = {
|
|
|
1436
1551
|
searchTime: Scalars['Float']['output'];
|
|
1437
1552
|
totalPages: Scalars['Float']['output'];
|
|
1438
1553
|
};
|
|
1554
|
+
export type SetAiAgentBusinessHoursInput = {
|
|
1555
|
+
days?: InputMaybe<Array<AiAgentBusinessHoursDayInput>>;
|
|
1556
|
+
source: AiAgentBusinessHoursSource;
|
|
1557
|
+
};
|
|
1439
1558
|
export type StringMatcher = {
|
|
1440
1559
|
btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
1441
1560
|
ct?: Maybe<Scalars['String']['output']>;
|
|
@@ -1514,6 +1633,10 @@ export declare enum ToolParameterType {
|
|
|
1514
1633
|
export declare enum Typenames {
|
|
1515
1634
|
AiAgentAnswerCache = "AiAgentAnswerCache",
|
|
1516
1635
|
AiAgentApproval = "AiAgentApproval",
|
|
1636
|
+
AiAgentApprovalQueueCatalog = "AiAgentApprovalQueueCatalog",
|
|
1637
|
+
AiAgentApprovalSessionLock = "AiAgentApprovalSessionLock",
|
|
1638
|
+
AiAgentApprovalTaskKey = "AiAgentApprovalTaskKey",
|
|
1639
|
+
AiAgentBusinessHours = "AiAgentBusinessHours",
|
|
1517
1640
|
AiAgentCheckRun = "AiAgentCheckRun",
|
|
1518
1641
|
AiAgentConsumption = "AiAgentConsumption",
|
|
1519
1642
|
AiAgentConsumptionMark = "AiAgentConsumptionMark",
|
|
@@ -1556,9 +1679,9 @@ export type UpdateQnAInstanceInput = {
|
|
|
1556
1679
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1557
1680
|
tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1558
1681
|
};
|
|
1559
|
-
export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'aiAgentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
|
|
1682
|
+
export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'aiAgentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'hasHumanIntervention' | 'status'>;
|
|
1560
1683
|
export type AiAgentVersionFragment = Pick<AiAgentVersion, 'aiAgentId' | 'version' | 'status' | 'createdAt'>;
|
|
1561
|
-
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator'> & {
|
|
1684
|
+
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator' | 'approvalRouting'> & {
|
|
1562
1685
|
identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
|
|
1563
1686
|
budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
|
|
1564
1687
|
handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target' | 'toolFailureMessage'>>;
|
|
@@ -1628,7 +1751,7 @@ export type RemoveAiAgentMutationVariables = Exact<{
|
|
|
1628
1751
|
}>;
|
|
1629
1752
|
export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
|
|
1630
1753
|
export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'tag' | 'status' | 'updatedAt'>;
|
|
1631
|
-
export type AiAgentProcedureFragment = (Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'objective' | 'nextStep' | 'status' | 'updatedAt'> & {
|
|
1754
|
+
export type AiAgentProcedureFragment = (Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvalQueueId' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'objective' | 'nextStep' | 'status' | 'updatedAt'> & {
|
|
1632
1755
|
objections: Array<Pick<AiAgentObjection, 'objection' | 'response'>>;
|
|
1633
1756
|
});
|
|
1634
1757
|
export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'concludedWhen' | 'emptyResultMessage' | 'customerScope' | 'returns' | 'deliverAsIs' | 'approvalMode'> & {
|
|
@@ -1637,6 +1760,7 @@ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'descri
|
|
|
1637
1760
|
parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding' | 'format'>>;
|
|
1638
1761
|
});
|
|
1639
1762
|
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'> & {
|
|
1763
|
+
agentPromptTexts: Array<Pick<AiAgentPlatformTextRef, 'key' | 'scope' | 'version'>>;
|
|
1640
1764
|
excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
|
|
1641
1765
|
toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass' | 'held'>>;
|
|
1642
1766
|
});
|
|
@@ -1700,6 +1824,29 @@ export type AiAgentRetentionPolicyQuery = {
|
|
|
1700
1824
|
days: Pick<AiAgentRetentionDays, 'transcript' | 'session_state' | 'long_term_memory'>;
|
|
1701
1825
|
});
|
|
1702
1826
|
};
|
|
1827
|
+
export type AiAgentBusinessHoursFragment = (Pick<AiAgentBusinessHours, 'source' | 'product' | 'recordId' | 'status' | 'alert' | 'receivedAt'> & {
|
|
1828
|
+
days: Array<(Pick<AiAgentBusinessHoursDay, 'weekday' | 'enabled'> & {
|
|
1829
|
+
slots: Array<Pick<AiAgentBusinessHoursSlot, 'start' | 'end'>>;
|
|
1830
|
+
})>;
|
|
1831
|
+
});
|
|
1832
|
+
export type SetAiAgentBusinessHoursMutationVariables = Exact<{
|
|
1833
|
+
input: SetAiAgentBusinessHoursInput;
|
|
1834
|
+
}>;
|
|
1835
|
+
export type SetAiAgentBusinessHoursMutation = {
|
|
1836
|
+
setAiAgentBusinessHours: AiAgentBusinessHoursFragment;
|
|
1837
|
+
};
|
|
1838
|
+
export type AiAgentApprovalQueueAlertsQueryVariables = Exact<{
|
|
1839
|
+
[key: string]: never;
|
|
1840
|
+
}>;
|
|
1841
|
+
export type AiAgentApprovalQueueAlertsQuery = {
|
|
1842
|
+
aiAgentApprovalQueueAlerts: Array<Pick<AiAgentApprovalQueueAlert, 'aiAgentId' | 'procedureId' | 'procedureName' | 'approvalQueueId'>>;
|
|
1843
|
+
};
|
|
1844
|
+
export type AiAgentBusinessHoursQueryVariables = Exact<{
|
|
1845
|
+
[key: string]: never;
|
|
1846
|
+
}>;
|
|
1847
|
+
export type AiAgentBusinessHoursQuery = {
|
|
1848
|
+
aiAgentBusinessHours: AiAgentBusinessHoursFragment;
|
|
1849
|
+
};
|
|
1703
1850
|
export type AiAgentConversationMetricsQueryVariables = Exact<{
|
|
1704
1851
|
input: AiAgentConversationMetricsInput;
|
|
1705
1852
|
}>;
|
|
@@ -1906,6 +2053,14 @@ export type AiAgentKnowledgeBasesQueryVariables = Exact<{
|
|
|
1906
2053
|
export type AiAgentKnowledgeBasesQuery = {
|
|
1907
2054
|
aiAgentKnowledgeBases: Array<Pick<AiAgentKnowledgeBase, 'id' | 'title' | 'isPublic'>>;
|
|
1908
2055
|
};
|
|
2056
|
+
export type AiAgentTranscriptMessageFragment = Pick<AiAgentTranscriptMessage, 'author' | 'text' | 'startedAt'>;
|
|
2057
|
+
export type AiAgentTranscriptQueryVariables = Exact<{
|
|
2058
|
+
sessionId: Scalars['ID']['input'];
|
|
2059
|
+
conversationId?: InputMaybe<Scalars['ID']['input']>;
|
|
2060
|
+
}>;
|
|
2061
|
+
export type AiAgentTranscriptQuery = {
|
|
2062
|
+
aiAgentTranscript: Array<AiAgentTranscriptMessageFragment>;
|
|
2063
|
+
};
|
|
1909
2064
|
export type ExtractImageMetadataMutationVariables = Exact<{
|
|
1910
2065
|
input: ExtractImageMetadataInput;
|
|
1911
2066
|
}>;
|
|
@@ -1995,25 +2150,27 @@ export type RemoveQnAInstanceMutationVariables = Exact<{
|
|
|
1995
2150
|
export type RemoveQnAInstanceMutation = {
|
|
1996
2151
|
removeQnAInstance?: Maybe<QnaFragmentFragment>;
|
|
1997
2152
|
};
|
|
1998
|
-
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 ";
|
|
2153
|
+
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 ";
|
|
1999
2154
|
export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
|
|
2000
|
-
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 ";
|
|
2155
|
+
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 ";
|
|
2001
2156
|
export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2002
2157
|
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 ";
|
|
2003
2158
|
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 ";
|
|
2004
2159
|
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 ";
|
|
2005
|
-
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 ";
|
|
2160
|
+
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 ";
|
|
2006
2161
|
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 ";
|
|
2007
|
-
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 ";
|
|
2162
|
+
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n platformTextVersions\n agentPromptTexts {\n key\n scope\n version\n }\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 ";
|
|
2008
2163
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2164
|
+
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 ";
|
|
2009
2165
|
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2010
2166
|
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 ";
|
|
2011
2167
|
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
2012
2168
|
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 decidedByName\n decidedAt\n}\n ";
|
|
2013
2169
|
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 ";
|
|
2170
|
+
export declare const AiAgentTranscriptMessageFragmentDoc = "\n fragment aiAgentTranscriptMessage on AiAgentTranscriptMessage {\n author\n text\n startedAt\n}\n ";
|
|
2014
2171
|
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 ";
|
|
2015
2172
|
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 ";
|
|
2016
|
-
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 ";
|
|
2173
|
+
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 ";
|
|
2017
2174
|
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 ";
|
|
2018
2175
|
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 ";
|
|
2019
2176
|
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 ";
|
|
@@ -2023,20 +2180,23 @@ export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAi
|
|
|
2023
2180
|
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
2181
|
export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
|
|
2025
2182
|
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 ";
|
|
2026
|
-
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 ";
|
|
2183
|
+
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 ";
|
|
2027
2184
|
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 ";
|
|
2028
2185
|
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 ";
|
|
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 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 ";
|
|
2186
|
+
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 agentPromptTexts {\n key\n scope\n version\n }\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 ";
|
|
2030
2187
|
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
2188
|
export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
|
|
2032
2189
|
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
2190
|
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 ";
|
|
2191
|
+
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 ";
|
|
2192
|
+
export declare const AiAgentApprovalQueueAlertsDocument = "\n query aiAgentApprovalQueueAlerts {\n aiAgentApprovalQueueAlerts {\n aiAgentId\n procedureId\n procedureName\n approvalQueueId\n }\n}\n ";
|
|
2193
|
+
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 ";
|
|
2034
2194
|
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
2195
|
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
2196
|
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 ";
|
|
2037
2197
|
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
2198
|
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
|
-
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 ";
|
|
2199
|
+
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 ";
|
|
2040
2200
|
export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
|
|
2041
2201
|
export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
|
|
2042
2202
|
export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
|
|
@@ -2052,9 +2212,10 @@ export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentV
|
|
|
2052
2212
|
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 ";
|
|
2053
2213
|
export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n maxToneNotesLength\n maxAutomaticMessageChars\n maxReplySubjectChars\n knowledgeFallbacks\n defaultKnowledgeFallback\n }\n}\n ";
|
|
2054
2214
|
export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($aiAgentId: ID!) {\n aiAgentCheckLimits(aiAgentId: $aiAgentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
|
|
2055
|
-
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 ";
|
|
2215
|
+
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 ";
|
|
2056
2216
|
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 ";
|
|
2057
2217
|
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
|
|
2218
|
+
export declare const AiAgentTranscriptDocument = "\n query aiAgentTranscript($sessionId: ID!, $conversationId: ID) {\n aiAgentTranscript(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTranscriptMessage\n }\n}\n \n fragment aiAgentTranscriptMessage on AiAgentTranscriptMessage {\n author\n text\n startedAt\n}\n ";
|
|
2058
2219
|
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 ";
|
|
2059
2220
|
export declare const GetNlpInstanceDocument = "\n query getNlpInstance($id: ID!) {\n getNlpInstance(id: $id) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
2060
2221
|
export declare const ListNlpInstancesDocument = "\n query listNlpInstances {\n listNlpInstances {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -2088,6 +2249,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2088
2249
|
reindexAiAgentDashboard(variables: ReindexAiAgentDashboardMutationVariables, options?: C): Promise<ReindexAiAgentDashboardMutation>;
|
|
2089
2250
|
setAiAgentRetentionPolicy(variables: SetAiAgentRetentionPolicyMutationVariables, options?: C): Promise<SetAiAgentRetentionPolicyMutation>;
|
|
2090
2251
|
aiAgentRetentionPolicy(variables?: AiAgentRetentionPolicyQueryVariables, options?: C): Promise<AiAgentRetentionPolicyQuery>;
|
|
2252
|
+
setAiAgentBusinessHours(variables: SetAiAgentBusinessHoursMutationVariables, options?: C): Promise<SetAiAgentBusinessHoursMutation>;
|
|
2253
|
+
aiAgentApprovalQueueAlerts(variables?: AiAgentApprovalQueueAlertsQueryVariables, options?: C): Promise<AiAgentApprovalQueueAlertsQuery>;
|
|
2254
|
+
aiAgentBusinessHours(variables?: AiAgentBusinessHoursQueryVariables, options?: C): Promise<AiAgentBusinessHoursQuery>;
|
|
2091
2255
|
aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
|
|
2092
2256
|
aiAgentMetricsSeries(variables: AiAgentMetricsSeriesQueryVariables, options?: C): Promise<AiAgentMetricsSeriesQuery>;
|
|
2093
2257
|
aiAgentDashboard(variables: AiAgentDashboardQueryVariables, options?: C): Promise<AiAgentDashboardQuery>;
|
|
@@ -2112,6 +2276,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2112
2276
|
aiAgentVersionSpec(variables: AiAgentVersionSpecQueryVariables, options?: C): Promise<AiAgentVersionSpecQuery>;
|
|
2113
2277
|
aiAgentRoutingPreview(variables: AiAgentRoutingPreviewQueryVariables, options?: C): Promise<AiAgentRoutingPreviewQuery>;
|
|
2114
2278
|
aiAgentKnowledgeBases(variables?: AiAgentKnowledgeBasesQueryVariables, options?: C): Promise<AiAgentKnowledgeBasesQuery>;
|
|
2279
|
+
aiAgentTranscript(variables: AiAgentTranscriptQueryVariables, options?: C): Promise<AiAgentTranscriptQuery>;
|
|
2115
2280
|
extractImageMetadata(variables: ExtractImageMetadataMutationVariables, options?: C): Promise<ExtractImageMetadataMutation>;
|
|
2116
2281
|
getNlpInstance(variables: GetNlpInstanceQueryVariables, options?: C): Promise<GetNlpInstanceQuery>;
|
|
2117
2282
|
listNlpInstances(variables?: ListNlpInstancesQueryVariables, options?: C): Promise<ListNlpInstancesQuery>;
|