@droz-js/sdk 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sdks/ai.d.ts +35 -6
- package/src/sdks/ai.js +13 -0
package/package.json
CHANGED
package/src/sdks/ai.d.ts
CHANGED
|
@@ -178,6 +178,22 @@ export type AiAgentBudgetInput = {
|
|
|
178
178
|
maxToolCalls: Scalars['Int']['input'];
|
|
179
179
|
onExceeded: BudgetExceededAction;
|
|
180
180
|
};
|
|
181
|
+
export type AiAgentChannelTiming = {
|
|
182
|
+
abandonAfterMs?: Maybe<Scalars['Number']['output']>;
|
|
183
|
+
channel: Scalars['String']['output'];
|
|
184
|
+
metaWindowMs?: Maybe<Scalars['Number']['output']>;
|
|
185
|
+
remindAfterMs?: Maybe<Scalars['Number']['output']>;
|
|
186
|
+
reminderMessage?: Maybe<Scalars['String']['output']>;
|
|
187
|
+
renewalMessage?: Maybe<Scalars['String']['output']>;
|
|
188
|
+
};
|
|
189
|
+
export type AiAgentChannelTimingInput = {
|
|
190
|
+
abandonAfterMs?: InputMaybe<Scalars['Number']['input']>;
|
|
191
|
+
channel: Scalars['String']['input'];
|
|
192
|
+
metaWindowMs?: InputMaybe<Scalars['Number']['input']>;
|
|
193
|
+
remindAfterMs?: InputMaybe<Scalars['Number']['input']>;
|
|
194
|
+
reminderMessage?: InputMaybe<Scalars['String']['input']>;
|
|
195
|
+
renewalMessage?: InputMaybe<Scalars['String']['input']>;
|
|
196
|
+
};
|
|
181
197
|
export declare enum AiAgentChannelType {
|
|
182
198
|
Email = "email",
|
|
183
199
|
Web = "web",
|
|
@@ -763,14 +779,19 @@ export type AiAgentMetricsWindowInput = {
|
|
|
763
779
|
to: Scalars['Number']['input'];
|
|
764
780
|
};
|
|
765
781
|
export type AiAgentProcedure = {
|
|
782
|
+
approvedReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
766
783
|
contingency: Scalars['String']['output'];
|
|
784
|
+
continuesAfterApproval: Scalars['Boolean']['output'];
|
|
785
|
+
deniedReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
767
786
|
endsConversationAfterInforming: Scalars['Boolean']['output'];
|
|
768
787
|
/** `autonomous` ou `needsApproval`. Ferramenta irreversivel exige `needsApproval`. */
|
|
769
788
|
executionAutonomy: Scalars['String']['output'];
|
|
789
|
+
expiredReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
770
790
|
/** As etapas como o autor instruiria uma pessoa. O texto e a fonte da verdade (§6.2). */
|
|
771
791
|
guidanceSteps: Array<Scalars['String']['output']>;
|
|
772
792
|
id: Scalars['ID']['output'];
|
|
773
793
|
name: Scalars['String']['output'];
|
|
794
|
+
replyEmailSubject?: Maybe<Scalars['String']['output']>;
|
|
774
795
|
status: Scalars['String']['output'];
|
|
775
796
|
/** Ferramentas que as etapas usam. Declaradas: e o que da para validar sem interpretar o texto. */
|
|
776
797
|
toolIds: Array<Scalars['ID']['output']>;
|
|
@@ -914,6 +935,7 @@ export type AiAgentSpec = {
|
|
|
914
935
|
cannot: Array<Scalars['String']['output']>;
|
|
915
936
|
/** Canais em que o agente atende. Ausente = ainda nao vinculado; declarado vazio e erro. */
|
|
916
937
|
channels?: Maybe<Array<Scalars['String']['output']>>;
|
|
938
|
+
conversationTiming?: Maybe<Array<AiAgentChannelTiming>>;
|
|
917
939
|
handoff?: Maybe<AiAgentHandoff>;
|
|
918
940
|
identity: AiAgentIdentity;
|
|
919
941
|
/**
|
|
@@ -933,6 +955,7 @@ export type AiAgentSpecInput = {
|
|
|
933
955
|
can: Array<Scalars['String']['input']>;
|
|
934
956
|
cannot: Array<Scalars['String']['input']>;
|
|
935
957
|
channels?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
958
|
+
conversationTiming?: InputMaybe<Array<AiAgentChannelTimingInput>>;
|
|
936
959
|
handoff?: InputMaybe<AiAgentHandoffInput>;
|
|
937
960
|
identity: AiAgentIdentityInput;
|
|
938
961
|
/**
|
|
@@ -1497,12 +1520,17 @@ export type ResolveAiAgentApprovalInput = {
|
|
|
1497
1520
|
};
|
|
1498
1521
|
export type SaveAiAgentProcedureInput = {
|
|
1499
1522
|
agentId: Scalars['ID']['input'];
|
|
1523
|
+
approvedReplyTemplate?: InputMaybe<Scalars['String']['input']>;
|
|
1500
1524
|
contingency: Scalars['String']['input'];
|
|
1525
|
+
continuesAfterApproval?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1526
|
+
deniedReplyTemplate?: InputMaybe<Scalars['String']['input']>;
|
|
1501
1527
|
endsConversationAfterInforming?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1502
1528
|
executionAutonomy: Scalars['String']['input'];
|
|
1529
|
+
expiredReplyTemplate?: InputMaybe<Scalars['String']['input']>;
|
|
1503
1530
|
guidanceSteps: Array<Scalars['String']['input']>;
|
|
1504
1531
|
id: Scalars['ID']['input'];
|
|
1505
1532
|
name: Scalars['String']['input'];
|
|
1533
|
+
replyEmailSubject?: InputMaybe<Scalars['String']['input']>;
|
|
1506
1534
|
status: Scalars['String']['input'];
|
|
1507
1535
|
toolIds: Array<Scalars['ID']['input']>;
|
|
1508
1536
|
};
|
|
@@ -1672,6 +1700,7 @@ export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowled
|
|
|
1672
1700
|
identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
|
|
1673
1701
|
budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
|
|
1674
1702
|
handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
|
|
1703
|
+
conversationTiming?: Maybe<Array<Pick<AiAgentChannelTiming, 'channel' | 'abandonAfterMs' | 'remindAfterMs' | 'metaWindowMs' | 'reminderMessage' | 'renewalMessage'>>>;
|
|
1675
1704
|
});
|
|
1676
1705
|
export type AiAgentToolExclusionFragment = Pick<AiAgentToolExclusion, 'toolId' | 'reason'>;
|
|
1677
1706
|
export type AiAgentVersionWithSpecFragment = (Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'> & {
|
|
@@ -1736,7 +1765,7 @@ export type RemoveAiAgentMutationVariables = Exact<{
|
|
|
1736
1765
|
}>;
|
|
1737
1766
|
export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
|
|
1738
1767
|
export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'tag' | 'status' | 'updatedAt'>;
|
|
1739
|
-
export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'status' | 'updatedAt'>;
|
|
1768
|
+
export type AiAgentProcedureFragment = Pick<AiAgentProcedure, 'id' | 'name' | 'guidanceSteps' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'status' | 'updatedAt'>;
|
|
1740
1769
|
export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'customerScope' | 'returns' | 'approval'> & {
|
|
1741
1770
|
parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding'>>;
|
|
1742
1771
|
});
|
|
@@ -2088,12 +2117,12 @@ export type RemoveQnAInstanceMutation = {
|
|
|
2088
2117
|
};
|
|
2089
2118
|
export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
|
|
2090
2119
|
export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
2091
|
-
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 }\n channels\n}\n ";
|
|
2120
|
+
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 }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n}\n ";
|
|
2092
2121
|
export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2093
2122
|
export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n ";
|
|
2094
2123
|
export declare const AiAgentListingMetricsFragmentDoc = "\n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
|
|
2095
2124
|
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 ";
|
|
2096
|
-
export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n status\n updatedAt\n}\n ";
|
|
2125
|
+
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 status\n updatedAt\n}\n ";
|
|
2097
2126
|
export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n }\n}\n ";
|
|
2098
2127
|
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
|
|
2099
2128
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
@@ -2115,7 +2144,7 @@ export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAi
|
|
|
2115
2144
|
export declare const RemoveAiAgentVersionDocument = "\n mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {\n removeAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
2116
2145
|
export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
|
|
2117
2146
|
export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCases($agentId: ID!) {\n listAiAgentUseCases(agentId: $agentId) {\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 ";
|
|
2118
|
-
export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($agentId: ID!) {\n listAiAgentProcedures(agentId: $agentId) {\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 status\n updatedAt\n}\n ";
|
|
2147
|
+
export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($agentId: ID!) {\n listAiAgentProcedures(agentId: $agentId) {\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 status\n updatedAt\n}\n ";
|
|
2119
2148
|
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 customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n }\n}\n ";
|
|
2120
2149
|
export declare const AiAgentUseCaseOverlapDocument = "\n query aiAgentUseCaseOverlap($agentId: ID!) {\n aiAgentUseCaseOverlap(agentId: $agentId) {\n threshold\n pairs {\n left\n right\n score\n }\n }\n}\n ";
|
|
2121
2150
|
export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!) {\n aiAgentTrace(sessionId: $sessionId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
@@ -2127,7 +2156,7 @@ export declare const AiAgentMetricsSeriesDocument = "\n query aiAgentMetricsS
|
|
|
2127
2156
|
export declare const AiAgentDashboardDocument = "\n query aiAgentDashboard($input: AiAgentDashboardInput!) {\n aiAgentDashboard(input: $input) {\n agentId\n period\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 abandonment {\n ...aiAgentDashboardIndicator\n }\n scoreBands {\n band\n count\n percent\n polarity\n variation {\n unit\n value\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 ";
|
|
2128
2157
|
export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!) {\n aiAgentConversationOutcome(sessionId: $sessionId) {\n sessionId\n agentId\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 classification\n subcategory\n technicalFailure\n eligibleForResolution\n consumesAllowance\n inactivityWindowMs\n definitionVersion\n }\n channelType\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 ";
|
|
2129
2158
|
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 ";
|
|
2130
|
-
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 status\n updatedAt\n}\n ";
|
|
2159
|
+
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 status\n updatedAt\n}\n ";
|
|
2131
2160
|
export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
|
|
2132
2161
|
export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
|
|
2133
2162
|
export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
|
|
@@ -2141,7 +2170,7 @@ export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentV
|
|
|
2141
2170
|
export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(agentId: $agentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\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 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 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 ";
|
|
2142
2171
|
export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
|
|
2143
2172
|
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n conversationsByClassification {\n key\n count\n }\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n abandonmentRate\n classificationDefinitionVersion\n analyzedConversations\n estimatedSatisfactionAvg\n sentimentAtStart {\n key\n count\n }\n sentimentAtEnd {\n key\n count\n }\n riskAlerts {\n key\n count\n }\n topKnowledgeGaps {\n key\n count\n }\n analysisCostMicroUsd\n failedAnalyses\n analysesTruncated\n agentScoreAvg\n agentScoreAvgBand\n agentScoreBands {\n key\n count\n }\n agentClarityAvg\n customerEffortScoreAvg\n contactReasons {\n all {\n key\n count\n }\n handoff {\n key\n count\n }\n abandonment {\n key\n count\n }\n }\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
2144
|
-
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\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 }\n channels\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2173
|
+
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\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 }\n channels\n conversationTiming {\n channel\n abandonAfterMs\n remindAfterMs\n metaWindowMs\n reminderMessage\n renewalMessage\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2145
2174
|
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 ";
|
|
2146
2175
|
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
|
|
2147
2176
|
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 ";
|
package/src/sdks/ai.js
CHANGED
|
@@ -276,6 +276,14 @@ exports.AiAgentSpecFragmentDoc = `
|
|
|
276
276
|
target
|
|
277
277
|
}
|
|
278
278
|
channels
|
|
279
|
+
conversationTiming {
|
|
280
|
+
channel
|
|
281
|
+
abandonAfterMs
|
|
282
|
+
remindAfterMs
|
|
283
|
+
metaWindowMs
|
|
284
|
+
reminderMessage
|
|
285
|
+
renewalMessage
|
|
286
|
+
}
|
|
279
287
|
}
|
|
280
288
|
`;
|
|
281
289
|
exports.AiAgentToolExclusionFragmentDoc = `
|
|
@@ -329,6 +337,11 @@ exports.AiAgentProcedureFragmentDoc = `
|
|
|
329
337
|
contingency
|
|
330
338
|
executionAutonomy
|
|
331
339
|
endsConversationAfterInforming
|
|
340
|
+
continuesAfterApproval
|
|
341
|
+
approvedReplyTemplate
|
|
342
|
+
deniedReplyTemplate
|
|
343
|
+
expiredReplyTemplate
|
|
344
|
+
replyEmailSubject
|
|
332
345
|
status
|
|
333
346
|
updatedAt
|
|
334
347
|
}
|