@droz-js/sdk 0.26.20 → 0.26.23
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 +4 -0
- package/src/sdks/ai.d.ts +59 -7
- package/src/sdks/ai.js +56 -3
- package/src/sdks/drozchat.d.ts +2 -1
- package/src/sdks/drozcommons.d.ts +1 -0
- package/src/sdks/drozcommons.js +1 -0
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -148,6 +148,10 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
148
148
|
aiAgentKnowledgeBases(variables?: import("./sdks/ai").Exact<{
|
|
149
149
|
[key: string]: never;
|
|
150
150
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentKnowledgeBasesQuery>;
|
|
151
|
+
aiAgentTranscript(variables: import("./sdks/ai").Exact<{
|
|
152
|
+
sessionId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
153
|
+
conversationId?: import("./sdks/ai").InputMaybe<import("./sdks/ai").Scalars["ID"]["input"]>;
|
|
154
|
+
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentTranscriptQuery>;
|
|
151
155
|
extractImageMetadata(variables: import("./sdks/ai").Exact<{
|
|
152
156
|
input: import("./sdks/ai").ExtractImageMetadataInput;
|
|
153
157
|
}>, options?: unknown): Promise<import("./sdks/ai").ExtractImageMetadataMutation>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -762,6 +762,16 @@ export type AiAgentObjectionInput = {
|
|
|
762
762
|
objection: Scalars['String']['input'];
|
|
763
763
|
response: Scalars['String']['input'];
|
|
764
764
|
};
|
|
765
|
+
export type AiAgentPlatformTextRef = {
|
|
766
|
+
key: AiAgentPromptTextKey;
|
|
767
|
+
scope: AiAgentPlatformTextScope;
|
|
768
|
+
version: Scalars['Int']['output'];
|
|
769
|
+
};
|
|
770
|
+
export declare enum AiAgentPlatformTextScope {
|
|
771
|
+
Code = "code",
|
|
772
|
+
Global = "global",
|
|
773
|
+
Tenant = "tenant"
|
|
774
|
+
}
|
|
765
775
|
export type AiAgentProcedure = {
|
|
766
776
|
approvalQueueId?: Maybe<Scalars['String']['output']>;
|
|
767
777
|
approvedReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
@@ -782,6 +792,20 @@ export type AiAgentProcedure = {
|
|
|
782
792
|
toolIds: Array<Scalars['ID']['output']>;
|
|
783
793
|
updatedAt: Scalars['Number']['output'];
|
|
784
794
|
};
|
|
795
|
+
export declare enum AiAgentPromptTextKey {
|
|
796
|
+
CampaignHeader = "campaignHeader",
|
|
797
|
+
CannotTransfer = "cannotTransfer",
|
|
798
|
+
CustomerDataRule = "customerDataRule",
|
|
799
|
+
HeldHandoffRule = "heldHandoffRule",
|
|
800
|
+
MasterRule = "masterRule",
|
|
801
|
+
PersonalDataMarkerRule = "personalDataMarkerRule",
|
|
802
|
+
PrecedenceFooter = "precedenceFooter",
|
|
803
|
+
PrecedenceHeader = "precedenceHeader",
|
|
804
|
+
RefusalAcceptRule = "refusalAcceptRule",
|
|
805
|
+
RefusalRetryRule = "refusalRetryRule",
|
|
806
|
+
ReplyLanguageRule = "replyLanguageRule",
|
|
807
|
+
StopMessagesRule = "stopMessagesRule"
|
|
808
|
+
}
|
|
785
809
|
export type AiAgentRefInput = {
|
|
786
810
|
aiAgentId: Scalars['ID']['input'];
|
|
787
811
|
};
|
|
@@ -930,8 +954,6 @@ export declare enum AiAgentTechnicalFailure {
|
|
|
930
954
|
ToolUnavailable = "TOOL_UNAVAILABLE"
|
|
931
955
|
}
|
|
932
956
|
export type AiAgentTool = {
|
|
933
|
-
/** @deprecated Use approvalMode */
|
|
934
|
-
approval?: Maybe<Scalars['String']['output']>;
|
|
935
957
|
approvalMode?: Maybe<ToolApprovalMode>;
|
|
936
958
|
availability: ToolAvailability;
|
|
937
959
|
concludedWhen?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -992,8 +1014,6 @@ export type AiAgentToolRecordOwnerInput = {
|
|
|
992
1014
|
ownerParameters: Array<Scalars['String']['input']>;
|
|
993
1015
|
};
|
|
994
1016
|
export type AiAgentToolSpecInput = {
|
|
995
|
-
/** @deprecated Use approvalMode */
|
|
996
|
-
approval?: InputMaybe<Scalars['String']['input']>;
|
|
997
1017
|
approvalMode?: InputMaybe<ToolApprovalMode>;
|
|
998
1018
|
availability: ToolAvailability;
|
|
999
1019
|
concludedWhen?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -1015,6 +1035,7 @@ export type AiAgentToolSpecInput = {
|
|
|
1015
1035
|
toolId: Scalars['ID']['input'];
|
|
1016
1036
|
};
|
|
1017
1037
|
export type AiAgentTrace = {
|
|
1038
|
+
agentPromptTexts: Array<AiAgentPlatformTextRef>;
|
|
1018
1039
|
agentVersion: Scalars['String']['output'];
|
|
1019
1040
|
aiAgentId: Scalars['ID']['output'];
|
|
1020
1041
|
answer: Scalars['String']['output'];
|
|
@@ -1050,10 +1071,23 @@ export type AiAgentTracedToolCall = {
|
|
|
1050
1071
|
result: Scalars['String']['output'];
|
|
1051
1072
|
toolId: Scalars['ID']['output'];
|
|
1052
1073
|
};
|
|
1074
|
+
export declare enum AiAgentTranscriptAuthor {
|
|
1075
|
+
Agent = "agent",
|
|
1076
|
+
Bot = "bot",
|
|
1077
|
+
Customer = "customer",
|
|
1078
|
+
Opening = "opening"
|
|
1079
|
+
}
|
|
1080
|
+
export type AiAgentTranscriptMessage = {
|
|
1081
|
+
author: AiAgentTranscriptAuthor;
|
|
1082
|
+
startedAt: Scalars['Float']['output'];
|
|
1083
|
+
text: Scalars['String']['output'];
|
|
1084
|
+
};
|
|
1053
1085
|
export declare enum AiAgentUnbackedClaimAction {
|
|
1054
1086
|
Delivered = "delivered",
|
|
1055
1087
|
Replaced = "replaced",
|
|
1056
|
-
Retried = "retried"
|
|
1088
|
+
Retried = "retried",
|
|
1089
|
+
Transferred = "transferred",
|
|
1090
|
+
Trimmed = "trimmed"
|
|
1057
1091
|
}
|
|
1058
1092
|
export type AiAgentUseCase = {
|
|
1059
1093
|
id: Scalars['ID']['output'];
|
|
@@ -1307,6 +1341,7 @@ export type PageInfo = {
|
|
|
1307
1341
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
1308
1342
|
};
|
|
1309
1343
|
export declare enum ParameterGrounding {
|
|
1344
|
+
Chosen = "chosen",
|
|
1310
1345
|
Free = "free",
|
|
1311
1346
|
Required = "required"
|
|
1312
1347
|
}
|
|
@@ -1333,6 +1368,7 @@ export type Query = {
|
|
|
1333
1368
|
aiAgentRetentionPolicy: AiAgentRetentionPolicy;
|
|
1334
1369
|
aiAgentRoutingPreview: AiAgentRoutingPreview;
|
|
1335
1370
|
aiAgentTrace: Array<AiAgentTrace>;
|
|
1371
|
+
aiAgentTranscript: Array<AiAgentTranscriptMessage>;
|
|
1336
1372
|
aiAgentUseCaseOverlap: AiAgentUseCaseOverlap;
|
|
1337
1373
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
1338
1374
|
getAiAgentCheckRun?: Maybe<AiAgentCheckRun>;
|
|
@@ -1379,6 +1415,10 @@ export type QueryAiAgentTraceArgs = {
|
|
|
1379
1415
|
conversationId?: InputMaybe<Scalars['ID']['input']>;
|
|
1380
1416
|
sessionId: Scalars['ID']['input'];
|
|
1381
1417
|
};
|
|
1418
|
+
export type QueryAiAgentTranscriptArgs = {
|
|
1419
|
+
conversationId?: InputMaybe<Scalars['ID']['input']>;
|
|
1420
|
+
sessionId: Scalars['ID']['input'];
|
|
1421
|
+
};
|
|
1382
1422
|
export type QueryAiAgentUseCaseOverlapArgs = {
|
|
1383
1423
|
aiAgentId: Scalars['ID']['input'];
|
|
1384
1424
|
};
|
|
@@ -1720,6 +1760,7 @@ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'descri
|
|
|
1720
1760
|
parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding' | 'format'>>;
|
|
1721
1761
|
});
|
|
1722
1762
|
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'> & {
|
|
1763
|
+
agentPromptTexts: Array<Pick<AiAgentPlatformTextRef, 'key' | 'scope' | 'version'>>;
|
|
1723
1764
|
excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
|
|
1724
1765
|
toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'empty' | 'connection' | 'errorClass' | 'held'>>;
|
|
1725
1766
|
});
|
|
@@ -2012,6 +2053,14 @@ export type AiAgentKnowledgeBasesQueryVariables = Exact<{
|
|
|
2012
2053
|
export type AiAgentKnowledgeBasesQuery = {
|
|
2013
2054
|
aiAgentKnowledgeBases: Array<Pick<AiAgentKnowledgeBase, 'id' | 'title' | 'isPublic'>>;
|
|
2014
2055
|
};
|
|
2056
|
+
export type AiAgentTranscriptMessageFragment = Pick<AiAgentTranscriptMessage, 'author' | 'text' | 'startedAt'>;
|
|
2057
|
+
export type AiAgentTranscriptQueryVariables = Exact<{
|
|
2058
|
+
sessionId: Scalars['ID']['input'];
|
|
2059
|
+
conversationId?: InputMaybe<Scalars['ID']['input']>;
|
|
2060
|
+
}>;
|
|
2061
|
+
export type AiAgentTranscriptQuery = {
|
|
2062
|
+
aiAgentTranscript: Array<AiAgentTranscriptMessageFragment>;
|
|
2063
|
+
};
|
|
2015
2064
|
export type ExtractImageMetadataMutationVariables = Exact<{
|
|
2016
2065
|
input: ExtractImageMetadataInput;
|
|
2017
2066
|
}>;
|
|
@@ -2110,7 +2159,7 @@ export declare const AiAgentListingMetricsFieldsFragmentDoc = "\n fragment ai
|
|
|
2110
2159
|
export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n tag\n status\n updatedAt\n}\n ";
|
|
2111
2160
|
export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvalQueueId\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
|
|
2112
2161
|
export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n concludedWhen\n emptyResultMessage\n customerScope\n recordOwner {\n listPath\n ownerField\n ownerParameters\n }\n returns\n deliverAsIs\n approvalMode\n confirmation {\n summaryField\n tokenField\n tokenArg\n }\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
|
|
2113
|
-
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n platformTextVersions\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n unbackedClaim\n unbackedClaimKinds\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n held\n }\n}\n ";
|
|
2162
|
+
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 ";
|
|
2114
2163
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
2115
2164
|
export declare const AiAgentBusinessHoursFragmentDoc = "\n fragment aiAgentBusinessHours on AiAgentBusinessHours {\n source\n product\n recordId\n days {\n weekday\n enabled\n slots {\n start\n end\n }\n }\n status\n alert\n receivedAt\n}\n ";
|
|
2116
2165
|
export declare const AiAgentDashboardIndicatorFragmentDoc = "\n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n ";
|
|
@@ -2118,6 +2167,7 @@ export declare const AiAgentDashboardSentimentFragmentDoc = "\n fragment aiAg
|
|
|
2118
2167
|
export declare const AiAgentDashboardContactReasonFragmentDoc = "\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
2119
2168
|
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 ";
|
|
2120
2169
|
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 ";
|
|
2170
|
+
export declare const AiAgentTranscriptMessageFragmentDoc = "\n fragment aiAgentTranscriptMessage on AiAgentTranscriptMessage {\n author\n text\n startedAt\n}\n ";
|
|
2121
2171
|
export declare const NlpInstanceFragmentDoc = "\n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
2122
2172
|
export declare const QnaFragmentFragmentDoc = "\n fragment qnaFragment on QnAInstance {\n id\n name\n drn\n credentialsId\n tryToReplyOnTransition\n createdAt\n updatedAt\n}\n ";
|
|
2123
2173
|
export declare const ListAiAgentsDocument = "\n query listAiAgents {\n listAiAgents {\n ...aiAgentSummary\n }\n}\n \n fragment aiAgentSummary on AiAgentSummary {\n aiAgentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n hasHumanIntervention\n status\n}\n ";
|
|
@@ -2133,7 +2183,7 @@ export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCa
|
|
|
2133
2183
|
export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($aiAgentId: ID!) {\n listAiAgentProcedures(aiAgentId: $aiAgentId) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvalQueueId\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
|
|
2134
2184
|
export declare const ListAiAgentToolsDocument = "\n query listAiAgentTools {\n listAiAgentTools {\n ...aiAgentTool\n }\n}\n \n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n concludedWhen\n emptyResultMessage\n customerScope\n recordOwner {\n listPath\n ownerField\n ownerParameters\n }\n returns\n deliverAsIs\n approvalMode\n confirmation {\n summaryField\n tokenField\n tokenArg\n }\n parameters {\n name\n type\n required\n description\n grounding\n format\n }\n}\n ";
|
|
2135
2185
|
export declare const AiAgentUseCaseOverlapDocument = "\n query aiAgentUseCaseOverlap($aiAgentId: ID!) {\n aiAgentUseCaseOverlap(aiAgentId: $aiAgentId) {\n threshold\n pairs {\n left\n right\n score\n }\n }\n}\n ";
|
|
2136
|
-
export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!, $conversationId: ID) {\n aiAgentTrace(sessionId: $sessionId, conversationId: $conversationId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n aiAgentId\n agentVersion\n input\n promptBuilderVersion\n platformTextVersions\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n knowledgeQuery\n outcome\n haltReason\n handoffHeld\n unbackedClaim\n unbackedClaimKinds\n steps\n answer\n startedAt\n model\n reasoningEffort\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n empty\n connection\n errorClass\n held\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
2186
|
+
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 ";
|
|
2137
2187
|
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 ";
|
|
2138
2188
|
export declare const ReindexAiAgentDashboardDocument = "\n mutation reindexAiAgentDashboard($input: ReindexAiAgentDashboardInput!) {\n reindexAiAgentDashboard(input: $input)\n}\n ";
|
|
2139
2189
|
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 ";
|
|
@@ -2165,6 +2215,7 @@ export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimit
|
|
|
2165
2215
|
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 ";
|
|
2166
2216
|
export declare const AiAgentRoutingPreviewDocument = "\n query aiAgentRoutingPreview($input: AiAgentRoutingPreviewInput!) {\n aiAgentRoutingPreview(input: $input) {\n high\n medium\n examples {\n message\n useCaseId\n score\n confidence\n }\n }\n}\n ";
|
|
2167
2217
|
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
|
|
2218
|
+
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 ";
|
|
2168
2219
|
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 ";
|
|
2169
2220
|
export declare const GetNlpInstanceDocument = "\n query getNlpInstance($id: ID!) {\n getNlpInstance(id: $id) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
2170
2221
|
export declare const ListNlpInstancesDocument = "\n query listNlpInstances {\n listNlpInstances {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n drn\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -2225,6 +2276,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2225
2276
|
aiAgentVersionSpec(variables: AiAgentVersionSpecQueryVariables, options?: C): Promise<AiAgentVersionSpecQuery>;
|
|
2226
2277
|
aiAgentRoutingPreview(variables: AiAgentRoutingPreviewQueryVariables, options?: C): Promise<AiAgentRoutingPreviewQuery>;
|
|
2227
2278
|
aiAgentKnowledgeBases(variables?: AiAgentKnowledgeBasesQueryVariables, options?: C): Promise<AiAgentKnowledgeBasesQuery>;
|
|
2279
|
+
aiAgentTranscript(variables: AiAgentTranscriptQueryVariables, options?: C): Promise<AiAgentTranscriptQuery>;
|
|
2228
2280
|
extractImageMetadata(variables: ExtractImageMetadataMutationVariables, options?: C): Promise<ExtractImageMetadataMutation>;
|
|
2229
2281
|
getNlpInstance(variables: GetNlpInstanceQueryVariables, options?: C): Promise<GetNlpInstanceQuery>;
|
|
2230
2282
|
listNlpInstances(variables?: ListNlpInstancesQueryVariables, options?: C): Promise<ListNlpInstancesQuery>;
|
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 = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentCheckLimitsDocument = exports.AiAgentAuthoringRulesDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = void 0;
|
|
4
|
+
exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolParameterFormat = exports.ToolEffect = exports.ToolAvailability = exports.ToolApprovalMode = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentVariationUnit = exports.AiAgentUnbackedClaimAction = exports.AiAgentTranscriptAuthor = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentPromptTextKey = 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.DecideAiAgentApprovalDocument = exports.ResolveAiAgentApprovalDocument = exports.ListAiAgentApprovalsPageDocument = exports.ListAiAgentApprovalsDocument = exports.RememberAiAgentSessionFactsDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentDashboardDocument = exports.AiAgentMetricsSeriesDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentBusinessHoursDocument = exports.AiAgentApprovalQueueAlertsDocument = exports.SetAiAgentBusinessHoursDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = exports.ReindexAiAgentDashboardDocument = exports.ListAiAgentScenariosDocument = exports.AiAgentTraceDocument = exports.AiAgentUseCaseOverlapDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentListingMetricsDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.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 = 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 = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AiAgentActionClaim;
|
|
9
9
|
(function (AiAgentActionClaim) {
|
|
@@ -200,6 +200,27 @@ var AiAgentMetricsBucket;
|
|
|
200
200
|
AiAgentMetricsBucket["Day"] = "DAY";
|
|
201
201
|
AiAgentMetricsBucket["Week"] = "WEEK";
|
|
202
202
|
})(AiAgentMetricsBucket || (exports.AiAgentMetricsBucket = AiAgentMetricsBucket = {}));
|
|
203
|
+
var AiAgentPlatformTextScope;
|
|
204
|
+
(function (AiAgentPlatformTextScope) {
|
|
205
|
+
AiAgentPlatformTextScope["Code"] = "code";
|
|
206
|
+
AiAgentPlatformTextScope["Global"] = "global";
|
|
207
|
+
AiAgentPlatformTextScope["Tenant"] = "tenant";
|
|
208
|
+
})(AiAgentPlatformTextScope || (exports.AiAgentPlatformTextScope = AiAgentPlatformTextScope = {}));
|
|
209
|
+
var AiAgentPromptTextKey;
|
|
210
|
+
(function (AiAgentPromptTextKey) {
|
|
211
|
+
AiAgentPromptTextKey["CampaignHeader"] = "campaignHeader";
|
|
212
|
+
AiAgentPromptTextKey["CannotTransfer"] = "cannotTransfer";
|
|
213
|
+
AiAgentPromptTextKey["CustomerDataRule"] = "customerDataRule";
|
|
214
|
+
AiAgentPromptTextKey["HeldHandoffRule"] = "heldHandoffRule";
|
|
215
|
+
AiAgentPromptTextKey["MasterRule"] = "masterRule";
|
|
216
|
+
AiAgentPromptTextKey["PersonalDataMarkerRule"] = "personalDataMarkerRule";
|
|
217
|
+
AiAgentPromptTextKey["PrecedenceFooter"] = "precedenceFooter";
|
|
218
|
+
AiAgentPromptTextKey["PrecedenceHeader"] = "precedenceHeader";
|
|
219
|
+
AiAgentPromptTextKey["RefusalAcceptRule"] = "refusalAcceptRule";
|
|
220
|
+
AiAgentPromptTextKey["RefusalRetryRule"] = "refusalRetryRule";
|
|
221
|
+
AiAgentPromptTextKey["ReplyLanguageRule"] = "replyLanguageRule";
|
|
222
|
+
AiAgentPromptTextKey["StopMessagesRule"] = "stopMessagesRule";
|
|
223
|
+
})(AiAgentPromptTextKey || (exports.AiAgentPromptTextKey = AiAgentPromptTextKey = {}));
|
|
203
224
|
var AiAgentRiskAlert;
|
|
204
225
|
(function (AiAgentRiskAlert) {
|
|
205
226
|
AiAgentRiskAlert["Cancellation"] = "cancellation";
|
|
@@ -232,11 +253,20 @@ var AiAgentTechnicalFailure;
|
|
|
232
253
|
AiAgentTechnicalFailure["Timeout"] = "TIMEOUT";
|
|
233
254
|
AiAgentTechnicalFailure["ToolUnavailable"] = "TOOL_UNAVAILABLE";
|
|
234
255
|
})(AiAgentTechnicalFailure || (exports.AiAgentTechnicalFailure = AiAgentTechnicalFailure = {}));
|
|
256
|
+
var AiAgentTranscriptAuthor;
|
|
257
|
+
(function (AiAgentTranscriptAuthor) {
|
|
258
|
+
AiAgentTranscriptAuthor["Agent"] = "agent";
|
|
259
|
+
AiAgentTranscriptAuthor["Bot"] = "bot";
|
|
260
|
+
AiAgentTranscriptAuthor["Customer"] = "customer";
|
|
261
|
+
AiAgentTranscriptAuthor["Opening"] = "opening";
|
|
262
|
+
})(AiAgentTranscriptAuthor || (exports.AiAgentTranscriptAuthor = AiAgentTranscriptAuthor = {}));
|
|
235
263
|
var AiAgentUnbackedClaimAction;
|
|
236
264
|
(function (AiAgentUnbackedClaimAction) {
|
|
237
265
|
AiAgentUnbackedClaimAction["Delivered"] = "delivered";
|
|
238
266
|
AiAgentUnbackedClaimAction["Replaced"] = "replaced";
|
|
239
267
|
AiAgentUnbackedClaimAction["Retried"] = "retried";
|
|
268
|
+
AiAgentUnbackedClaimAction["Transferred"] = "transferred";
|
|
269
|
+
AiAgentUnbackedClaimAction["Trimmed"] = "trimmed";
|
|
240
270
|
})(AiAgentUnbackedClaimAction || (exports.AiAgentUnbackedClaimAction = AiAgentUnbackedClaimAction = {}));
|
|
241
271
|
var AiAgentVariationUnit;
|
|
242
272
|
(function (AiAgentVariationUnit) {
|
|
@@ -271,6 +301,7 @@ var Can;
|
|
|
271
301
|
})(Can || (exports.Can = Can = {}));
|
|
272
302
|
var ParameterGrounding;
|
|
273
303
|
(function (ParameterGrounding) {
|
|
304
|
+
ParameterGrounding["Chosen"] = "chosen";
|
|
274
305
|
ParameterGrounding["Free"] = "free";
|
|
275
306
|
ParameterGrounding["Required"] = "required";
|
|
276
307
|
})(ParameterGrounding || (exports.ParameterGrounding = ParameterGrounding = {}));
|
|
@@ -521,6 +552,11 @@ exports.AiAgentTraceFragmentDoc = `
|
|
|
521
552
|
input
|
|
522
553
|
promptBuilderVersion
|
|
523
554
|
platformTextVersions
|
|
555
|
+
agentPromptTexts {
|
|
556
|
+
key
|
|
557
|
+
scope
|
|
558
|
+
version
|
|
559
|
+
}
|
|
524
560
|
identificationRequired
|
|
525
561
|
promptFingerprint
|
|
526
562
|
knowledgeOrigins
|
|
@@ -690,6 +726,13 @@ exports.AiAgentCheckRunFragmentDoc = `
|
|
|
690
726
|
}
|
|
691
727
|
}
|
|
692
728
|
`;
|
|
729
|
+
exports.AiAgentTranscriptMessageFragmentDoc = `
|
|
730
|
+
fragment aiAgentTranscriptMessage on AiAgentTranscriptMessage {
|
|
731
|
+
author
|
|
732
|
+
text
|
|
733
|
+
startedAt
|
|
734
|
+
}
|
|
735
|
+
`;
|
|
693
736
|
exports.NlpInstanceFragmentDoc = `
|
|
694
737
|
fragment nlpInstance on NlpInstance {
|
|
695
738
|
id
|
|
@@ -1291,6 +1334,13 @@ exports.AiAgentKnowledgeBasesDocument = `
|
|
|
1291
1334
|
}
|
|
1292
1335
|
}
|
|
1293
1336
|
`;
|
|
1337
|
+
exports.AiAgentTranscriptDocument = `
|
|
1338
|
+
query aiAgentTranscript($sessionId: ID!, $conversationId: ID) {
|
|
1339
|
+
aiAgentTranscript(sessionId: $sessionId, conversationId: $conversationId) {
|
|
1340
|
+
...aiAgentTranscriptMessage
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
${exports.AiAgentTranscriptMessageFragmentDoc}`;
|
|
1294
1344
|
exports.ExtractImageMetadataDocument = `
|
|
1295
1345
|
mutation extractImageMetadata($input: ExtractImageMetadataInput!) {
|
|
1296
1346
|
extractImageMetadata(input: $input) {
|
|
@@ -1533,6 +1583,9 @@ function getSdk(requester) {
|
|
|
1533
1583
|
aiAgentKnowledgeBases(variables, options) {
|
|
1534
1584
|
return requester(exports.AiAgentKnowledgeBasesDocument, variables, options);
|
|
1535
1585
|
},
|
|
1586
|
+
aiAgentTranscript(variables, options) {
|
|
1587
|
+
return requester(exports.AiAgentTranscriptDocument, variables, options);
|
|
1588
|
+
},
|
|
1536
1589
|
extractImageMetadata(variables, options) {
|
|
1537
1590
|
return requester(exports.ExtractImageMetadataDocument, variables, options);
|
|
1538
1591
|
},
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -677,7 +677,8 @@ export type DrozChatApprovalTask = {
|
|
|
677
677
|
};
|
|
678
678
|
export type DrozChatApprovalTaskChange = {
|
|
679
679
|
action: ApprovalTaskChangeAction;
|
|
680
|
-
task
|
|
680
|
+
task?: Maybe<DrozChatApprovalTask>;
|
|
681
|
+
taskId: Scalars['ID']['output'];
|
|
681
682
|
};
|
|
682
683
|
export type DrozChatApprovalTaskConversation = {
|
|
683
684
|
messages: Array<DrozChatApprovalTaskMessage>;
|
|
@@ -579,6 +579,7 @@ export declare enum PlatformTextKey {
|
|
|
579
579
|
MasterRule = "masterRule",
|
|
580
580
|
NegativeFeedbackQuestion = "negativeFeedbackQuestion",
|
|
581
581
|
NegativeSentimentQuestion = "negativeSentimentQuestion",
|
|
582
|
+
PersonalDataMarkerRule = "personalDataMarkerRule",
|
|
582
583
|
PrecedenceFooter = "precedenceFooter",
|
|
583
584
|
PrecedenceHeader = "precedenceHeader",
|
|
584
585
|
PromptInjectionQuestion = "promptInjectionQuestion",
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -85,6 +85,7 @@ var PlatformTextKey;
|
|
|
85
85
|
PlatformTextKey["MasterRule"] = "masterRule";
|
|
86
86
|
PlatformTextKey["NegativeFeedbackQuestion"] = "negativeFeedbackQuestion";
|
|
87
87
|
PlatformTextKey["NegativeSentimentQuestion"] = "negativeSentimentQuestion";
|
|
88
|
+
PlatformTextKey["PersonalDataMarkerRule"] = "personalDataMarkerRule";
|
|
88
89
|
PlatformTextKey["PrecedenceFooter"] = "precedenceFooter";
|
|
89
90
|
PlatformTextKey["PrecedenceHeader"] = "precedenceHeader";
|
|
90
91
|
PlatformTextKey["PromptInjectionQuestion"] = "promptInjectionQuestion";
|