@droz-js/sdk 0.20.12 → 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/drozchat-ws.d.ts +12 -0
- package/src/drozchat.d.ts +12 -0
- 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 +154 -2
- package/src/sdks/drozchat.js +87 -5
- package/src/sdks/nucleus.d.ts +1 -0
- package/src/sdks/nucleus.js +1 -0
- package/src/sdks/outsource.d.ts +2 -0
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -85,6 +85,18 @@ declare const DrozChatWs_base: new () => {
|
|
|
85
85
|
deleteNote(variables: import("./sdks/drozchat").Exact<{
|
|
86
86
|
input: import("./sdks/drozchat").DeleteCustomerNoteInput;
|
|
87
87
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteNoteMutation>;
|
|
88
|
+
listCustomFields(variables?: import("./sdks/drozchat").Exact<{
|
|
89
|
+
[key: string]: never;
|
|
90
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListCustomFieldsQuery>;
|
|
91
|
+
setCustomFieldValue(variables: import("./sdks/drozchat").Exact<{
|
|
92
|
+
input: import("./sdks/drozchat").SetCustomFieldValueInput;
|
|
93
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").SetCustomFieldValueMutation>;
|
|
94
|
+
clearCustomFieldValue(variables: import("./sdks/drozchat").Exact<{
|
|
95
|
+
input: import("./sdks/drozchat").ClearCustomFieldValueInput;
|
|
96
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ClearCustomFieldValueMutation>;
|
|
97
|
+
customFieldValuesForTicket(variables: import("./sdks/drozchat").Exact<{
|
|
98
|
+
ticketId: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
99
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CustomFieldValuesForTicketQuery>;
|
|
88
100
|
getGlobalConfiguration(variables?: import("./sdks/drozchat").Exact<{
|
|
89
101
|
[key: string]: never;
|
|
90
102
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetGlobalConfigurationQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -88,6 +88,18 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
88
88
|
deleteNote(variables: import("./sdks/drozchat").Exact<{
|
|
89
89
|
input: import("./sdks/drozchat").DeleteCustomerNoteInput;
|
|
90
90
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteNoteMutation>;
|
|
91
|
+
listCustomFields(variables?: import("./sdks/drozchat").Exact<{
|
|
92
|
+
[key: string]: never;
|
|
93
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListCustomFieldsQuery>;
|
|
94
|
+
setCustomFieldValue(variables: import("./sdks/drozchat").Exact<{
|
|
95
|
+
input: import("./sdks/drozchat").SetCustomFieldValueInput;
|
|
96
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").SetCustomFieldValueMutation>;
|
|
97
|
+
clearCustomFieldValue(variables: import("./sdks/drozchat").Exact<{
|
|
98
|
+
input: import("./sdks/drozchat").ClearCustomFieldValueInput;
|
|
99
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ClearCustomFieldValueMutation>;
|
|
100
|
+
customFieldValuesForTicket(variables: import("./sdks/drozchat").Exact<{
|
|
101
|
+
ticketId: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
102
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CustomFieldValuesForTicketQuery>;
|
|
91
103
|
getGlobalConfiguration(variables?: import("./sdks/drozchat").Exact<{
|
|
92
104
|
[key: string]: never;
|
|
93
105
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetGlobalConfigurationQuery>;
|
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
|
@@ -300,6 +300,10 @@ export type ChatActions = {
|
|
|
300
300
|
canUnassign: Scalars['Boolean']['output'];
|
|
301
301
|
canUpdateTags: Scalars['Boolean']['output'];
|
|
302
302
|
};
|
|
303
|
+
export type ClearCustomFieldValueInput = {
|
|
304
|
+
fieldId: Scalars['ID']['input'];
|
|
305
|
+
ticketId: Scalars['ID']['input'];
|
|
306
|
+
};
|
|
303
307
|
export type CloneViewInput = {
|
|
304
308
|
id: Scalars['ID']['input'];
|
|
305
309
|
};
|
|
@@ -313,6 +317,12 @@ export type CreateBulkCloseRoutineConfigInput = {
|
|
|
313
317
|
maxTicketsPerRun: Scalars['Int']['input'];
|
|
314
318
|
senderAllowlist: Array<Scalars['String']['input']>;
|
|
315
319
|
};
|
|
320
|
+
export type CreateCustomFieldInput = {
|
|
321
|
+
isRequired?: InputMaybe<Scalars['Boolean']['input']>;
|
|
322
|
+
name: Scalars['String']['input'];
|
|
323
|
+
options?: InputMaybe<Array<CustomFieldOptionInput>>;
|
|
324
|
+
type: CustomFieldType;
|
|
325
|
+
};
|
|
316
326
|
export type CreateCustomerNoteInput = {
|
|
317
327
|
customerId: Scalars['String']['input'];
|
|
318
328
|
note: Scalars['String']['input'];
|
|
@@ -386,6 +396,47 @@ export type CreateViewInput = {
|
|
|
386
396
|
filters: TicketSearchFilterInput;
|
|
387
397
|
name: Scalars['String']['input'];
|
|
388
398
|
};
|
|
399
|
+
export type CustomField = {
|
|
400
|
+
createdAt: Scalars['DateTime']['output'];
|
|
401
|
+
id: Scalars['ID']['output'];
|
|
402
|
+
isActive: Scalars['Boolean']['output'];
|
|
403
|
+
isRequired: Scalars['Boolean']['output'];
|
|
404
|
+
name: Scalars['String']['output'];
|
|
405
|
+
options: Array<CustomFieldOption>;
|
|
406
|
+
order: Scalars['Int']['output'];
|
|
407
|
+
type: CustomFieldType;
|
|
408
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
409
|
+
usedInTicket: Scalars['Boolean']['output'];
|
|
410
|
+
};
|
|
411
|
+
export type CustomFieldFilter = {
|
|
412
|
+
fieldId: Scalars['ID']['output'];
|
|
413
|
+
number?: Maybe<NumberMatcher>;
|
|
414
|
+
string?: Maybe<StringMatcher>;
|
|
415
|
+
};
|
|
416
|
+
export type CustomFieldFilterInput = {
|
|
417
|
+
fieldId: Scalars['ID']['input'];
|
|
418
|
+
number?: InputMaybe<NumberMatcherInput>;
|
|
419
|
+
string?: InputMaybe<StringMatcherInput>;
|
|
420
|
+
};
|
|
421
|
+
export type CustomFieldOption = {
|
|
422
|
+
label: Scalars['String']['output'];
|
|
423
|
+
tag: Scalars['String']['output'];
|
|
424
|
+
};
|
|
425
|
+
export type CustomFieldOptionInput = {
|
|
426
|
+
label: Scalars['String']['input'];
|
|
427
|
+
tag: Scalars['String']['input'];
|
|
428
|
+
};
|
|
429
|
+
export type CustomFieldOrderInput = {
|
|
430
|
+
id: Scalars['ID']['input'];
|
|
431
|
+
order: Scalars['Int']['input'];
|
|
432
|
+
};
|
|
433
|
+
export declare enum CustomFieldType {
|
|
434
|
+
Date = "DATE",
|
|
435
|
+
MultiSelect = "MULTI_SELECT",
|
|
436
|
+
Number = "NUMBER",
|
|
437
|
+
SingleSelect = "SINGLE_SELECT",
|
|
438
|
+
Text = "TEXT"
|
|
439
|
+
}
|
|
389
440
|
export type CustomerNote = {
|
|
390
441
|
createdAt: Scalars['DateTime']['output'];
|
|
391
442
|
createdBy: DrozChatAgent;
|
|
@@ -604,10 +655,12 @@ export type Mutation = {
|
|
|
604
655
|
agentLogoff: AgentPresence;
|
|
605
656
|
assignTicket: Ticket;
|
|
606
657
|
assignTicketMyself: Ticket;
|
|
658
|
+
clearCustomFieldValue: Ticket;
|
|
607
659
|
clearMaxSimultaneousAttendances?: Maybe<GlobalConfiguration>;
|
|
608
660
|
cloneView: View;
|
|
609
661
|
closeTicket: Ticket;
|
|
610
662
|
createBulkCloseRoutineConfig: BulkCloseRoutineConfig;
|
|
663
|
+
createCustomField: CustomField;
|
|
611
664
|
createDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
612
665
|
createDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
613
666
|
createNote: CustomerNote;
|
|
@@ -620,6 +673,7 @@ export type Mutation = {
|
|
|
620
673
|
createTrigger: Trigger;
|
|
621
674
|
createView: View;
|
|
622
675
|
deleteBulkCloseRoutineConfig: Scalars['Boolean']['output'];
|
|
676
|
+
deleteCustomField: Scalars['Boolean']['output'];
|
|
623
677
|
deleteNote: CustomerNote;
|
|
624
678
|
deleteQuickAnswer?: Maybe<QuickAnswer>;
|
|
625
679
|
deleteTags: Array<Maybe<TicketTag>>;
|
|
@@ -642,11 +696,14 @@ export type Mutation = {
|
|
|
642
696
|
removeDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
643
697
|
removeDrozChatChannelGroup?: Maybe<DrozChatChannel>;
|
|
644
698
|
removeTagsFromTicket: Ticket;
|
|
699
|
+
reorderCustomFields: Array<CustomField>;
|
|
645
700
|
reorderTriggersByEventType: Array<Trigger>;
|
|
701
|
+
setCustomFieldValue: Ticket;
|
|
646
702
|
setMaxSimultaneousAttendances: GlobalConfiguration;
|
|
647
703
|
transferTicketToChannel: Ticket;
|
|
648
704
|
unassignTicket: Ticket;
|
|
649
705
|
updateBulkCloseRoutineConfig: BulkCloseRoutineConfig;
|
|
706
|
+
updateCustomField: CustomField;
|
|
650
707
|
updateDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
651
708
|
updateDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
652
709
|
updateNote: CustomerNote;
|
|
@@ -678,6 +735,9 @@ export type MutationAssignTicketArgs = {
|
|
|
678
735
|
export type MutationAssignTicketMyselfArgs = {
|
|
679
736
|
input: AssignTicketMyselfInput;
|
|
680
737
|
};
|
|
738
|
+
export type MutationClearCustomFieldValueArgs = {
|
|
739
|
+
input: ClearCustomFieldValueInput;
|
|
740
|
+
};
|
|
681
741
|
export type MutationCloneViewArgs = {
|
|
682
742
|
input: CloneViewInput;
|
|
683
743
|
};
|
|
@@ -687,6 +747,9 @@ export type MutationCloseTicketArgs = {
|
|
|
687
747
|
export type MutationCreateBulkCloseRoutineConfigArgs = {
|
|
688
748
|
input: CreateBulkCloseRoutineConfigInput;
|
|
689
749
|
};
|
|
750
|
+
export type MutationCreateCustomFieldArgs = {
|
|
751
|
+
input: CreateCustomFieldInput;
|
|
752
|
+
};
|
|
690
753
|
export type MutationCreateDrozChatAgentGroupArgs = {
|
|
691
754
|
input: CreateDrozChatAgentGroupInput;
|
|
692
755
|
};
|
|
@@ -720,6 +783,9 @@ export type MutationCreateTriggerArgs = {
|
|
|
720
783
|
export type MutationCreateViewArgs = {
|
|
721
784
|
input: CreateViewInput;
|
|
722
785
|
};
|
|
786
|
+
export type MutationDeleteCustomFieldArgs = {
|
|
787
|
+
id: Scalars['ID']['input'];
|
|
788
|
+
};
|
|
723
789
|
export type MutationDeleteNoteArgs = {
|
|
724
790
|
input?: InputMaybe<DeleteCustomerNoteInput>;
|
|
725
791
|
};
|
|
@@ -768,9 +834,15 @@ export type MutationRemoveDrozChatChannelGroupArgs = {
|
|
|
768
834
|
export type MutationRemoveTagsFromTicketArgs = {
|
|
769
835
|
input: RemoveTagsFromTicketInput;
|
|
770
836
|
};
|
|
837
|
+
export type MutationReorderCustomFieldsArgs = {
|
|
838
|
+
input: ReorderCustomFieldsInput;
|
|
839
|
+
};
|
|
771
840
|
export type MutationReorderTriggersByEventTypeArgs = {
|
|
772
841
|
input: ReorderTriggersByEventTypeInput;
|
|
773
842
|
};
|
|
843
|
+
export type MutationSetCustomFieldValueArgs = {
|
|
844
|
+
input: SetCustomFieldValueInput;
|
|
845
|
+
};
|
|
774
846
|
export type MutationSetMaxSimultaneousAttendancesArgs = {
|
|
775
847
|
input: SetMaxSimultaneousAttendancesInput;
|
|
776
848
|
};
|
|
@@ -783,6 +855,9 @@ export type MutationUnassignTicketArgs = {
|
|
|
783
855
|
export type MutationUpdateBulkCloseRoutineConfigArgs = {
|
|
784
856
|
input: UpdateBulkCloseRoutineConfigInput;
|
|
785
857
|
};
|
|
858
|
+
export type MutationUpdateCustomFieldArgs = {
|
|
859
|
+
input: UpdateCustomFieldInput;
|
|
860
|
+
};
|
|
786
861
|
export type MutationUpdateDrozChatAgentGroupArgs = {
|
|
787
862
|
input: UpdateDrozChatAgentGroupInput;
|
|
788
863
|
};
|
|
@@ -841,8 +916,10 @@ export type Query = {
|
|
|
841
916
|
agentRemainingCapacity: Scalars['Boolean']['output'];
|
|
842
917
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
843
918
|
assertChatActions: ChatActions;
|
|
919
|
+
customFieldValuesForTicket: Array<TicketCustomFieldValue>;
|
|
844
920
|
getBulkCloseRoutineConfig?: Maybe<BulkCloseRoutineConfig>;
|
|
845
921
|
getBulkCloseRuns: BulkCloseRunsConnection;
|
|
922
|
+
getCustomField?: Maybe<CustomField>;
|
|
846
923
|
getDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
847
924
|
getDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
848
925
|
getGlobalConfiguration?: Maybe<GlobalConfiguration>;
|
|
@@ -852,6 +929,7 @@ export type Query = {
|
|
|
852
929
|
getTrigger?: Maybe<Trigger>;
|
|
853
930
|
getView?: Maybe<View>;
|
|
854
931
|
getWsEndpoint?: Maybe<Scalars['String']['output']>;
|
|
932
|
+
listCustomFields: Array<CustomField>;
|
|
855
933
|
listDrozChatAgentChannels: Array<DrozChatChannel>;
|
|
856
934
|
listDrozChatAgentGroups: Array<DrozChatAgentGroup>;
|
|
857
935
|
listDrozChatChannels: Array<DrozChatChannel>;
|
|
@@ -886,9 +964,15 @@ export type QueryAgentRemainingCapacityArgs = {
|
|
|
886
964
|
export type QueryAssertChatActionsArgs = {
|
|
887
965
|
ticketId: Scalars['ID']['input'];
|
|
888
966
|
};
|
|
967
|
+
export type QueryCustomFieldValuesForTicketArgs = {
|
|
968
|
+
ticketId: Scalars['ID']['input'];
|
|
969
|
+
};
|
|
889
970
|
export type QueryGetBulkCloseRunsArgs = {
|
|
890
971
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
891
972
|
};
|
|
973
|
+
export type QueryGetCustomFieldArgs = {
|
|
974
|
+
id: Scalars['ID']['input'];
|
|
975
|
+
};
|
|
892
976
|
export type QueryGetDrozChatAgentGroupArgs = {
|
|
893
977
|
id: Scalars['ID']['input'];
|
|
894
978
|
};
|
|
@@ -1010,6 +1094,9 @@ export type RemoveTagsFromTicketInput = {
|
|
|
1010
1094
|
tags: Array<Scalars['String']['input']>;
|
|
1011
1095
|
ticketId: Scalars['ID']['input'];
|
|
1012
1096
|
};
|
|
1097
|
+
export type ReorderCustomFieldsInput = {
|
|
1098
|
+
customFields: Array<CustomFieldOrderInput>;
|
|
1099
|
+
};
|
|
1013
1100
|
export type ReorderTriggersByEventTypeInput = {
|
|
1014
1101
|
eventType: TriggerEventType;
|
|
1015
1102
|
triggers: Array<TriggerPriorityInput>;
|
|
@@ -1035,6 +1122,11 @@ export type SearchResultsStats = {
|
|
|
1035
1122
|
searchTime: Scalars['Float']['output'];
|
|
1036
1123
|
totalPages: Scalars['Float']['output'];
|
|
1037
1124
|
};
|
|
1125
|
+
export type SetCustomFieldValueInput = {
|
|
1126
|
+
fieldId: Scalars['ID']['input'];
|
|
1127
|
+
ticketId: Scalars['ID']['input'];
|
|
1128
|
+
value: Scalars['JSON']['input'];
|
|
1129
|
+
};
|
|
1038
1130
|
export type SetMaxSimultaneousAttendancesInput = {
|
|
1039
1131
|
maxSimultaneousAttendances: Scalars['Int']['input'];
|
|
1040
1132
|
};
|
|
@@ -1124,6 +1216,7 @@ export type Ticket = {
|
|
|
1124
1216
|
closedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1125
1217
|
closedBy?: Maybe<DrozChatAgent>;
|
|
1126
1218
|
createdAt: Scalars['DateTime']['output'];
|
|
1219
|
+
customFieldValues: Array<TicketCustomFieldValue>;
|
|
1127
1220
|
customer: DrozChatCustomer;
|
|
1128
1221
|
customerId: Scalars['ID']['output'];
|
|
1129
1222
|
description?: Maybe<Scalars['String']['output']>;
|
|
@@ -1159,6 +1252,10 @@ export declare enum TicketAutoAssignerType {
|
|
|
1159
1252
|
LoadBalancer = "LoadBalancer",
|
|
1160
1253
|
RoundRobin = "RoundRobin"
|
|
1161
1254
|
}
|
|
1255
|
+
export type TicketCustomFieldValue = {
|
|
1256
|
+
field: CustomField;
|
|
1257
|
+
value: Scalars['JSON']['output'];
|
|
1258
|
+
};
|
|
1162
1259
|
export type TicketMessage = {
|
|
1163
1260
|
channelId: Scalars['ID']['output'];
|
|
1164
1261
|
content: Scalars['String']['output'];
|
|
@@ -1235,6 +1332,7 @@ export type TicketSearchFilter = {
|
|
|
1235
1332
|
assigneeId?: Maybe<StringMatcher>;
|
|
1236
1333
|
channelId?: Maybe<StringMatcher>;
|
|
1237
1334
|
createdAt?: Maybe<NumberMatcher>;
|
|
1335
|
+
customFields?: Maybe<Array<CustomFieldFilter>>;
|
|
1238
1336
|
customerId?: Maybe<StringMatcher>;
|
|
1239
1337
|
origin?: Maybe<StringMatcher>;
|
|
1240
1338
|
priority?: Maybe<StringMatcher>;
|
|
@@ -1249,6 +1347,7 @@ export type TicketSearchFilterInput = {
|
|
|
1249
1347
|
assigneeId?: InputMaybe<StringMatcherInput>;
|
|
1250
1348
|
channelId?: InputMaybe<StringMatcherInput>;
|
|
1251
1349
|
createdAt?: InputMaybe<NumberMatcherInput>;
|
|
1350
|
+
customFields?: InputMaybe<Array<CustomFieldFilterInput>>;
|
|
1252
1351
|
customerId?: InputMaybe<StringMatcherInput>;
|
|
1253
1352
|
origin?: InputMaybe<StringMatcherInput>;
|
|
1254
1353
|
priority?: InputMaybe<StringMatcherInput>;
|
|
@@ -1329,6 +1428,7 @@ export type TicketTriggerFilter = {
|
|
|
1329
1428
|
assigneeId?: Maybe<StringMatcher>;
|
|
1330
1429
|
channelId?: Maybe<StringMatcher>;
|
|
1331
1430
|
createdAt?: Maybe<NumberMatcher>;
|
|
1431
|
+
customFields?: Maybe<Array<CustomFieldFilter>>;
|
|
1332
1432
|
customerEmailDomain?: Maybe<StringMatcher>;
|
|
1333
1433
|
customerId?: Maybe<StringMatcher>;
|
|
1334
1434
|
origin?: Maybe<StringMatcher>;
|
|
@@ -1348,6 +1448,7 @@ export type TicketTriggerFilterInput = {
|
|
|
1348
1448
|
assigneeId?: InputMaybe<StringMatcherInput>;
|
|
1349
1449
|
channelId?: InputMaybe<StringMatcherInput>;
|
|
1350
1450
|
createdAt?: InputMaybe<NumberMatcherInput>;
|
|
1451
|
+
customFields?: InputMaybe<Array<CustomFieldFilterInput>>;
|
|
1351
1452
|
customerEmailDomain?: InputMaybe<StringMatcherInput>;
|
|
1352
1453
|
customerId?: InputMaybe<StringMatcherInput>;
|
|
1353
1454
|
origin?: InputMaybe<StringMatcherInput>;
|
|
@@ -1482,11 +1583,10 @@ export declare enum Typenames {
|
|
|
1482
1583
|
BulkCloseBatches = "BulkCloseBatches",
|
|
1483
1584
|
BulkCloseRoutineConfig = "BulkCloseRoutineConfig",
|
|
1484
1585
|
BulkCloseRuns = "BulkCloseRuns",
|
|
1485
|
-
CajCloseBatches = "CajCloseBatches",
|
|
1486
|
-
CajCloseRuns = "CajCloseRuns",
|
|
1487
1586
|
ChannelLastAssignee = "ChannelLastAssignee",
|
|
1488
1587
|
ChannelTriggerExecutions = "ChannelTriggerExecutions",
|
|
1489
1588
|
Channels = "Channels",
|
|
1589
|
+
CustomFields = "CustomFields",
|
|
1490
1590
|
CustomerNotes = "CustomerNotes",
|
|
1491
1591
|
GlobalConfiguration = "GlobalConfiguration",
|
|
1492
1592
|
GraphqlConnections = "GraphqlConnections",
|
|
@@ -1515,6 +1615,14 @@ export type UpdateBulkCloseRoutineConfigInput = {
|
|
|
1515
1615
|
maxTicketsPerRun?: InputMaybe<Scalars['Int']['input']>;
|
|
1516
1616
|
senderAllowlist?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1517
1617
|
};
|
|
1618
|
+
export type UpdateCustomFieldInput = {
|
|
1619
|
+
id: Scalars['ID']['input'];
|
|
1620
|
+
isActive?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1621
|
+
isRequired?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1622
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
1623
|
+
options?: InputMaybe<Array<CustomFieldOptionInput>>;
|
|
1624
|
+
type?: InputMaybe<CustomFieldType>;
|
|
1625
|
+
};
|
|
1518
1626
|
export type UpdateCustomerNoteInput = {
|
|
1519
1627
|
customerId: Scalars['String']['input'];
|
|
1520
1628
|
id: Scalars['String']['input'];
|
|
@@ -1751,6 +1859,40 @@ export type DeleteNoteMutationVariables = Exact<{
|
|
|
1751
1859
|
export type DeleteNoteMutation = {
|
|
1752
1860
|
deleteNote: CustomerNoteFragment;
|
|
1753
1861
|
};
|
|
1862
|
+
export type CustomFieldFragment = (Pick<CustomField, 'id' | 'name' | 'type' | 'isRequired' | 'order' | 'isActive' | 'usedInTicket' | 'createdAt' | 'updatedAt'> & {
|
|
1863
|
+
options: Array<Pick<CustomFieldOption, 'label' | 'tag'>>;
|
|
1864
|
+
});
|
|
1865
|
+
export type TicketCustomFieldValueFragment = (Pick<TicketCustomFieldValue, 'value'> & {
|
|
1866
|
+
field: CustomFieldFragment;
|
|
1867
|
+
});
|
|
1868
|
+
export type ListCustomFieldsQueryVariables = Exact<{
|
|
1869
|
+
[key: string]: never;
|
|
1870
|
+
}>;
|
|
1871
|
+
export type ListCustomFieldsQuery = {
|
|
1872
|
+
listCustomFields: Array<CustomFieldFragment>;
|
|
1873
|
+
};
|
|
1874
|
+
export type SetCustomFieldValueMutationVariables = Exact<{
|
|
1875
|
+
input: SetCustomFieldValueInput;
|
|
1876
|
+
}>;
|
|
1877
|
+
export type SetCustomFieldValueMutation = {
|
|
1878
|
+
setCustomFieldValue: (Pick<Ticket, 'id'> & {
|
|
1879
|
+
customFieldValues: Array<TicketCustomFieldValueFragment>;
|
|
1880
|
+
});
|
|
1881
|
+
};
|
|
1882
|
+
export type ClearCustomFieldValueMutationVariables = Exact<{
|
|
1883
|
+
input: ClearCustomFieldValueInput;
|
|
1884
|
+
}>;
|
|
1885
|
+
export type ClearCustomFieldValueMutation = {
|
|
1886
|
+
clearCustomFieldValue: (Pick<Ticket, 'id'> & {
|
|
1887
|
+
customFieldValues: Array<TicketCustomFieldValueFragment>;
|
|
1888
|
+
});
|
|
1889
|
+
};
|
|
1890
|
+
export type CustomFieldValuesForTicketQueryVariables = Exact<{
|
|
1891
|
+
ticketId: Scalars['ID']['input'];
|
|
1892
|
+
}>;
|
|
1893
|
+
export type CustomFieldValuesForTicketQuery = {
|
|
1894
|
+
customFieldValuesForTicket: Array<TicketCustomFieldValueFragment>;
|
|
1895
|
+
};
|
|
1754
1896
|
export type GlobalConfigurationFragment = Pick<GlobalConfiguration, 'maxSimultaneousAttendances' | 'createdAt' | 'updatedAt'>;
|
|
1755
1897
|
export type GetGlobalConfigurationQueryVariables = Exact<{
|
|
1756
1898
|
[key: string]: never;
|
|
@@ -2372,6 +2514,8 @@ export declare const BulkCloseRoutineConfigFragmentDoc = "\n fragment bulkClo
|
|
|
2372
2514
|
export declare const BulkCloseRunFragmentDoc = "\n fragment bulkCloseRun on BulkCloseRun {\n id\n status\n windowStart\n startedAt\n finishedAt\n totals {\n planned\n closed\n alreadyClosed\n errors\n uncreated\n }\n createdAt\n updatedAt\n}\n ";
|
|
2373
2515
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2374
2516
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
2517
|
+
export declare const CustomFieldFragmentDoc = "\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2518
|
+
export declare const TicketCustomFieldValueFragmentDoc = "\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n ";
|
|
2375
2519
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
2376
2520
|
export declare const DrozChatAgentGroupFragmentDoc = "\n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2377
2521
|
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
@@ -2423,6 +2567,10 @@ export declare const ListNotesDocument = "\n query listNotes($customerId: Str
|
|
|
2423
2567
|
export declare const CreateNoteDocument = "\n mutation createNote($input: CreateCustomerNoteInput!) {\n createNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2424
2568
|
export declare const UpdateNoteDocument = "\n mutation updateNote($input: UpdateCustomerNoteInput!) {\n updateNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2425
2569
|
export declare const DeleteNoteDocument = "\n mutation deleteNote($input: DeleteCustomerNoteInput!) {\n deleteNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2570
|
+
export declare const ListCustomFieldsDocument = "\n query listCustomFields {\n listCustomFields {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2571
|
+
export declare const SetCustomFieldValueDocument = "\n mutation setCustomFieldValue($input: SetCustomFieldValueInput!) {\n setCustomFieldValue(input: $input) {\n id\n customFieldValues {\n ...ticketCustomFieldValue\n }\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2572
|
+
export declare const ClearCustomFieldValueDocument = "\n mutation clearCustomFieldValue($input: ClearCustomFieldValueInput!) {\n clearCustomFieldValue(input: $input) {\n id\n customFieldValues {\n ...ticketCustomFieldValue\n }\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2573
|
+
export declare const CustomFieldValuesForTicketDocument = "\n query customFieldValuesForTicket($ticketId: ID!) {\n customFieldValuesForTicket(ticketId: $ticketId) {\n ...ticketCustomFieldValue\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
|
|
2426
2574
|
export declare const GetGlobalConfigurationDocument = "\n query getGlobalConfiguration {\n getGlobalConfiguration {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
2427
2575
|
export declare const SetMaxSimultaneousAttendancesDocument = "\n mutation setMaxSimultaneousAttendances($input: SetMaxSimultaneousAttendancesInput!) {\n setMaxSimultaneousAttendances(input: $input) {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
2428
2576
|
export declare const ClearMaxSimultaneousAttendancesDocument = "\n mutation clearMaxSimultaneousAttendances {\n clearMaxSimultaneousAttendances {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
@@ -2522,6 +2670,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2522
2670
|
createNote(variables: CreateNoteMutationVariables, options?: C): Promise<CreateNoteMutation>;
|
|
2523
2671
|
updateNote(variables: UpdateNoteMutationVariables, options?: C): Promise<UpdateNoteMutation>;
|
|
2524
2672
|
deleteNote(variables: DeleteNoteMutationVariables, options?: C): Promise<DeleteNoteMutation>;
|
|
2673
|
+
listCustomFields(variables?: ListCustomFieldsQueryVariables, options?: C): Promise<ListCustomFieldsQuery>;
|
|
2674
|
+
setCustomFieldValue(variables: SetCustomFieldValueMutationVariables, options?: C): Promise<SetCustomFieldValueMutation>;
|
|
2675
|
+
clearCustomFieldValue(variables: ClearCustomFieldValueMutationVariables, options?: C): Promise<ClearCustomFieldValueMutation>;
|
|
2676
|
+
customFieldValuesForTicket(variables: CustomFieldValuesForTicketQueryVariables, options?: C): Promise<CustomFieldValuesForTicketQuery>;
|
|
2525
2677
|
getGlobalConfiguration(variables?: GetGlobalConfigurationQueryVariables, options?: C): Promise<GetGlobalConfigurationQuery>;
|
|
2526
2678
|
setMaxSimultaneousAttendances(variables: SetMaxSimultaneousAttendancesMutationVariables, options?: C): Promise<SetMaxSimultaneousAttendancesMutation>;
|
|
2527
2679
|
clearMaxSimultaneousAttendances(variables?: ClearMaxSimultaneousAttendancesMutationVariables, options?: C): Promise<ClearMaxSimultaneousAttendancesMutation>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
4
|
+
exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.TicketPresenceFragmentDoc = exports.SurveyFragmentDoc = exports.MonitoringTicketSnapshotFragmentDoc = exports.LiveSummaryFragmentDoc = exports.LiveAgentLoadFragmentDoc = exports.LiveQueueSummaryFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = exports.GlobalConfigurationFragmentDoc = exports.TicketCustomFieldValueFragmentDoc = exports.CustomFieldFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.BulkCloseRunFragmentDoc = exports.BulkCloseRoutineConfigFragmentDoc = exports.AgentPresenceFragmentDoc = exports.Typenames = exports.TriggerScope = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketOrigin = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.OpenTicketState = exports.LiveAgentStatus = exports.CustomFieldType = exports.Can = exports.AppInstanceStatus = exports.AgentPresenceStatus = exports.ActiveDispatchConnector = void 0;
|
|
5
|
+
exports.OnMonitoringTicketChangeDocument = exports.LiveSummaryDocument = exports.RemoveDrozChatAgentGroupDocument = exports.AddDrozChatAgentGroupDocument = exports.EnableDrozChatAgentGroupDocument = exports.DisableDrozChatAgentGroupDocument = exports.UpdateDrozChatAgentGroupDocument = exports.CreateDrozChatAgentGroupDocument = exports.ListDrozChatAgentGroupsDocument = exports.ListDrozChatGroupsDocument = exports.GetDrozChatAgentGroupDocument = exports.ClearMaxSimultaneousAttendancesDocument = exports.SetMaxSimultaneousAttendancesDocument = exports.GetGlobalConfigurationDocument = exports.CustomFieldValuesForTicketDocument = exports.ClearCustomFieldValueDocument = exports.SetCustomFieldValueDocument = exports.ListCustomFieldsDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = exports.ListNotesDocument = exports.RemoveDrozChatChannelGroupDocument = exports.AddDrozChatChannelGroupDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GetBulkCloseRunsDocument = exports.DeleteBulkCloseRoutineConfigDocument = exports.DisableBulkCloseRoutineConfigDocument = exports.EnableBulkCloseRoutineConfigDocument = exports.UpdateBulkCloseRoutineConfigDocument = exports.CreateBulkCloseRoutineConfigDocument = exports.GetBulkCloseRoutineConfigDocument = exports.GenerateAnalyticsTokenDocument = exports.AgentLogoffDocument = exports.AgentHeartbeatDocument = exports.MyPresenceDocument = exports.ActiveDispatchDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.TriggerConditionFieldsFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = void 0;
|
|
6
|
+
exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageEnvelopeDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AgentRemainingCapacityDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.OnTicketPresenceDocument = exports.LeaveTicketPresenceDocument = exports.EnterTicketPresenceDocument = exports.TicketPresenceDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = void 0;
|
|
7
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = void 0;
|
|
7
8
|
exports.getSdk = getSdk;
|
|
8
9
|
var ActiveDispatchConnector;
|
|
9
10
|
(function (ActiveDispatchConnector) {
|
|
@@ -29,6 +30,14 @@ var Can;
|
|
|
29
30
|
Can["Remove"] = "remove";
|
|
30
31
|
Can["Write"] = "write";
|
|
31
32
|
})(Can || (exports.Can = Can = {}));
|
|
33
|
+
var CustomFieldType;
|
|
34
|
+
(function (CustomFieldType) {
|
|
35
|
+
CustomFieldType["Date"] = "DATE";
|
|
36
|
+
CustomFieldType["MultiSelect"] = "MULTI_SELECT";
|
|
37
|
+
CustomFieldType["Number"] = "NUMBER";
|
|
38
|
+
CustomFieldType["SingleSelect"] = "SINGLE_SELECT";
|
|
39
|
+
CustomFieldType["Text"] = "TEXT";
|
|
40
|
+
})(CustomFieldType || (exports.CustomFieldType = CustomFieldType = {}));
|
|
32
41
|
var LiveAgentStatus;
|
|
33
42
|
(function (LiveAgentStatus) {
|
|
34
43
|
LiveAgentStatus["Off"] = "OFF";
|
|
@@ -162,11 +171,10 @@ var Typenames;
|
|
|
162
171
|
Typenames["BulkCloseBatches"] = "BulkCloseBatches";
|
|
163
172
|
Typenames["BulkCloseRoutineConfig"] = "BulkCloseRoutineConfig";
|
|
164
173
|
Typenames["BulkCloseRuns"] = "BulkCloseRuns";
|
|
165
|
-
Typenames["CajCloseBatches"] = "CajCloseBatches";
|
|
166
|
-
Typenames["CajCloseRuns"] = "CajCloseRuns";
|
|
167
174
|
Typenames["ChannelLastAssignee"] = "ChannelLastAssignee";
|
|
168
175
|
Typenames["ChannelTriggerExecutions"] = "ChannelTriggerExecutions";
|
|
169
176
|
Typenames["Channels"] = "Channels";
|
|
177
|
+
Typenames["CustomFields"] = "CustomFields";
|
|
170
178
|
Typenames["CustomerNotes"] = "CustomerNotes";
|
|
171
179
|
Typenames["GlobalConfiguration"] = "GlobalConfiguration";
|
|
172
180
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
@@ -241,6 +249,31 @@ exports.CustomerNoteFragmentDoc = `
|
|
|
241
249
|
updatedAt
|
|
242
250
|
}
|
|
243
251
|
`;
|
|
252
|
+
exports.CustomFieldFragmentDoc = `
|
|
253
|
+
fragment customField on CustomField {
|
|
254
|
+
id
|
|
255
|
+
name
|
|
256
|
+
type
|
|
257
|
+
options {
|
|
258
|
+
label
|
|
259
|
+
tag
|
|
260
|
+
}
|
|
261
|
+
isRequired
|
|
262
|
+
order
|
|
263
|
+
isActive
|
|
264
|
+
usedInTicket
|
|
265
|
+
createdAt
|
|
266
|
+
updatedAt
|
|
267
|
+
}
|
|
268
|
+
`;
|
|
269
|
+
exports.TicketCustomFieldValueFragmentDoc = `
|
|
270
|
+
fragment ticketCustomFieldValue on TicketCustomFieldValue {
|
|
271
|
+
field {
|
|
272
|
+
...customField
|
|
273
|
+
}
|
|
274
|
+
value
|
|
275
|
+
}
|
|
276
|
+
`;
|
|
244
277
|
exports.GlobalConfigurationFragmentDoc = `
|
|
245
278
|
fragment globalConfiguration on GlobalConfiguration {
|
|
246
279
|
maxSimultaneousAttendances
|
|
@@ -1076,6 +1109,43 @@ exports.DeleteNoteDocument = `
|
|
|
1076
1109
|
}
|
|
1077
1110
|
${exports.CustomerNoteFragmentDoc}
|
|
1078
1111
|
${exports.DrozChatAgentFragmentDoc}`;
|
|
1112
|
+
exports.ListCustomFieldsDocument = `
|
|
1113
|
+
query listCustomFields {
|
|
1114
|
+
listCustomFields {
|
|
1115
|
+
...customField
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1119
|
+
exports.SetCustomFieldValueDocument = `
|
|
1120
|
+
mutation setCustomFieldValue($input: SetCustomFieldValueInput!) {
|
|
1121
|
+
setCustomFieldValue(input: $input) {
|
|
1122
|
+
id
|
|
1123
|
+
customFieldValues {
|
|
1124
|
+
...ticketCustomFieldValue
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
${exports.TicketCustomFieldValueFragmentDoc}
|
|
1129
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1130
|
+
exports.ClearCustomFieldValueDocument = `
|
|
1131
|
+
mutation clearCustomFieldValue($input: ClearCustomFieldValueInput!) {
|
|
1132
|
+
clearCustomFieldValue(input: $input) {
|
|
1133
|
+
id
|
|
1134
|
+
customFieldValues {
|
|
1135
|
+
...ticketCustomFieldValue
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
${exports.TicketCustomFieldValueFragmentDoc}
|
|
1140
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1141
|
+
exports.CustomFieldValuesForTicketDocument = `
|
|
1142
|
+
query customFieldValuesForTicket($ticketId: ID!) {
|
|
1143
|
+
customFieldValuesForTicket(ticketId: $ticketId) {
|
|
1144
|
+
...ticketCustomFieldValue
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
${exports.TicketCustomFieldValueFragmentDoc}
|
|
1148
|
+
${exports.CustomFieldFragmentDoc}`;
|
|
1079
1149
|
exports.GetGlobalConfigurationDocument = `
|
|
1080
1150
|
query getGlobalConfiguration {
|
|
1081
1151
|
getGlobalConfiguration {
|
|
@@ -1911,6 +1981,18 @@ function getSdk(requester) {
|
|
|
1911
1981
|
deleteNote(variables, options) {
|
|
1912
1982
|
return requester(exports.DeleteNoteDocument, variables, options);
|
|
1913
1983
|
},
|
|
1984
|
+
listCustomFields(variables, options) {
|
|
1985
|
+
return requester(exports.ListCustomFieldsDocument, variables, options);
|
|
1986
|
+
},
|
|
1987
|
+
setCustomFieldValue(variables, options) {
|
|
1988
|
+
return requester(exports.SetCustomFieldValueDocument, variables, options);
|
|
1989
|
+
},
|
|
1990
|
+
clearCustomFieldValue(variables, options) {
|
|
1991
|
+
return requester(exports.ClearCustomFieldValueDocument, variables, options);
|
|
1992
|
+
},
|
|
1993
|
+
customFieldValuesForTicket(variables, options) {
|
|
1994
|
+
return requester(exports.CustomFieldValuesForTicketDocument, variables, options);
|
|
1995
|
+
},
|
|
1914
1996
|
getGlobalConfiguration(variables, options) {
|
|
1915
1997
|
return requester(exports.GetGlobalConfigurationDocument, variables, options);
|
|
1916
1998
|
},
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -1151,6 +1151,7 @@ export type StringMatcherInput = {
|
|
|
1151
1151
|
export declare enum SystemRole {
|
|
1152
1152
|
Admin = "Admin",
|
|
1153
1153
|
CampaignsAdmin = "CampaignsAdmin",
|
|
1154
|
+
CustomFieldsAiAgent = "CustomFieldsAiAgent",
|
|
1154
1155
|
DrozBotIntegration = "DrozBotIntegration",
|
|
1155
1156
|
DrozChatAdmin = "DrozChatAdmin",
|
|
1156
1157
|
DrozChatAgent = "DrozChatAgent",
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -77,6 +77,7 @@ var SystemRole;
|
|
|
77
77
|
(function (SystemRole) {
|
|
78
78
|
SystemRole["Admin"] = "Admin";
|
|
79
79
|
SystemRole["CampaignsAdmin"] = "CampaignsAdmin";
|
|
80
|
+
SystemRole["CustomFieldsAiAgent"] = "CustomFieldsAiAgent";
|
|
80
81
|
SystemRole["DrozBotIntegration"] = "DrozBotIntegration";
|
|
81
82
|
SystemRole["DrozChatAdmin"] = "DrozChatAdmin";
|
|
82
83
|
SystemRole["DrozChatAgent"] = "DrozChatAgent";
|
package/src/sdks/outsource.d.ts
CHANGED
|
@@ -280,7 +280,9 @@ export declare enum Typenames {
|
|
|
280
280
|
OutsourceInstance = "OutsourceInstance"
|
|
281
281
|
}
|
|
282
282
|
export type UpdateOutsourceInstanceInput = {
|
|
283
|
+
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
283
284
|
id: Scalars['ID']['input'];
|
|
285
|
+
linkedInstanceRef?: InputMaybe<Scalars['String']['input']>;
|
|
284
286
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
285
287
|
status?: InputMaybe<AppInstanceStatus>;
|
|
286
288
|
tags?: InputMaybe<Array<Scalars['Tag']['input']>>;
|