@droz-js/sdk 0.26.34 → 0.26.35

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.34",
4
+ "version": "0.26.35",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
package/src/drozai.d.ts CHANGED
@@ -89,6 +89,12 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
89
89
  saveAiAgentUseCase(variables: import("./sdks/ai").Exact<{
90
90
  input: import("./sdks/ai").SaveAiAgentUseCaseInput;
91
91
  }>, options?: unknown): Promise<import("./sdks/ai").SaveAiAgentUseCaseMutation>;
92
+ saveAiAgentVariable(variables: import("./sdks/ai").Exact<{
93
+ input: import("./sdks/ai").SaveAiAgentVariableInput;
94
+ }>, options?: unknown): Promise<import("./sdks/ai").SaveAiAgentVariableMutation>;
95
+ removeAiAgentVariable(variables: import("./sdks/ai").Exact<{
96
+ input: import("./sdks/ai").RemoveAiAgentVariableInput;
97
+ }>, options?: unknown): Promise<import("./sdks/ai").RemoveAiAgentVariableMutation>;
92
98
  saveAiAgentProcedure(variables: import("./sdks/ai").Exact<{
93
99
  input: import("./sdks/ai").SaveAiAgentProcedureInput;
94
100
  }>, options?: unknown): Promise<import("./sdks/ai").SaveAiAgentProcedureMutation>;
package/src/sdks/ai.d.ts CHANGED
@@ -671,6 +671,16 @@ export declare enum AiAgentHandoffReason {
671
671
  Undeclared = "undeclared",
672
672
  Unresolved = "unresolved"
673
673
  }
