@burdenoff/microfe-botmanor 2026.1120.8 → 2026.1120.10

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.
@@ -73,6 +73,8 @@ export type BotmanorHandoffConfigInput = {
73
73
  policyRefusal: boolean;
74
74
  repeatedFailures: boolean;
75
75
  repeatedFailuresConsecutive: number;
76
+ /** Minutes to the first human reply (1-10080). Omitted keeps the saved value, else 15. */
77
+ slaMinutes?: number | null | undefined;
76
78
  targetRole?: string | null | undefined;
77
79
  targetUserIds: Array<string | number>;
78
80
  };
@@ -86,6 +88,7 @@ export type BotmanorHandoffFallbackBehavior =
86
88
  'ABSTAIN'
87
89
  /** The bot keeps answering until a human accepts the handoff. */
88
90
  | 'CONTINUE';
91
+ export type BotmanorHandoffMessageRole = 'BOT' | 'CUSTOMER' | 'OPERATOR';
89
92
  export type BotmanorHandoffStatus = 'ACCEPTED' | 'ASSIGNED' | 'EXPIRED' | 'REJECTED' | 'RELEASED' | 'REQUESTED' | 'RESOLVED';
90
93
  export type BotmanorHandoffTrigger = 'CUSTOM_INTENT' | 'EXPLICIT_REQUEST' | 'LOW_CONFIDENCE' | 'MANUAL' | 'POLICY_REFUSAL' | 'REPEATED_FAILURES';
