@droz-js/sdk 0.26.2 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/drozai.d.ts +9 -0
- package/src/sdks/ai.d.ts +47 -3
- package/src/sdks/ai.js +40 -3
- package/src/sdks/nucleus.d.ts +4 -2
- package/src/sdks/nucleus.js +3 -0
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -96,9 +96,18 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
96
96
|
aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
97
97
|
status?: import("./sdks/ai").InputMaybe<import("./sdks/ai").AiAgentApprovalStatus>;
|
|
98
98
|
}>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentApprovalsQuery>;
|
|
99
|
+
listAiAgentApprovalsPage(variables: import("./sdks/ai").Exact<{
|
|
100
|
+
aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
101
|
+
status?: import("./sdks/ai").InputMaybe<import("./sdks/ai").AiAgentApprovalStatus>;
|
|
102
|
+
limit?: import("./sdks/ai").InputMaybe<import("./sdks/ai").Scalars["Number"]["input"]>;
|
|
103
|
+
cursor?: import("./sdks/ai").InputMaybe<import("./sdks/ai").Scalars["String"]["input"]>;
|
|
104
|
+
}>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentApprovalsPageQuery>;
|
|
99
105
|
resolveAiAgentApproval(variables: import("./sdks/ai").Exact<{
|
|
100
106
|
input: import("./sdks/ai").ResolveAiAgentApprovalInput;
|
|
101
107
|
}>, options?: unknown): Promise<import("./sdks/ai").ResolveAiAgentApprovalMutation>;
|
|
108
|
+
decideAiAgentApproval(variables: import("./sdks/ai").Exact<{
|
|
109
|
+
input: import("./sdks/ai").ResolveAiAgentApprovalInput;
|
|
110
|
+
}>, options?: unknown): Promise<import("./sdks/ai").DecideAiAgentApprovalMutation>;
|
|
102
111
|
registerAiAgentTool(variables: import("./sdks/ai").Exact<{
|
|
103
112
|
input: import("./sdks/ai").RegisterAiAgentToolInput;
|
|
104
113
|
}>, options?: unknown): Promise<import("./sdks/ai").RegisterAiAgentToolMutation>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -150,6 +150,19 @@ export declare enum AiAgentApprovalDecision {
|
|
|
150
150
|
Approved = "approved",
|
|
151
151
|
Rejected = "rejected"
|
|
152
152
|
}
|
|
153
|
+
export declare enum AiAgentApprovalOutcome {
|
|
154
|
+
Decided = "decided",
|
|
155
|
+
ExecutionFailed = "executionFailed",
|
|
156
|
+
ExecutionUnconfirmed = "executionUnconfirmed",
|
|
157
|
+
Expired = "expired",
|
|
158
|
+
NotFound = "notFound",
|
|
159
|
+
TakenByOther = "takenByOther",
|
|
160
|
+
ToolUnavailable = "toolUnavailable"
|
|
161
|
+
}
|
|
162
|
+
export type AiAgentApprovalPage = {
|
|
163
|
+
nextCursor?: Maybe<Scalars['String']['output']>;
|
|
164
|
+
nodes: Array<AiAgentApproval>;
|
|
165
|
+
};
|
|
153
166
|
export declare enum AiAgentApprovalStatus {
|
|
154
167
|
Approved = "approved",
|
|
155
168
|
Expired = "expired",
|
|
@@ -1119,6 +1132,7 @@ export type Mutation = {
|
|
|
1119
1132
|
checkAiAgentVersion?: Maybe<AiAgentCheckRun>;
|
|
1120
1133
|
createNlpInstance?: Maybe<NlpInstance>;
|
|
1121
1134
|
createQnAInstance?: Maybe<QnAInstance>;
|
|
1135
|
+
decideAiAgentApproval: AiAgentApprovalOutcome;
|
|
1122
1136
|
draftAiAgent?: Maybe<AiAgentVersion>;
|
|
1123
1137
|
extractImageMetadata: ExtractImageMetadataResult;
|
|
1124
1138
|
publishAiAgentVersion: Array<AiAgentVersion>;
|
|
@@ -1132,6 +1146,7 @@ export type Mutation = {
|
|
|
1132
1146
|
removeAiAgentVersion: Array<AiAgentVersion>;
|
|
1133
1147
|
removeNlpInstance?: Maybe<NlpInstance>;
|
|
1134
1148
|
removeQnAInstance?: Maybe<QnAInstance>;
|
|
1149
|
+
/** @deprecated Use decideAiAgentApproval */
|
|
1135
1150
|
resolveAiAgentApproval: Scalars['Boolean']['output'];
|
|
1136
1151
|
rollbackAiAgentVersion: Array<AiAgentVersion>;
|
|
1137
1152
|
saveAiAgentProcedure: AiAgentProcedure;
|
|
@@ -1153,6 +1168,9 @@ export type MutationCreateNlpInstanceArgs = {
|
|
|
1153
1168
|
export type MutationCreateQnAInstanceArgs = {
|
|
1154
1169
|
input: CreateQnAInstanceInput;
|
|
1155
1170
|
};
|
|
1171
|
+
export type MutationDecideAiAgentApprovalArgs = {
|
|
1172
|
+
input: ResolveAiAgentApprovalInput;
|
|
1173
|
+
};
|
|
1156
1174
|
export type MutationDraftAiAgentArgs = {
|
|
1157
1175
|
input: DraftAiAgentInput;
|
|
1158
1176
|
};
|
|
@@ -1293,6 +1311,7 @@ export type Query = {
|
|
|
1293
1311
|
getNlpInstance?: Maybe<NlpInstance>;
|
|
1294
1312
|
getQnAInstance?: Maybe<QnAInstance>;
|
|
1295
1313
|
listAiAgentApprovals: Array<AiAgentApproval>;
|
|
1314
|
+
listAiAgentApprovalsPage: AiAgentApprovalPage;
|
|
1296
1315
|
listAiAgentProcedures: Array<AiAgentProcedure>;
|
|
1297
1316
|
listAiAgentScenarios: Array<AiAgentScenario>;
|
|
1298
1317
|
listAiAgentTools: Array<AiAgentTool>;
|
|
@@ -1354,6 +1373,12 @@ export type QueryListAiAgentApprovalsArgs = {
|
|
|
1354
1373
|
aiAgentId: Scalars['ID']['input'];
|
|
1355
1374
|
status?: InputMaybe<AiAgentApprovalStatus>;
|
|
1356
1375
|
};
|
|
1376
|
+
export type QueryListAiAgentApprovalsPageArgs = {
|
|
1377
|
+
aiAgentId: Scalars['ID']['input'];
|
|
1378
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
1379
|
+
limit?: InputMaybe<Scalars['Number']['input']>;
|
|
1380
|
+
status?: InputMaybe<AiAgentApprovalStatus>;
|
|
1381
|
+
};
|
|
1357
1382
|
export type QueryListAiAgentProceduresArgs = {
|
|
1358
1383
|
aiAgentId: Scalars['ID']['input'];
|
|
1359
1384
|
};
|
|
@@ -1818,7 +1843,7 @@ export type RememberAiAgentSessionFactsMutationVariables = Exact<{
|
|
|
1818
1843
|
input: RememberAiAgentSessionFactsInput;
|
|
1819
1844
|
}>;
|
|
1820
1845
|
export type RememberAiAgentSessionFactsMutation = Pick<Mutation, 'rememberAiAgentSessionFacts'>;
|
|
1821
|
-
export type AiAgentApprovalFragment = Pick<AiAgentApproval, 'aiAgentId' | 'sessionId' | 'toolId' | 'toolName' | 'args' | 'channelId' | 'customerId' | 'requestedAt' | 'expiresAt' | 'status' | 'decidedBy' | 'decidedAt'>;
|
|
1846
|
+
export type AiAgentApprovalFragment = Pick<AiAgentApproval, 'aiAgentId' | 'sessionId' | 'toolId' | 'toolName' | 'args' | 'channelId' | 'customerId' | 'requestedAt' | 'expiresAt' | 'status' | 'decidedBy' | 'decidedByName' | 'decidedAt'>;
|
|
1822
1847
|
export type ListAiAgentApprovalsQueryVariables = Exact<{
|
|
1823
1848
|
aiAgentId: Scalars['ID']['input'];
|
|
1824
1849
|
status?: InputMaybe<AiAgentApprovalStatus>;
|
|
@@ -1826,10 +1851,25 @@ export type ListAiAgentApprovalsQueryVariables = Exact<{
|
|
|
1826
1851
|
export type ListAiAgentApprovalsQuery = {
|
|
1827
1852
|
listAiAgentApprovals: Array<AiAgentApprovalFragment>;
|
|
1828
1853
|
};
|
|
1854
|
+
export type ListAiAgentApprovalsPageQueryVariables = Exact<{
|
|
1855
|
+
aiAgentId: Scalars['ID']['input'];
|
|
1856
|
+
status?: InputMaybe<AiAgentApprovalStatus>;
|
|
1857
|
+
limit?: InputMaybe<Scalars['Number']['input']>;
|
|
1858
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
1859
|
+
}>;
|
|
1860
|
+
export type ListAiAgentApprovalsPageQuery = {
|
|
1861
|
+
listAiAgentApprovalsPage: (Pick<AiAgentApprovalPage, 'nextCursor'> & {
|
|
1862
|
+
nodes: Array<AiAgentApprovalFragment>;
|
|
1863
|
+
});
|
|
1864
|
+
};
|
|
1829
1865
|
export type ResolveAiAgentApprovalMutationVariables = Exact<{
|
|
1830
1866
|
input: ResolveAiAgentApprovalInput;
|
|
1831
1867
|
}>;
|
|
1832
1868
|
export type ResolveAiAgentApprovalMutation = Pick<Mutation, 'resolveAiAgentApproval'>;
|
|
1869
|
+
export type DecideAiAgentApprovalMutationVariables = Exact<{
|
|
1870
|
+
input: ResolveAiAgentApprovalInput;
|
|
1871
|
+
}>;
|
|
1872
|
+
export type DecideAiAgentApprovalMutation = Pick<Mutation, 'decideAiAgentApproval'>;
|
|
1833
1873
|
export type RegisterAiAgentToolMutationVariables = Exact<{
|
|
1834
1874
|
input: RegisterAiAgentToolInput;
|
|
1835
1875
|
}>;
|
|
@@ -2037,7 +2077,7 @@ export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenari
|
|
|
2037
2077
|
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
2038
2078
|
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 ";
|
|
2039
2079
|
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
2040
|
-
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 decidedAt\n}\n ";
|
|
2080
|
+
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 ";
|
|
2041
2081
|
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 ";
|
|
2042
2082
|
export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n aiAgentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n classificationBreakdown {\n state\n subcategory\n technicalFailure\n count\n }\n conversationsEligible\n conversationsResolvedByDefinition\n conversationsProvisional\n conversationsAwaitingClassification\n resolvedRate\n unresolvedRate\n handoffProcedureRate\n handoffNeedRate\n qualifiedLeadRate\n offerAcceptedRate\n abandonmentRate\n classificationDefinitionVersion\n classificationDefinitionVersions {\n key\n count\n }\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 turnsByModelAndReasoningEffort {\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 ";
|
|
2043
2083
|
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 ";
|
|
@@ -2070,8 +2110,10 @@ export declare const SaveAiAgentProcedureDocument = "\n mutation saveAiAgentP
|
|
|
2070
2110
|
export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
|
|
2071
2111
|
export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
|
|
2072
2112
|
export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
|
|
2073
|
-
export declare const ListAiAgentApprovalsDocument = "\n query listAiAgentApprovals($aiAgentId: ID!, $status: AiAgentApprovalStatus) {\n listAiAgentApprovals(aiAgentId: $aiAgentId, status: $status) {\n ...aiAgentApproval\n }\n}\n \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 decidedAt\n}\n ";
|
|
2113
|
+
export declare const ListAiAgentApprovalsDocument = "\n query listAiAgentApprovals($aiAgentId: ID!, $status: AiAgentApprovalStatus) {\n listAiAgentApprovals(aiAgentId: $aiAgentId, status: $status) {\n ...aiAgentApproval\n }\n}\n \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 ";
|
|
2114
|
+
export declare const ListAiAgentApprovalsPageDocument = "\n query listAiAgentApprovalsPage($aiAgentId: ID!, $status: AiAgentApprovalStatus, $limit: Number, $cursor: String) {\n listAiAgentApprovalsPage(\n aiAgentId: $aiAgentId\n status: $status\n limit: $limit\n cursor: $cursor\n ) {\n nodes {\n ...aiAgentApproval\n }\n nextCursor\n }\n}\n \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 ";
|
|
2074
2115
|
export declare const ResolveAiAgentApprovalDocument = "\n mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {\n resolveAiAgentApproval(input: $input)\n}\n ";
|
|
2116
|
+
export declare const DecideAiAgentApprovalDocument = "\n mutation decideAiAgentApproval($input: ResolveAiAgentApprovalInput!) {\n decideAiAgentApproval(input: $input)\n}\n ";
|
|
2075
2117
|
export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {\n registerAiAgentTool(input: $input) {\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 emptyResultMessage\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
|
|
2076
2118
|
export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
|
|
2077
2119
|
export declare const RemoveAiAgentScenarioDocument = "\n mutation removeAiAgentScenario($input: RemoveAiAgentScenarioInput!) {\n removeAiAgentScenario(input: $input)\n}\n ";
|
|
@@ -2127,7 +2169,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2127
2169
|
removeAiAgentProcedure(variables: RemoveAiAgentProcedureMutationVariables, options?: C): Promise<RemoveAiAgentProcedureMutation>;
|
|
2128
2170
|
rememberAiAgentSessionFacts(variables: RememberAiAgentSessionFactsMutationVariables, options?: C): Promise<RememberAiAgentSessionFactsMutation>;
|
|
2129
2171
|
listAiAgentApprovals(variables: ListAiAgentApprovalsQueryVariables, options?: C): Promise<ListAiAgentApprovalsQuery>;
|
|
2172
|
+
listAiAgentApprovalsPage(variables: ListAiAgentApprovalsPageQueryVariables, options?: C): Promise<ListAiAgentApprovalsPageQuery>;
|
|
2130
2173
|
resolveAiAgentApproval(variables: ResolveAiAgentApprovalMutationVariables, options?: C): Promise<ResolveAiAgentApprovalMutation>;
|
|
2174
|
+
decideAiAgentApproval(variables: DecideAiAgentApprovalMutationVariables, options?: C): Promise<DecideAiAgentApprovalMutation>;
|
|
2131
2175
|
registerAiAgentTool(variables: RegisterAiAgentToolMutationVariables, options?: C): Promise<RegisterAiAgentToolMutation>;
|
|
2132
2176
|
unregisterAiAgentTool(variables: UnregisterAiAgentToolMutationVariables, options?: C): Promise<UnregisterAiAgentToolMutation>;
|
|
2133
2177
|
removeAiAgentScenario(variables: RemoveAiAgentScenarioMutationVariables, options?: C): Promise<RemoveAiAgentScenarioMutation>;
|
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.
|
|
5
|
-
exports.
|
|
6
|
-
exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = void 0;
|
|
4
|
+
exports.AiAgentApprovalFragmentDoc = exports.AiAgentDashboardContactReasonFragmentDoc = exports.AiAgentDashboardSentimentFragmentDoc = exports.AiAgentDashboardIndicatorFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFieldsFragmentDoc = exports.AiAgentListingMetricsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolParameterFormat = exports.ToolEffect = exports.ToolAvailability = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentVariationUnit = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentMetricsBucket = exports.AiAgentMetricPolarity = exports.AiAgentHandoffReason = exports.AiAgentFrequencyLevel = exports.AiAgentExecutionAutonomy = exports.AiAgentConversationSubcategory = exports.AiAgentConversationStatus = exports.AiAgentConversationState = exports.AiAgentConversationSortField = exports.AiAgentConversationClass = exports.AiAgentContactReasonSource = exports.AiAgentCheckRunStatus = exports.AiAgentChannelType = exports.AiAgentApprovalStatus = exports.AiAgentApprovalOutcome = exports.AiAgentApprovalDecision = exports.AiAgentAnalysisFailureReason = void 0;
|
|
5
|
+
exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentMetricsDocument = exports.AiAgentCheckLimitsDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.DecideAiAgentApprovalDocument = exports.ResolveAiAgentApprovalDocument = exports.ListAiAgentApprovalsPageDocument = exports.ListAiAgentApprovalsDocument = exports.RememberAiAgentSessionFactsDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentDashboardDocument = exports.AiAgentMetricsSeriesDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ReindexAiAgentDashboardDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentListingMetricsDocument = exports.AiAgentMetricsByAgentDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentMetricsReportFragmentDoc = exports.AiAgentCheckRunFragmentDoc = 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 = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AiAgentAnalysisFailureReason;
|
|
9
9
|
(function (AiAgentAnalysisFailureReason) {
|
|
@@ -15,6 +15,16 @@ var AiAgentApprovalDecision;
|
|
|
15
15
|
AiAgentApprovalDecision["Approved"] = "approved";
|
|
16
16
|
AiAgentApprovalDecision["Rejected"] = "rejected";
|
|
17
17
|
})(AiAgentApprovalDecision || (exports.AiAgentApprovalDecision = AiAgentApprovalDecision = {}));
|
|
18
|
+
var AiAgentApprovalOutcome;
|
|
19
|
+
(function (AiAgentApprovalOutcome) {
|
|
20
|
+
AiAgentApprovalOutcome["Decided"] = "decided";
|
|
21
|
+
AiAgentApprovalOutcome["ExecutionFailed"] = "executionFailed";
|
|
22
|
+
AiAgentApprovalOutcome["ExecutionUnconfirmed"] = "executionUnconfirmed";
|
|
23
|
+
AiAgentApprovalOutcome["Expired"] = "expired";
|
|
24
|
+
AiAgentApprovalOutcome["NotFound"] = "notFound";
|
|
25
|
+
AiAgentApprovalOutcome["TakenByOther"] = "takenByOther";
|
|
26
|
+
AiAgentApprovalOutcome["ToolUnavailable"] = "toolUnavailable";
|
|
27
|
+
})(AiAgentApprovalOutcome || (exports.AiAgentApprovalOutcome = AiAgentApprovalOutcome = {}));
|
|
18
28
|
var AiAgentApprovalStatus;
|
|
19
29
|
(function (AiAgentApprovalStatus) {
|
|
20
30
|
AiAgentApprovalStatus["Approved"] = "approved";
|
|
@@ -512,6 +522,7 @@ exports.AiAgentApprovalFragmentDoc = `
|
|
|
512
522
|
expiresAt
|
|
513
523
|
status
|
|
514
524
|
decidedBy
|
|
525
|
+
decidedByName
|
|
515
526
|
decidedAt
|
|
516
527
|
}
|
|
517
528
|
`;
|
|
@@ -1189,11 +1200,31 @@ exports.ListAiAgentApprovalsDocument = `
|
|
|
1189
1200
|
}
|
|
1190
1201
|
}
|
|
1191
1202
|
${exports.AiAgentApprovalFragmentDoc}`;
|
|
1203
|
+
exports.ListAiAgentApprovalsPageDocument = `
|
|
1204
|
+
query listAiAgentApprovalsPage($aiAgentId: ID!, $status: AiAgentApprovalStatus, $limit: Number, $cursor: String) {
|
|
1205
|
+
listAiAgentApprovalsPage(
|
|
1206
|
+
aiAgentId: $aiAgentId
|
|
1207
|
+
status: $status
|
|
1208
|
+
limit: $limit
|
|
1209
|
+
cursor: $cursor
|
|
1210
|
+
) {
|
|
1211
|
+
nodes {
|
|
1212
|
+
...aiAgentApproval
|
|
1213
|
+
}
|
|
1214
|
+
nextCursor
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
${exports.AiAgentApprovalFragmentDoc}`;
|
|
1192
1218
|
exports.ResolveAiAgentApprovalDocument = `
|
|
1193
1219
|
mutation resolveAiAgentApproval($input: ResolveAiAgentApprovalInput!) {
|
|
1194
1220
|
resolveAiAgentApproval(input: $input)
|
|
1195
1221
|
}
|
|
1196
1222
|
`;
|
|
1223
|
+
exports.DecideAiAgentApprovalDocument = `
|
|
1224
|
+
mutation decideAiAgentApproval($input: ResolveAiAgentApprovalInput!) {
|
|
1225
|
+
decideAiAgentApproval(input: $input)
|
|
1226
|
+
}
|
|
1227
|
+
`;
|
|
1197
1228
|
exports.RegisterAiAgentToolDocument = `
|
|
1198
1229
|
mutation registerAiAgentTool($input: RegisterAiAgentToolInput!) {
|
|
1199
1230
|
registerAiAgentTool(input: $input) {
|
|
@@ -1477,9 +1508,15 @@ function getSdk(requester) {
|
|
|
1477
1508
|
listAiAgentApprovals(variables, options) {
|
|
1478
1509
|
return requester(exports.ListAiAgentApprovalsDocument, variables, options);
|
|
1479
1510
|
},
|
|
1511
|
+
listAiAgentApprovalsPage(variables, options) {
|
|
1512
|
+
return requester(exports.ListAiAgentApprovalsPageDocument, variables, options);
|
|
1513
|
+
},
|
|
1480
1514
|
resolveAiAgentApproval(variables, options) {
|
|
1481
1515
|
return requester(exports.ResolveAiAgentApprovalDocument, variables, options);
|
|
1482
1516
|
},
|
|
1517
|
+
decideAiAgentApproval(variables, options) {
|
|
1518
|
+
return requester(exports.DecideAiAgentApprovalDocument, variables, options);
|
|
1519
|
+
},
|
|
1483
1520
|
registerAiAgentTool(variables, options) {
|
|
1484
1521
|
return requester(exports.RegisterAiAgentToolDocument, variables, options);
|
|
1485
1522
|
},
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -1733,7 +1733,9 @@ export type GetActiveSessionQueryVariables = Exact<{
|
|
|
1733
1733
|
triggerDrn: Scalars['ID']['input'];
|
|
1734
1734
|
}>;
|
|
1735
1735
|
export type GetActiveSessionQuery = {
|
|
1736
|
-
getActiveSession?: Maybe<
|
|
1736
|
+
getActiveSession?: Maybe<({
|
|
1737
|
+
context: Pick<SessionContext, 'platform'>;
|
|
1738
|
+
} & SessionFragment)>;
|
|
1737
1739
|
};
|
|
1738
1740
|
export type GetSessionSchemaQueryVariables = Exact<{
|
|
1739
1741
|
lang?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2001,7 +2003,7 @@ export declare const CheckPermissionsDocument = "\n query checkPermissions($c
|
|
|
2001
2003
|
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
2002
2004
|
export declare const StartCustomSessionDocument = "\n mutation startCustomSession($input: StartSessionInput!) {\n startCustomSession(input: $input) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n ";
|
|
2003
2005
|
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
2004
|
-
export declare const GetActiveSessionDocument = "\n query getActiveSession($customer: GetOrCreateCustomerInput!, $triggerDrn: ID!) {\n getActiveSession(customer: $customer, triggerDrn: $triggerDrn) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n ";
|
|
2006
|
+
export declare const GetActiveSessionDocument = "\n query getActiveSession($customer: GetOrCreateCustomerInput!, $triggerDrn: ID!) {\n getActiveSession(customer: $customer, triggerDrn: $triggerDrn) {\n ...session\n context {\n platform\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n aiAgentId\n triggerDrn\n status\n createdAt\n lastMessageAt\n}\n ";
|
|
2005
2007
|
export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
2006
2008
|
export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
2007
2009
|
export declare const SearchSessionsDocument = "\n query searchSessions($q: String, $filters: [SessionSearchFilterInput!], $page: Number, $perPage: Number) {\n searchSessions(q: $q, filters: $filters, page: $page, perPage: $perPage) {\n nodes {\n ...indexedSession\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment indexedSession on IndexedSession {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n customer\n attributes\n context\n messages\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -922,6 +922,9 @@ exports.GetActiveSessionDocument = `
|
|
|
922
922
|
query getActiveSession($customer: GetOrCreateCustomerInput!, $triggerDrn: ID!) {
|
|
923
923
|
getActiveSession(customer: $customer, triggerDrn: $triggerDrn) {
|
|
924
924
|
...session
|
|
925
|
+
context {
|
|
926
|
+
platform
|
|
927
|
+
}
|
|
925
928
|
}
|
|
926
929
|
}
|
|
927
930
|
${exports.SessionFragmentDoc}`;
|