@droz-js/sdk 0.26.15 → 0.26.17

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.15",
4
+ "version": "0.26.17",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
package/src/sdks/ai.d.ts CHANGED
@@ -179,8 +179,11 @@ export type AiAgentAuthoringRefInput = {
179
179
  id: Scalars['ID']['input'];
180
180
  };
181
181
  export type AiAgentAuthoringRules = {
182
+ defaultKnowledgeFallback: AiAgentKnowledgeFallback;
182
183
  knowledgeFallbacks: Array<AiAgentKnowledgeFallback>;
183
184
  maxAuthoredFieldLength: Scalars['Int']['output'];
185
+ maxAutomaticMessageChars: Scalars['Int']['output'];
186
+ maxReplySubjectChars: Scalars['Int']['output'];
184
187
  };
185
188
  export type AiAgentBudget = {
186
189
  maxCostMicroUsd?: Maybe<Scalars['Int']['output']>;
@@ -788,6 +791,7 @@ export type AiAgentScenarioTurn = {
788
791
  blockCategories: Array<AiAgentMetricsCount>;
789
792
  blocked: Scalars['Int']['output'];
790
793
  grounded: Scalars['Int']['output'];
794
+ heldCalls?: Maybe<Array<AiAgentMetricsCount>>;
791
795
  identificationRequired: Scalars['Int']['output'];
792
796
  rejectedCalls?: Maybe<Array<AiAgentRejectedCall>>;
793
797
  runs: Scalars['Int']['output'];
@@ -842,8 +846,6 @@ export type AiAgentSpecInput = {
842
846
  typingIndicator?: InputMaybe<Scalars['Boolean']['input']>;
843
847
  };
844
848
  export type AiAgentSummary = {
845
- /** @deprecated Use aiAgentId. */
846
- agentId: Scalars['ID']['output'];
847
849
  aiAgentId: Scalars['ID']['output'];
848
850
  channels: Array<Scalars['String']['output']>;
849
851
  liveVersion?: Maybe<Scalars['Int']['output']>;
@@ -972,6 +974,7 @@ export type AiAgentTracedToolCall = {
972
974
  connection?: Maybe<Scalars['String']['output']>;
973
975
  empty?: Maybe<Scalars['Boolean']['output']>;
974
976
  errorClass?: Maybe<Scalars['String']['output']>;
977
+ held?: Maybe<Scalars['Boolean']['output']>;
975
978
  name: Scalars['String']['output'];
976
979
  ok?: Maybe<Scalars['Boolean']['output']>;
977
980
  result: Scalars['String']['output'];
@@ -1632,7 +1635,7 @@ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'descri
1632
1635
  });
1633
1636
  export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'aiAgentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'knowledgeQuery' | 'outcome' | 'haltReason' | 'handoffHeld' | 'unbackedClaim' | 'unbackedClaimKinds' | 'steps' | 'answer' | 'startedAt' | 'model' | 'reasoningEffort'> & {
1634
1637
  excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
1635
- toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass'>>;
1638
+ toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass' | 'held'>>;
1636
1639
  });
1637
1640
  export type AiAgentScenarioFragment = Pick<AiAgentScenario, 'scenarioId' | 'description' | 'customerId' | 'turns' | 'expectations'>;
1638
1641
  export type ListAiAgentUseCasesQueryVariables = Exact<{
@@ -1848,6 +1851,7 @@ export type AiAgentCheckRunFragment = (Pick<AiAgentCheckRun, 'runId' | 'aiAgentI
1848
1851
  turns: Array<(Pick<AiAgentScenarioTurn, 'turn' | 'runs' | 'answered' | 'grounded' | 'blocked' | 'identificationRequired'> & {
1849
1852
  toolNames: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
1850
1853
  rejectedCalls?: Maybe<Array<Pick<AiAgentRejectedCall, 'toolName' | 'reason' | 'count'>>>;
1854
+ heldCalls?: Maybe<Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>>;
1851
1855
  blockCategories: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
1852
1856
  })>;
1853
1857
  })>;
@@ -1871,7 +1875,7 @@ export type AiAgentAuthoringRulesQueryVariables = Exact<{
1871
1875
  [key: string]: never;
1872
1876
  }>;
