@burdenoff/microfe-headshotmarketing 2026.1030.5 → 2026.1030.6

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.
@@ -8858,6 +8858,14 @@ export type Mutation = {
8858
8858
  /** Generate challenge message for wallet signature */
8859
8859
  generateWalletChallenge: WalletChallengeResult;
8860
8860
  getSupportAttachmentPartUploadUrls: Array<SupportAttachmentPresignedPart>;
8861
+ /** Discard a reply draft without sending it. */
8862
+ globalDiscardTicketReplyDraft: Scalars['Boolean']['output'];
8863
+ /** Draft a reply from published knowledge-base articles, FAQs and canned responses, with citations. Saved as an internal draft, never sent. Fails with GROUNDING_INSUFFICIENT when no article or FAQ covers the ticket. */
8864
+ globalDraftTicketReply: SupportMessage;
8865
+ /** Send a reply draft to the customer as an agent reply, optionally edited. This is the only way a draft reaches a customer. */
8866
+ globalSendTicketReplyDraft: SupportMessage;
8867
+ /** Triage a ticket now: fill an empty category, raise the priority if the evidence calls for it, select the SLA policy and suggest an agent. */
8868
+ globalTriageTicket: SupportTriageDecision;
8861
8869
  /** Service-trusted internal grant of a first-party self-delegation, keyed by the app's client id. Lets a trusted backend record the consent created when a user adds a first-party integration, without the workspace-admin gate that the public grantDelegation enforces. Gated to internal service / super_admin callers and restricted to first-party system apps, or to service-managed apps for their managing service (BOFF-9962). */
8862
8870
  grantAppDelegationInternal: AppUserDelegation;
8863
8871
  /** Grant an app access to act on a specific workspace. Idempotent: re-granting an ACTIVE authorization updates its scopes; re-granting a REVOKED one flips it back to ACTIVE and clears the revoke fields. */
@@ -11466,6 +11474,23 @@ export type MutationGetSupportAttachmentPartUploadUrlsArgs = {
11466
11474
  ticketId: Scalars['ID']['input'];
11467
11475
  };
11468
11476
  /** Root mutation type */
11477
+ export type MutationGlobalDiscardTicketReplyDraftArgs = {
11478
+ id: Scalars['ID']['input'];
11479
+ };
11480
+ /** Root mutation type */
11481
+ export type MutationGlobalDraftTicketReplyArgs = {
11482
+ ticketId: Scalars['ID']['input'];
11483
+ };
11484
+ /** Root mutation type */
11485
+ export type MutationGlobalSendTicketReplyDraftArgs = {
11486
+ id: Scalars['ID']['input'];
11487
+ message?: InputMaybe<Scalars['String']['input']>;
11488
+ };
11489
+ /** Root mutation type */
11490
+ export type MutationGlobalTriageTicketArgs = {
11491
+ id: Scalars['ID']['input'];
11492
+ };
11493
+ /** Root mutation type */
11469
11494
  export type MutationGrantAppDelegationInternalArgs = {
11470
11495
  input: GrantAppDelegationInternalInput;
11471
11496
  };
@@ -16911,6 +16936,8 @@ export type Query = {
16911
16936
  getWebhookEvent?: Maybe<WebhookEvent>;
16912
16937
  /** Get webhook statistics for a channel */
16913
16938
  getWebhookStats: WebhookStats;
16939
+ /** Measure the triage engine against historical human categorisation. Support admins see their tenant; super admins see every tenant. Read-only. */
16940
+ globalTriageEvaluation: SupportTriageEvaluation;
16914
16941
  /** Health check endpoint */
16915
16942
  health: HealthStatus;
16916
16943
  /** Get grouped products for homepage. Optionally filter by compatible product (e.g., "bigconsole", "fluidgrids"). */
@@ -18738,6 +18765,10 @@ export type QueryGetWebhookStatsArgs = {
18738
18765
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
18739
18766
  };
18740
18767
  /** Root query type */
18768
+ export type QueryGlobalTriageEvaluationArgs = {
18769
+ sampleSize?: InputMaybe<Scalars['Int']['input']>;
18770
+ };
18771
+ /** Root query type */
18741
18772
  export type QueryHomeGroupedProductsArgs = {
18742
18773
  compatibleWith?: InputMaybe<Scalars['String']['input']>;
18743
18774
  };
@@ -23579,6 +23610,19 @@ export type SupportContextInput = {
23579
23610
  userId?: InputMaybe<Scalars['ID']['input']>;
23580
23611
  workspaceId?: InputMaybe<Scalars['ID']['input']>;
23581
23612
  };
23613
+ /** A knowledge row a reply draft was built from. */
23614
+ export type SupportDraftCitation = {
23615
+ __typename?: 'SupportDraftCitation';
23616
+ id: Scalars['ID']['output'];
23617
+ kind: SupportDraftCitationKind;
23618
+ score: Scalars['Float']['output'];
23619
+ title: Scalars['String']['output'];
23620
+ };
23621
+ export declare enum SupportDraftCitationKind {
23622
+ CannedResponse = "CANNED_RESPONSE",
23623
+ Faq = "FAQ",
23624
+ KnowledgeBaseArticle = "KNOWLEDGE_BASE_ARTICLE"
23625
+ }
23582
23626
  export type SupportEraseResult = {
23583
23627
  __typename?: 'SupportEraseResult';
23584
23628
  anonymised: Scalars['Int']['output'];
@@ -23605,7 +23649,15 @@ export type SupportMessage = {
23605
23649
  /** Contextual IDs for filtering and scoping (workspaceId, userId, projectId, etc.) */
23606
23650
  context?: Maybe<SupportContext>;
23607
23651
  createdAt: Scalars['DateTime']['output'];
23608
- id: Scalars['ID']['output'];
23652
+ /** The knowledge-base articles, FAQs and canned responses a draft was built from. Empty for every message that is not a draft. */
23653
+ draftCitations: Array<SupportDraftCitation>;
23654
+ /** When the draft was sent or discarded. */
23655
+ draftResolvedAt?: Maybe<Scalars['DateTime']['output']>;
23656
+ /** The agent reply that was sent from this draft, once sent. */
23657
+ draftSentMessageId?: Maybe<Scalars['String']['output']>;
23658
+ id: Scalars['ID']['output'];
23659
+ /** True for a reply drafted from the knowledge base that waits for an agent (BOFF-3646). Drafts are always internal and are never sent on their own. */
23660
+ isDraft: Scalars['Boolean']['output'];
23609
23661
  isInternal: Scalars['Boolean']['output'];
23610
23662
  message: Scalars['String']['output'];
23611
23663
  ticket: SupportTicket;
@@ -23654,6 +23706,8 @@ export type SupportTicket = {
23654
23706
  metadata?: Maybe<Scalars['JSON']['output']>;
23655
23707
  priority: SupportTicketPriority;
23656
23708
  reopenedAt?: Maybe<Scalars['DateTime']['output']>;
23709
+ /** The open reply draft for this ticket, if any. Support staff only. */
23710
+ replyDraft?: Maybe<SupportMessage>;
23657
23711
  resolutionDue?: Maybe<Scalars['DateTime']['output']>;
23658
23712
  resolvedAt?: Maybe<Scalars['DateTime']['output']>;
23659
23713
  slaBreachStatus: SlaBreachStatus;
@@ -23669,6 +23723,8 @@ export type SupportTicket = {
23669
23723
  tenantId?: Maybe<Scalars['String']['output']>;
23670
23724
  ticketCategory?: Maybe<TicketCategory>;
23671
23725
  ticketNumber: Scalars['String']['output'];
23726
+ /** The triage engine's latest decision for this ticket, with its evidence (BOFF-3646). Null when the ticket was never triaged, and always null for viewers who cannot read internal notes — the evidence names other tickets. */
23727
+ triageDecision?: Maybe<SupportTriageDecision>;
23672
23728
  updatedAt: Scalars['DateTime']['output'];
23673
23729
  user: User;
23674
23730
  userId: Scalars['String']['output'];
@@ -23719,6 +23775,99 @@ export declare enum SupportTicketStatus {
23719
23775
  Resolved = "RESOLVED",
23720
23776
  WaitingCustomer = "WAITING_CUSTOMER"
23721
23777
  }
23778
+ /** An agent the engine suggests for the ticket. A suggestion only: triage never assigns. */
23779
+ export type SupportTriageAssigneeSuggestion = {
23780
+ __typename?: 'SupportTriageAssigneeSuggestion';
23781
+ agentProfileId: Scalars['ID']['output'];
23782
+ /** Current tickets divided by the agent's ticket capacity. */
23783
+ load: Scalars['Float']['output'];
23784
+ /** Agent skills that matched the ticket's category and tags. */
23785
+ matchedSkills: Array<Scalars['String']['output']>;
23786
+ userId: Scalars['String']['output'];
23787
+ };
23788
+ /** One triage decision, with what it replaced so a person can see and undo it. The engine only fills an empty category and only raises a priority. */
23789
+ export type SupportTriageDecision = {
23790
+ __typename?: 'SupportTriageDecision';
23791
+ category: SupportTicketCategory;
23792
+ /** True when triage set the category. */
23793
+ categoryApplied: Scalars['Boolean']['output'];
23794
+ /** Share of the evidence weight behind the proposed category (0–1). */
23795
+ categoryConfidence: Scalars['Float']['output'];
23796
+ /** Category the ticket has after triage. */
23797
+ categoryId?: Maybe<Scalars['String']['output']>;
23798
+ decidedAt: Scalars['DateTime']['output'];
23799
+ /** Actor who ran it; system:support-triage for automatic runs. */
23800
+ decidedBy: Scalars['String']['output'];
23801
+ /** Engine name and version that made the decision. */
23802
+ engine: Scalars['String']['output'];
23803
+ evidence: Array<SupportTriageEvidence>;
23804
+ /** Plain-language reasons for anything the engine left alone. */
23805
+ notes: Array<Scalars['String']['output']>;
23806
+ previousCategory: SupportTicketCategory;
23807
+ previousCategoryId?: Maybe<Scalars['String']['output']>;
23808
+ previousPriority: SupportTicketPriority;
23809
+ previousSlaPolicyId?: Maybe<Scalars['String']['output']>;
23810
+ priority: SupportTicketPriority;
23811
+ /** Phrases and similar-ticket votes that set the priority. */
23812
+ prioritySignals: Array<Scalars['String']['output']>;
23813
+ /** Category the evidence pointed to, applied or not. */
23814
+ proposedCategoryId?: Maybe<Scalars['String']['output']>;
23815
+ /** True when triage changed the SLA policy. */
23816
+ slaApplied: Scalars['Boolean']['output'];
23817
+ slaPolicyId?: Maybe<Scalars['String']['output']>;
23818
+ suggestedAssignee?: Maybe<SupportTriageAssigneeSuggestion>;
23819
+ trigger: SupportTriageTrigger;
23820
+ };
23821
+ /** The engine replayed over recent tickets people categorised and resolved, using only older tickets as evidence for each. */
23822
+ export type SupportTriageEvaluation = {
23823
+ __typename?: 'SupportTriageEvaluation';
23824
+ cases: Array<SupportTriageEvaluationCase>;
23825
+ /** Share of cases where the engine would apply a category. */
23826
+ categoryCoverage: Scalars['Float']['output'];
23827
+ /** Share of applied categories that match the person's choice. */
23828
+ categoryPrecision: Scalars['Float']['output'];
23829
+ correctCount: Scalars['Int']['output'];
23830
+ decidedCount: Scalars['Int']['output'];
23831
+ engine: Scalars['String']['output'];
23832
+ /** Share of cases where the engine's priority matches the final priority. */
23833
+ priorityAgreement: Scalars['Float']['output'];
23834
+ sampleSize: Scalars['Int']['output'];
23835
+ };
23836
+ /** One replayed ticket in a triage evaluation. */
23837
+ export type SupportTriageEvaluationCase = {
23838
+ __typename?: 'SupportTriageEvaluationCase';
23839
+ confidence: Scalars['Float']['output'];
23840
+ correct: Scalars['Boolean']['output'];
23841
+ decided: Scalars['Boolean']['output'];
23842
+ /** The category a person gave the ticket. */
23843
+ expectedCategoryId: Scalars['String']['output'];
23844
+ expectedPriority: SupportTicketPriority;
23845
+ /** The category the engine would have applied, or null when it would abstain. */
23846
+ predictedCategoryId?: Maybe<Scalars['String']['output']>;
23847
+ predictedPriority: SupportTicketPriority;
23848
+ ticketId: Scalars['ID']['output'];
23849
+ ticketNumber: Scalars['String']['output'];
23850
+ };
23851
+ /** A row the triage engine weighed: a similar resolved ticket or a published knowledge-base article. */
23852
+ export type SupportTriageEvidence = {
23853
+ __typename?: 'SupportTriageEvidence';
23854
+ id: Scalars['ID']['output'];
23855
+ kind: SupportTriageEvidenceKind;
23856
+ /** Ticket number for tickets, title for articles. */
23857
+ label: Scalars['String']['output'];
23858
+ /** Full-text relevance score (Postgres ts_rank). */
23859
+ score: Scalars['Float']['output'];
23860
+ };
23861
+ export declare enum SupportTriageEvidenceKind {
23862
+ KnowledgeBaseArticle = "KNOWLEDGE_BASE_ARTICLE",
23863
+ Ticket = "TICKET"
23864
+ }
23865
+ export declare enum SupportTriageTrigger {
23866
+ /** Run on demand by a support agent. */
23867
+ Manual = "MANUAL",
23868
+ /** Run automatically when the ticket was created. */
23869
+ TicketCreated = "TICKET_CREATED"
23870
+ }
23722
23871
  export type SuppressIdentifierInput = {
23723
23872
  channel: SuppressionChannel;
23724
23873
  expiresAt?: InputMaybe<Scalars['DateTime']['input']>;