@droz-js/sdk 0.26.19 → 0.26.22

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.19",
4
+ "version": "0.26.22",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
@@ -140,9 +140,12 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
140
140
  rollbackPlatformTextVersion(variables: import("./sdks/drozcommons").Exact<{
141
141
  input: import("./sdks/drozcommons").PlatformTextVersionRefInput;
142
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>;
143
+ discardPlatformTextDraft(variables: import("./sdks/drozcommons").Exact<{
144
+ input: import("./sdks/drozcommons").PlatformTextVersionRefInput;
145
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").DiscardPlatformTextDraftMutation>;
146
+ unpublishPlatformText(variables: import("./sdks/drozcommons").Exact<{
147
+ input: import("./sdks/drozcommons").PlatformTextScopeInput;
148
+ }>, options?: unknown): Promise<import("./sdks/drozcommons").UnpublishPlatformTextMutation>;
146
149
  listQueueHealthSummary(variables?: import("./sdks/drozcommons").Exact<{
147
150
  [key: string]: never;
148
151
  }>, options?: unknown): Promise<import("./sdks/drozcommons").ListQueueHealthSummaryQuery>;
package/src/drozai.d.ts CHANGED
@@ -61,15 +61,6 @@ 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>;
73
64
  aiAgentConversationMetrics(variables: import("./sdks/ai").Exact<{
74
65
  input: import("./sdks/ai").AiAgentConversationMetricsInput;
75
66
  }>, options?: unknown): Promise<import("./sdks/ai").AiAgentConversationMetricsQuery>;
package/src/sdks/ai.d.ts CHANGED
@@ -168,24 +168,11 @@ 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
- }
181
171
  export declare enum AiAgentApprovalStatus {
182
172
  Approved = "approved",
183
- Cancelled = "cancelled",
184
173
  Expired = "expired",
185
174
  Pending = "pending",
186
- Rejected = "rejected",
187
- Requesting = "requesting",
188
- Unavailable = "unavailable"
175
+ Rejected = "rejected"
189
176
  }
190
177
  export type AiAgentAuthoringRefInput = {
191
178
  aiAgentId: Scalars['ID']['input'];
@@ -215,57 +202,6 @@ export type AiAgentBudgetInput = {
215
202
  maxToolCalls: Scalars['Int']['input'];
216
203
  onExceeded: BudgetExceededAction;
217
204
  };
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
- }
269
205
  export type AiAgentCampaignInput = {
270
206
  message?: InputMaybe<Scalars['String']['input']>;
271
207
  name?: InputMaybe<Scalars['String']['input']>;
@@ -763,7 +699,6 @@ export type AiAgentObjectionInput = {
763
699
  response: Scalars['String']['input'];
764
700
  };
765
701
  export type AiAgentProcedure = {
766
- approvalQueueId?: Maybe<Scalars['String']['output']>;
767
702
  approvedReplyTemplate?: Maybe<Scalars['String']['output']>;
768
703
  contingency: Scalars['String']['output'];
769
704
  continuesAfterApproval: Scalars['Boolean']['output'];
@@ -882,7 +817,6 @@ export declare enum AiAgentSortDirection {
882
817
  export type AiAgentSpec = {
883
818
  /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
884
819
  allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
885
- approvalRouting: AiAgentApprovalRouting;
886
820
  budget: AiAgentBudget;
887
821
  can: Array<Scalars['String']['output']>;
888
822
  cannot: Array<Scalars['String']['output']>;
@@ -899,7 +833,6 @@ export type AiAgentSpec = {
899
833
  export type AiAgentSpecInput = {
900
834
  /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
901
835
  allowWriteTools?: InputMaybe<Scalars['Boolean']['input']>;
902
- approvalRouting?: InputMaybe<AiAgentApprovalRouting>;
903
836
  budget: AiAgentBudgetInput;
904
837
  can: Array<Scalars['String']['input']>;
905
838
  cannot: Array<Scalars['String']['input']>;
@@ -916,7 +849,6 @@ export type AiAgentSpecInput = {
916
849
  export type AiAgentSummary = {
917
850
  aiAgentId: Scalars['ID']['output'];
918
851
  channels: Array<Scalars['String']['output']>;
919
- hasHumanIntervention: Scalars['Boolean']['output'];
920
852
  liveVersion?: Maybe<Scalars['Int']['output']>;
921
853
  name: Scalars['String']['output'];
922
854
  queuedApprovals: Scalars['Number']['output'];
@@ -972,7 +904,6 @@ export type AiAgentToolParameter = {
972
904
  type: ToolParameterType;
973
905
  };
974
906
  export type AiAgentToolParameterInput = {
975
- critical?: InputMaybe<Scalars['Boolean']['input']>;
976
907
  description: Scalars['String']['input'];
977
908
  format?: InputMaybe<ToolParameterFormat>;
978
909
  groundedBy?: InputMaybe<Array<Scalars['String']['input']>>;
@@ -1053,7 +984,8 @@ export type AiAgentTracedToolCall = {
1053
984
  export declare enum AiAgentUnbackedClaimAction {
1054
985
  Delivered = "delivered",
1055
986
  Replaced = "replaced",
1056
- Retried = "retried"
987
+ Retried = "retried",
988
+ Transferred = "transferred"
1057
989
  }
1058
990
  export type AiAgentUseCase = {
1059
991
  id: Scalars['ID']['output'];
@@ -1176,7 +1108,6 @@ export type Mutation = {
1176
1108
  saveAiAgentProcedure: AiAgentProcedure;
1177
1109
  saveAiAgentScenario?: Maybe<AiAgentScenario>;
1178
1110
  saveAiAgentUseCase: AiAgentUseCase;
1179
- setAiAgentBusinessHours: AiAgentBusinessHours;
1180
1111
  setAiAgentRetentionPolicy: AiAgentRetentionPolicy;
1181
1112
  unpublishAiAgentVersion: Array<AiAgentVersion>;
1182
1113
  unregisterAiAgentTool?: Maybe<Scalars['Boolean']['output']>;
@@ -1250,9 +1181,6 @@ export type MutationSaveAiAgentScenarioArgs = {
1250
1181
  export type MutationSaveAiAgentUseCaseArgs = {
1251
1182
  input: SaveAiAgentUseCaseInput;
1252
1183
  };
1253
- export type MutationSetAiAgentBusinessHoursArgs = {
1254
- input: SetAiAgentBusinessHoursInput;
1255
- };
1256
1184
  export type MutationSetAiAgentRetentionPolicyArgs = {
1257
1185
  input: AiAgentRetentionPolicyInput;
1258
1186
  };
@@ -1320,9 +1248,7 @@ export type QnAInstance = {
1320
1248
  updatedAt: Scalars['DateTime']['output'];
1321
1249
  };
1322
1250
  export type Query = {
1323
- aiAgentApprovalQueueAlerts: Array<AiAgentApprovalQueueAlert>;
1324
1251
  aiAgentAuthoringRules: AiAgentAuthoringRules;
1325
- aiAgentBusinessHours: AiAgentBusinessHours;
1326
1252
  aiAgentCheckLimits: AiAgentCheckLimits;
1327
1253
  aiAgentConversationMetrics: AiAgentConversationMetricsPage;
1328
1254
  aiAgentConversationOutcome?: Maybe<AiAgentConversationOutcome>;
@@ -1455,7 +1381,6 @@ export type ResolveAiAgentApprovalInput = {
1455
1381
  };
1456
1382
  export type SaveAiAgentProcedureInput = {
1457
1383
  aiAgentId: Scalars['ID']['input'];
1458
- approvalQueueId?: InputMaybe<Scalars['String']['input']>;
1459
1384
  approvedReplyTemplate?: InputMaybe<Scalars['String']['input']>;
1460
1385
  contingency: Scalars['String']['input'];
1461
1386
  continuesAfterApproval?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1511,10 +1436,6 @@ export type SearchResultsStats = {
1511
1436
  searchTime: Scalars['Float']['output'];
1512
1437
  totalPages: Scalars['Float']['output'];
1513
1438
  };
1514
- export type SetAiAgentBusinessHoursInput = {
1515
- days?: InputMaybe<Array<AiAgentBusinessHoursDayInput>>;
1516
- source: AiAgentBusinessHoursSource;
1517
- };
1518
1439
  export type StringMatcher = {
1519
1440
  btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
1520
1441
  ct?: Maybe<Scalars['String']['output']>;
@@ -1593,10 +1514,6 @@ export declare enum ToolParameterType {
1593
1514
  export declare enum Typenames {
1594
1515
  AiAgentAnswerCache = "AiAgentAnswerCache",
1595
1516
  AiAgentApproval = "AiAgentApproval",
1596
- AiAgentApprovalQueueCatalog = "AiAgentApprovalQueueCatalog",
1597
- AiAgentApprovalSessionLock = "AiAgentApprovalSessionLock",
1598
- AiAgentApprovalTaskKey = "AiAgentApprovalTaskKey",
1599
- AiAgentBusinessHours = "AiAgentBusinessHours",
1600
1517
  AiAgentCheckRun = "AiAgentCheckRun",
1601
1518
  AiAgentConsumption = "AiAgentConsumption",
1602
1519
  AiAgentConsumptionMark = "AiAgentConsumptionMark",
@@ -1639,9 +1556,9 @@ export type UpdateQnAInstanceInput = {
1639
1556
  name?: InputMaybe<Scalars['String']['input']>;
1640
1557
  tryToReplyOnTransition?: InputMaybe<Scalars['Boolean']['input']>;
1641
1558
  };
1642
- export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'aiAgentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'hasHumanIntervention' | 'status'>;
1559
+ export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'aiAgentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
1643
1560
  export type AiAgentVersionFragment = Pick<AiAgentVersion, 'aiAgentId' | 'version' | 'status' | 'createdAt'>;
1644
- export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator' | 'approvalRouting'> & {
1561
+ export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'typingIndicator'> & {
1645
1562
  identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
1646
1563
  budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
1647
1564
  handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target' | 'toolFailureMessage'>>;
@@ -1711,7 +1628,7 @@ export type RemoveAiAgentMutationVariables = Exact<{
1711
1628
  }>;
1712
1629
  export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
1713
1630
  export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'tag' | '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'> & {
1631
+ export type AiAgentProcedureFragment = (Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'objective' | 'nextStep' | 'status' | 'updatedAt'> & {
1715
1632
  objections: Array<Pick<AiAgentObjection, 'objection' | 'response'>>;
1716
1633
  });
1717
1634
  export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'concludedWhen' | 'emptyResultMessage' | 'customerScope' | 'returns' | 'deliverAsIs' | 'approvalMode'> & {
@@ -1783,29 +1700,6 @@ export type AiAgentRetentionPolicyQuery = {
1783
1700
  days: Pick<AiAgentRetentionDays, 'transcript' | 'session_state' | 'long_term_memory'>;
1784
1701
  });
1785
1702
  };
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
- };
1809
1703
  export type AiAgentConversationMetricsQueryVariables = Exact<{
1810
1704
  input: AiAgentConversationMetricsInput;
1811
1705
  }>;
@@ -2101,18 +1995,17 @@ export type RemoveQnAInstanceMutationVariables = Exact<{
2101
1995
  export type RemoveQnAInstanceMutation = {
2102
1996
  removeQnAInstance?: Maybe<QnaFragmentFragment>;
2103
1997
  };
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 ";
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 ";
2105
1999
  export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\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 ";
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 ";
2107
2001
  export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2108
2002
  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 ";
2109
2003
  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 ";
2110
2004
  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 ";
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 ";
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 ";
2112
2006
  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 ";
2113
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 ";
2114
2008
  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 ";
2116
2009
  export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
2117
2010
  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 ";
2118
2011
  export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
@@ -2120,7 +2013,7 @@ export declare const AiAgentApprovalFragmentDoc = "\n fragment aiAgentApprova
2120
2013
  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 ";
2121
2014
  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 ";
2122
2015
  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 ";
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 ";
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 ";
2124
2017
  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 ";
2125
2018
  export declare const AiAgentListingMetricsDocument = "\n query aiAgentListingMetrics($input: AiAgentMetricsWindowInput!) {\n aiAgentListingMetrics(input: $input) {\n ...aiAgentListingMetricsFields\n }\n}\n \n fragment aiAgentListingMetricsFields on AiAgentListingMetrics {\n aiAgentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolvedRate\n costMicroUsd\n}\n ";
2126
2019
  export declare const DraftAiAgentDocument = "\n mutation draftAiAgent($input: DraftAiAgentInput!) {\n draftAiAgent(input: $input) {\n ...aiAgentVersion\n excludedTools {\n ...aiAgentToolExclusion\n }\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
@@ -2130,7 +2023,7 @@ export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAi
2130
2023
  export declare const RemoveAiAgentVersionDocument = "\n mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {\n removeAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
2131
2024
  export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
2132
2025
  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 ";
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 ";
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 ";
2134
2027
  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 ";
2135
2028
  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 ";
2136
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 ";
@@ -2138,15 +2031,12 @@ export declare const ListAiAgentScenariosDocument = "\n query listAiAgentScen
2138
2031
  export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
2139
2032
  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 ";
2140
2033
  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 ";
2144
2034
  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 ";
2145
2035
  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 ";
2146
2036
  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 ";
2147
2037
  export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!, $conversationId: ID) {\n aiAgentConversationOutcome(\n sessionId: $sessionId\n conversationId: $conversationId\n ) {\n conversationId\n sessionId\n 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 ";
2148
2038
  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 ";
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 ";
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 ";
2150
2040
  export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
2151
2041
  export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
2152
2042
  export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
@@ -2162,7 +2052,7 @@ export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentV
2162
2052
  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 ";
2163
2053
  export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n maxToneNotesLength\n maxAutomaticMessageChars\n maxReplySubjectChars\n knowledgeFallbacks\n defaultKnowledgeFallback\n }\n}\n ";
2164
2054
  export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($aiAgentId: ID!) {\n aiAgentCheckLimits(aiAgentId: $aiAgentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\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 ";
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 ";
2166
2056
  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 ";
2167
2057
  export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
2168
2058
  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 ";
@@ -2198,9 +2088,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
2198
2088
  reindexAiAgentDashboard(variables: ReindexAiAgentDashboardMutationVariables, options?: C): Promise<ReindexAiAgentDashboardMutation>;
2199
2089
  setAiAgentRetentionPolicy(variables: SetAiAgentRetentionPolicyMutationVariables, options?: C): Promise<SetAiAgentRetentionPolicyMutation>;
2200
2090
  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>;
2204
2091
  aiAgentConversationMetrics(variables: AiAgentConversationMetricsQueryVariables, options?: C): Promise<AiAgentConversationMetricsQuery>;
2205
2092
  aiAgentMetricsSeries(variables: AiAgentMetricsSeriesQueryVariables, options?: C): Promise<AiAgentMetricsSeriesQuery>;
2206
2093
  aiAgentDashboard(variables: AiAgentDashboardQueryVariables, options?: C): Promise<AiAgentDashboardQuery>;
package/src/sdks/ai.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFieldsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolParameterFormat = exports.ToolEffect = exports.ToolAvailability = exports.ToolApprovalMode = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentVariationUnit = exports.AiAgentUnbackedClaimAction = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentMetricsBucket = exports.AiAgentMetricPolarity = exports.AiAgentKnowledgeFallback = exports.AiAgentHandoffReason = exports.AiAgentFrequencyLevel = exports.AiAgentExecutionAutonomy = exports.AiAgentConversationSubcategory = exports.AiAgentConversationStatus = exports.AiAgentConversationState = exports.AiAgentConversationSortField = exports.AiAgentConversationClass = exports.AiAgentContactReasonSource = exports.AiAgentCheckRunStatus = exports.AiAgentChannelType = exports.AiAgentBusinessHoursWeekday = exports.AiAgentBusinessHoursStatus = exports.AiAgentBusinessHoursSource = exports.AiAgentBusinessHoursAlert = exports.AiAgentApprovalStatus = exports.AiAgentApprovalRouting = exports.AiAgentApprovalOutcome = exports.AiAgentApprovalDecision = exports.AiAgentAnalysisFailureReason = exports.AiAgentActionClaim = void 0;
5
- exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.DecideAiAgentApprovalDocument = exports.ResolveAiAgentApprovalDocument = exports.ListAiAgentApprovalsPageDocument = exports.ListAiAgentApprovalsDocument = exports.RememberAiAgentSessionFactsDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentDashboardDocument = exports.AiAgentMetricsSeriesDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentBusinessHoursDocument = exports.AiAgentApprovalQueueAlertsDocument = exports.SetAiAgentBusinessHoursDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ReindexAiAgentDashboardDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentListingMetricsDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentApprovalFragmentDoc = exports.AiAgentDashboardContactReasonFragmentDoc = exports.AiAgentDashboardSentimentFragmentDoc = exports.AiAgentDashboardIndicatorFragmentDoc = exports.AiAgentBusinessHoursFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = void 0;
6
- exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentCheckLimitsDocument = exports.AiAgentAuthoringRulesDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = void 0;
4
+ exports.AiAgentDashboardIndicatorFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFieldsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolParameterFormat = exports.ToolEffect = exports.ToolAvailability = exports.ToolApprovalMode = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentVariationUnit = exports.AiAgentUnbackedClaimAction = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentMetricsBucket = exports.AiAgentMetricPolarity = exports.AiAgentKnowledgeFallback = exports.AiAgentHandoffReason = exports.AiAgentFrequencyLevel = exports.AiAgentExecutionAutonomy = exports.AiAgentConversationSubcategory = exports.AiAgentConversationStatus = exports.AiAgentConversationState = exports.AiAgentConversationSortField = exports.AiAgentConversationClass = exports.AiAgentContactReasonSource = exports.AiAgentCheckRunStatus = exports.AiAgentChannelType = exports.AiAgentApprovalStatus = exports.AiAgentApprovalOutcome = exports.AiAgentApprovalDecision = exports.AiAgentAnalysisFailureReason = exports.AiAgentActionClaim = void 0;
5
+ exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentCheckLimitsDocument = exports.AiAgentAuthoringRulesDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.DecideAiAgentApprovalDocument = exports.ResolveAiAgentApprovalDocument = exports.ListAiAgentApprovalsPageDocument = exports.ListAiAgentApprovalsDocument = exports.RememberAiAgentSessionFactsDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentDashboardDocument = exports.AiAgentMetricsSeriesDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ReindexAiAgentDashboardDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentListingMetricsDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentApprovalFragmentDoc = exports.AiAgentDashboardContactReasonFragmentDoc = exports.AiAgentDashboardSentimentFragmentDoc = void 0;
6
+ exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = void 0;
7
7
  exports.getSdk = getSdk;
8
8
  var AiAgentActionClaim;
9
9
  (function (AiAgentActionClaim) {
@@ -31,49 +31,13 @@ var AiAgentApprovalOutcome;
31
31
  AiAgentApprovalOutcome["TakenByOther"] = "takenByOther";
32
32
  AiAgentApprovalOutcome["ToolUnavailable"] = "toolUnavailable";
33
33
  })(AiAgentApprovalOutcome || (exports.AiAgentApprovalOutcome = AiAgentApprovalOutcome = {}));
34
- var AiAgentApprovalRouting;
35
- (function (AiAgentApprovalRouting) {
36
- AiAgentApprovalRouting["Chat"] = "CHAT";
37
- AiAgentApprovalRouting["Legacy"] = "LEGACY";
38
- })(AiAgentApprovalRouting || (exports.AiAgentApprovalRouting = AiAgentApprovalRouting = {}));
39
34
  var AiAgentApprovalStatus;
40
35
  (function (AiAgentApprovalStatus) {
41
36
  AiAgentApprovalStatus["Approved"] = "approved";
42
- AiAgentApprovalStatus["Cancelled"] = "cancelled";
43
37
  AiAgentApprovalStatus["Expired"] = "expired";
44
38
  AiAgentApprovalStatus["Pending"] = "pending";
45
39
  AiAgentApprovalStatus["Rejected"] = "rejected";
46
- AiAgentApprovalStatus["Requesting"] = "requesting";
47
- AiAgentApprovalStatus["Unavailable"] = "unavailable";
48
40
  })(AiAgentApprovalStatus || (exports.AiAgentApprovalStatus = AiAgentApprovalStatus = {}));
49
- var AiAgentBusinessHoursAlert;
50
- (function (AiAgentBusinessHoursAlert) {
51
- AiAgentBusinessHoursAlert["NotConfigured"] = "NOT_CONFIGURED";
52
- AiAgentBusinessHoursAlert["NotReceived"] = "NOT_RECEIVED";
53
- AiAgentBusinessHoursAlert["NoDayOn"] = "NO_DAY_ON";
54
- AiAgentBusinessHoursAlert["RecordRenamed"] = "RECORD_RENAMED";
55
- })(AiAgentBusinessHoursAlert || (exports.AiAgentBusinessHoursAlert = AiAgentBusinessHoursAlert = {}));
56
- var AiAgentBusinessHoursSource;
57
- (function (AiAgentBusinessHoursSource) {
58
- AiAgentBusinessHoursSource["DrozChat"] = "DROZ_CHAT";
59
- AiAgentBusinessHoursSource["Manual"] = "MANUAL";
60
- })(AiAgentBusinessHoursSource || (exports.AiAgentBusinessHoursSource = AiAgentBusinessHoursSource = {}));
61
- var AiAgentBusinessHoursStatus;
62
- (function (AiAgentBusinessHoursStatus) {
63
- AiAgentBusinessHoursStatus["Inside"] = "INSIDE";
64
- AiAgentBusinessHoursStatus["Outside"] = "OUTSIDE";
65
- AiAgentBusinessHoursStatus["Unknown"] = "UNKNOWN";
66
- })(AiAgentBusinessHoursStatus || (exports.AiAgentBusinessHoursStatus = AiAgentBusinessHoursStatus = {}));
67
- var AiAgentBusinessHoursWeekday;
68
- (function (AiAgentBusinessHoursWeekday) {
69
- AiAgentBusinessHoursWeekday["Friday"] = "FRIDAY";
70
- AiAgentBusinessHoursWeekday["Monday"] = "MONDAY";
71
- AiAgentBusinessHoursWeekday["Saturday"] = "SATURDAY";
72
- AiAgentBusinessHoursWeekday["Sunday"] = "SUNDAY";
73
- AiAgentBusinessHoursWeekday["Thursday"] = "THURSDAY";
74
- AiAgentBusinessHoursWeekday["Tuesday"] = "TUESDAY";
75
- AiAgentBusinessHoursWeekday["Wednesday"] = "WEDNESDAY";
76
- })(AiAgentBusinessHoursWeekday || (exports.AiAgentBusinessHoursWeekday = AiAgentBusinessHoursWeekday = {}));
77
41
  var AiAgentChannelType;
78
42
  (function (AiAgentChannelType) {
79
43
  AiAgentChannelType["Email"] = "email";
@@ -237,6 +201,7 @@ var AiAgentUnbackedClaimAction;
237
201
  AiAgentUnbackedClaimAction["Delivered"] = "delivered";
238
202
  AiAgentUnbackedClaimAction["Replaced"] = "replaced";
239
203
  AiAgentUnbackedClaimAction["Retried"] = "retried";
204
+ AiAgentUnbackedClaimAction["Transferred"] = "transferred";
240
205
  })(AiAgentUnbackedClaimAction || (exports.AiAgentUnbackedClaimAction = AiAgentUnbackedClaimAction = {}));
241
206
  var AiAgentVariationUnit;
242
207
  (function (AiAgentVariationUnit) {
@@ -313,10 +278,6 @@ var Typenames;
313
278
  (function (Typenames) {
314
279
  Typenames["AiAgentAnswerCache"] = "AiAgentAnswerCache";
315
280
  Typenames["AiAgentApproval"] = "AiAgentApproval";
316
- Typenames["AiAgentApprovalQueueCatalog"] = "AiAgentApprovalQueueCatalog";
317
- Typenames["AiAgentApprovalSessionLock"] = "AiAgentApprovalSessionLock";
318
- Typenames["AiAgentApprovalTaskKey"] = "AiAgentApprovalTaskKey";
319
- Typenames["AiAgentBusinessHours"] = "AiAgentBusinessHours";
320
281
  Typenames["AiAgentCheckRun"] = "AiAgentCheckRun";
321
282
  Typenames["AiAgentConsumption"] = "AiAgentConsumption";
322
283
  Typenames["AiAgentConsumptionMark"] = "AiAgentConsumptionMark";
@@ -353,7 +314,6 @@ exports.AiAgentSummaryFragmentDoc = `
353
314
  channels
354
315
  updatedAt
355
316
  queuedApprovals
356
- hasHumanIntervention
357
317
  status
358
318
  }
359
319
  `;
@@ -407,7 +367,6 @@ exports.AiAgentSpecFragmentDoc = `
407
367
  renewalMessage
408
368
  }
409
369
  typingIndicator
410
- approvalRouting
411
370
  }
412
371
  `;
413
372
  exports.AiAgentToolExclusionFragmentDoc = `
@@ -462,7 +421,6 @@ exports.AiAgentProcedureFragmentDoc = `
462
421
  executionAutonomy
463
422
  endsConversationAfterInforming
464
423
  continuesAfterApproval
465
- approvalQueueId
466
424
  approvedReplyTemplate
467
425
  deniedReplyTemplate
468
426
  expiredReplyTemplate
@@ -559,24 +517,6 @@ exports.AiAgentScenarioFragmentDoc = `
559
517
  expectations
560
518
  }
561
519
  `;
562
- exports.AiAgentBusinessHoursFragmentDoc = `
563
- fragment aiAgentBusinessHours on AiAgentBusinessHours {
564
- source
565
- product
566
- recordId
567
- days {
568
- weekday
569
- enabled
570
- slots {
571
- start
572
- end
573
- }
574
- }
575
- status
576
- alert
577
- receivedAt
578
- }
579
- `;
580
520
  exports.AiAgentDashboardIndicatorFragmentDoc = `
581
521
  fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {
582
522
  value
@@ -860,30 +800,6 @@ exports.AiAgentRetentionPolicyDocument = `
860
800
  }
861
801
  }
862
802
  `;
863
- exports.SetAiAgentBusinessHoursDocument = `
864
- mutation setAiAgentBusinessHours($input: SetAiAgentBusinessHoursInput!) {
865
- setAiAgentBusinessHours(input: $input) {
866
- ...aiAgentBusinessHours
867
- }
868
- }
869
- ${exports.AiAgentBusinessHoursFragmentDoc}`;
870
- exports.AiAgentApprovalQueueAlertsDocument = `
871
- query aiAgentApprovalQueueAlerts {
872
- aiAgentApprovalQueueAlerts {
873
- aiAgentId
874
- procedureId
875
- procedureName
876
- approvalQueueId
877
- }
878
- }
879
- `;
880
- exports.AiAgentBusinessHoursDocument = `
881
- query aiAgentBusinessHours {
882
- aiAgentBusinessHours {
883
- ...aiAgentBusinessHours
884
- }
885
- }
886
- ${exports.AiAgentBusinessHoursFragmentDoc}`;
887
803
  exports.AiAgentConversationMetricsDocument = `
888
804
  query aiAgentConversationMetrics($input: AiAgentConversationMetricsInput!) {
889
805
  aiAgentConversationMetrics(input: $input) {
@@ -1452,15 +1368,6 @@ function getSdk(requester) {
1452
1368
  aiAgentRetentionPolicy(variables, options) {
1453
1369
  return requester(exports.AiAgentRetentionPolicyDocument, variables, options);
1454
1370
  },
1455
- setAiAgentBusinessHours(variables, options) {
1456
- return requester(exports.SetAiAgentBusinessHoursDocument, variables, options);
1457
- },
1458
- aiAgentApprovalQueueAlerts(variables, options) {
1459
- return requester(exports.AiAgentApprovalQueueAlertsDocument, variables, options);
1460
- },
1461
- aiAgentBusinessHours(variables, options) {
1462
- return requester(exports.AiAgentBusinessHoursDocument, variables, options);
1463
- },
1464
1371
  aiAgentConversationMetrics(variables, options) {
1465
1372
  return requester(exports.AiAgentConversationMetricsDocument, variables, options);
1466
1373
  },