@droz-js/sdk 0.20.13 → 0.20.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sdks/ai.d.ts +35 -13
- package/src/sdks/ai.js +36 -8
- 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/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) {
|
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";
|