@droz-js/sdk 0.20.13 → 0.20.15
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/drozanalytics.d.ts +7 -0
- package/src/sdks/ai.d.ts +35 -13
- package/src/sdks/ai.js +36 -8
- package/src/sdks/drozanalytics.d.ts +58 -2
- package/src/sdks/drozanalytics.js +45 -3
- package/src/sdks/drozbot.d.ts +11 -7
- package/src/sdks/drozbot.js +1 -0
- package/src/sdks/drozchat.d.ts +0 -2
- package/src/sdks/drozchat.js +0 -2
package/package.json
CHANGED
package/src/drozanalytics.d.ts
CHANGED
|
@@ -71,11 +71,18 @@ declare const Drozanalytics_base: new (options?: import("./client/http").HttpCli
|
|
|
71
71
|
startDate: import("./sdks/drozanalytics").Scalars["DateTime"]["input"];
|
|
72
72
|
endDate: import("./sdks/drozanalytics").Scalars["DateTime"]["input"];
|
|
73
73
|
type?: import("./sdks/drozanalytics").InputMaybe<import("./sdks/drozanalytics").AnalyticsType>;
|
|
74
|
+
orderBy?: import("./sdks/drozanalytics").InputMaybe<import("./sdks/drozanalytics").AgentSummaryOrderBy>;
|
|
75
|
+
direction?: import("./sdks/drozanalytics").InputMaybe<import("./sdks/drozanalytics").SortDirection>;
|
|
74
76
|
}>, options?: unknown): Promise<import("./sdks/drozanalytics").GetAgentsDailySummaryQuery>;
|
|
75
77
|
getClosedCountByChannel(variables: import("./sdks/drozanalytics").Exact<{
|
|
76
78
|
startDate: import("./sdks/drozanalytics").Scalars["DateTime"]["input"];
|
|
77
79
|
endDate: import("./sdks/drozanalytics").Scalars["DateTime"]["input"];
|
|
78
80
|
}>, options?: unknown): Promise<import("./sdks/drozanalytics").GetClosedCountByChannelQuery>;
|
|
81
|
+
getReviewVerbatims(variables: import("./sdks/drozanalytics").Exact<{
|
|
82
|
+
filter: import("./sdks/drozanalytics").ReviewVerbatimFilterInput;
|
|
83
|
+
first?: import("./sdks/drozanalytics").InputMaybe<import("./sdks/drozanalytics").Scalars["Int"]["input"]>;
|
|
84
|
+
next?: import("./sdks/drozanalytics").InputMaybe<import("./sdks/drozanalytics").Scalars["Base64"]["input"]>;
|
|
85
|
+
}>, options?: unknown): Promise<import("./sdks/drozanalytics").GetReviewVerbatimsQuery>;
|
|
79
86
|
};
|
|
80
87
|
export declare class Drozanalytics extends Drozanalytics_base {
|
|
81
88
|
constructor();
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -177,6 +177,8 @@ export type AiAgentCheckRun = {
|
|
|
177
177
|
completedRuns: Scalars['Int']['output'];
|
|
178
178
|
/** Presente só quando a execução falhou. */
|
|
179
179
|
error?: Maybe<Scalars['String']['output']>;
|
|
180
|
+
/** Ferramentas vinculadas que a versão avaliada não oferece ao modelo, pelo catálogo atual. Nulo quando a versão foi removida. */
|
|
181
|
+
excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
|
|
180
182
|
finishedAt?: Maybe<Scalars['Number']['output']>;
|
|
181
183
|
requestedAt: Scalars['Number']['output'];
|
|
182
184
|
/** Presente só quando a execução terminou bem. */
|
|
@@ -498,6 +500,7 @@ export type AiAgentScenarioTurn = {
|
|
|
498
500
|
turn: Scalars['Int']['output'];
|
|
499
501
|
};
|
|
500
502
|
export type AiAgentSpec = {
|
|
503
|
+
allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
|
|
501
504
|
budget: AiAgentBudget;
|
|
502
505
|
/** One natural-language permission per item. */
|
|
503
506
|
can: Array<Scalars['String']['output']>;
|
|
@@ -518,6 +521,7 @@ export type AiAgentSpec = {
|
|
|
518
521
|
toolIds: Array<Scalars['ID']['output']>;
|
|
519
522
|
};
|
|
520
523
|
export type AiAgentSpecInput = {
|
|
524
|
+
allowWriteTools?: InputMaybe<Scalars['Boolean']['input']>;
|
|
521
525
|
budget: AiAgentBudgetInput;
|
|
522
526
|
can: Array<Scalars['String']['input']>;
|
|
523
527
|
cannot: Array<Scalars['String']['input']>;
|
|
@@ -568,6 +572,11 @@ export type AiAgentTool = {
|
|
|
568
572
|
returns: Array<Scalars['String']['output']>;
|
|
569
573
|
toolId: Scalars['ID']['output'];
|
|
570
574
|
};
|
|
575
|
+
export type AiAgentToolExclusion = {
|
|
576
|
+
/** `not_bound`, `unavailable`, `write_not_allowed` ou `human_approval_unavailable`. */
|
|
577
|
+
reason: Scalars['String']['output'];
|
|
578
|
+
toolId: Scalars['ID']['output'];
|
|
579
|
+
};
|
|
571
580
|
export type AiAgentToolParameter = {
|
|
572
581
|
description: Scalars['String']['output'];
|
|
573
582
|
grounding: ParameterGrounding;
|
|
@@ -607,6 +616,8 @@ export type AiAgentTrace = {
|
|
|
607
616
|
agentId: Scalars['ID']['output'];
|
|
608
617
|
agentVersion: Scalars['String']['output'];
|
|
609
618
|
answer: Scalars['String']['output'];
|
|
619
|
+
/** Ausente no turno que não selecionou ferramentas (cache, contraparte automática) e no registrado antes do campo existir. */
|
|
620
|
+
excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
|
|
610
621
|
/** Presente so quando o turno parou por limite; ausente quando respondeu. */
|
|
611
622
|
haltReason?: Maybe<Scalars['String']['output']>;
|
|
612
623
|
/** O turno tentou usar ferramenta que exige cliente identificado, sem ter um. */
|
|
@@ -661,6 +672,8 @@ export type AiAgentUseCaseOverlap = {
|
|
|
661
672
|
export type AiAgentVersion = {
|
|
662
673
|
agentId: Scalars['ID']['output'];
|
|
663
674
|
createdAt: Scalars['DateTime']['output'];
|
|
675
|
+
/** Ferramentas vinculadas que esta versão não oferece ao modelo, pelo catálogo atual. Nulo quando o catálogo não pôde ser lido. */
|
|
676
|
+
excludedTools?: Maybe<Array<AiAgentToolExclusion>>;
|
|
664
677
|
spec: AiAgentSpec;
|
|
665
678
|
status: AiAgentVersionStatus;
|
|
666
679
|
version: Scalars['Int']['output'];
|
|
@@ -1191,13 +1204,15 @@ export type UpdateQnAInstanceInput = {
|
|
|
1191
1204
|
};
|
|
1192
1205
|
export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'agentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
|
|
1193
1206
|
export type AiAgentVersionFragment = Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'>;
|
|
1194
|
-
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels'> & {
|
|
1207
|
+
export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'allowWriteTools'> & {
|
|
1195
1208
|
identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
|
|
1196
1209
|
budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
|
|
1197
1210
|
handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
|
|
1198
1211
|
});
|
|
1212
|
+
export type AiAgentToolExclusionFragment = Pick<AiAgentToolExclusion, 'toolId' | 'reason'>;
|
|
1199
1213
|
export type AiAgentVersionWithSpecFragment = (Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'> & {
|
|
1200
1214
|
spec: AiAgentSpecFragment;
|
|
1215
|
+
excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
|
|
1201
1216
|
});
|
|
1202
1217
|
export type AiAgentListingMetricsFragment = Pick<AiAgentMetrics, 'agentId' | 'conversations' | 'conversationsResolved' | 'conversationsHandoffRequested' | 'resolutionRate' | 'resolutionDefinition' | 'costMicroUsd'>;
|
|
1203
1218
|
export type ListAiAgentsQueryVariables = Exact<{
|
|
@@ -1222,13 +1237,17 @@ export type DraftAiAgentMutationVariables = Exact<{
|
|
|
1222
1237
|
input: DraftAiAgentInput;
|
|
1223
1238
|
}>;
|
|
1224
1239
|
export type DraftAiAgentMutation = {
|
|
1225
|
-
draftAiAgent?: Maybe<
|
|
1240
|
+
draftAiAgent?: Maybe<({
|
|
1241
|
+
excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
|
|
1242
|
+
} & AiAgentVersionFragment)>;
|
|
1226
1243
|
};
|
|
1227
1244
|
export type PublishAiAgentVersionMutationVariables = Exact<{
|
|
1228
1245
|
input: AiAgentVersionRefInput;
|
|
1229
1246
|
}>;
|
|
1230
1247
|
export type PublishAiAgentVersionMutation = {
|
|
1231
|
-
publishAiAgentVersion: Array<
|
|
1248
|
+
publishAiAgentVersion: Array<({
|
|
1249
|
+
excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
|
|
1250
|
+
} & AiAgentVersionFragment)>;
|
|
1232
1251
|
};
|
|
1233
1252
|
export type UnpublishAiAgentVersionMutationVariables = Exact<{
|
|
1234
1253
|
input: AiAgentVersionRefInput;
|
|
@@ -1258,6 +1277,7 @@ export type AiAgentToolFragment = (Pick<AiAgentTool, 'toolId' | 'name' | 'descri
|
|
|
1258
1277
|
parameters: Array<Pick<AiAgentToolParameter, 'name' | 'type' | 'required' | 'description' | 'grounding'>>;
|
|
1259
1278
|
});
|
|
1260
1279
|
export type AiAgentTraceFragment = (Pick<AiAgentTrace, 'sessionId' | 'turn' | 'agentId' | 'agentVersion' | 'input' | 'promptBuilderVersion' | 'masterRuleVersion' | 'identificationRequired' | 'promptFingerprint' | 'knowledgeOrigins' | 'outcome' | 'haltReason' | 'steps' | 'answer' | 'startedAt'> & {
|
|
1280
|
+
excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
|
|
1261
1281
|
toolCalls: Array<Pick<AiAgentTracedToolCall, 'toolId' | 'name' | 'result' | 'ok' | 'connection' | 'errorClass'>>;
|
|
1262
1282
|
});
|
|
1263
1283
|
export type AiAgentScenarioFragment = Pick<AiAgentScenario, 'scenarioId' | 'description' | 'customerId' | 'turns' | 'expectations'>;
|
|
@@ -1372,6 +1392,7 @@ export type SaveAiAgentScenarioMutation = {
|
|
|
1372
1392
|
saveAiAgentScenario?: Maybe<AiAgentScenarioFragment>;
|
|
1373
1393
|
};
|
|
1374
1394
|
export type AiAgentCheckRunFragment = (Pick<AiAgentCheckRun, 'runId' | 'agentId' | 'version' | 'status' | 'requestedAt' | 'startedAt' | 'finishedAt' | 'totalRuns' | 'completedRuns' | 'error'> & {
|
|
1395
|
+
excludedTools?: Maybe<Array<AiAgentToolExclusionFragment>>;
|
|
1375
1396
|
result?: Maybe<(Pick<AiAgentCheckResult, 'safeToPublish'> & {
|
|
1376
1397
|
reports: Array<(Pick<AiAgentScenarioReport, 'scenarioId' | 'runs' | 'cut' | 'measured' | 'passed' | 'rate'> & {
|
|
1377
1398
|
handoffReasons: Array<Pick<AiAgentMetricsCount, 'key' | 'count'>>;
|
|
@@ -1529,23 +1550,24 @@ export type RemoveQnAInstanceMutation = {
|
|
|
1529
1550
|
};
|
|
1530
1551
|
export declare const AiAgentSummaryFragmentDoc = "\n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
|
|
1531
1552
|
export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1532
|
-
export declare const AiAgentSpecFragmentDoc = "\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n}\n ";
|
|
1533
|
-
export declare const
|
|
1553
|
+
export declare const AiAgentSpecFragmentDoc = "\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n allowWriteTools\n}\n ";
|
|
1554
|
+
export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1555
|
+
export declare const AiAgentVersionWithSpecFragmentDoc = "\n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n ";
|
|
1534
1556
|
export declare const AiAgentListingMetricsFragmentDoc = "\n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
|
|
1535
1557
|
export declare const AiAgentUseCaseFragmentDoc = "\n fragment aiAgentUseCase on AiAgentUseCase {\n id\n name\n subjectDescription\n procedureId\n status\n updatedAt\n}\n ";
|
|
1536
1558
|
export declare const AiAgentProcedureFragmentDoc = "\n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n status\n updatedAt\n}\n ";
|
|
1537
1559
|
export declare const AiAgentToolFragmentDoc = "\n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n }\n}\n ";
|
|
1538
|
-
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
|
|
1560
|
+
export declare const AiAgentTraceFragmentDoc = "\n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
|
|
1539
1561
|
export declare const AiAgentScenarioFragmentDoc = "\n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
1540
|
-
export declare const AiAgentCheckRunFragmentDoc = "\n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
1562
|
+
export declare const AiAgentCheckRunFragmentDoc = "\n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
1541
1563
|
export declare const AiAgentMetricsReportFragmentDoc = "\n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
1542
1564
|
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 ";
|
|
1543
1565
|
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 ";
|
|
1544
1566
|
export declare const ListAiAgentsDocument = "\n query listAiAgents {\n listAiAgents {\n ...aiAgentSummary\n }\n}\n \n fragment aiAgentSummary on AiAgentSummary {\n agentId\n name\n liveVersion\n channels\n updatedAt\n queuedApprovals\n status\n}\n ";
|
|
1545
1567
|
export declare const ListAiAgentVersionsDocument = "\n query listAiAgentVersions($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1546
1568
|
export declare const AiAgentMetricsByAgentDocument = "\n query aiAgentMetricsByAgent($input: AiAgentMetricsWindowInput!) {\n aiAgentMetricsByAgent(input: $input) {\n ...aiAgentListingMetrics\n }\n}\n \n fragment aiAgentListingMetrics on AiAgentMetrics {\n agentId\n conversations\n conversationsResolved\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n costMicroUsd\n}\n ";
|
|
1547
|
-
export declare const DraftAiAgentDocument = "\n mutation draftAiAgent($input: DraftAiAgentInput!) {\n draftAiAgent(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1548
|
-
export declare const PublishAiAgentVersionDocument = "\n mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {\n publishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1569
|
+
export declare const DraftAiAgentDocument = "\n mutation draftAiAgent($input: DraftAiAgentInput!) {\n draftAiAgent(input: $input) {\n ...aiAgentVersion\n excludedTools {\n ...aiAgentToolExclusion\n }\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1570
|
+
export declare const PublishAiAgentVersionDocument = "\n mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {\n publishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n excludedTools {\n ...aiAgentToolExclusion\n }\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1549
1571
|
export declare const UnpublishAiAgentVersionDocument = "\n mutation unpublishAiAgentVersion($input: AiAgentVersionRefInput!) {\n unpublishAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1550
1572
|
export declare const RollbackAiAgentVersionDocument = "\n mutation rollbackAiAgentVersion($input: AiAgentVersionRefInput!) {\n rollbackAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
1551
1573
|
export declare const RemoveAiAgentVersionDocument = "\n mutation removeAiAgentVersion($input: AiAgentVersionRefInput!) {\n removeAiAgentVersion(input: $input) {\n ...aiAgentVersion\n }\n}\n \n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
|
|
@@ -1554,7 +1576,7 @@ export declare const ListAiAgentUseCasesDocument = "\n query listAiAgentUseCa
|
|
|
1554
1576
|
export declare const ListAiAgentProceduresDocument = "\n query listAiAgentProcedures($agentId: ID!) {\n listAiAgentProcedures(agentId: $agentId) {\n ...aiAgentProcedure\n }\n}\n \n fragment aiAgentProcedure on AiAgentProcedure {\n id\n name\n guidanceSteps\n toolIds\n contingency\n executionAutonomy\n status\n updatedAt\n}\n ";
|
|
1555
1577
|
export declare const ListAiAgentToolsDocument = "\n query listAiAgentTools {\n listAiAgentTools {\n ...aiAgentTool\n }\n}\n \n fragment aiAgentTool on AiAgentTool {\n toolId\n name\n description\n effect\n availability\n requiresAuthenticatedCustomer\n onFailure\n customerScope\n returns\n approval\n parameters {\n name\n type\n required\n description\n grounding\n }\n}\n ";
|
|
1556
1578
|
export declare const AiAgentUseCaseOverlapDocument = "\n query aiAgentUseCaseOverlap($agentId: ID!) {\n aiAgentUseCaseOverlap(agentId: $agentId) {\n threshold\n pairs {\n left\n right\n score\n }\n }\n}\n ";
|
|
1557
|
-
export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!) {\n aiAgentTrace(sessionId: $sessionId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n ";
|
|
1579
|
+
export declare const AiAgentTraceDocument = "\n query aiAgentTrace($sessionId: ID!) {\n aiAgentTrace(sessionId: $sessionId) {\n ...aiAgentTrace\n }\n}\n \n fragment aiAgentTrace on AiAgentTrace {\n sessionId\n turn\n agentId\n agentVersion\n input\n promptBuilderVersion\n masterRuleVersion\n identificationRequired\n promptFingerprint\n knowledgeOrigins\n outcome\n haltReason\n steps\n answer\n startedAt\n excludedTools {\n ...aiAgentToolExclusion\n }\n toolCalls {\n toolId\n name\n result\n ok\n connection\n errorClass\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1558
1580
|
export declare const ListAiAgentScenariosDocument = "\n query listAiAgentScenarios($agentId: ID!) {\n listAiAgentScenarios(agentId: $agentId) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
1559
1581
|
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 ";
|
|
1560
1582
|
export declare const AiAgentRetentionPolicyDocument = "\n query aiAgentRetentionPolicy {\n aiAgentRetentionPolicy {\n days {\n transcript\n session_state\n long_term_memory\n }\n masksPersonalData\n }\n}\n ";
|
|
@@ -1569,11 +1591,11 @@ export declare const RegisterAiAgentToolDocument = "\n mutation registerAiAge
|
|
|
1569
1591
|
export declare const UnregisterAiAgentToolDocument = "\n mutation unregisterAiAgentTool($input: UnregisterAiAgentToolInput!) {\n unregisterAiAgentTool(input: $input)\n}\n ";
|
|
1570
1592
|
export declare const RemoveAiAgentScenarioDocument = "\n mutation removeAiAgentScenario($input: RemoveAiAgentScenarioInput!) {\n removeAiAgentScenario(input: $input)\n}\n ";
|
|
1571
1593
|
export declare const SaveAiAgentScenarioDocument = "\n mutation saveAiAgentScenario($input: SaveAiAgentScenarioInput!) {\n saveAiAgentScenario(input: $input) {\n ...aiAgentScenario\n }\n}\n \n fragment aiAgentScenario on AiAgentScenario {\n scenarioId\n description\n customerId\n turns\n expectations\n}\n ";
|
|
1572
|
-
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
1573
|
-
export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(agentId: $agentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n ";
|
|
1594
|
+
export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentVersion($input: CheckAiAgentVersionInput!) {\n checkAiAgentVersion(input: $input) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1595
|
+
export declare const GetAiAgentCheckRunDocument = "\n query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {\n getAiAgentCheckRun(agentId: $agentId, runId: $runId) {\n ...aiAgentCheckRun\n }\n}\n \n fragment aiAgentCheckRun on AiAgentCheckRun {\n runId\n agentId\n version\n status\n requestedAt\n startedAt\n finishedAt\n totalRuns\n completedRuns\n error\n excludedTools {\n ...aiAgentToolExclusion\n }\n result {\n safeToPublish\n reports {\n scenarioId\n runs\n cut\n measured\n passed\n rate\n handoffReasons {\n key\n count\n }\n turns {\n turn\n runs\n answered\n grounded\n blocked\n identificationRequired\n toolNames {\n key\n count\n }\n blockCategories {\n key\n count\n }\n }\n }\n regressions {\n scenarioId\n before\n after\n }\n }\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1574
1596
|
export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
|
|
1575
1597
|
export declare const AiAgentMetricsDocument = "\n query aiAgentMetrics($input: AiAgentMetricsInput!) {\n aiAgentMetrics(input: $input) {\n ...aiAgentMetricsReport\n }\n}\n \n fragment aiAgentMetricsReport on AiAgentMetrics {\n agentId\n from\n to\n truncated\n conversations\n conversationsResolved\n conversationsInconclusive\n conversationsHandoffRequested\n resolutionRate\n resolutionDefinition\n escalatedToHuman\n escalatedToFlow\n escalatedTargetUndeclared\n handoffsByReason {\n key\n count\n }\n humanRequestedTurns\n costMicroUsd\n costMicroUsdPerResolvedConversation\n unpricedTurns\n inputTokens\n outputTokens\n totalTokens\n cachedInputTokens\n cachedTurns\n llmCalls\n turnsByModel {\n key\n count\n }\n avgTurnDurationMs\n p95TurnDurationMs\n avgLlmLatencyMs\n turns\n answeredTurns\n answeredWithFailedConnectionTurns\n unansweredTurns\n unansweredDefinition\n topTopics {\n key\n count\n }\n topUnansweredQuestions {\n key\n count\n }\n blockedTurns\n blocksByCategory {\n key\n count\n }\n haltedTurns\n haltReasons {\n key\n count\n }\n budgetExceededTurns\n identificationRequiredTurns\n toolCalls\n toolCallsFailed\n toolErrorsByConnection {\n key\n count\n }\n toolErrorsByClass {\n key\n count\n }\n knowledgeRetrieved\n knowledgeEmpty\n knowledgeUnavailable\n knowledgeSkipped\n}\n ";
|
|
1576
|
-
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n}\n \n\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n}\n ";
|
|
1598
|
+
export declare const AiAgentVersionSpecDocument = "\n query aiAgentVersionSpec($agentId: ID!) {\n listAiAgentVersions(agentId: $agentId) {\n ...aiAgentVersionWithSpec\n }\n}\n \n fragment aiAgentVersionWithSpec on AiAgentVersion {\n agentId\n version\n status\n createdAt\n spec {\n ...aiAgentSpec\n }\n excludedTools {\n ...aiAgentToolExclusion\n }\n}\n \n\n fragment aiAgentSpec on AiAgentSpec {\n identity {\n displayName\n role\n tone\n toneNotes\n openingMessage\n outOfScopeBehaviour\n }\n can\n cannot\n knowledgeBaseIds\n knowledgeFallback\n toolIds\n budget {\n maxSteps\n maxToolCalls\n maxTokens\n maxCostMicroUsd\n maxPeriodCostMicroUsd\n onExceeded\n }\n handoff {\n transition\n target\n }\n channels\n allowWriteTools\n}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
|
|
1577
1599
|
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 ";
|
|
1578
1600
|
export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
|
|
1579
1601
|
export declare const ExtractImageMetadataDocument = "\n mutation extractImageMetadata($input: ExtractImageMetadataInput!) {\n extractImageMetadata(input: $input) {\n success\n model\n extractedMetadata\n tokenUsage {\n prompt\n completion\n total\n }\n }\n}\n ";
|
package/src/sdks/ai.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
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.AiAgentMetricsDocument = exports.AiAgentCheckLimitsDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = void 0;
|
|
4
|
+
exports.ResolveAiAgentApprovalDocument = exports.RemoveAiAgentProcedureDocument = exports.RemoveAiAgentUseCaseDocument = exports.SaveAiAgentProcedureDocument = exports.SaveAiAgentUseCaseDocument = exports.AiAgentConversationOutcomeDocument = exports.AiAgentConversationMetricsDocument = exports.AiAgentRetentionPolicyDocument = exports.SetAiAgentRetentionPolicyDocument = 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.AiAgentMetricsByAgentDocument = exports.ListAiAgentVersionsDocument = exports.ListAiAgentsDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.AiAgentMetricsReportFragmentDoc = exports.AiAgentCheckRunFragmentDoc = exports.AiAgentScenarioFragmentDoc = exports.AiAgentTraceFragmentDoc = exports.AiAgentToolFragmentDoc = exports.AiAgentProcedureFragmentDoc = exports.AiAgentUseCaseFragmentDoc = exports.AiAgentListingMetricsFragmentDoc = exports.AiAgentVersionWithSpecFragmentDoc = exports.AiAgentToolExclusionFragmentDoc = exports.AiAgentSpecFragmentDoc = exports.AiAgentVersionFragmentDoc = exports.AiAgentSummaryFragmentDoc = exports.Typenames = exports.ToolParameterType = exports.ToolEffect = exports.ToolAvailability = exports.TonePreset = exports.ParameterGrounding = exports.Can = exports.BudgetExceededAction = exports.AppInstanceStatus = exports.AiAgentVersionStatus = exports.AiAgentCheckRunStatus = void 0;
|
|
5
|
+
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.AiAgentMetricsDocument = exports.AiAgentCheckLimitsDocument = exports.GetAiAgentCheckRunDocument = exports.CheckAiAgentVersionDocument = exports.SaveAiAgentScenarioDocument = exports.RemoveAiAgentScenarioDocument = exports.UnregisterAiAgentToolDocument = exports.RegisterAiAgentToolDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AiAgentCheckRunStatus;
|
|
8
8
|
(function (AiAgentCheckRunStatus) {
|
|
@@ -135,6 +135,13 @@ exports.AiAgentSpecFragmentDoc = `
|
|
|
135
135
|
target
|
|
136
136
|
}
|
|
137
137
|
channels
|
|
138
|
+
allowWriteTools
|
|
139
|
+
}
|
|
140
|
+
`;
|
|
141
|
+
exports.AiAgentToolExclusionFragmentDoc = `
|
|
142
|
+
fragment aiAgentToolExclusion on AiAgentToolExclusion {
|
|
143
|
+
toolId
|
|
144
|
+
reason
|
|
138
145
|
}
|
|
139
146
|
`;
|
|
140
147
|
exports.AiAgentVersionWithSpecFragmentDoc = `
|
|
@@ -146,6 +153,9 @@ exports.AiAgentVersionWithSpecFragmentDoc = `
|
|
|
146
153
|
spec {
|
|
147
154
|
...aiAgentSpec
|
|
148
155
|
}
|
|
156
|
+
excludedTools {
|
|
157
|
+
...aiAgentToolExclusion
|
|
158
|
+
}
|
|
149
159
|
}
|
|
150
160
|
`;
|
|
151
161
|
exports.AiAgentListingMetricsFragmentDoc = `
|
|
@@ -219,6 +229,9 @@ exports.AiAgentTraceFragmentDoc = `
|
|
|
219
229
|
steps
|
|
220
230
|
answer
|
|
221
231
|
startedAt
|
|
232
|
+
excludedTools {
|
|
233
|
+
...aiAgentToolExclusion
|
|
234
|
+
}
|
|
222
235
|
toolCalls {
|
|
223
236
|
toolId
|
|
224
237
|
name
|
|
@@ -250,6 +263,9 @@ exports.AiAgentCheckRunFragmentDoc = `
|
|
|
250
263
|
totalRuns
|
|
251
264
|
completedRuns
|
|
252
265
|
error
|
|
266
|
+
excludedTools {
|
|
267
|
+
...aiAgentToolExclusion
|
|
268
|
+
}
|
|
253
269
|
result {
|
|
254
270
|
safeToPublish
|
|
255
271
|
reports {
|
|
@@ -414,16 +430,24 @@ exports.DraftAiAgentDocument = `
|
|
|
414
430
|
mutation draftAiAgent($input: DraftAiAgentInput!) {
|
|
415
431
|
draftAiAgent(input: $input) {
|
|
416
432
|
...aiAgentVersion
|
|
433
|
+
excludedTools {
|
|
434
|
+
...aiAgentToolExclusion
|
|
435
|
+
}
|
|
417
436
|
}
|
|
418
437
|
}
|
|
419
|
-
${exports.AiAgentVersionFragmentDoc}
|
|
438
|
+
${exports.AiAgentVersionFragmentDoc}
|
|
439
|
+
${exports.AiAgentToolExclusionFragmentDoc}`;
|
|
420
440
|
exports.PublishAiAgentVersionDocument = `
|
|
421
441
|
mutation publishAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
422
442
|
publishAiAgentVersion(input: $input) {
|
|
423
443
|
...aiAgentVersion
|
|
444
|
+
excludedTools {
|
|
445
|
+
...aiAgentToolExclusion
|
|
446
|
+
}
|
|
424
447
|
}
|
|
425
448
|
}
|
|
426
|
-
${exports.AiAgentVersionFragmentDoc}
|
|
449
|
+
${exports.AiAgentVersionFragmentDoc}
|
|
450
|
+
${exports.AiAgentToolExclusionFragmentDoc}`;
|
|
427
451
|
exports.UnpublishAiAgentVersionDocument = `
|
|
428
452
|
mutation unpublishAiAgentVersion($input: AiAgentVersionRefInput!) {
|
|
429
453
|
unpublishAiAgentVersion(input: $input) {
|
|
@@ -489,7 +513,8 @@ exports.AiAgentTraceDocument = `
|
|
|
489
513
|
...aiAgentTrace
|
|
490
514
|
}
|
|
491
515
|
}
|
|
492
|
-
${exports.AiAgentTraceFragmentDoc}
|
|
516
|
+
${exports.AiAgentTraceFragmentDoc}
|
|
517
|
+
${exports.AiAgentToolExclusionFragmentDoc}`;
|
|
493
518
|
exports.ListAiAgentScenariosDocument = `
|
|
494
519
|
query listAiAgentScenarios($agentId: ID!) {
|
|
495
520
|
listAiAgentScenarios(agentId: $agentId) {
|
|
@@ -612,14 +637,16 @@ exports.CheckAiAgentVersionDocument = `
|
|
|
612
637
|
...aiAgentCheckRun
|
|
613
638
|
}
|
|
614
639
|
}
|
|
615
|
-
${exports.AiAgentCheckRunFragmentDoc}
|
|
640
|
+
${exports.AiAgentCheckRunFragmentDoc}
|
|
641
|
+
${exports.AiAgentToolExclusionFragmentDoc}`;
|
|
616
642
|
exports.GetAiAgentCheckRunDocument = `
|
|
617
643
|
query getAiAgentCheckRun($agentId: ID!, $runId: ID!) {
|
|
618
644
|
getAiAgentCheckRun(agentId: $agentId, runId: $runId) {
|
|
619
645
|
...aiAgentCheckRun
|
|
620
646
|
}
|
|
621
647
|
}
|
|
622
|
-
${exports.AiAgentCheckRunFragmentDoc}
|
|
648
|
+
${exports.AiAgentCheckRunFragmentDoc}
|
|
649
|
+
${exports.AiAgentToolExclusionFragmentDoc}`;
|
|
623
650
|
exports.AiAgentCheckLimitsDocument = `
|
|
624
651
|
query aiAgentCheckLimits($agentId: ID!) {
|
|
625
652
|
aiAgentCheckLimits(agentId: $agentId) {
|
|
@@ -644,7 +671,8 @@ exports.AiAgentVersionSpecDocument = `
|
|
|
644
671
|
}
|
|
645
672
|
}
|
|
646
673
|
${exports.AiAgentVersionWithSpecFragmentDoc}
|
|
647
|
-
${exports.AiAgentSpecFragmentDoc}
|
|
674
|
+
${exports.AiAgentSpecFragmentDoc}
|
|
675
|
+
${exports.AiAgentToolExclusionFragmentDoc}`;
|
|
648
676
|
exports.AiAgentRoutingPreviewDocument = `
|
|
649
677
|
query aiAgentRoutingPreview($input: AiAgentRoutingPreviewInput!) {
|
|
650
678
|
aiAgentRoutingPreview(input: $input) {
|
|
@@ -124,6 +124,7 @@ export type Scalars = {
|
|
|
124
124
|
};
|
|
125
125
|
export type AgentDailySummary = {
|
|
126
126
|
agentId: Scalars['ID']['output'];
|
|
127
|
+
agentName?: Maybe<Scalars['String']['output']>;
|
|
127
128
|
/**
|
|
128
129
|
* TMA por agente em ms: média de (closedAt − assignedAt) dos tickets fechados na janela.
|
|
129
130
|
* Difere do getAttendanceTime global, que conta desde createdAt (inclui espera em fila).
|
|
@@ -131,6 +132,7 @@ export type AgentDailySummary = {
|
|
|
131
132
|
attendanceAvgMs?: Maybe<Scalars['Float']['output']>;
|
|
132
133
|
closed: Scalars['Int']['output'];
|
|
133
134
|
firstResponseAvgMs?: Maybe<Scalars['Float']['output']>;
|
|
135
|
+
messagesAvg?: Maybe<Scalars['Float']['output']>;
|
|
134
136
|
reviewAverage?: Maybe<Scalars['Float']['output']>;
|
|
135
137
|
reviewCount: Scalars['Int']['output'];
|
|
136
138
|
reviewType?: Maybe<AnalyticsType>;
|
|
@@ -140,6 +142,12 @@ export type AgentInfo = {
|
|
|
140
142
|
name: Scalars['String']['output'];
|
|
141
143
|
picture?: Maybe<Scalars['String']['output']>;
|
|
142
144
|
};
|
|
145
|
+
export declare enum AgentSummaryOrderBy {
|
|
146
|
+
AttendanceAvgMs = "ATTENDANCE_AVG_MS",
|
|
147
|
+
Closed = "CLOSED",
|
|
148
|
+
FirstResponseAvgMs = "FIRST_RESPONSE_AVG_MS",
|
|
149
|
+
ReviewAverage = "REVIEW_AVERAGE"
|
|
150
|
+
}
|
|
143
151
|
export type AnalyticsAverage = {
|
|
144
152
|
current: Scalars['Float']['output'];
|
|
145
153
|
delta?: Maybe<Scalars['Float']['output']>;
|
|
@@ -281,6 +289,7 @@ export type Query = {
|
|
|
281
289
|
getFacets?: Maybe<AnalyticsFacets>;
|
|
282
290
|
getFirstResponseTime?: Maybe<AnalyticsAverage>;
|
|
283
291
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
292
|
+
getReviewVerbatims: ReviewVerbatimConnection;
|
|
284
293
|
getTicketsByStatus?: Maybe<AnalyticsMultiValue>;
|
|
285
294
|
getTicketsByTriggerApp?: Maybe<Array<Maybe<AnalyticsChart>>>;
|
|
286
295
|
getTicketsReviews?: Maybe<AnalyticsAverage>;
|
|
@@ -292,7 +301,9 @@ export type Query = {
|
|
|
292
301
|
version?: Maybe<Scalars['String']['output']>;
|
|
293
302
|
};
|
|
294
303
|
export type QueryGetAgentsDailySummaryArgs = {
|
|
304
|
+
direction?: InputMaybe<SortDirection>;
|
|
295
305
|
endDate: Scalars['DateTime']['input'];
|
|
306
|
+
orderBy?: InputMaybe<AgentSummaryOrderBy>;
|
|
296
307
|
startDate: Scalars['DateTime']['input'];
|
|
297
308
|
type?: InputMaybe<AnalyticsType>;
|
|
298
309
|
};
|
|
@@ -315,6 +326,11 @@ export type QueryGetFirstResponseTimeArgs = {
|
|
|
315
326
|
filters?: InputMaybe<Array<TicketAnalyticsFilterInput>>;
|
|
316
327
|
startDate: Scalars['Date']['input'];
|
|
317
328
|
};
|
|
329
|
+
export type QueryGetReviewVerbatimsArgs = {
|
|
330
|
+
filter: ReviewVerbatimFilterInput;
|
|
331
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
332
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
333
|
+
};
|
|
318
334
|
export type QueryGetTicketsByStatusArgs = {
|
|
319
335
|
endDate: Scalars['Date']['input'];
|
|
320
336
|
filters?: InputMaybe<Array<TicketAnalyticsFilterInput>>;
|
|
@@ -354,6 +370,27 @@ export type QueryGetVolumeOfTicketsReviewsArgs = {
|
|
|
354
370
|
export type QueryListFlowTaxonomyArgs = {
|
|
355
371
|
instanceId: Scalars['ID']['input'];
|
|
356
372
|
};
|
|
373
|
+
export type ReviewVerbatim = {
|
|
374
|
+
agentId: Scalars['ID']['output'];
|
|
375
|
+
agentName?: Maybe<Scalars['String']['output']>;
|
|
376
|
+
closedAt: Scalars['DateTime']['output'];
|
|
377
|
+
ratingExplanation?: Maybe<Scalars['String']['output']>;
|
|
378
|
+
ratingValue: Scalars['Float']['output'];
|
|
379
|
+
reviewType: AnalyticsType;
|
|
380
|
+
sessionId: Scalars['ID']['output'];
|
|
381
|
+
};
|
|
382
|
+
export type ReviewVerbatimConnection = {
|
|
383
|
+
nodes: Array<ReviewVerbatim>;
|
|
384
|
+
pageInfo: PageInfo;
|
|
385
|
+
};
|
|
386
|
+
export type ReviewVerbatimFilterInput = {
|
|
387
|
+
assigneeId?: InputMaybe<Scalars['ID']['input']>;
|
|
388
|
+
endDate: Scalars['DateTime']['input'];
|
|
389
|
+
ratingMax?: InputMaybe<Scalars['Float']['input']>;
|
|
390
|
+
ratingMin?: InputMaybe<Scalars['Float']['input']>;
|
|
391
|
+
reviewType: AnalyticsType;
|
|
392
|
+
startDate: Scalars['DateTime']['input'];
|
|
393
|
+
};
|
|
357
394
|
export type SearchResultsFacet = {
|
|
358
395
|
name: Scalars['String']['output'];
|
|
359
396
|
stats?: Maybe<SearchResultsFacetStats>;
|
|
@@ -375,6 +412,10 @@ export type SearchResultsStats = {
|
|
|
375
412
|
searchTime: Scalars['Float']['output'];
|
|
376
413
|
totalPages: Scalars['Float']['output'];
|
|
377
414
|
};
|
|
415
|
+
export declare enum SortDirection {
|
|
416
|
+
Asc = "ASC",
|
|
417
|
+
Desc = "DESC"
|
|
418
|
+
}
|
|
378
419
|
export type StringMatcher = {
|
|
379
420
|
btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
380
421
|
ct?: Maybe<Scalars['String']['output']>;
|
|
@@ -543,9 +584,11 @@ export type GetAgentsDailySummaryQueryVariables = Exact<{
|
|
|
543
584
|
startDate: Scalars['DateTime']['input'];
|
|
544
585
|
endDate: Scalars['DateTime']['input'];
|
|
545
586
|
type?: InputMaybe<AnalyticsType>;
|
|
587
|
+
orderBy?: InputMaybe<AgentSummaryOrderBy>;
|
|
588
|
+
direction?: InputMaybe<SortDirection>;
|
|
546
589
|
}>;
|
|
547
590
|
export type GetAgentsDailySummaryQuery = {
|
|
548
|
-
getAgentsDailySummary: Array<Pick<AgentDailySummary, 'agentId' | 'closed' | 'reviewType' | 'reviewAverage' | 'reviewCount' | 'firstResponseAvgMs' | 'attendanceAvgMs'>>;
|
|
591
|
+
getAgentsDailySummary: Array<Pick<AgentDailySummary, 'agentId' | 'agentName' | 'closed' | 'reviewType' | 'reviewAverage' | 'reviewCount' | 'firstResponseAvgMs' | 'attendanceAvgMs' | 'messagesAvg'>>;
|
|
549
592
|
};
|
|
550
593
|
export type GetClosedCountByChannelQueryVariables = Exact<{
|
|
551
594
|
startDate: Scalars['DateTime']['input'];
|
|
@@ -554,6 +597,17 @@ export type GetClosedCountByChannelQueryVariables = Exact<{
|
|
|
554
597
|
export type GetClosedCountByChannelQuery = {
|
|
555
598
|
getClosedCountByChannel: Array<Pick<ChannelClosedCount, 'channelId' | 'count'>>;
|
|
556
599
|
};
|
|
600
|
+
export type GetReviewVerbatimsQueryVariables = Exact<{
|
|
601
|
+
filter: ReviewVerbatimFilterInput;
|
|
602
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
603
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
604
|
+
}>;
|
|
605
|
+
export type GetReviewVerbatimsQuery = {
|
|
606
|
+
getReviewVerbatims: {
|
|
607
|
+
nodes: Array<Pick<ReviewVerbatim, 'sessionId' | 'agentId' | 'agentName' | 'reviewType' | 'ratingValue' | 'ratingExplanation' | 'closedAt'>>;
|
|
608
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
609
|
+
};
|
|
610
|
+
};
|
|
557
611
|
export declare const FlowTaxonomyFragmentDoc = "\n fragment flowTaxonomy on FlowTaxonomy {\n tenant\n instanceId\n flowName\n flowType\n description\n keyTasks\n humanComment\n auditedAt\n isReviewed\n createdAt\n updatedAt\n}\n ";
|
|
558
612
|
export declare const AverageFragmentDoc = "\n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
559
613
|
export declare const VolumeFragmentDoc = "\n fragment volume on AnalyticsVolume {\n delta\n total\n prevTotal\n data {\n name\n value\n }\n}\n ";
|
|
@@ -574,8 +628,9 @@ export declare const GetTicketsByTriggerAppDocument = "\n query getTicketsByT
|
|
|
574
628
|
export declare const GetTicketsReviewsDocument = "\n query getTicketsReviews($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!], $type: AnalyticsType!) {\n getTicketsReviews(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n type: $type\n ) {\n ...average\n }\n}\n \n fragment average on AnalyticsAverage {\n delta\n current\n previous\n}\n ";
|
|
575
629
|
export declare const GetFacetsDocument = "\n query getFacets($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!]) {\n getFacets(startDate: $startDate, endDate: $endDate, filters: $filters) {\n ...queryFacets\n }\n}\n \n fragment queryFacets on AnalyticsFacets {\n channelId {\n ...facetValue\n }\n customerId {\n ...facetValue\n }\n assigneeId {\n ...facetValue\n }\n status {\n ...facetValue\n }\n tags {\n ...facetValue\n }\n triggerApp {\n ...facetValue\n }\n}\n \n\n fragment facetValue on AnalyticsFacetValue {\n value\n display\n count\n}\n ";
|
|
576
630
|
export declare const GetTicketsReviewsSurveyRatingVolumeDocument = "\n query getTicketsReviewsSurveyRatingVolume($startDate: Date!, $endDate: Date!, $filters: [TicketAnalyticsFilterInput!], $type: AnalyticsType!) {\n getTicketsReviewsSurveyRatingVolume(\n startDate: $startDate\n endDate: $endDate\n filters: $filters\n type: $type\n ) {\n name\n value\n }\n}\n ";
|
|
577
|
-
export declare const GetAgentsDailySummaryDocument = "\n query getAgentsDailySummary($startDate: DateTime!, $endDate: DateTime!, $type: AnalyticsType) {\n getAgentsDailySummary(startDate: $startDate
|
|
631
|
+
export declare const GetAgentsDailySummaryDocument = "\n query getAgentsDailySummary($startDate: DateTime!, $endDate: DateTime!, $type: AnalyticsType, $orderBy: AgentSummaryOrderBy, $direction: SortDirection) {\n getAgentsDailySummary(\n startDate: $startDate\n endDate: $endDate\n type: $type\n orderBy: $orderBy\n direction: $direction\n ) {\n agentId\n agentName\n closed\n reviewType\n reviewAverage\n reviewCount\n firstResponseAvgMs\n attendanceAvgMs\n messagesAvg\n }\n}\n ";
|
|
578
632
|
export declare const GetClosedCountByChannelDocument = "\n query getClosedCountByChannel($startDate: DateTime!, $endDate: DateTime!) {\n getClosedCountByChannel(startDate: $startDate, endDate: $endDate) {\n channelId\n count\n }\n}\n ";
|
|
633
|
+
export declare const GetReviewVerbatimsDocument = "\n query getReviewVerbatims($filter: ReviewVerbatimFilterInput!, $first: Int, $next: Base64) {\n getReviewVerbatims(filter: $filter, first: $first, next: $next) {\n nodes {\n sessionId\n agentId\n agentName\n reviewType\n ratingValue\n ratingExplanation\n closedAt\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n ";
|
|
579
634
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
580
635
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
581
636
|
listFlowTaxonomy(variables: ListFlowTaxonomyQueryVariables, options?: C): Promise<ListFlowTaxonomyQuery>;
|
|
@@ -593,6 +648,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
593
648
|
getTicketsReviewsSurveyRatingVolume(variables: GetTicketsReviewsSurveyRatingVolumeQueryVariables, options?: C): Promise<GetTicketsReviewsSurveyRatingVolumeQuery>;
|
|
594
649
|
getAgentsDailySummary(variables: GetAgentsDailySummaryQueryVariables, options?: C): Promise<GetAgentsDailySummaryQuery>;
|
|
595
650
|
getClosedCountByChannel(variables: GetClosedCountByChannelQueryVariables, options?: C): Promise<GetClosedCountByChannelQuery>;
|
|
651
|
+
getReviewVerbatims(variables: GetReviewVerbatimsQueryVariables, options?: C): Promise<GetReviewVerbatimsQuery>;
|
|
596
652
|
};
|
|
597
653
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
598
654
|
export declare const serviceName = "@droz/drozanalytics";
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.GetClosedCountByChannelDocument = exports.GetAgentsDailySummaryDocument = exports.GetTicketsReviewsSurveyRatingVolumeDocument = exports.GetFacetsDocument = exports.GetTicketsReviewsDocument = exports.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsReviewsDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.MarkFlowReviewedDocument = exports.UpsertFlowTaxonomyDocument = exports.ListFlowTaxonomyDocument = exports.QueryFacetsFragmentDoc = exports.FacetValueFragmentDoc = exports.MultiValueFragmentDoc = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.FlowTaxonomyFragmentDoc = exports.Typenames = exports.FlowTaxonomyType = exports.Can = exports.AppInstanceStatus = exports.AnalyticsType = void 0;
|
|
4
|
+
exports.serviceName = exports.GetReviewVerbatimsDocument = exports.GetClosedCountByChannelDocument = exports.GetAgentsDailySummaryDocument = exports.GetTicketsReviewsSurveyRatingVolumeDocument = exports.GetFacetsDocument = exports.GetTicketsReviewsDocument = exports.GetTicketsByTriggerAppDocument = exports.GetVolumeOfTicketsReviewsDocument = exports.GetVolumeOfTicketsPerHourDocument = exports.GetVolumeOfTicketsPerDayDocument = exports.GetTicketsByStatusDocument = exports.GetAttendanceTimeDocument = exports.GetFirstResponseTimeDocument = exports.MarkFlowReviewedDocument = exports.UpsertFlowTaxonomyDocument = exports.ListFlowTaxonomyDocument = exports.QueryFacetsFragmentDoc = exports.FacetValueFragmentDoc = exports.MultiValueFragmentDoc = exports.ChartFragmentDoc = exports.VolumeFragmentDoc = exports.AverageFragmentDoc = exports.FlowTaxonomyFragmentDoc = exports.Typenames = exports.SortDirection = exports.FlowTaxonomyType = exports.Can = exports.AppInstanceStatus = exports.AnalyticsType = exports.AgentSummaryOrderBy = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
|
+
var AgentSummaryOrderBy;
|
|
7
|
+
(function (AgentSummaryOrderBy) {
|
|
8
|
+
AgentSummaryOrderBy["AttendanceAvgMs"] = "ATTENDANCE_AVG_MS";
|
|
9
|
+
AgentSummaryOrderBy["Closed"] = "CLOSED";
|
|
10
|
+
AgentSummaryOrderBy["FirstResponseAvgMs"] = "FIRST_RESPONSE_AVG_MS";
|
|
11
|
+
AgentSummaryOrderBy["ReviewAverage"] = "REVIEW_AVERAGE";
|
|
12
|
+
})(AgentSummaryOrderBy || (exports.AgentSummaryOrderBy = AgentSummaryOrderBy = {}));
|
|
6
13
|
var AnalyticsType;
|
|
7
14
|
(function (AnalyticsType) {
|
|
8
15
|
AnalyticsType["Csat"] = "CSAT";
|
|
@@ -31,6 +38,11 @@ var FlowTaxonomyType;
|
|
|
31
38
|
FlowTaxonomyType["Triagem"] = "TRIAGEM";
|
|
32
39
|
FlowTaxonomyType["Unknown"] = "UNKNOWN";
|
|
33
40
|
})(FlowTaxonomyType || (exports.FlowTaxonomyType = FlowTaxonomyType = {}));
|
|
41
|
+
var SortDirection;
|
|
42
|
+
(function (SortDirection) {
|
|
43
|
+
SortDirection["Asc"] = "ASC";
|
|
44
|
+
SortDirection["Desc"] = "DESC";
|
|
45
|
+
})(SortDirection || (exports.SortDirection = SortDirection = {}));
|
|
34
46
|
var Typenames;
|
|
35
47
|
(function (Typenames) {
|
|
36
48
|
Typenames["Any"] = "Any";
|
|
@@ -243,15 +255,23 @@ exports.GetTicketsReviewsSurveyRatingVolumeDocument = `
|
|
|
243
255
|
}
|
|
244
256
|
`;
|
|
245
257
|
exports.GetAgentsDailySummaryDocument = `
|
|
246
|
-
query getAgentsDailySummary($startDate: DateTime!, $endDate: DateTime!, $type: AnalyticsType) {
|
|
247
|
-
getAgentsDailySummary(
|
|
258
|
+
query getAgentsDailySummary($startDate: DateTime!, $endDate: DateTime!, $type: AnalyticsType, $orderBy: AgentSummaryOrderBy, $direction: SortDirection) {
|
|
259
|
+
getAgentsDailySummary(
|
|
260
|
+
startDate: $startDate
|
|
261
|
+
endDate: $endDate
|
|
262
|
+
type: $type
|
|
263
|
+
orderBy: $orderBy
|
|
264
|
+
direction: $direction
|
|
265
|
+
) {
|
|
248
266
|
agentId
|
|
267
|
+
agentName
|
|
249
268
|
closed
|
|
250
269
|
reviewType
|
|
251
270
|
reviewAverage
|
|
252
271
|
reviewCount
|
|
253
272
|
firstResponseAvgMs
|
|
254
273
|
attendanceAvgMs
|
|
274
|
+
messagesAvg
|
|
255
275
|
}
|
|
256
276
|
}
|
|
257
277
|
`;
|
|
@@ -263,6 +283,25 @@ exports.GetClosedCountByChannelDocument = `
|
|
|
263
283
|
}
|
|
264
284
|
}
|
|
265
285
|
`;
|
|
286
|
+
exports.GetReviewVerbatimsDocument = `
|
|
287
|
+
query getReviewVerbatims($filter: ReviewVerbatimFilterInput!, $first: Int, $next: Base64) {
|
|
288
|
+
getReviewVerbatims(filter: $filter, first: $first, next: $next) {
|
|
289
|
+
nodes {
|
|
290
|
+
sessionId
|
|
291
|
+
agentId
|
|
292
|
+
agentName
|
|
293
|
+
reviewType
|
|
294
|
+
ratingValue
|
|
295
|
+
ratingExplanation
|
|
296
|
+
closedAt
|
|
297
|
+
}
|
|
298
|
+
pageInfo {
|
|
299
|
+
hasNext
|
|
300
|
+
next
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
`;
|
|
266
305
|
function getSdk(requester) {
|
|
267
306
|
return {
|
|
268
307
|
listFlowTaxonomy(variables, options) {
|
|
@@ -309,6 +348,9 @@ function getSdk(requester) {
|
|
|
309
348
|
},
|
|
310
349
|
getClosedCountByChannel(variables, options) {
|
|
311
350
|
return requester(exports.GetClosedCountByChannelDocument, variables, options);
|
|
351
|
+
},
|
|
352
|
+
getReviewVerbatims(variables, options) {
|
|
353
|
+
return requester(exports.GetReviewVerbatimsDocument, variables, options);
|
|
312
354
|
}
|
|
313
355
|
};
|
|
314
356
|
}
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ export type ChatbotConversation = {
|
|
|
195
195
|
updatedAt: Scalars['DateTime']['output'];
|
|
196
196
|
};
|
|
197
197
|
export type CreateDrozBotInstanceInput = {
|
|
198
|
+
callbackBaseUrl?: InputMaybe<Scalars['String']['input']>;
|
|
198
199
|
credentialId: Scalars['ID']['input'];
|
|
199
200
|
handoffDrn?: InputMaybe<Scalars['DRN']['input']>;
|
|
200
201
|
integrationType: DrozBotIntegrationType;
|
|
@@ -252,6 +253,8 @@ export type DrozBotCustomer = {
|
|
|
252
253
|
phones?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
253
254
|
};
|
|
254
255
|
export type DrozBotInstance = {
|
|
256
|
+
/** URL base para onde o Nexo manda as respostas ao chatbot, com caminho. Ausente: homologação se isTest, senão produção. Só https em host *.meudroz.com. */
|
|
257
|
+
callbackBaseUrl?: Maybe<Scalars['String']['output']>;
|
|
255
258
|
createdAt: Scalars['DateTime']['output'];
|
|
256
259
|
credentialId: Scalars['ID']['output'];
|
|
257
260
|
drn: Scalars['DRN']['output'];
|
|
@@ -790,6 +793,7 @@ export declare enum Typenames {
|
|
|
790
793
|
IntentDictionary = "IntentDictionary"
|
|
791
794
|
}
|
|
792
795
|
export type UpdateDrozBotInstanceInput = {
|
|
796
|
+
callbackBaseUrl?: InputMaybe<Scalars['String']['input']>;
|
|
793
797
|
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
794
798
|
handoffDrn?: InputMaybe<Scalars['DRN']['input']>;
|
|
795
799
|
id: Scalars['ID']['input'];
|
|
@@ -826,7 +830,7 @@ export type SyncChatbotConversationsMutationVariables = Exact<{
|
|
|
826
830
|
export type SyncChatbotConversationsMutation = {
|
|
827
831
|
syncChatbotConversations: Pick<SyncChatbotConversationsResult, 'synced'>;
|
|
828
832
|
};
|
|
829
|
-
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'drn' | 'credentialId' | 'isTest' | 'integrationType' | 'handoffDrn' | 'createdAt' | 'updatedAt'>;
|
|
833
|
+
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'drn' | 'credentialId' | 'isTest' | 'integrationType' | 'handoffDrn' | 'callbackBaseUrl' | 'createdAt' | 'updatedAt'>;
|
|
830
834
|
export type DrozBotTicketCommentFragment = Pick<DrozBotTicketComment, 'id' | 'ticketId'>;
|
|
831
835
|
export type DrozBotCustomerFragment = Pick<DrozBotCustomer, 'id' | 'name' | 'phones'>;
|
|
832
836
|
export type GetDrozBotInstanceQueryVariables = Exact<{
|
|
@@ -1032,7 +1036,7 @@ export type InternalWhatsAppActiveDispatchMutationVariables = Exact<{
|
|
|
1032
1036
|
}>;
|
|
1033
1037
|
export type InternalWhatsAppActiveDispatchMutation = Pick<Mutation, 'internalWhatsAppActiveDispatch'>;
|
|
1034
1038
|
export declare const AiActionVariableValueFragmentDoc = "\n fragment aiActionVariableValue on AiActionVariableValue {\n key\n value\n}\n ";
|
|
1035
|
-
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n createdAt\n updatedAt\n}\n ";
|
|
1039
|
+
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
|
|
1036
1040
|
export declare const DrozBotTicketCommentFragmentDoc = "\n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
|
|
1037
1041
|
export declare const DrozBotCustomerFragmentDoc = "\n fragment drozBotCustomer on DrozBotCustomer {\n id\n name\n phones\n}\n ";
|
|
1038
1042
|
export declare const IntentDictionaryFragmentDoc = "\n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1046,12 +1050,12 @@ export declare const RunDrozbotAiActionDocument = "\n mutation runDrozbotAiAc
|
|
|
1046
1050
|
export declare const RunDrozbotAiActionHumanizedAnswerDocument = "\n mutation runDrozbotAiActionHumanizedAnswer($input: RunAiActionHumanizedAnswerInput!) {\n runDrozbotAiActionHumanizedAnswer(input: $input) {\n actions\n message_to_user\n }\n}\n ";
|
|
1047
1051
|
export declare const RequestDrozBotAssessDocument = "\n mutation requestDrozBotAssess($input: RequestDrozBotAssessInput!) {\n requestDrozBotAssess(input: $input)\n}\n ";
|
|
1048
1052
|
export declare const SyncChatbotConversationsDocument = "\n mutation syncChatbotConversations($input: SyncChatbotConversationsInput!) {\n syncChatbotConversations(input: $input) {\n synced\n }\n}\n ";
|
|
1049
|
-
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n createdAt\n updatedAt\n}\n ";
|
|
1050
|
-
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n createdAt\n updatedAt\n}\n ";
|
|
1053
|
+
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
|
|
1054
|
+
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
|
|
1051
1055
|
export declare const GetCustomerByPhoneDocument = "\n query getCustomerByPhone($phone: PhoneNumber!) {\n getCustomerByPhone(phone: $phone) {\n ...drozBotCustomer\n }\n}\n \n fragment drozBotCustomer on DrozBotCustomer {\n id\n name\n phones\n}\n ";
|
|
1052
|
-
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n createdAt\n updatedAt\n}\n ";
|
|
1053
|
-
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n createdAt\n updatedAt\n}\n ";
|
|
1054
|
-
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n createdAt\n updatedAt\n}\n ";
|
|
1056
|
+
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
|
|
1057
|
+
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
|
|
1058
|
+
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n handoffDrn\n callbackBaseUrl\n createdAt\n updatedAt\n}\n ";
|
|
1055
1059
|
export declare const CreateDrozBotTicketDocument = "\n mutation createDrozBotTicket($input: CreateDrozBotTicketInput!) {\n createDrozBotTicket(input: $input) {\n id\n instanceId\n }\n}\n ";
|
|
1056
1060
|
export declare const CreateDrozBotTicketCommentsDocument = "\n mutation createDrozBotTicketComments($input: CreateDrozBotTicketCommentsInput!) {\n createDrozBotTicketComments(input: $input) {\n ...drozBotTicketComment\n }\n}\n \n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
|
|
1057
1061
|
export declare const CreateDrozBotTicketCommentDocument = "\n mutation createDrozBotTicketComment($input: CreateDrozBotTicketCommentInput!) {\n createDrozBotTicketComment(input: $input) {\n id\n ticketId\n }\n}\n ";
|
package/src/sdks/drozbot.js
CHANGED
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -1583,8 +1583,6 @@ export declare enum Typenames {
|
|
|
1583
1583
|
BulkCloseBatches = "BulkCloseBatches",
|
|
1584
1584
|
BulkCloseRoutineConfig = "BulkCloseRoutineConfig",
|
|
1585
1585
|
BulkCloseRuns = "BulkCloseRuns",
|
|
1586
|
-
CajCloseBatches = "CajCloseBatches",
|
|
1587
|
-
CajCloseRuns = "CajCloseRuns",
|
|
1588
1586
|
ChannelLastAssignee = "ChannelLastAssignee",
|
|
1589
1587
|
ChannelTriggerExecutions = "ChannelTriggerExecutions",
|
|
1590
1588
|
Channels = "Channels",
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -171,8 +171,6 @@ var Typenames;
|
|
|
171
171
|
Typenames["BulkCloseBatches"] = "BulkCloseBatches";
|
|
172
172
|
Typenames["BulkCloseRoutineConfig"] = "BulkCloseRoutineConfig";
|
|
173
173
|
Typenames["BulkCloseRuns"] = "BulkCloseRuns";
|
|
174
|
-
Typenames["CajCloseBatches"] = "CajCloseBatches";
|
|
175
|
-
Typenames["CajCloseRuns"] = "CajCloseRuns";
|
|
176
174
|
Typenames["ChannelLastAssignee"] = "ChannelLastAssignee";
|
|
177
175
|
Typenames["ChannelTriggerExecutions"] = "ChannelTriggerExecutions";
|
|
178
176
|
Typenames["Channels"] = "Channels";
|