@droz-js/sdk 0.26.28 → 0.26.29
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 +3 -0
- package/src/sdks/ai.d.ts +49 -6
- package/src/sdks/ai.js +31 -4
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -42,6 +42,9 @@ declare const DrozAi_base: new (options?: import("./client/http").HttpClientOpti
|
|
|
42
42
|
listAiAgentTools(variables?: import("./sdks/ai").Exact<{
|
|
43
43
|
[key: string]: never;
|
|
44
44
|
}>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentToolsQuery>;
|
|
45
|
+
listAiAgentNativeActions(variables?: import("./sdks/ai").Exact<{
|
|
46
|
+
[key: string]: never;
|
|
47
|
+
}>, options?: unknown): Promise<import("./sdks/ai").ListAiAgentNativeActionsQuery>;
|
|
45
48
|
aiAgentUseCaseOverlap(variables: import("./sdks/ai").Exact<{
|
|
46
49
|
aiAgentId: import("./sdks/ai").Scalars["ID"]["input"];
|
|
47
50
|
}>, options?: unknown): Promise<import("./sdks/ai").AiAgentUseCaseOverlapQuery>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -754,6 +754,11 @@ export type AiAgentMetricsWindowInput = {
|
|
|
754
754
|
from: Scalars['Number']['input'];
|
|
755
755
|
to: Scalars['Number']['input'];
|
|
756
756
|
};
|
|
757
|
+
export type AiAgentNativeAction = {
|
|
758
|
+
acceptsQueue: Scalars['Boolean']['output'];
|
|
759
|
+
name: Scalars['String']['output'];
|
|
760
|
+
toolId: Scalars['ID']['output'];
|
|
761
|
+
};
|
|
757
762
|
export type AiAgentObjection = {
|
|
758
763
|
objection: Scalars['String']['output'];
|
|
759
764
|
response: Scalars['String']['output'];
|
|
@@ -781,7 +786,6 @@ export type AiAgentProcedure = {
|
|
|
781
786
|
endsConversationAfterInforming: Scalars['Boolean']['output'];
|
|
782
787
|
executionAutonomy: AiAgentExecutionAutonomy;
|
|
783
788
|
expiredReplyTemplate?: Maybe<Scalars['String']['output']>;
|
|
784
|
-
guidanceSteps: Array<Scalars['String']['output']>;
|
|
785
789
|
id: Scalars['ID']['output'];
|
|
786
790
|
name: Scalars['String']['output'];
|
|
787
791
|
nextStep?: Maybe<Scalars['String']['output']>;
|
|
@@ -789,9 +793,36 @@ export type AiAgentProcedure = {
|
|
|
789
793
|
objective?: Maybe<Scalars['String']['output']>;
|
|
790
794
|
replyEmailSubject?: Maybe<Scalars['String']['output']>;
|
|
791
795
|
status: Scalars['String']['output'];
|
|
796
|
+
steps: Array<AiAgentProcedureStep>;
|
|
792
797
|
toolIds: Array<Scalars['ID']['output']>;
|
|
793
798
|
updatedAt: Scalars['Number']['output'];
|
|
794
799
|
};
|
|
800
|
+
export type AiAgentProcedureSegment = {
|
|
801
|
+
approvalQueueId?: Maybe<Scalars['ID']['output']>;
|
|
802
|
+
kind: AiAgentProcedureSegmentKind;
|
|
803
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
804
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
805
|
+
toolId?: Maybe<Scalars['ID']['output']>;
|
|
806
|
+
};
|
|
807
|
+
export type AiAgentProcedureSegmentInput = {
|
|
808
|
+
approvalQueueId?: InputMaybe<Scalars['ID']['input']>;
|
|
809
|
+
kind: AiAgentProcedureSegmentKind;
|
|
810
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
811
|
+
text?: InputMaybe<Scalars['String']['input']>;
|
|
812
|
+
toolId?: InputMaybe<Scalars['ID']['input']>;
|
|
813
|
+
};
|
|
814
|
+
export declare enum AiAgentProcedureSegmentKind {
|
|
815
|
+
Action = "action",
|
|
816
|
+
Queue = "queue",
|
|
817
|
+
Text = "text",
|
|
818
|
+
Variable = "variable"
|
|
819
|
+
}
|
|
820
|
+
export type AiAgentProcedureStep = {
|
|
821
|
+
segments: Array<AiAgentProcedureSegment>;
|
|
822
|
+
};
|
|
823
|
+
export type AiAgentProcedureStepInput = {
|
|
824
|
+
segments: Array<AiAgentProcedureSegmentInput>;
|
|
825
|
+
};
|
|
795
826
|
export declare enum AiAgentPromptTextKey {
|
|
796
827
|
CampaignHeader = "campaignHeader",
|
|
797
828
|
CannotTransfer = "cannotTransfer",
|
|
@@ -1379,6 +1410,7 @@ export type Query = {
|
|
|
1379
1410
|
getQnAInstance?: Maybe<QnAInstance>;
|
|
1380
1411
|
listAiAgentApprovals: Array<AiAgentApproval>;
|
|
1381
1412
|
listAiAgentApprovalsPage: AiAgentApprovalPage;
|
|
1413
|
+
listAiAgentNativeActions: Array<AiAgentNativeAction>;
|
|
1382
1414
|
listAiAgentProcedures: Array<AiAgentProcedure>;
|
|
1383
1415
|
listAiAgentScenarios: Array<AiAgentScenario>;
|
|
1384
1416
|
listAiAgentTools: Array<AiAgentTool>;
|
|
@@ -1505,7 +1537,6 @@ export type SaveAiAgentProcedureInput = {
|
|
|
1505
1537
|
endsConversationAfterInforming?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1506
1538
|
executionAutonomy: AiAgentExecutionAutonomy;
|
|
1507
1539
|
expiredReplyTemplate?: InputMaybe<Scalars['String']['input']>;
|
|
1508
|
-
guidanceSteps: Array<Scalars['String']['input']>;
|
|
1509
1540
|
id: Scalars['ID']['input'];
|
|
1510
1541
|
name: Scalars['String']['input'];
|
|
1511
1542
|
nextStep?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1513,6 +1544,7 @@ export type SaveAiAgentProcedureInput = {
|
|
|
1513
1544
|
objective?: InputMaybe<Scalars['String']['input']>;
|
|
1514
1545
|
replyEmailSubject?: InputMaybe<Scalars['String']['input']>;
|
|
1515
1546
|
status: Scalars['String']['input'];
|
|
1547
|
+
steps: Array<AiAgentProcedureStepInput>;
|
|
1516
1548
|
toolIds: Array<Scalars['ID']['input']>;
|
|
1517
1549
|
};
|
|
1518
1550
|
export type SaveAiAgentScenarioInput = {
|
|
@@ -1756,7 +1788,10 @@ export type RemoveAiAgentMutationVariables = Exact<{
|
|
|
1756
1788
|
}>;
|
|
1757
1789
|
export type RemoveAiAgentMutation = Pick<Mutation, 'removeAiAgent'>;
|
|
1758
1790
|
export type AiAgentUseCaseFragment = Pick<AiAgentUseCase, 'id' | 'name' | 'subjectDescription' | 'procedureId' | 'tag' | 'status' | 'updatedAt'>;
|
|
1759
|
-
export type AiAgentProcedureFragment = (Pick<AiAgentProcedure, 'id' | 'name' | '
|
|
1791
|
+
export type AiAgentProcedureFragment = (Pick<AiAgentProcedure, 'id' | 'name' | 'toolIds' | 'contingency' | 'executionAutonomy' | 'endsConversationAfterInforming' | 'continuesAfterApproval' | 'approvalQueueId' | 'approvedReplyTemplate' | 'deniedReplyTemplate' | 'expiredReplyTemplate' | 'replyEmailSubject' | 'objective' | 'nextStep' | 'status' | 'updatedAt'> & {
|
|
1792
|
+
steps: Array<{
|
|
1793
|
+
segments: Array<Pick<AiAgentProcedureSegment, 'kind' | 'text' | 'name' | 'toolId' | 'approvalQueueId'>>;
|
|
1794
|
+
}>;
|
|
1760
1795
|
objections: Array<Pick<AiAgentObjection, 'objection' | 'response'>>;
|
|
1761
1796
|
});
|
|
1762
1797
|
export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'description' | 'effect' | 'availability' | 'requiresAuthenticatedCustomer' | 'onFailure' | 'concludedWhen' | 'emptyResultMessage' | 'customerScope' | 'returns' | 'deliverAsIs' | 'approvalMode'> & {
|
|
@@ -1788,6 +1823,12 @@ export type ListAiAgentToolsQueryVariables = Exact<{
|
|
|
1788
1823
|
export type ListAiAgentToolsQuery = {
|
|
1789
1824
|
listAiAgentTools: Array<AiAgentToolFragment>;
|
|
1790
1825
|
};
|
|
1826
|
+
export type ListAiAgentNativeActionsQueryVariables = Exact<{
|
|
1827
|
+
[key: string]: never;
|
|
1828
|
+
}>;
|
|
1829
|
+
export type ListAiAgentNativeActionsQuery = {
|
|
1830
|
+
listAiAgentNativeActions: Array<Pick<AiAgentNativeAction, 'toolId' | 'name' | 'acceptsQueue'>>;
|
|
1831
|
+
};
|
|
1791
1832
|
export type AiAgentUseCaseOverlapQueryVariables = Exact<{
|
|
1792
1833
|
aiAgentId: Scalars['ID']['input'];
|
|
1793
1834
|
}>;
|
|
@@ -2162,7 +2203,7 @@ export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentTo
|
|
|
2162
2203
|
export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n ";
|
|
2163
2204
|
export declare const AiAgentListingMetricsFieldsFragmentDoc = "\n fragment aiAgentListingMetricsFields on AiAgentListingMetrics {\n aiAgentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolvedRate\n costMicroUsd\n}\n ";
|
|
2164
2205
|
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 ";
|
|
2165
|
-
export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n
|
|
2206
|
+
export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n steps {\n segments {\n kind\n text\n name\n toolId\n approvalQueueId\n }\n }\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvalQueueId\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
|
|
2166
2207
|
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 ";
|
|
2167
2208
|
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 ";
|
|
2168
2209
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
@@ -2185,8 +2226,9 @@ export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAi
|
|
|
2185
2226
|
export declare const RemoveAiAgentVersionDocument = "\n mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {\n removeAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n aiAgentId\n version\n status\n createdAt\n}\n ";
|
|
2186
2227
|
export declare const RemoveAiAgentDocument = "\n mutation removeAiAgent($input: AiAgentRefInput!) {\n removeAiAgent(input: $input)\n}\n ";
|
|
2187
2228
|
export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCases($aiAgentId: ID!) {\n listAiAgentUseCases(aiAgentId: $aiAgentId) {\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 ";
|
|
2188
|
-
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
|
|
2229
|
+
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 steps {\n segments {\n kind\n text\n name\n toolId\n approvalQueueId\n }\n }\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvalQueueId\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
|
|
2189
2230
|
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 ";
|
|
2231
|
+
export declare const ListAiAgentNativeActionsDocument = "\n query listAiAgentNativeActions {\n listAiAgentNativeActions {\n toolId\n name\n acceptsQueue\n }\n}\n ";
|
|
2190
2232
|
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 ";
|
|
2191
2233
|
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 ";
|
|
2192
2234
|
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 ";
|
|
@@ -2201,7 +2243,7 @@ export declare const AiAgentMetricsSeriesDocument = "\n query aiAgentMetricsS
|
|
|
2201
2243
|
export declare const AiAgentDashboardDocument = "\n query aiAgentDashboard($input: AiAgentDashboardInput!) {\n aiAgentDashboard(input: $input) {\n aiAgentId\n timezone\n window {\n from\n to\n }\n previousWindow {\n from\n to\n }\n bucket\n conversations {\n ...aiAgentDashboardIndicator\n }\n resolved {\n ...aiAgentDashboardIndicator\n }\n unresolved {\n ...aiAgentDashboardIndicator\n }\n handoffProcedure {\n ...aiAgentDashboardIndicator\n }\n handoffNeed {\n ...aiAgentDashboardIndicator\n }\n qualifiedLead {\n ...aiAgentDashboardIndicator\n }\n offerAccepted {\n ...aiAgentDashboardIndicator\n }\n abandonment {\n ...aiAgentDashboardIndicator\n }\n scoreBands {\n band\n count\n percent\n polarity\n variation {\n unit\n value\n }\n }\n agentScoreAvg\n agentScoreAvgBand\n analyzedConversations\n conversationsProvisional\n conversationsAwaitingClassification\n hasActiveDispatches\n activeDispatches {\n sent {\n ...aiAgentDashboardIndicator\n }\n answered {\n ...aiAgentDashboardIndicator\n }\n unanswered {\n ...aiAgentDashboardIndicator\n }\n }\n sentimentAtStart {\n ...aiAgentDashboardSentiment\n }\n sentimentAtEnd {\n ...aiAgentDashboardSentiment\n }\n contactReasons {\n all {\n ...aiAgentDashboardContactReason\n }\n handoff {\n ...aiAgentDashboardContactReason\n }\n abandonment {\n ...aiAgentDashboardContactReason\n }\n }\n procedures {\n key\n name\n count\n level\n }\n knowledgeGaps {\n key\n count\n level\n }\n series {\n date\n endDate\n conversations\n conversationsEligible\n conversationsResolved\n conversationsUnresolved\n conversationsHandoffNeed\n conversationsAbandoned\n resolvedRate\n unresolvedRate\n handoffNeedRate\n abandonmentRate\n }\n truncated\n analysesTruncated\n }\n}\n \n fragment aiAgentDashboardIndicator on AiAgentDashboardIndicator {\n value\n polarity\n variation {\n unit\n value\n }\n}\n \n\n fragment aiAgentDashboardSentiment on AiAgentDashboardSentiment {\n sentiment\n count\n percent\n polarity\n variation {\n unit\n value\n }\n}\n \n\n fragment aiAgentDashboardContactReason on AiAgentDashboardContactReason {\n key\n count\n percent\n}\n ";
|
|
2202
2244
|
export declare const AiAgentConversationOutcomeDocument = "\n query aiAgentConversationOutcome($sessionId: ID!, $conversationId: ID) {\n aiAgentConversationOutcome(\n sessionId: $sessionId\n conversationId: $conversationId\n ) {\n conversationId\n sessionId\n aiAgentId\n agentVersion\n resolution\n resolutionDefinition\n collectedData\n collectedDataAvailable\n turns\n startedAt\n lastTurnAt\n haltReason\n handoffReason\n agentSummary\n promisedNextStep\n classification {\n state\n status\n classification\n subcategory\n technicalFailure\n eligibleForResolution\n consumesAllowance\n inactivityWindowMs\n definitionVersion\n }\n channelType\n reversibleUntil\n actions {\n toolId\n name\n ok\n result\n at\n }\n contactReason {\n name\n useCaseId\n tag\n other\n source\n }\n analysis {\n analysisVersion\n failed\n failureReason\n sentimentStart\n sentimentEnd\n estimatedSatisfaction\n riskAlerts\n knowledgeGaps\n repeatedInformation\n humanRequests\n contactReason\n contactReasonId\n contactReasonTag\n contactReasonOther\n contactReasonSource\n summary\n agentScore\n agentScoreBand\n agentClarity\n customerEffortScore\n model\n costMicroUsd\n analyzedAt\n }\n }\n}\n ";
|
|
2203
2245
|
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 ";
|
|
2204
|
-
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
|
|
2246
|
+
export declare const SaveAiAgentProcedureDocument = "\n mutation saveAiAgentProcedure($input: SaveAiAgentProcedureInput!) {\n saveAiAgentProcedure(input: $input) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n steps {\n segments {\n kind\n text\n name\n toolId\n approvalQueueId\n }\n }\n toolIds\n contingency\n executionAutonomy\n endsConversationAfterInforming\n continuesAfterApproval\n approvalQueueId\n approvedReplyTemplate\n deniedReplyTemplate\n expiredReplyTemplate\n replyEmailSubject\n objective\n nextStep\n objections {\n objection\n response\n }\n status\n updatedAt\n}\n ";
|
|
2205
2247
|
export declare const RemoveAiAgentUseCaseDocument = "\n mutation removeAiAgentUseCase($input: AiAgentAuthoringRefInput!) {\n removeAiAgentUseCase(input: $input)\n}\n ";
|
|
2206
2248
|
export declare const RemoveAiAgentProcedureDocument = "\n mutation removeAiAgentProcedure($input: AiAgentAuthoringRefInput!) {\n removeAiAgentProcedure(input: $input)\n}\n ";
|
|
2207
2249
|
export declare const RememberAiAgentSessionFactsDocument = "\n mutation rememberAiAgentSessionFacts($input: RememberAiAgentSessionFactsInput!) {\n rememberAiAgentSessionFacts(input: $input)\n}\n ";
|
|
@@ -2248,6 +2290,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2248
2290
|
listAiAgentUseCases(variables: ListAiAgentUseCasesQueryVariables, options?: C): Promise<ListAiAgentUseCasesQuery>;
|
|
2249
2291
|
listAiAgentProcedures(variables: ListAiAgentProceduresQueryVariables, options?: C): Promise<ListAiAgentProceduresQuery>;
|
|
2250
2292
|
listAiAgentTools(variables?: ListAiAgentToolsQueryVariables, options?: C): Promise<ListAiAgentToolsQuery>;
|
|
2293
|
+
listAiAgentNativeActions(variables?: ListAiAgentNativeActionsQueryVariables, options?: C): Promise<ListAiAgentNativeActionsQuery>;
|
|
2251
2294
|
aiAgentUseCaseOverlap(variables: AiAgentUseCaseOverlapQueryVariables, options?: C): Promise<AiAgentUseCaseOverlapQuery>;
|
|
2252
2295
|
aiAgentTrace(variables: AiAgentTraceQueryVariables, options?: C): Promise<AiAgentTraceQuery>;
|
|
2253
2296
|
listAiAgentScenarios(variables: ListAiAgentScenariosQueryVariables, options?: C): Promise<ListAiAgentScenariosQuery>;
|
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.AiAgentTranscriptDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentCheckLimitsDocument = exports.AiAgentAuthoringRulesDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.DecideAiAgentApprovalDocument = void 0;
|
|
4
|
+
exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolParameterOutputFormat = exports.ToolParameterFormat = exports.ToolEffect = exports.ToolAvailability = exports.ToolApprovalMode = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentVariationUnit = exports.AiAgentUnbackedClaimAction = exports.AiAgentTranscriptAuthor = exports.AiAgentTechnicalFailure = exports.AiAgentSortDirection = exports.AiAgentSentiment = exports.AiAgentScoreBand = exports.AiAgentRiskAlert = exports.AiAgentPromptTextKey = exports.AiAgentProcedureSegmentKind = exports.AiAgentPlatformTextScope = exports.AiAgentMetricsBucket = exports.AiAgentMetricPolarity = exports.AiAgentKnowledgeFallback = exports.AiAgentHandoffReason = exports.AiAgentFrequencyLevel = exports.AiAgentExecutionAutonomy = exports.AiAgentConversationSubcategory = exports.AiAgentConversationStatus = exports.AiAgentConversationState = exports.AiAgentConversationSortField = exports.AiAgentConversationClass = exports.AiAgentContactReasonSource = exports.AiAgentCheckRunStatus = exports.AiAgentChannelType = exports.AiAgentBusinessHoursWeekday = exports.AiAgentBusinessHoursStatus = exports.AiAgentBusinessHoursSource = exports.AiAgentBusinessHoursAlert = exports.AiAgentApprovalStatus = exports.AiAgentApprovalRouting = exports.AiAgentApprovalOutcome = exports.AiAgentApprovalDecision = exports.AiAgentAnalysisFailureReason = exports.AiAgentActionClaim = void 0;
|
|
5
|
+
exports.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.ListAiAgentNativeActionsDocument = exports.ListAiAgentToolsDocument = exports.ListAiAgentProceduresDocument = exports.ListAiAgentUseCasesDocument = exports.RemoveAiAgentDocument = exports.RemoveAiAgentVersionDocument = exports.RollbackAiAgentVersionDocument = exports.UnpublishAiAgentVersionDocument = exports.PublishAiAgentVersionDocument = exports.DraftAiAgentDocument = exports.AiAgentListingMetricsDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentTranscriptMessageFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentApprovalFragmentDoc = exports.AiAgentDashboardContactReasonFragmentDoc = exports.AiAgentDashboardSentimentFragmentDoc = exports.AiAgentDashboardIndicatorFragmentDoc = exports.AiAgentBusinessHoursFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFieldsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = void 0;
|
|
6
|
+
exports.serviceName = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.ExtractImageMetadataDocument = exports.AiAgentTranscriptDocument = exports.AiAgentKnowledgeBasesDocument = exports.AiAgentRoutingPreviewDocument = exports.AiAgentVersionSpecDocument = exports.AiAgentCheckLimitsDocument = exports.AiAgentAuthoringRulesDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = exports.DecideAiAgentApprovalDocument = exports.ResolveAiAgentApprovalDocument = exports.ListAiAgentApprovalsPageDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AiAgentActionClaim;
|
|
9
9
|
(function (AiAgentActionClaim) {
|
|
@@ -206,6 +206,13 @@ var AiAgentPlatformTextScope;
|
|
|
206
206
|
AiAgentPlatformTextScope["Global"] = "global";
|
|
207
207
|
AiAgentPlatformTextScope["Tenant"] = "tenant";
|
|
208
208
|
})(AiAgentPlatformTextScope || (exports.AiAgentPlatformTextScope = AiAgentPlatformTextScope = {}));
|
|
209
|
+
var AiAgentProcedureSegmentKind;
|
|
210
|
+
(function (AiAgentProcedureSegmentKind) {
|
|
211
|
+
AiAgentProcedureSegmentKind["Action"] = "action";
|
|
212
|
+
AiAgentProcedureSegmentKind["Queue"] = "queue";
|
|
213
|
+
AiAgentProcedureSegmentKind["Text"] = "text";
|
|
214
|
+
AiAgentProcedureSegmentKind["Variable"] = "variable";
|
|
215
|
+
})(AiAgentProcedureSegmentKind || (exports.AiAgentProcedureSegmentKind = AiAgentProcedureSegmentKind = {}));
|
|
209
216
|
var AiAgentPromptTextKey;
|
|
210
217
|
(function (AiAgentPromptTextKey) {
|
|
211
218
|
AiAgentPromptTextKey["CampaignHeader"] = "campaignHeader";
|
|
@@ -491,7 +498,15 @@ exports.AiAgentProcedureFragmentDoc = `
|
|
|
491
498
|
fragment aiAgentProcedure on AiAgentProcedure {
|
|
492
499
|
id
|
|
493
500
|
name
|
|
494
|
-
|
|
501
|
+
steps {
|
|
502
|
+
segments {
|
|
503
|
+
kind
|
|
504
|
+
text
|
|
505
|
+
name
|
|
506
|
+
toolId
|
|
507
|
+
approvalQueueId
|
|
508
|
+
}
|
|
509
|
+
}
|
|
495
510
|
toolIds
|
|
496
511
|
contingency
|
|
497
512
|
executionAutonomy
|
|
@@ -851,6 +866,15 @@ exports.ListAiAgentToolsDocument = `
|
|
|
851
866
|
}
|
|
852
867
|
}
|
|
853
868
|
${exports.AiAgentToolFragmentDoc}`;
|
|
869
|
+
exports.ListAiAgentNativeActionsDocument = `
|
|
870
|
+
query listAiAgentNativeActions {
|
|
871
|
+
listAiAgentNativeActions {
|
|
872
|
+
toolId
|
|
873
|
+
name
|
|
874
|
+
acceptsQueue
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
`;
|
|
854
878
|
exports.AiAgentUseCaseOverlapDocument = `
|
|
855
879
|
query aiAgentUseCaseOverlap($aiAgentId: ID!) {
|
|
856
880
|
aiAgentUseCaseOverlap(aiAgentId: $aiAgentId) {
|
|
@@ -1488,6 +1512,9 @@ function getSdk(requester) {
|
|
|
1488
1512
|
listAiAgentTools(variables, options) {
|
|
1489
1513
|
return requester(exports.ListAiAgentToolsDocument, variables, options);
|
|
1490
1514
|
},
|
|
1515
|
+
listAiAgentNativeActions(variables, options) {
|
|
1516
|
+
return requester(exports.ListAiAgentNativeActionsDocument, variables, options);
|
|
1517
|
+
},
|
|
1491
1518
|
aiAgentUseCaseOverlap(variables, options) {
|
|
1492
1519
|
return requester(exports.AiAgentUseCaseOverlapDocument, variables, options);
|
|
1493
1520
|
},
|