@droz-js/sdk 0.20.17 → 0.20.21

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.20.17",
4
+ "version": "0.20.21",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
package/src/sdks/ai.d.ts CHANGED
@@ -215,6 +215,8 @@ export type AiAgentConversationMetrics = {
215
215
  };
216
216
  export type AiAgentConversationOutcome = {
217
217
  agentId: Scalars['ID']['output'];
218
+ /** Escrito pelo modelo ao transferir ou encerrar; nao substitui o que foi medido. */
219
+ agentSummary?: Maybe<Scalars['String']['output']>;
218
220
  agentVersion: Scalars['String']['output'];
219
221
  /** Fatos da sessao; chave e valor mascarados quando a politica de retencao pede. */
220
222
  collectedData: Scalars['JSON']['output'];
@@ -222,7 +224,11 @@ export type AiAgentConversationOutcome = {
222
224
  collectedDataAvailable: Scalars['Boolean']['output'];
223
225
  /** Motivo da parada do ultimo turno, quando houve. */
224
226
  haltReason?: Maybe<Scalars['String']['output']>;
227
+ /** Motivo do ultimo pedido de pessoa, com os mesmos valores de `handoffsByReason`. */
228
+ handoffReason?: Maybe<Scalars['String']['output']>;
225
229
  lastTurnAt: Scalars['Number']['output'];
230
+ /** O que o agente disse ao consumidor que vai acontecer. */
231
+ promisedNextStep?: Maybe<Scalars['String']['output']>;
226
232
  resolution: Scalars['String']['output'];
227
233
  resolutionDefinition: Scalars['String']['output'];
228
234
  sessionId: Scalars['ID']['output'];
@@ -322,9 +328,10 @@ export type AiAgentMetrics = {
322
328
  haltReasons: Array<AiAgentMetricsCount>;
323
329
  haltedTurns: Scalars['Number']['output'];
324
330
  /**
325
- * Por que a pessoa foi pedida: `customer_request` quando o consumidor pediu ou o agente concluiu que
326
- * precisava, `tool_failure`, `provider_unavailable`, `budget_exceeded`, `period_budget_exceeded` ou
327
- * `unresolved` quando o agente parou sem concluir.
331
+ * Por que a pessoa foi pedida. Declarado pelo agente: `customer_request`, `out_of_scope`,
332
+ * `knowledge_gap`, `policy_requires_human`, `cannot_resolve`, `tool_failure`; `undeclared` quando ele
333
+ * transferiu sem declarar. Da plataforma: `tool_failure`, `provider_unavailable`, `budget_exceeded`,
334
+ * `period_budget_exceeded` e `unresolved` quando o agente parou sem concluir.
328
335
  */
329
336
  handoffsByReason: Array<AiAgentMetricsCount>;
330
337
  /** Turnos que terminaram pedindo uma pessoa (pedido, nao transferencia). */
@@ -466,9 +473,10 @@ export type AiAgentScenarioReport = {
466
473
  /** Execuções que o prazo interrompeu antes de poderem ser julgadas. */
467
474
  cut: Scalars['Int']['output'];
468
475
  /**
469
- * Por que a conversa foi para uma pessoa, contado entre as execuções julgadas. `customer_request` é
470
- * entrega por decisão do agente; `provider_unavailable` e `unresolved` são desistência. A taxa
471
- * sozinha não separa as duas.
476
+ * Por que a conversa foi para uma pessoa, contado entre as execuções julgadas. Os motivos declarados
477
+ * pelo agente (`customer_request`, `out_of_scope`, `knowledge_gap`, `policy_requires_human`,
478
+ * `cannot_resolve`) são entrega por decisão dele; `provider_unavailable` e `unresolved` são desistência.
479
+ * A taxa sozinha não separa as duas.
472
480
  */
473
481
  handoffReasons: Array<AiAgentMetricsCount>;
474
482
  /** Execuções efetivamente julgadas. Zero significa que este cenário não produziu evidência. */
@@ -500,6 +508,7 @@ export type AiAgentScenarioTurn = {
500
508
  turn: Scalars['Int']['output'];
501
509
  };
502
510
  export type AiAgentSpec = {
511
+ /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
503
512
  allowWriteTools?: Maybe<Scalars['Boolean']['output']>;
504
513
  budget: AiAgentBudget;
505
514
  /** One natural-language permission per item. */
@@ -521,6 +530,7 @@ export type AiAgentSpec = {
521
530
  toolIds: Array<Scalars['ID']['output']>;
522
531
  };
523
532
  export type AiAgentSpecInput = {
533
+ /** @deprecated Ignorado. O tipo da ferramenta sai do método do conector. O campo sai na próxima versão. */
524
534
  allowWriteTools?: InputMaybe<Scalars['Boolean']['input']>;
525
535
  budget: AiAgentBudgetInput;
526
536
  can: Array<Scalars['String']['input']>;
@@ -573,7 +583,7 @@ export type AiAgentTool = {
573
583
  toolId: Scalars['ID']['output'];
574
584
  };
575
585
  export type AiAgentToolExclusion = {
576
- /** `not_bound`, `unavailable`, `write_not_allowed` ou `human_approval_unavailable`. */
586
+ /** `not_bound`, `unavailable` ou `human_approval_unavailable`. */
577
587
  reason: Scalars['String']['output'];
578
588
  toolId: Scalars['ID']['output'];
579
589
  };
@@ -600,7 +610,8 @@ export type AiAgentToolSpecInput = {
600
610
  /** `url` (default): a plataforma impoe o recorte via `{customerId}` na URL; `credential`: a credencial ja e do cliente (declarado, nunca inferido). */
601
611
  customerScope?: InputMaybe<Scalars['String']['input']>;
602
612
  description: Scalars['String']['input'];
603
- effect: ToolEffect;
613
+ /** Ignorado: a plataforma calcula pelo método do conector (GET consulta, os demais agem). */
614
+ effect?: InputMaybe<ToolEffect>;
604
615
  idempotent: Scalars['Boolean']['input'];
605
616
  name: Scalars['String']['input'];
606
617
  /** `{kind: message, message?}` (default), `{kind: retry, attempts, message?}` ou `{kind: handoff}`. */
@@ -1213,7 +1224,7 @@ export type UpdateQnAInstanceInput = {
1213
1224
  };
1214
1225
  export type AiAgentSummaryFragment = Pick<AiAgentSummary, 'agentId' | 'name' | 'liveVersion' | 'channels' | 'updatedAt' | 'queuedApprovals' | 'status'>;
1215
1226
  export type AiAgentVersionFragment = Pick<AiAgentVersion, 'agentId' | 'version' | 'status' | 'createdAt'>;
1216
- export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels' | 'allowWriteTools'> & {
1227
+ export type AiAgentSpecFragment = (Pick<AiAgentSpec, 'can' | 'cannot' | 'knowledgeBaseIds' | 'knowledgeFallback' | 'toolIds' | 'channels'> & {
1217
1228
  identity: Pick<AiAgentIdentity, 'displayName' | 'role' | 'tone' | 'toneNotes' | 'openingMessage' | 'outOfScopeBehaviour'>;
1218
1229
  budget: Pick<AiAgentBudget, 'maxSteps' | 'maxToolCalls' | 'maxTokens' | 'maxCostMicroUsd' | 'maxPeriodCostMicroUsd' | 'onExceeded'>;
1219
1230
  handoff?: Maybe<Pick<AiAgentHandoff, 'transition' | 'target'>>;
@@ -1563,7 +1574,7 @@ export type RemoveQnAInstanceMutation = {
1563
1574
  };
1564
1575
  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 ";
1565
1576
  export declare const AiAgentVersionFragmentDoc = "\n fragment aiAgentVersion on AiAgentVersion {\n agentId\n version\n status\n createdAt\n}\n ";
1566
- 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 ";
1577
+ 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 ";
1567
1578
  export declare const AiAgentToolExclusionFragmentDoc = "\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
1568
1579
  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 ";
1569
1580
  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 ";
@@ -1609,7 +1620,7 @@ export declare const CheckAiAgentVersionDocument = "\n mutation checkAiAgentV
1609
1620
  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 ";
1610
1621
  export declare const AiAgentCheckLimitsDocument = "\n query aiAgentCheckLimits($agentId: ID!) {\n aiAgentCheckLimits(agentId: $agentId) {\n minRunsPerScenario\n maxRunsPerScenario\n maxSuiteRuns\n scenarioCount\n }\n}\n ";
1611
1622
  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 ";
1612
- 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 ";
1623
+ 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}\n \n\n fragment aiAgentToolExclusion on AiAgentToolExclusion {\n toolId\n reason\n}\n ";
1613
1624
  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 ";
1614
1625
  export declare const AiAgentKnowledgeBasesDocument = "\n query aiAgentKnowledgeBases {\n aiAgentKnowledgeBases {\n id\n title\n isPublic\n }\n}\n ";
1615
1626
  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
@@ -135,7 +135,6 @@ exports.AiAgentSpecFragmentDoc = `
135
135
  target
136
136
  }
137
137
  channels
138
- allowWriteTools
139
138
  }
140
139
  `;
141
140
  exports.AiAgentToolExclusionFragmentDoc = `
@@ -405,6 +405,7 @@ export type CustomField = {
405
405
  name: Scalars['String']['output'];
406
406
  options: Array<CustomFieldOption>;
407
407
  order: Scalars['Int']['output'];
408
+ removedOptions: Array<CustomFieldOption>;
408
409
  type: CustomFieldType;
409
410
  updatedAt: Scalars['DateTime']['output'];
410
411
  usedInTicket: Scalars['Boolean']['output'];
@@ -1863,6 +1864,7 @@ export type DeleteNoteMutation = {
1863
1864
  };
1864
1865
  export type CustomFieldFragment = (Pick<CustomField, 'id' | 'name' | 'type' | 'isRequired' | 'order' | 'isActive' | 'usedInTicket' | 'maxLength' | 'createdAt' | 'updatedAt'> & {
1865
1866
  options: Array<Pick<CustomFieldOption, 'label' | 'tag'>>;
1867
+ removedOptions: Array<Pick<CustomFieldOption, 'label' | 'tag'>>;
1866
1868
  });
1867
1869
  export type TicketCustomFieldValueFragment = (Pick<TicketCustomFieldValue, 'value' | 'isMissingRequired'> & {
1868
1870
  field: CustomFieldFragment;
@@ -2558,7 +2560,7 @@ export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatC
2558
2560
  export declare const TicketTriggerAppFragmentDoc = "\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n ";
2559
2561
  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 ";
2560
2562
  export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\n ";
2561
- 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 maxLength\n createdAt\n updatedAt\n}\n ";
2563
+ export declare const CustomFieldFragmentDoc = "\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2562
2564
  export declare const TicketCustomFieldValueFragmentDoc = "\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\n}\n ";
2563
2565
  export declare const TicketWithCustomFieldValuesFragmentDoc = "\n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n ";
2564
2566
  export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
@@ -2608,15 +2610,15 @@ export declare const ListNotesDocument = "\n query listNotes($customerId: Str
2608
2610
  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 ";
2609
2611
  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 ";
2610
2612
  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 ";
2611
- 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 maxLength\n createdAt\n updatedAt\n}\n ";
2612
- export declare const CreateCustomFieldDocument = "\n mutation createCustomField($input: CreateCustomFieldInput!) {\n createCustomField(input: $input) {\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 maxLength\n createdAt\n updatedAt\n}\n ";
2613
- export declare const UpdateCustomFieldDocument = "\n mutation updateCustomField($input: UpdateCustomFieldInput!) {\n updateCustomField(input: $input) {\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 maxLength\n createdAt\n updatedAt\n}\n ";
2613
+ 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 removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2614
+ export declare const CreateCustomFieldDocument = "\n mutation createCustomField($input: CreateCustomFieldInput!) {\n createCustomField(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2615
+ export declare const UpdateCustomFieldDocument = "\n mutation updateCustomField($input: UpdateCustomFieldInput!) {\n updateCustomField(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2614
2616
  export declare const DeleteCustomFieldDocument = "\n mutation deleteCustomField($id: ID!) {\n deleteCustomField(id: $id)\n}\n ";
2615
- export declare const ReorderCustomFieldsDocument = "\n mutation reorderCustomFields($input: ReorderCustomFieldsInput!) {\n reorderCustomFields(input: $input) {\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 maxLength\n createdAt\n updatedAt\n}\n ";
2616
- export declare const SearchTicketsWithCustomFieldValuesDocument = "\n query searchTicketsWithCustomFieldValues($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticketWithCustomFieldValues\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\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 \n\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\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 maxLength\n createdAt\n updatedAt\n}\n ";
2617
- 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 isMissingRequired\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 maxLength\n createdAt\n updatedAt\n}\n ";
2618
- 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 isMissingRequired\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 maxLength\n createdAt\n updatedAt\n}\n ";
2619
- 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 isMissingRequired\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 maxLength\n createdAt\n updatedAt\n}\n ";
2617
+ export declare const ReorderCustomFieldsDocument = "\n mutation reorderCustomFields($input: ReorderCustomFieldsInput!) {\n reorderCustomFields(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2618
+ export declare const SearchTicketsWithCustomFieldValuesDocument = "\n query searchTicketsWithCustomFieldValues($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticketWithCustomFieldValues\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\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 \n\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2619
+ 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 isMissingRequired\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2620
+ 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 isMissingRequired\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2621
+ 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 isMissingRequired\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n removedOptions {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2620
2622
  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 ";
2621
2623
  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 ";
2622
2624
  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 ";
@@ -355,6 +355,10 @@ exports.CustomFieldFragmentDoc = `
355
355
  label
356
356
  tag
357
357
  }
358
+ removedOptions {
359
+ label
360
+ tag
361
+ }
358
362
  isRequired
359
363
  order
360
364
  isActive