91
94
  /**
@@ -1947,6 +1950,7 @@ export type HandoffConfigQuery = {
1947
1950
  notifyPush: boolean;
1948
1951
  fallbackBehavior: Types.BotmanorHandoffFallbackBehavior;
1949
1952
  handoffMessage: string | null;
1953
+ slaMinutes: number;
1950
1954
  updatedAt: string | null;
1951
1955
  customIntents: Array<{
1952
1956
  name: string;
@@ -1979,6 +1983,10 @@ export type HandoffQueueQuery = {
1979
1983
  acceptedAt: string | null;
1980
1984
  resolvedAt: string | null;
1981
1985
  releasedAt: string | null;
1986
+ slaDueAt: string | null;
1987
+ firstResponseAt: string | null;
1988
+ slaBreached: boolean;
1989
+ replyChannel: string | null;
1982
1990
  events: Array<{
1983
1991
  at: string;
1984
1992
  actorId: string;
@@ -2009,6 +2017,10 @@ export type ConversationHandoffQuery = {
2009
2017
  acceptedAt: string | null;
2010
2018
  resolvedAt: string | null;
2011
2019
  releasedAt: string | null;
2020
+ slaDueAt: string | null;
2021
+ firstResponseAt: string | null;
2022
+ slaBreached: boolean;
2023
+ replyChannel: string | null;
2012
2024
  events: Array<{
2013
2025
  at: string;
2014
2026
  actorId: string;
@@ -2039,6 +2051,7 @@ export type UpsertHandoffConfigMutation = {
2039
2051
  notifyPush: boolean;
2040
2052
  fallbackBehavior: Types.BotmanorHandoffFallbackBehavior;
2041
2053
  handoffMessage: string | null;
2054
+ slaMinutes: number;
2042
2055
  updatedAt: string | null;
2043
2056
  customIntents: Array<{
2044
2057
  name: string;
@@ -2068,6 +2081,10 @@ export type RequestHandoffMutation = {
2068
2081
  acceptedAt: string | null;
2069
2082
  resolvedAt: string | null;
2070
2083
  releasedAt: string | null;
2084
+ slaDueAt: string | null;
2085
+ firstResponseAt: string | null;
2086
+ slaBreached: boolean;
2087
+ replyChannel: string | null;
2071
2088
  events: Array<{
2072
2089
  at: string;
2073
2090
  actorId: string;
@@ -2088,6 +2105,41 @@ export type AcceptHandoffMutation = {
2088
2105
  acceptedAt: string | null;
2089
2106
  };
2090
2107
  };
2108
+ export type AssignHandoffMutationVariables = Exact<{
2109
+ id: string | number;
2110
+ assigneeId: string | number;
2111
+ }>;
2112
+ export type AssignHandoffMutation = {
2113
+ assignHandoff: {
2114
+ id: string;
2115
+ status: Types.BotmanorHandoffStatus;
2116
+ assignedToId: string | null;
2117
+ };
2118
+ };
2119
+ export type ReplyToHandoffMutationVariables = Exact<{
2120
+ id: string | number;
2121
+ message: string;
2122
+ }>;
2123
+ export type ReplyToHandoffMutation = {
2124
+ replyToHandoff: {
2125
+ id: string;
2126
+ status: Types.BotmanorHandoffStatus;
2127
+ firstResponseAt: string | null;
2128
+ slaBreached: boolean;
2129
+ };
2130
+ };
2131
+ export type HandoffTranscriptQueryVariables = Exact<{
2132
+ id: string | number;
2133
+ }>;
2134
+ export type HandoffTranscriptQuery = {
2135
+ handoffTranscript: Array<{
2136
+ id: string;
2137
+ role: Types.BotmanorHandoffMessageRole;
2138
+ authorId: string;
2139
+ text: string;
2140
+ createdAt: string;
2141
+ }>;
2142
+ };
2091
2143
  export type ReleaseHandoffMutationVariables = Exact<{
2092
2144
  id: string | number;
2093
2145
  }>;
@@ -2096,6 +2148,10 @@ export type ReleaseHandoffMutation = {
2096
2148
  id: string;
2097
2149
  status: Types.BotmanorHandoffStatus;
2098
2150
  releasedAt: string | null;
2151
+ slaDueAt: string | null;
2152
+ firstResponseAt: string | null;
2153
+ slaBreached: boolean;
2154
+ replyChannel: string | null;
2099
2155
  };
2100
2156
  };
2101
2157
  export type ResolveHandoffMutationVariables = Exact<{
@@ -5109,6 +5165,84 @@ export declare function useAcceptHandoffMutation(baseOptions?: ApolloReactHooks.
5109
5165
  export type AcceptHandoffMutationHookResult = ReturnType<typeof useAcceptHandoffMutation>;
5110
5166
  export type AcceptHandoffMutationResult = Apollo.MutationResult<Types.AcceptHandoffMutation>;
5111
5167
  export type AcceptHandoffMutationOptions = Apollo.BaseMutationOptions<Types.AcceptHandoffMutation, Types.AcceptHandoffMutationVariables>;
5168
+ export declare const AssignHandoffDocument: Apollo.DocumentNode;
5169
+ export type AssignHandoffMutationFn = Apollo.MutationFunction<Types.AssignHandoffMutation, Types.AssignHandoffMutationVariables>;
5170
+ /**
5171
+ * __useAssignHandoffMutation__
5172
+ *
5173
+ * To run a mutation, you first call `useAssignHandoffMutation` within a React component and pass it any options that fit your needs.
5174
+ * When your component renders, `useAssignHandoffMutation` returns a tuple that includes:
5175
+ * - A mutate function that you can call at any time to execute the mutation
5176
+ * - An object with fields that represent the current status of the mutation's execution
5177
+ *
5178
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
5179
+ *
5180
+ * @example
5181
+ * const [assignHandoffMutation, { data, loading, error }] = useAssignHandoffMutation({
5182
+ * variables: {
5183
+ * id: // value for 'id'
5184
+ * assigneeId: // value for 'assigneeId'
5185
+ * },
5186
+ * });
5187
+ */
5188
+ export declare function useAssignHandoffMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.AssignHandoffMutation, Types.AssignHandoffMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.AssignHandoffMutation, any, Apollo.ApolloCache, undefined>;
5189
+ export type AssignHandoffMutationHookResult = ReturnType<typeof useAssignHandoffMutation>;
5190
+ export type AssignHandoffMutationResult = Apollo.MutationResult<Types.AssignHandoffMutation>;
5191
+ export type AssignHandoffMutationOptions = Apollo.BaseMutationOptions<Types.AssignHandoffMutation, Types.AssignHandoffMutationVariables>;
5192
+ export declare const ReplyToHandoffDocument: Apollo.DocumentNode;
5193
+ export type ReplyToHandoffMutationFn = Apollo.MutationFunction<Types.ReplyToHandoffMutation, Types.ReplyToHandoffMutationVariables>;
5194
+ /**
5195
+ * __useReplyToHandoffMutation__
5196
+ *
5197
+ * To run a mutation, you first call `useReplyToHandoffMutation` within a React component and pass it any options that fit your needs.
5198
+ * When your component renders, `useReplyToHandoffMutation` returns a tuple that includes:
5199
+ * - A mutate function that you can call at any time to execute the mutation
5200
+ * - An object with fields that represent the current status of the mutation's execution
5201
+ *
5202
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
5203
+ *
5204
+ * @example
5205
+ * const [replyToHandoffMutation, { data, loading, error }] = useReplyToHandoffMutation({
5206
+ * variables: {
5207
+ * id: // value for 'id'
5208
+ * message: // value for 'message'
5209
+ * },
5210
+ * });
5211
+ */
5212
+ export declare function useReplyToHandoffMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.ReplyToHandoffMutation, Types.ReplyToHandoffMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.ReplyToHandoffMutation, any, Apollo.ApolloCache, undefined>;
5213
+ export type ReplyToHandoffMutationHookResult = ReturnType<typeof useReplyToHandoffMutation>;
5214
+ export type ReplyToHandoffMutationResult = Apollo.MutationResult<Types.ReplyToHandoffMutation>;
5215
+ export type ReplyToHandoffMutationOptions = Apollo.BaseMutationOptions<Types.ReplyToHandoffMutation, Types.ReplyToHandoffMutationVariables>;
5216
+ export declare const HandoffTranscriptDocument: Apollo.DocumentNode;
5217
+ /**
5218
+ * __useHandoffTranscriptQuery__
5219
+ *
5220
+ * To run a query within a React component, call `useHandoffTranscriptQuery` and pass it any options that fit your needs.
5221
+ * When your component renders, `useHandoffTranscriptQuery` returns an object from Apollo Client that contains loading, error, and data properties
5222
+ * you can use to render your UI.
5223
+ *
5224
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
5225
+ *
5226
+ * @example
5227
+ * const { data, loading, error } = useHandoffTranscriptQuery({
5228
+ * variables: {
5229
+ * id: // value for 'id'
5230
+ * },
5231
+ * });
5232
+ */
5233
+ export declare function useHandoffTranscriptQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.HandoffTranscriptQuery, Types.HandoffTranscriptQueryVariables> & ({
5234
+ variables: Types.HandoffTranscriptQueryVariables;
5235
+ skip?: boolean;
5236
+ } | {
5237
+ skip: boolean;
5238
+ })): ApolloReactHooks.useQuery.Result<Types.HandoffTranscriptQuery, Types.HandoffTranscriptQueryVariables, "empty" | "complete" | "streaming", Types.HandoffTranscriptQueryVariables, undefined>;
5239
+ export declare function useHandoffTranscriptLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.HandoffTranscriptQuery, Types.HandoffTranscriptQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.HandoffTranscriptQuery, Types.HandoffTranscriptQueryVariables, "empty" | "complete" | "streaming", undefined>;
5240
+ export declare function useHandoffTranscriptSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.HandoffTranscriptQuery, Types.HandoffTranscriptQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.HandoffTranscriptQuery, Types.HandoffTranscriptQueryVariables>;
5241
+ export declare function useHandoffTranscriptSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.HandoffTranscriptQuery, Types.HandoffTranscriptQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.HandoffTranscriptQuery | undefined, Types.HandoffTranscriptQueryVariables>;
5242
+ export type HandoffTranscriptQueryHookResult = ReturnType<typeof useHandoffTranscriptQuery>;
5243
+ export type HandoffTranscriptLazyQueryHookResult = ReturnType<typeof useHandoffTranscriptLazyQuery>;
5244
+ export type HandoffTranscriptSuspenseQueryHookResult = ReturnType<typeof useHandoffTranscriptSuspenseQuery>;
5245
+ export type HandoffTranscriptQueryResult = Apollo.QueryResult<Types.HandoffTranscriptQuery, Types.HandoffTranscriptQueryVariables>;
5112
5246
  export declare const ReleaseHandoffDocument: Apollo.DocumentNode;
5113
5247
  export type ReleaseHandoffMutationFn = Apollo.MutationFunction<Types.ReleaseHandoffMutation, Types.ReleaseHandoffMutationVariables>;
5114
5248
  /**