1873
1877
  export type AiAgentAuthoringRulesQuery = {
1874
- aiAgentAuthoringRules: Pick<AiAgentAuthoringRules, 'maxAuthoredFieldLength' | 'knowledgeFallbacks'>;
1878
+ aiAgentAuthoringRules: Pick<AiAgentAuthoringRules, 'maxAuthoredFieldLength' | 'maxAutomaticMessageChars' | 'maxReplySubjectChars' | 'knowledgeFallbacks' | 'defaultKnowledgeFallback'>;
1875
1879
  };
1876
1880
  export type AiAgentCheckLimitsQueryVariables = Exact<{
1877
1881
  aiAgentId: Scalars['ID']['input'];
@@ -1997,13 +2001,13 @@ export declare const AiAgentListingMetricsFieldsFragmentDoc = "\n fragment ai
1997
2001
  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 ";
1998
2002
  export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
1999
2003
  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 ";
2000
- export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n unbackedClaim\n unbackedClaimKinds\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n ";
2004
+ export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n unbackedClaim\n unbackedClaimKinds\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n held\n }\n}\n ";
2001
2005
  export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2002
2006
  export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
2003
2007
  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 ";
2004
2008
  export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
2005
2009
  export declare const AiAgentApprovalFragmentDoc = "\n fragment aiAgentApproval on AiAgentApproval {\n aiAgentId\n sessionId\n toolId\n toolName\n args\n channelId\n customerId\n requestedAt\n expiresAt\n status\n decidedBy\n decidedByName\n decidedAt\n}\n ";
2006
- export declare const AiAgentCheckRunFragmentDoc = "\n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
2010
+ 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 ";
2007
2011
  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 ";
2008
2012
  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 ";
2009
2013
  export declare const ListAiAgentsDocument = "\n query listAiAgents {\n listAiAgents {\n ...aiAgentSummary\n }\n}\n \n fragment aiAgentSummary on AiAgentSummary {\n aiAgentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