674
+ export declare enum AiAgentHandoffRelease {
675
+ BusinessRule = "business_rule",
676
+ CannotResolveAfterLookup = "cannot_resolve_after_lookup",
677
+ CustomerRequestAfterLookup = "customer_request_after_lookup",
678
+ DeclaredReason = "declared_reason",
679
+ LimitReached = "limit_reached",
680
+ OfferAccepted = "offer_accepted",
681
+ PromisedOnReply = "promised_on_reply",
682
+ Upset = "upset"
683
+ }
674
684
  export type AiAgentIdentity = {
675
685
  displayName: Scalars['String']['output'];
676
686
  openingMessage?: Maybe<Scalars['String']['output']>;
@@ -689,10 +699,12 @@ export type AiAgentIdentityInput = {
689
699
  };
690
700
  export type AiAgentInsistence = {
691
701
  handoffOnRequest: Scalars['Int']['output'];
702
+ handoffOnRequestAfterLookup?: Maybe<Scalars['Boolean']['output']>;
692
703
  retriesAfterRefusal: Scalars['Int']['output'];
693
704
  };
694
705
  export type AiAgentInsistenceInput = {
695
706
  handoffOnRequest: Scalars['Int']['input'];
707
+ handoffOnRequestAfterLookup?: InputMaybe<Scalars['Boolean']['input']>;
696
708
  retriesAfterRefusal: Scalars['Int']['input'];
697
709
  };
698
710
  export type AiAgentKnowledgeBase = {
@@ -1105,12 +1117,14 @@ export type AiAgentTrace = {
1105
1117
  excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
1106
1118
  haltReason?: Maybe<Scalars['String']['output']>;
1107
1119
  handoffHeld?: Maybe<Scalars['Boolean']['output']>;
1120
+ handoffRelease?: Maybe<AiAgentHandoffRelease>;
1108
1121
  identificationRequired?: Maybe<Scalars['Boolean']['output']>;
1109
1122
  input: Scalars['String']['output'];
1110
1123
  knowledgeOrigins: Array<Scalars['String']['output']>;
1111
1124
  knowledgeQuery?: Maybe<Scalars['String']['output']>;
1112
1125
  model?: Maybe<Scalars['String']['output']>;
1113
1126
  outcome: Scalars['String']['output'];
1127
+ personRequests?: Maybe<Scalars['Int']['output']>;
1114
1128
  platformTextVersions?: Maybe<Scalars['String']['output']>;
1115
1129
  promptBuilderVersion: Scalars['Int']['output'];
1116
1130
  promptFingerprint?: Maybe<Scalars['String']['output']>;
@@ -1164,6 +1178,23 @@ export type AiAgentUseCaseOverlap = {
1164
1178
  pairs: Array<AiAgentCompetingPair>;
1165
1179
  threshold: Scalars['Number']['output'];
1166
1180
  };
1181
+ export type AiAgentVariable = {
1182
+ description: Scalars['String']['output'];
1183
+ name: Scalars['String']['output'];
1184
+ personal: Scalars['Boolean']['output'];
1185
+ required: Scalars['Boolean']['output'];
1186
+ type: AiAgentVariableType;
1187
+ updatedAt: Scalars['Number']['output'];
1188
+ };
1189
+ export declare enum AiAgentVariableType {
1190
+ Date = "date",
1191
+ Document = "document",
1192
+ Email = "email",
1193
+ Number = "number",
1194
+ Phone = "phone",
1195
+ PostalCode = "postalCode",
1196
+ Text = "text"
1197
+ }
1167
1198
  export type AiAgentVariation = {
1168
1199
  unit: AiAgentVariationUnit;
1169
1200
  value?: Maybe<Scalars['Number']['output']>;
@@ -1263,6 +1294,7 @@ export type Mutation = {
1263
1294
  removeAiAgentProcedure: Scalars['Boolean']['output'];
1264
1295
  removeAiAgentScenario: Scalars['Boolean']['output'];
1265
1296
  removeAiAgentUseCase: Scalars['Boolean']['output'];
1297
+ removeAiAgentVariable: Scalars['Boolean']['output'];
1266
1298
  removeAiAgentVersion: Array<AiAgentVersion>;
1267
1299
  removeNlpInstance?: Maybe<NlpInstance>;
1268
1300
  removeQnAInstance?: Maybe<QnAInstance>;
@@ -1272,6 +1304,7 @@ export type Mutation = {
1272
1304
  saveAiAgentProcedure: AiAgentProcedure;
1273
1305
  saveAiAgentScenario?: Maybe<AiAgentScenario>;
1274
1306
  saveAiAgentUseCase: AiAgentUseCase;
1307
+ saveAiAgentVariable: AiAgentVariable;
1275
1308
  setAiAgentBusinessHours: AiAgentBusinessHours;
1276
1309
  setAiAgentRetentionPolicy: AiAgentRetentionPolicy;
1277
1310
  unpublishAiAgentVersion: Array<AiAgentVersion>;
@@ -1322,6 +1355,9 @@ export type MutationRemoveAiAgentScenarioArgs = {
1322
1355
  export type MutationRemoveAiAgentUseCaseArgs = {
1323
1356
  input: AiAgentAuthoringRefInput;
1324
1357
  };
1358
+ export type MutationRemoveAiAgentVariableArgs = {
1359
+ input: RemoveAiAgentVariableInput;
1360
+ };
1325
1361
  export type MutationRemoveAiAgentVersionArgs = {
1326
1362
  input: AiAgentVersionRefInput;
1327
1363
  };
@@ -1346,6 +1382,9 @@ export type MutationSaveAiAgentScenarioArgs = {
1346
1382
  export type MutationSaveAiAgentUseCaseArgs = {
1347
1383
  input: SaveAiAgentUseCaseInput;
1348
1384
  };
1385
+ export type MutationSaveAiAgentVariableArgs = {
1386
+ input: SaveAiAgentVariableInput;
1387
+ };
1349
1388
  export type MutationSetAiAgentBusinessHoursArgs = {
1350
1389
  input: SetAiAgentBusinessHoursInput;
1351
1390
  };
@@ -1444,6 +1483,7 @@ export type Query = {
1444
1483
  listAiAgentScenarios: Array<AiAgentScenario>;
1445
1484
  listAiAgentTools: Array<AiAgentTool>;
1446
1485
  listAiAgentUseCases: Array<AiAgentUseCase>;
1486
+ listAiAgentVariables: Array<AiAgentVariable>;
1447
1487
  listAiAgentVersions: Array<AiAgentVersion>;
1448
1488
  listAiAgents: Array<AiAgentSummary>;
1449
1489
  listNlpInstances: Array<NlpInstance>;
@@ -1514,6 +1554,9 @@ export type QueryListAiAgentScenariosArgs = {
1514
1554
  export type QueryListAiAgentUseCasesArgs = {
1515
1555
  aiAgentId: Scalars['ID']['input'];
1516
1556
  };
1557
+ export type QueryListAiAgentVariablesArgs = {
1558
+ aiAgentId: Scalars['ID']['input'];
1559
+ };
1517
1560
  export type QueryListAiAgentVersionsArgs = {
1518
1561
  aiAgentId: Scalars['ID']['input'];
1519
1562
  };
@@ -1543,6 +1586,10 @@ export type RemoveAiAgentScenarioInput = {
1543
1586
  aiAgentId: Scalars['ID']['input'];
1544
1587
  scenarioId: Scalars['ID']['input'];
1545
1588
  };
1589
+ export type RemoveAiAgentVariableInput = {
1590
+ aiAgentId: Scalars['ID']['input'];
1591
+ name: Scalars['String']['input'];
1592
+ };
1546
1593
  export type RemoveNlpInstanceInput = {
1547
1594
  id: Scalars['ID']['input'];
1548
1595
  };
@@ -1594,6 +1641,14 @@ export type SaveAiAgentUseCaseInput = {
1594
1641
  subjectDescription: Scalars['String']['input'];
1595
1642
  tag?: InputMaybe<Scalars['String']['input']>;
1596
1643
  };
1644
+ export type SaveAiAgentVariableInput = {
1645
+ aiAgentId: Scalars['ID']['input'];
1646
+ description: Scalars['String']['input'];
1647
+ name: Scalars['String']['input'];
1648
+ personal: Scalars['Boolean']['input'];
1649
+ required: Scalars['Boolean']['input'];
1650
+ type: AiAgentVariableType;
1651
+ };
1597
1652
  export type SearchResultsFacet = {
1598
1653
  name: Scalars['String']['output'];
1599
1654
  stats?: Maybe<SearchResultsFacetStats>;
@@ -1724,6 +1779,7 @@ export declare enum Typenames {
1724
1779
  AiAgentTool = "AiAgentTool",
1725
1780
  AiAgentTrace = "AiAgentTrace",
1726
1781
  AiAgentUseCase = "AiAgentUseCase",
1782
+ AiAgentVariable = "AiAgentVariable",
1727
1783
  AiAgentVersion = "AiAgentVersion",
1728
1784
  Any = "Any",
1729
1785
  GraphqlConnections = "GraphqlConnections",
@@ -1752,7 +1808,7 @@ export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowled
1752
1808
  identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
1753
1809
  budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
1754
1810
  handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target' | 'toolFailureMessage'>>;
1755
- insistence?: Maybe<Pick<AiAgentInsistence, 'retriesAfterRefusal' | 'handoffOnRequest'>>;
1811
+ insistence?: Maybe<Pick<AiAgentInsistence, 'retriesAfterRefusal' | 'handoffOnRequest' | 'handoffOnRequestAfterLookup'>>;
1756
1812
  conversationTiming?: Maybe<Array<Pick<AiAgentChannelTiming, 'channel' | 'abandonAfterMs' | 'remindAfterMs' | 'metaWindowMs' | 'reminderMessage' | 'renewalMessage'>>>;
1757
1813
  });
1758
1814
  export type AiAgentToolExclusionFragment = Pick<AiAgentToolExclusion, 'toolId' | 'reason'>;
@@ -1818,6 +1874,7 @@ export type RemoveAiAgentMutationVariables = Exact<{
1818
1874
  }>;
1819
1875
  export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
1820
1876
  export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'tag' | 'status' | 'updatedAt'>;
1877
+ export type AiAgentVariableFragment = Pick<AiAgentVariable, 'name' | 'description' | 'type' | 'required' | 'personal' | 'updatedAt'>;
1821
1878
  export type AiAgentProcedureFragment = (Pick<AiAgentProcedure, 'id' | 'name' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvalQueueId' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'objective' | 'nextStep' | 'status' | 'updatedAt'> & {
1822
1879
  steps: Array<{
1823
1880
  segments: Array<Pick<AiAgentProcedureSegment, 'kind' | 'text' | 'name' | 'toolId' | 'approvalQueueId'>>;
@@ -1830,7 +1887,7 @@ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'descri
1830
1887
  confirmation?: Maybe<Pick<AiAgentToolConfirmation, 'summaryField' | 'tokenField' | 'tokenArg'>>;
1831
1888
  parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding' | 'format' | 'outputFormat'>>;
1832
1889
  });
1833
- 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'> & {
1890
+ export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'aiAgentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'platformTextVersions' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'knowledgeQuery' | 'outcome' | 'haltReason' | 'handoffHeld' | 'personRequests' | 'handoffRelease' | 'unbackedClaim' | 'unbackedClaimKinds' | 'steps' | 'answer' | 'startedAt' | 'model' | 'reasoningEffort'> & {
1834
1891
  agentPromptTexts: Array<Pick<AiAgentPlatformTextRef, 'key' | 'scope' | 'version'>>;
1835
1892
  excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
1836
1893
  toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass' | 'held'>>;
@@ -2004,6 +2061,16 @@ export type SaveAiAgentUseCaseMutationVariables = Exact<{
2004
2061
  export type SaveAiAgentUseCaseMutation = {
2005
2062
  saveAiAgentUseCase: AiAgentUseCaseFragment;
2006
2063
  };
2064
+ export type SaveAiAgentVariableMutationVariables = Exact<{
2065
+ input: SaveAiAgentVariableInput;
2066
+ }>;
2067
+ export type SaveAiAgentVariableMutation = {
2068
+ saveAiAgentVariable: AiAgentVariableFragment;
2069
+ };
2070
+ export type RemoveAiAgentVariableMutationVariables = Exact<{
2071
+ input: RemoveAiAgentVariableInput;
2072
+ }>;
2073
+ export type RemoveAiAgentVariableMutation = Pick<Mutation, 'removeAiAgentVariable'>;
2007
2074
  export type SaveAiAgentProcedureMutationVariables = Exact<{
2008
2075
  input: SaveAiAgentProcedureInput;
2009
2076
  }>;
@@ -2231,14 +2298,15 @@ export type RemoveQnAInstanceMutation = {
2231
2298
  };
2232
2299
  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 ";
2233
2300
  export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
2234
- 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 ";
2301
+ 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 handoffOnRequestAfterLookup\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n approvalRouting\n}\n ";
2235
2302
  export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2236
2303
  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 ";
2237
2304
  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 ";
2238
2305
  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 ";
2306
+ export declare const AiAgentVariableFragmentDoc = "\n fragment aiAgentVariable on AiAgentVariable {\n name\n description\n type\n required\n personal\n updatedAt\n}\n ";
2239
2307
  export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n steps {\n segments {\n kind\n text\n name\n toolId\n approvalQueueId\n }\n }\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvalQueueId\n retentionCondition {\n toolId\n parameter\n operator\n value\n }\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 ";
2240
2308
  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 outputFormat\n }\n}\n ";
2241
- 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 ";
2309
+ 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 personRequests\n handoffRelease\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 ";
2242
2310
  export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2243
2311
  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 ";
2244
2312
  export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
@@ -2263,7 +2331,7 @@ export declare const ListAiAgentProceduresDocument = "\n query listAiAgentPro
2263
2331
  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 outputFormat\n }\n}\n ";
2264
2332
  export declare const ListAiAgentNativeActionsDocument = "\n query listAiAgentNativeActions {\n listAiAgentNativeActions {\n toolId\n name\n labelKey\n acceptsQueue\n }\n}\n ";
2265
2333
  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 ";
2266
- 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 ";
2334
+ 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 personRequests\n handoffRelease\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 ";
2267
2335
  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 ";
2268
2336
  export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
2269
2337
  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 ";
@@ -2276,6 +2344,8 @@ export declare const AiAgentMetricsSeriesDocument = "\n query aiAgentMetricsS
2276
2344
  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 ";
2277
2345
  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 ";
2278
2346
  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 ";
2347
+ export declare const SaveAiAgentVariableDocument = "\n mutation saveAiAgentVariable($input: SaveAiAgentVariableInput!) {\n saveAiAgentVariable(input: $input) {\n ...aiAgentVariable\n }\n}\n \n fragment aiAgentVariable on AiAgentVariable {\n name\n description\n type\n required\n personal\n updatedAt\n}\n ";
2348
+ export declare const RemoveAiAgentVariableDocument = "\n mutation removeAiAgentVariable($input: RemoveAiAgentVariableInput!) {\n removeAiAgentVariable(input: $input)\n}\n ";
2279
2349
  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 steps {\n segments {\n kind\n text\n name\n toolId\n approvalQueueId\n }\n }\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvalQueueId\n retentionCondition {\n toolId\n parameter\n operator\n value\n }\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 ";
2280
2350
  export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
2281
2351
  export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
@@ -2292,7 +2362,7 @@ export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentV
2292
2362
  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 ";
2293
2363
  export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n maxToneNotesLength\n maxAutomaticMessageChars\n maxReplySubjectChars\n maxRetentionConditionValueChars\n retentionConditionOperators {\n parameterType\n operators\n }\n knowledgeFallbacks\n defaultKnowledgeFallback\n }\n}\n ";
2294
2364
  export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($aiAgentId: ID!) {\n aiAgentCheckLimits(aiAgentId: $aiAgentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
2295
- 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 ";
2365
+ 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 handoffOnRequestAfterLookup\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 ";
2296
2366
  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 ";
2297
2367
  export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
2298
2368
  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 ";
@@ -2338,6 +2408,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
2338
2408
  aiAgentDashboard(variables: AiAgentDashboardQueryVariables, options?: C): Promise<AiAgentDashboardQuery>;
2339
2409
  aiAgentConversationOutcome(variables: AiAgentConversationOutcomeQueryVariables, options?: C): Promise<AiAgentConversationOutcomeQuery>;
2340
2410
  saveAiAgentUseCase(variables: SaveAiAgentUseCaseMutationVariables, options?: C): Promise<SaveAiAgentUseCaseMutation>;
2411
+ saveAiAgentVariable(variables: SaveAiAgentVariableMutationVariables, options?: C): Promise<SaveAiAgentVariableMutation>;
2412
+ removeAiAgentVariable(variables: RemoveAiAgentVariableMutationVariables, options?: C): Promise<RemoveAiAgentVariableMutation>;
2341
2413
  saveAiAgentProcedure(variables: SaveAiAgentProcedureMutationVariables, options?: C): Promise<SaveAiAgentProcedureMutation>;
2342
2414
  removeAiAgentUseCase(variables: RemoveAiAgentUseCaseMutationVariables, options?: C): Promise<RemoveAiAgentUseCaseMutation>;
2343
2415
  removeAiAgentProcedure(variables: RemoveAiAgentProcedureMutationVariables, options?: C): Promise<RemoveAiAgentProcedureMutation>;
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.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolParameterOutputFormat = 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.AiAgentTranscriptAuthor = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentRetentionConditionOperator = exports.AiAgentPromptTextKey = exports.AiAgentProcedureSegmentKind = exports.AiAgentPlatformTextScope = 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.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.ListAiAgentNativeActionsDocument = 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.AiAgentTranscriptMessageFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentApprovalFragmentDoc = exports.AiAgentDashboardContactReasonFragmentDoc = exports.AiAgentDashboardSentimentFragmentDoc = exports.AiAgentDashboardIndicatorFragmentDoc = exports.AiAgentBusinessHoursFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFieldsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = 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.AiAgentTranscriptDocument = 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 = void 0;
4
+ exports.ToolParameterType = exports.ToolParameterOutputFormat = exports.ToolParameterFormat = exports.ToolEffect = exports.ToolAvailability = exports.ToolApprovalMode = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentVariationUnit = exports.AiAgentVariableType = exports.AiAgentUnbackedClaimAction = exports.AiAgentTranscriptAuthor = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentRetentionConditionOperator = exports.AiAgentPromptTextKey = exports.AiAgentProcedureSegmentKind = exports.AiAgentPlatformTextScope = exports.AiAgentMetricsBucket = exports.AiAgentMetricPolarity = exports.AiAgentKnowledgeFallback = exports.AiAgentHandoffRelease = 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.SaveAiAgentVariableDocument = 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.ListAiAgentNativeActionsDocument = 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.AiAgentTranscriptMessageFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentApprovalFragmentDoc = exports.AiAgentDashboardContactReasonFragmentDoc = exports.AiAgentDashboardSentimentFragmentDoc = exports.AiAgentDashboardIndicatorFragmentDoc = exports.AiAgentBusinessHoursFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentVariableFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFieldsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = 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.AiAgentTranscriptDocument = 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.RemoveAiAgentVariableDocument = void 0;
7
7
  exports.getSdk = getSdk;
8
8
  var AiAgentActionClaim;
9
9
  (function (AiAgentActionClaim) {
@@ -184,6 +184,17 @@ var AiAgentHandoffReason;
184
184
  AiAgentHandoffReason["Undeclared"] = "undeclared";
185
185
  AiAgentHandoffReason["Unresolved"] = "unresolved";
186
186
  })(AiAgentHandoffReason || (exports.AiAgentHandoffReason = AiAgentHandoffReason = {}));
187
+ var AiAgentHandoffRelease;
188
+ (function (AiAgentHandoffRelease) {
189
+ AiAgentHandoffRelease["BusinessRule"] = "business_rule";
190
+ AiAgentHandoffRelease["CannotResolveAfterLookup"] = "cannot_resolve_after_lookup";
191
+ AiAgentHandoffRelease["CustomerRequestAfterLookup"] = "customer_request_after_lookup";
192
+ AiAgentHandoffRelease["DeclaredReason"] = "declared_reason";
193
+ AiAgentHandoffRelease["LimitReached"] = "limit_reached";
194
+ AiAgentHandoffRelease["OfferAccepted"] = "offer_accepted";
195
+ AiAgentHandoffRelease["PromisedOnReply"] = "promised_on_reply";
196
+ AiAgentHandoffRelease["Upset"] = "upset";
197
+ })(AiAgentHandoffRelease || (exports.AiAgentHandoffRelease = AiAgentHandoffRelease = {}));
187
198
  var AiAgentKnowledgeFallback;
188
199
  (function (AiAgentKnowledgeFallback) {
189
200
  AiAgentKnowledgeFallback["GeneralKnowledge"] = "general_knowledge";
@@ -285,6 +296,16 @@ var AiAgentUnbackedClaimAction;
285
296
  AiAgentUnbackedClaimAction["Transferred"] = "transferred";
286
297
  AiAgentUnbackedClaimAction["Trimmed"] = "trimmed";
287
298
  })(AiAgentUnbackedClaimAction || (exports.AiAgentUnbackedClaimAction = AiAgentUnbackedClaimAction = {}));
299
+ var AiAgentVariableType;
300
+ (function (AiAgentVariableType) {
301
+ AiAgentVariableType["Date"] = "date";
302
+ AiAgentVariableType["Document"] = "document";
303
+ AiAgentVariableType["Email"] = "email";
304
+ AiAgentVariableType["Number"] = "number";
305
+ AiAgentVariableType["Phone"] = "phone";
306
+ AiAgentVariableType["PostalCode"] = "postalCode";
307
+ AiAgentVariableType["Text"] = "text";
308
+ })(AiAgentVariableType || (exports.AiAgentVariableType = AiAgentVariableType = {}));
288
309
  var AiAgentVariationUnit;
289
310
  (function (AiAgentVariationUnit) {
290
311
  AiAgentVariationUnit["Percent"] = "PERCENT";
@@ -389,6 +410,7 @@ var Typenames;
389
410
  Typenames["AiAgentTool"] = "AiAgentTool";
390
411
  Typenames["AiAgentTrace"] = "AiAgentTrace";
391
412
  Typenames["AiAgentUseCase"] = "AiAgentUseCase";
413
+ Typenames["AiAgentVariable"] = "AiAgentVariable";
392
414
  Typenames["AiAgentVersion"] = "AiAgentVersion";
393
415
  Typenames["Any"] = "Any";
394
416
  Typenames["GraphqlConnections"] = "GraphqlConnections";
@@ -448,6 +470,7 @@ exports.AiAgentSpecFragmentDoc = `
448
470
  insistence {
449
471
  retriesAfterRefusal
450
472
  handoffOnRequest
473
+ handoffOnRequestAfterLookup
451
474
  }
452
475
  channels
453
476
  conversationTiming {
@@ -504,6 +527,16 @@ exports.AiAgentUseCaseFragmentDoc = `
504
527
  updatedAt
505
528
  }
506
529
  `;
530
+ exports.AiAgentVariableFragmentDoc = `
531
+ fragment aiAgentVariable on AiAgentVariable {
532
+ name
533
+ description
534
+ type
535
+ required
536
+ personal
537
+ updatedAt
538
+ }
539
+ `;
507
540
  exports.AiAgentProcedureFragmentDoc = `
508
541
  fragment aiAgentProcedure on AiAgentProcedure {
509
542
  id
@@ -600,6 +633,8 @@ exports.AiAgentTraceFragmentDoc = `
600
633
  outcome
601
634
  haltReason
602
635
  handoffHeld
636
+ personRequests
637
+ handoffRelease
603
638
  unbackedClaim
604
639
  unbackedClaimKinds
605
640
  steps
@@ -1232,6 +1267,18 @@ exports.SaveAiAgentUseCaseDocument = `
1232
1267
  }
1233
1268
  }
1234
1269
  ${exports.AiAgentUseCaseFragmentDoc}`;
1270
+ exports.SaveAiAgentVariableDocument = `
1271
+ mutation saveAiAgentVariable($input: SaveAiAgentVariableInput!) {
1272
+ saveAiAgentVariable(input: $input) {
1273
+ ...aiAgentVariable
1274
+ }
1275
+ }
1276
+ ${exports.AiAgentVariableFragmentDoc}`;
1277
+ exports.RemoveAiAgentVariableDocument = `
1278
+ mutation removeAiAgentVariable($input: RemoveAiAgentVariableInput!) {
1279
+ removeAiAgentVariable(input: $input)
1280
+ }
1281
+ `;
1235
1282
  exports.SaveAiAgentProcedureDocument = `
1236
1283
  mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {
1237
1284
  saveAiAgentProcedure(input: $input) {
@@ -1580,6 +1627,12 @@ function getSdk(requester) {
1580
1627
  saveAiAgentUseCase(variables, options) {
1581
1628
  return requester(exports.SaveAiAgentUseCaseDocument, variables, options);
1582
1629
  },
1630
+ saveAiAgentVariable(variables, options) {
1631
+ return requester(exports.SaveAiAgentVariableDocument, variables, options);
1632
+ },
1633
+ removeAiAgentVariable(variables, options) {
1634
+ return requester(exports.RemoveAiAgentVariableDocument, variables, options);
1635
+ },
1583
1636
  saveAiAgentProcedure(variables, options) {
1584
1637
  return requester(exports.SaveAiAgentProcedureDocument, variables, options);
1585
1638
  },