@@ -2019,7 +2023,7 @@ export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCa
2019
2023
  export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($aiAgentId: ID!) {\n listAiAgentProcedures(aiAgentId: $aiAgentId) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
2020
2024
  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 ";
2021
2025
  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 ";
2022
- export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n unbackedClaim\n unbackedClaimKinds\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2026
+ export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n unbackedClaim\n unbackedClaimKinds\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n held\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2023
2027
  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 ";
2024
2028
  export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
2025
2029
  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 ";
@@ -2041,9 +2045,9 @@ export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAge
2041
2045
  export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
2042
2046
  export declare const RemoveAiAgentScenarioDocument = "\n mutation removeAiAgentScenario($input: RemoveAiAgentScenarioInput!) {\n removeAiAgentScenario(input: $input)\n}\n ";
2043
2047
  export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {\n saveAiAgentScenario(input: $input) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
2044
- export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2045
- export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($aiAgentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(aiAgentId: $aiAgentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2046
- export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n knowledgeFallbacks\n }\n}\n ";
2048
+ export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n heldCalls {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2049
+ export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($aiAgentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(aiAgentId: $aiAgentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n aiAgentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n authoring {\n useCases\n procedures\n updatedAt\n }\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n rejectedCalls {\n toolName\n reason\n count\n }\n heldCalls {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2050
+ export declare const AiAgentAuthoringRulesDocument = "\n query aiAgentAuthoringRules {\n aiAgentAuthoringRules {\n maxAuthoredFieldLength\n maxAutomaticMessageChars\n maxReplySubjectChars\n knowledgeFallbacks\n defaultKnowledgeFallback\n }\n}\n ";
2047
2051
  export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($aiAgentId: ID!) {\n aiAgentCheckLimits(aiAgentId: $aiAgentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
2048
2052
  export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($aiAgentId: ID!) {\n listAiAgentVersions(aiAgentId: $aiAgentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n \n\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n toolFailureMessage\n }\n insistence {\n retriesAfterRefusal\n handoffOnRequest\n }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n typingIndicator\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
2049
2053
  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 ";
package/src/sdks/ai.js CHANGED
@@ -502,6 +502,7 @@ exports.AiAgentTraceFragmentDoc = `
502
502
  empty
503
503
  connection
504
504
  errorClass
505
+ held
505
506
  }
506
507
  }
507
508
  `;
@@ -609,6 +610,10 @@ exports.AiAgentCheckRunFragmentDoc = `
609
610
  reason
610
611
  count
611
612
  }
613
+ heldCalls {
614
+ key
615
+ count
616
+ }
612
617
  blockCategories {
613
618
  key
614
619
  count
@@ -1150,7 +1155,10 @@ exports.AiAgentAuthoringRulesDocument = `
1150
1155
  query aiAgentAuthoringRules {
1151
1156
  aiAgentAuthoringRules {
1152
1157
  maxAuthoredFieldLength
1158
+ maxAutomaticMessageChars
1159
+ maxReplySubjectChars
1153
1160
  knowledgeFallbacks
1161
+ defaultKnowledgeFallback
1154
1162
  }
1155
1163
  }
1156
1164
  `;
@@ -232,7 +232,6 @@ export type CreateDrozBotTicketInput = {
232
232
  channel?: InputMaybe<ConversationChannelKind>;
233
233
  collectedFacts?: InputMaybe<Scalars['JSON']['input']>;
234
234
  comment?: InputMaybe<Scalars['String']['input']>;
235
- customerMessage?: InputMaybe<Scalars['String']['input']>;
236
235
  /** Destino da conversa quando o agente passa para uma pessoa: DRN da instância que recebe (fila do Droz Chat, Zendesk, Salesforce...). Ausente: a sessão encerra. */
237
236
  handoffDrn?: InputMaybe<Scalars['DRN']['input']>;
238
237
  instanceId?: InputMaybe<Scalars['ID']['input']>;
@@ -292,6 +291,7 @@ export type DrozBotRootCredentialInput = {
292
291
  export type DrozBotTicket = {
293
292
  id: Scalars['ID']['output'];
294
293
  instanceId: Scalars['ID']['output'];
294
+ reused: Scalars['Boolean']['output'];
295
295
  };
296
296
  export type DrozBotTicketComment = {
297
297
  id: Scalars['ID']['output'];
@@ -890,7 +890,7 @@ export type CreateDrozBotTicketMutationVariables = Exact<{
890
890
  input: CreateDrozBotTicketInput;
891
891
  }>;
892
892
  export type CreateDrozBotTicketMutation = {
893
- createDrozBotTicket: Pick<DrozBotTicket, 'id' | 'instanceId'>;
893
+ createDrozBotTicket: Pick<DrozBotTicket, 'id' | 'instanceId' | 'reused'>;
894
894
  };
895
895
  export type CreateDrozBotTicketCommentsMutationVariables = Exact<{
896
896
  input: CreateDrozBotTicketCommentsInput;
@@ -1073,7 +1073,7 @@ export declare const GetCustomerByPhoneDocument = "\n query getCustomerByPhon
1073
1073
  export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
1074
1074
  export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
1075
1075
  export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
1076
- export declare const CreateDrozBotTicketDocument = "\n mutation createDrozBotTicket($input: CreateDrozBotTicketInput!) {\n createDrozBotTicket(input: $input) {\n id\n instanceId\n }\n}\n ";
1076
+ export declare const CreateDrozBotTicketDocument = "\n mutation createDrozBotTicket($input: CreateDrozBotTicketInput!) {\n createDrozBotTicket(input: $input) {\n id\n instanceId\n reused\n }\n}\n ";
1077
1077
  export declare const CreateDrozBotTicketCommentsDocument = "\n mutation createDrozBotTicketComments($input: CreateDrozBotTicketCommentsInput!) {\n createDrozBotTicketComments(input: $input) {\n ...drozBotTicketComment\n }\n}\n \n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
1078
1078
  export declare const CreateDrozBotTicketCommentDocument = "\n mutation createDrozBotTicketComment($input: CreateDrozBotTicketCommentInput!) {\n createDrozBotTicketComment(input: $input) {\n id\n ticketId\n }\n}\n ";
1079
1079
  export declare const GetIntentDictionaryDocument = "\n query getIntentDictionary($id: ID!) {\n getIntentDictionary(id: $id) {\n ...intentDictionary\n }\n}\n \n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
@@ -376,6 +376,7 @@ exports.CreateDrozBotTicketDocument = `
376
376
  createDrozBotTicket(input: $input) {
377
377
  id
378
378
  instanceId
379
+ reused
379
380
  }
380
381
  }
381
382
  `;