@burdenoff/microfe-botmanor 2026.1120.5 → 2026.1120.7
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/dist/botlit/components/AssistantChannelPanel.js +3 -3
- package/dist/botlit/components/AssistantChannelPanel.js.map +1 -1
- package/dist/botlit/components/ChannelRoutesPanel.d.ts +9 -0
- package/dist/botlit/components/ChannelRoutesPanel.js +275 -0
- package/dist/botlit/components/ChannelRoutesPanel.js.map +1 -0
- package/dist/botlit/components/CreateChannelRouteDialog.d.ts +13 -0
- package/dist/botlit/components/CreateChannelRouteDialog.js +188 -0
- package/dist/botlit/components/CreateChannelRouteDialog.js.map +1 -0
- package/dist/botlit/hooks/index.d.ts +3 -3
- package/dist/botlit/hooks/index.js +19 -19
- package/dist/botlit/hooks/useAssistantChat.d.ts +32 -0
- package/dist/botlit/hooks/useAssistantChat.js +98 -0
- package/dist/botlit/hooks/useAssistantChat.js.map +1 -0
- package/dist/botlit/hooks/useBots.d.ts +5 -0
- package/dist/botlit/hooks/useBots.js +63 -50
- package/dist/botlit/hooks/useBots.js.map +1 -1
- package/dist/botlit/hooks/useChannels.d.ts +49 -23
- package/dist/botlit/hooks/useChannels.js +141 -135
- package/dist/botlit/hooks/useChannels.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +12 -3
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/ChannelDetailPage.js +642 -776
- package/dist/botlit/pages/ChannelDetailPage.js.map +1 -1
- package/dist/botlit/pages/ChannelRoutesPage.js +22 -208
- package/dist/botlit/pages/ChannelRoutesPage.js.map +1 -1
- package/dist/botlit/pages/ChannelsPage.js +314 -251
- package/dist/botlit/pages/ChannelsPage.js.map +1 -1
- package/dist/botlit/pages/ChatPage.js +207 -83
- package/dist/botlit/pages/ChatPage.js.map +1 -1
- package/dist/botlit/utils/assistantAvailability.d.ts +34 -0
- package/dist/botlit/utils/assistantAvailability.js +24 -0
- package/dist/botlit/utils/assistantAvailability.js.map +1 -0
- package/dist/botlit/utils/channelConnectors.d.ts +13 -0
- package/dist/botlit/utils/channelConnectors.js +21 -1
- package/dist/botlit/utils/channelConnectors.js.map +1 -1
- package/dist/botlit/utils/errors.d.ts +8 -0
- package/dist/botlit/utils/errors.js +21 -1
- package/dist/botlit/utils/errors.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +200 -12
- package/dist/generated/wspace-operations.js +153 -110
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +40 -0
- package/dist/generated/wspace-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,3 +14,16 @@ export declare function ensureActiveConnector(channel: ConnectableChannel, exist
|
|
|
14
14
|
create: (input: CreateChannelConnectorVariables) => Promise<ChannelConnectorRecord>;
|
|
15
15
|
activate: (connectorId: string) => Promise<ChannelConnectorRecord>;
|
|
16
16
|
}): Promise<Pick<ChannelConnectorRecord, 'id'>>;
|
|
17
|
+
type Translate = (key: string, fallback: string, params?: Record<string, string | number>) => string;
|
|
18
|
+
/** Translated display name of a connector type (BOFF-12572), never the raw enum. */
|
|
19
|
+
export declare function channelTypeLabel(type: string, t: Translate): string;
|
|
20
|
+
/**
|
|
21
|
+
* Connector metadata key naming the global channel that was created for this
|
|
22
|
+
* connector (credentials entered in the connector form), as opposed to an
|
|
23
|
+
* existing channel the user linked. Only such a channel is deleted together
|
|
24
|
+
* with its connector (BOFF-12565).
|
|
25
|
+
*/
|
|
26
|
+
export declare const PROVISIONED_CHANNEL_KEY = "provisionedChannelId";
|
|
27
|
+
/** The global channel this connector created and still uses, if any. */
|
|
28
|
+
export declare function provisionedChannelOf(connector: Pick<ChannelConnectorRecord, 'credentialsRefId' | 'metadata'>): string | undefined;
|
|
29
|
+
export {};
|
|
@@ -19,6 +19,26 @@ async function t(t, n, r) {
|
|
|
19
19
|
credentialsRefId: t.id
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
var n = {
|
|
23
|
+
WEB_WIDGET: "Web Widget",
|
|
24
|
+
SLACK: "Slack",
|
|
25
|
+
TEAMS: "Microsoft Teams",
|
|
26
|
+
DISCORD: "Discord",
|
|
27
|
+
WHATSAPP: "WhatsApp",
|
|
28
|
+
WEBHOOK: "Webhook",
|
|
29
|
+
EMAIL: "Email",
|
|
30
|
+
SMS: "SMS",
|
|
31
|
+
CUSTOM: "Custom"
|
|
32
|
+
};
|
|
33
|
+
function r(e, t) {
|
|
34
|
+
let r = n[e] ?? e;
|
|
35
|
+
return t(`botlit.channels.types.${e.toLowerCase()}`, r);
|
|
36
|
+
}
|
|
37
|
+
var i = "provisionedChannelId";
|
|
38
|
+
function a(e) {
|
|
39
|
+
let t = e.metadata?.[i];
|
|
40
|
+
return typeof t == "string" && t !== "" && t === e.credentialsRefId ? t : void 0;
|
|
41
|
+
}
|
|
42
|
+
export { i as PROVISIONED_CHANNEL_KEY, r as channelTypeLabel, t as ensureActiveConnector, a as provisionedChannelOf };
|
|
23
43
|
|
|
24
44
|
//# sourceMappingURL=channelConnectors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channelConnectors.js","names":["CONNECTOR_TYPE_BY_PLATFORM","ensureActiveConnector","existing","actions","type","channel"],"sources":["../../../src/botlit/utils/channelConnectors.ts"],"sourcesContent":["/**\n * Channel connector helpers (BOFF-15360)\n * @module botlit/utils\n */\n\nimport type { ChannelConnectorRecord, CreateChannelConnectorVariables } from '../hooks/useChannels';\n\n/** The global-channel fields a connector is derived from. */\nexport interface ConnectableChannel {\n id: string;\n name: string;\n platform: string;\n}\n\n/** Global-channel platform → the connector type that routes it. */\nconst CONNECTOR_TYPE_BY_PLATFORM: Readonly<\n Record<string, CreateChannelConnectorVariables['type']>\n> = {\n SLACK: 'SLACK',\n TEAMS: 'TEAMS',\n DISCORD: 'DISCORD',\n WHATSAPP: 'WHATSAPP',\n WEBHOOK: 'WEBHOOK',\n EMAIL: 'EMAIL',\n SMS: 'SMS',\n};\n\n/**\n * This workspace's connector for a global channel: `existing` (the one that\n * already names it, made ACTIVE if it is not) or a new ACTIVE one named\n * after the channel.\n */\nexport async function ensureActiveConnector(\n channel: ConnectableChannel,\n existing: ChannelConnectorRecord | null,\n actions: {\n create: (input: CreateChannelConnectorVariables) => Promise<ChannelConnectorRecord>;\n activate: (connectorId: string) => Promise<ChannelConnectorRecord>;\n }\n): Promise<Pick<ChannelConnectorRecord, 'id'>> {\n if (existing) {\n if (existing.status !== 'ACTIVE') await actions.activate(existing.id);\n return existing;\n }\n const type = CONNECTOR_TYPE_BY_PLATFORM[channel.platform];\n if (!type) throw new Error(`${channel.platform} channels cannot be routed to a bot`);\n return actions.create({\n name: channel.name,\n type,\n status: 'ACTIVE',\n credentialsRefId: channel.id,\n });\n}\n"],"mappings":";AAeA,IAAMA,IAEF;CACF,OAAO;CACP,OAAO;CACP,SAAS;CACT,UAAU;CACV,SAAS;CACT,OAAO;CACP,KAAK;AACP;AAOA,eAAsBC,EACpB,GACA,GACA,GAI6C;CAC7C,IAAIC,GAEF,OADIA,EAAS,WAAW,YAAU,MAAMC,EAAQ,SAASD,EAAS,EAAE,GAC7DA;CAET,IAAME,IAAOJ,EAA2BK,EAAQ;CAChD,IAAI,CAACD,GAAM,MAAU,MAAM,GAAGC,EAAQ,SAAS,oCAAoC;CACnF,OAAOF,EAAQ,OAAO;EACpB,MAAME,EAAQ;EACd;EACA,QAAQ;EACR,kBAAkBA,EAAQ;CAC5B,CAAC;AACH"}
|
|
1
|
+
{"version":3,"file":"channelConnectors.js","names":["CONNECTOR_TYPE_BY_PLATFORM","ensureActiveConnector","existing","actions","type","channel","CHANNEL_TYPE_LABELS","channelTypeLabel","fallback","PROVISIONED_CHANNEL_KEY","provisionedChannelOf","value","connector"],"sources":["../../../src/botlit/utils/channelConnectors.ts"],"sourcesContent":["/**\n * Channel connector helpers (BOFF-15360)\n * @module botlit/utils\n */\n\nimport type { ChannelConnectorRecord, CreateChannelConnectorVariables } from '../hooks/useChannels';\n\n/** The global-channel fields a connector is derived from. */\nexport interface ConnectableChannel {\n id: string;\n name: string;\n platform: string;\n}\n\n/** Global-channel platform → the connector type that routes it. */\nconst CONNECTOR_TYPE_BY_PLATFORM: Readonly<\n Record<string, CreateChannelConnectorVariables['type']>\n> = {\n SLACK: 'SLACK',\n TEAMS: 'TEAMS',\n DISCORD: 'DISCORD',\n WHATSAPP: 'WHATSAPP',\n WEBHOOK: 'WEBHOOK',\n EMAIL: 'EMAIL',\n SMS: 'SMS',\n};\n\n/**\n * This workspace's connector for a global channel: `existing` (the one that\n * already names it, made ACTIVE if it is not) or a new ACTIVE one named\n * after the channel.\n */\nexport async function ensureActiveConnector(\n channel: ConnectableChannel,\n existing: ChannelConnectorRecord | null,\n actions: {\n create: (input: CreateChannelConnectorVariables) => Promise<ChannelConnectorRecord>;\n activate: (connectorId: string) => Promise<ChannelConnectorRecord>;\n }\n): Promise<Pick<ChannelConnectorRecord, 'id'>> {\n if (existing) {\n if (existing.status !== 'ACTIVE') await actions.activate(existing.id);\n return existing;\n }\n const type = CONNECTOR_TYPE_BY_PLATFORM[channel.platform];\n if (!type) throw new Error(`${channel.platform} channels cannot be routed to a bot`);\n return actions.create({\n name: channel.name,\n type,\n status: 'ACTIVE',\n credentialsRefId: channel.id,\n });\n}\n\ntype Translate = (\n key: string,\n fallback: string,\n params?: Record<string, string | number>\n) => string;\n\nconst CHANNEL_TYPE_LABELS: Readonly<Record<string, string>> = {\n WEB_WIDGET: 'Web Widget',\n SLACK: 'Slack',\n TEAMS: 'Microsoft Teams',\n DISCORD: 'Discord',\n WHATSAPP: 'WhatsApp',\n WEBHOOK: 'Webhook',\n EMAIL: 'Email',\n SMS: 'SMS',\n CUSTOM: 'Custom',\n};\n\n/** Translated display name of a connector type (BOFF-12572), never the raw enum. */\nexport function channelTypeLabel(type: string, t: Translate): string {\n const fallback = CHANNEL_TYPE_LABELS[type] ?? type;\n return t(`botlit.channels.types.${type.toLowerCase()}`, fallback);\n}\n\n/**\n * Connector metadata key naming the global channel that was created for this\n * connector (credentials entered in the connector form), as opposed to an\n * existing channel the user linked. Only such a channel is deleted together\n * with its connector (BOFF-12565).\n */\nexport const PROVISIONED_CHANNEL_KEY = 'provisionedChannelId';\n\n/** The global channel this connector created and still uses, if any. */\nexport function provisionedChannelOf(\n connector: Pick<ChannelConnectorRecord, 'credentialsRefId' | 'metadata'>\n): string | undefined {\n const value = connector.metadata?.[PROVISIONED_CHANNEL_KEY];\n return typeof value === 'string' && value !== '' && value === connector.credentialsRefId\n ? value\n : undefined;\n}\n"],"mappings":";AAeA,IAAMA,IAEF;CACF,OAAO;CACP,OAAO;CACP,SAAS;CACT,UAAU;CACV,SAAS;CACT,OAAO;CACP,KAAK;AACP;AAOA,eAAsBC,EACpB,GACA,GACA,GAI6C;CAC7C,IAAIC,GAEF,OADIA,EAAS,WAAW,YAAU,MAAMC,EAAQ,SAASD,EAAS,EAAE,GAC7DA;CAET,IAAME,IAAOJ,EAA2BK,EAAQ;CAChD,IAAI,CAACD,GAAM,MAAU,MAAM,GAAGC,EAAQ,SAAS,oCAAoC;CACnF,OAAOF,EAAQ,OAAO;EACpB,MAAME,EAAQ;EACd;EACA,QAAQ;EACR,kBAAkBA,EAAQ;CAC5B,CAAC;AACH;AAQA,IAAMC,IAAwD;CAC5D,YAAY;CACZ,OAAO;CACP,OAAO;CACP,SAAS;CACT,UAAU;CACV,SAAS;CACT,OAAO;CACP,KAAK;CACL,QAAQ;AACV;AAGA,SAAgBC,EAAiB,GAAc,GAAsB;CACnE,IAAMC,IAAWF,EAAoBF,MAASA;CAC9C,OAAO,EAAE,yBAAyBA,EAAK,YAAY,KAAKI,CAAQ;AAClE;AAQA,IAAaC,IAA0B;AAGvC,SAAgBC,EACd,GACoB;CACpB,IAAMC,IAAQC,EAAU,WAAWH;CACnC,OAAO,OAAOE,KAAU,YAAYA,MAAU,MAAMA,MAAUC,EAAU,mBACpED,IACA,KAAA;AACN"}
|
|
@@ -17,3 +17,11 @@ export declare function extractGraphqlFailureMessage(error: unknown): string | u
|
|
|
17
17
|
* Error's own message, otherwise the caller's fallback.
|
|
18
18
|
*/
|
|
19
19
|
export declare function graphqlErrorMessage(error: unknown, fallback: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* The `extensions.code` of the first GraphQL error behind a failed operation,
|
|
22
|
+
* following the `cause` chain the workspace gateway hooks keep. `undefined`
|
|
23
|
+
* when the failure carries no code (a network error, for example).
|
|
24
|
+
*/
|
|
25
|
+
export declare function graphqlErrorCode(error: unknown): string | undefined;
|
|
26
|
+
/** True when a failed read means the record does not exist (or is not visible). */
|
|
27
|
+
export declare function isNotFoundError(error: unknown): boolean;
|
|
@@ -23,6 +23,26 @@ function e(e) {
|
|
|
23
23
|
function t(t, n) {
|
|
24
24
|
return e(t) || (t instanceof Error && t.message.trim() !== "" ? t.message : n);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
function n(e) {
|
|
27
|
+
let t = (e) => {
|
|
28
|
+
if (!Array.isArray(e)) return;
|
|
29
|
+
let t = e[0];
|
|
30
|
+
if (typeof t != "object" || !t || !("extensions" in t)) return;
|
|
31
|
+
let n = t.extensions;
|
|
32
|
+
if (typeof n != "object" || !n) return;
|
|
33
|
+
let r = n.code;
|
|
34
|
+
return typeof r == "string" ? r : void 0;
|
|
35
|
+
}, n = /* @__PURE__ */ new Set(), r = e;
|
|
36
|
+
for (; typeof r == "object" && r && !n.has(r);) {
|
|
37
|
+
n.add(r);
|
|
38
|
+
let e = r, i = t(e.graphQLErrors) ?? t(e.errors) ?? (e.networkError !== null && typeof e.networkError == "object" ? t(e.networkError.errors) : void 0);
|
|
39
|
+
if (i) return i;
|
|
40
|
+
r = e.cause;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function r(e) {
|
|
44
|
+
return n(e) === "NOT_FOUND";
|
|
45
|
+
}
|
|
46
|
+
export { e as extractGraphqlFailureMessage, n as graphqlErrorCode, t as graphqlErrorMessage, r as isNotFoundError };
|
|
27
47
|
|
|
28
48
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":["extractGraphqlFailureMessage","firstMessage","list","first","message","error","candidate","fromGraphQLErrors","fromErrors","networkError","fromNetworkErrors","graphqlErrorMessage","fallback"],"sources":["../../../src/botlit/utils/errors.ts"],"sourcesContent":["/**\n * Shared unwrapping for the error shapes produced by the platform's GraphQL\n * stack.\n *\n * Apollo Client v4 does not reject operations with a plain Error: failures\n * arrive as `{ graphQLErrors }` / `{ networkError }` wrapper objects, and the\n * shared batched fetch layer (fe-libs `enqueueGraphQLFetch`) attaches the\n * structured GraphQL errors as `.errors` on the networkError, whose own\n * message is the first GraphQL error's message. Prefers the first GraphQL\n * error message, then the networkError message; `undefined` when nothing\n * user-actionable is present.\n */\nexport function extractGraphqlFailureMessage(error: unknown): string | undefined {\n const firstMessage = (list: unknown): string | undefined => {\n if (!Array.isArray(list)) return undefined;\n const first: unknown = list[0];\n if (first !== null && typeof first === 'object' && 'message' in first) {\n const message = (first as { message?: unknown }).message;\n if (typeof message === 'string' && message.trim() !== '') return message;\n }\n return undefined;\n };\n\n if (error === null || typeof error !== 'object') return undefined;\n const candidate = error as {\n graphQLErrors?: unknown;\n errors?: unknown;\n networkError?: unknown;\n };\n const fromGraphQLErrors = firstMessage(candidate.graphQLErrors);\n if (fromGraphQLErrors) return fromGraphQLErrors;\n const fromErrors = firstMessage(candidate.errors);\n if (fromErrors) return fromErrors;\n const networkError = candidate.networkError;\n if (networkError !== null && typeof networkError === 'object') {\n const fromNetworkErrors = firstMessage((networkError as { errors?: unknown }).errors);\n if (fromNetworkErrors) return fromNetworkErrors;\n }\n if (networkError instanceof Error && networkError.message.trim() !== '') {\n return networkError.message;\n }\n return undefined;\n}\n\n/**\n * Extracts the user-actionable message from a failed GraphQL operation:\n * the unwrapped GraphQL/network error message when present, otherwise the\n * Error's own message, otherwise the caller's fallback.\n */\nexport function graphqlErrorMessage(error: unknown, fallback: string): string {\n const unwrapped = extractGraphqlFailureMessage(error);\n if (unwrapped) return unwrapped;\n if (error instanceof Error && error.message.trim() !== '') {\n return error.message;\n }\n return fallback;\n}\n"],"mappings":";AAYA,SAAgBA,EAA6B,GAAoC;CAC/E,IAAMC,KAAgB,MAAsC;EAC1D,IAAI,CAAC,MAAM,QAAQC,CAAI,GAAG;EAC1B,IAAMC,IAAiBD,EAAK;EAC5B,IAAsB,OAAOC,KAAU,YAAnCA,KAA+C,aAAaA,GAAO;GACrE,IAAMC,IAAWD,EAAgC;GACjD,IAAI,OAAOC,KAAY,YAAYA,EAAQ,KAAK,MAAM,IAAI,OAAOA;EACnE;CAEF;CAEA,IAAsB,OAAOC,KAAU,aAAnCA,GAA6C;CACjD,IAAMC,IAAYD,GAKZE,IAAoBN,EAAaK,EAAU,aAAa;CAC9D,IAAIC,GAAmB,OAAOA;CAC9B,IAAMC,IAAaP,EAAaK,EAAU,MAAM;CAChD,IAAIE,GAAY,OAAOA;CACvB,IAAMC,IAAeH,EAAU;CAC/B,IAA6B,OAAOG,KAAiB,YAAjDA,GAA2D;EAC7D,IAAMC,IAAoBT,EAAcQ,EAAsC,MAAM;EACpF,IAAIC,GAAmB,OAAOA;CAChC;CACA,IAAID,aAAwB,SAASA,EAAa,QAAQ,KAAK,MAAM,IACnE,OAAOA,EAAa;AAGxB;AAOA,SAAgBE,EAAoB,GAAgB,GAA0B;CAM5E,OALkBX,EAA6BK,CAC3C,MACAA,aAAiB,SAASA,EAAM,QAAQ,KAAK,MAAM,KAC9CA,EAAM,UAERO;AACT"}
|
|
1
|
+
{"version":3,"file":"errors.js","names":["extractGraphqlFailureMessage","firstMessage","list","first","message","error","candidate","fromGraphQLErrors","fromErrors","networkError","fromNetworkErrors","graphqlErrorMessage","fallback","graphqlErrorCode","codeOf","extensions","code","seen","current","isNotFoundError"],"sources":["../../../src/botlit/utils/errors.ts"],"sourcesContent":["/**\n * Shared unwrapping for the error shapes produced by the platform's GraphQL\n * stack.\n *\n * Apollo Client v4 does not reject operations with a plain Error: failures\n * arrive as `{ graphQLErrors }` / `{ networkError }` wrapper objects, and the\n * shared batched fetch layer (fe-libs `enqueueGraphQLFetch`) attaches the\n * structured GraphQL errors as `.errors` on the networkError, whose own\n * message is the first GraphQL error's message. Prefers the first GraphQL\n * error message, then the networkError message; `undefined` when nothing\n * user-actionable is present.\n */\nexport function extractGraphqlFailureMessage(error: unknown): string | undefined {\n const firstMessage = (list: unknown): string | undefined => {\n if (!Array.isArray(list)) return undefined;\n const first: unknown = list[0];\n if (first !== null && typeof first === 'object' && 'message' in first) {\n const message = (first as { message?: unknown }).message;\n if (typeof message === 'string' && message.trim() !== '') return message;\n }\n return undefined;\n };\n\n if (error === null || typeof error !== 'object') return undefined;\n const candidate = error as {\n graphQLErrors?: unknown;\n errors?: unknown;\n networkError?: unknown;\n };\n const fromGraphQLErrors = firstMessage(candidate.graphQLErrors);\n if (fromGraphQLErrors) return fromGraphQLErrors;\n const fromErrors = firstMessage(candidate.errors);\n if (fromErrors) return fromErrors;\n const networkError = candidate.networkError;\n if (networkError !== null && typeof networkError === 'object') {\n const fromNetworkErrors = firstMessage((networkError as { errors?: unknown }).errors);\n if (fromNetworkErrors) return fromNetworkErrors;\n }\n if (networkError instanceof Error && networkError.message.trim() !== '') {\n return networkError.message;\n }\n return undefined;\n}\n\n/**\n * Extracts the user-actionable message from a failed GraphQL operation:\n * the unwrapped GraphQL/network error message when present, otherwise the\n * Error's own message, otherwise the caller's fallback.\n */\nexport function graphqlErrorMessage(error: unknown, fallback: string): string {\n const unwrapped = extractGraphqlFailureMessage(error);\n if (unwrapped) return unwrapped;\n if (error instanceof Error && error.message.trim() !== '') {\n return error.message;\n }\n return fallback;\n}\n\n/**\n * The `extensions.code` of the first GraphQL error behind a failed operation,\n * following the `cause` chain the workspace gateway hooks keep. `undefined`\n * when the failure carries no code (a network error, for example).\n */\nexport function graphqlErrorCode(error: unknown): string | undefined {\n const codeOf = (list: unknown): string | undefined => {\n if (!Array.isArray(list)) return undefined;\n const first: unknown = list[0];\n if (first === null || typeof first !== 'object' || !('extensions' in first)) return undefined;\n const extensions = (first as { extensions?: unknown }).extensions;\n if (extensions === null || typeof extensions !== 'object') return undefined;\n const code = (extensions as { code?: unknown }).code;\n return typeof code === 'string' ? code : undefined;\n };\n\n const seen = new Set<unknown>();\n let current: unknown = error;\n while (current !== null && typeof current === 'object' && !seen.has(current)) {\n seen.add(current);\n const candidate = current as {\n graphQLErrors?: unknown;\n errors?: unknown;\n networkError?: unknown;\n cause?: unknown;\n };\n const code =\n codeOf(candidate.graphQLErrors) ??\n codeOf(candidate.errors) ??\n (candidate.networkError !== null && typeof candidate.networkError === 'object'\n ? codeOf((candidate.networkError as { errors?: unknown }).errors)\n : undefined);\n if (code) return code;\n current = candidate.cause;\n }\n return undefined;\n}\n\n/** True when a failed read means the record does not exist (or is not visible). */\nexport function isNotFoundError(error: unknown): boolean {\n return graphqlErrorCode(error) === 'NOT_FOUND';\n}\n"],"mappings":";AAYA,SAAgBA,EAA6B,GAAoC;CAC/E,IAAMC,KAAgB,MAAsC;EAC1D,IAAI,CAAC,MAAM,QAAQC,CAAI,GAAG;EAC1B,IAAMC,IAAiBD,EAAK;EAC5B,IAAsB,OAAOC,KAAU,YAAnCA,KAA+C,aAAaA,GAAO;GACrE,IAAMC,IAAWD,EAAgC;GACjD,IAAI,OAAOC,KAAY,YAAYA,EAAQ,KAAK,MAAM,IAAI,OAAOA;EACnE;CAEF;CAEA,IAAsB,OAAOC,KAAU,aAAnCA,GAA6C;CACjD,IAAMC,IAAYD,GAKZE,IAAoBN,EAAaK,EAAU,aAAa;CAC9D,IAAIC,GAAmB,OAAOA;CAC9B,IAAMC,IAAaP,EAAaK,EAAU,MAAM;CAChD,IAAIE,GAAY,OAAOA;CACvB,IAAMC,IAAeH,EAAU;CAC/B,IAA6B,OAAOG,KAAiB,YAAjDA,GAA2D;EAC7D,IAAMC,IAAoBT,EAAcQ,EAAsC,MAAM;EACpF,IAAIC,GAAmB,OAAOA;CAChC;CACA,IAAID,aAAwB,SAASA,EAAa,QAAQ,KAAK,MAAM,IACnE,OAAOA,EAAa;AAGxB;AAOA,SAAgBE,EAAoB,GAAgB,GAA0B;CAM5E,OALkBX,EAA6BK,CAC3C,MACAA,aAAiB,SAASA,EAAM,QAAQ,KAAK,MAAM,KAC9CA,EAAM,UAERO;AACT;AAOA,SAAgBC,EAAiB,GAAoC;CACnE,IAAMC,KAAU,MAAsC;EACpD,IAAI,CAAC,MAAM,QAAQZ,CAAI,GAAG;EAC1B,IAAMC,IAAiBD,EAAK;EAC5B,IAAsB,OAAOC,KAAU,aAAnCA,KAA+C,EAAE,gBAAgBA,IAAQ;EAC7E,IAAMY,IAAcZ,EAAmC;EACvD,IAA2B,OAAOY,KAAe,aAA7CA,GAAuD;EAC3D,IAAMC,IAAQD,EAAkC;EAChD,OAAO,OAAOC,KAAS,WAAWA,IAAO,KAAA;CAC3C,GAEMC,oBAAO,IAAI,IAAa,GAC1BC,IAAmBb;CACvB,OAA2B,OAAOa,KAAY,YAAvCA,KAAmD,CAACD,EAAK,IAAIC,CAAO,IAAG;EAC5E,EAAK,IAAIA,CAAO;EAChB,IAAMZ,IAAYY,GAMZF,IACJF,EAAOR,EAAU,aAAa,KAC9BQ,EAAOR,EAAU,MAAM,MACtBA,EAAU,iBAAiB,QAAQ,OAAOA,EAAU,gBAAiB,WAClEQ,EAAQR,EAAU,aAAsC,MAAM,IAC9D,KAAA;EACN,IAAIU,GAAM,OAAOA;EACjB,IAAUV,EAAU;CACtB;AAEF;AAGA,SAAgBa,EAAgB,GAAyB;CACvD,OAAON,EAAiBR,CAAK,MAAM;AACrC"}
|
|
@@ -128,6 +128,7 @@ export type ChannelPlatform =
|
|
|
128
128
|
export type ChannelRouteFilterInput = {
|
|
129
129
|
appId?: string | number | null | undefined;
|
|
130
130
|
connectorId?: string | number | null | undefined;
|
|
131
|
+
isActive?: boolean | null | undefined;
|
|
131
132
|
workspaceId?: string | number | null | undefined;
|
|
132
133
|
};
|
|
133
134
|
export type ChannelType = 'CUSTOM' | 'DISCORD' | 'EMAIL' | 'SLACK' | 'SMS' | 'TEAMS' | 'WEBHOOK' | 'WEB_WIDGET' | 'WHATSAPP';
|
|
@@ -287,10 +288,14 @@ export type CreateChannelConnectorInput = {
|
|
|
287
288
|
export type CreateChannelRouteInput = {
|
|
288
289
|
appId: string | number;
|
|
289
290
|
connectorId: string | number;
|
|
291
|
+
/** @deprecated Not applied by channel routing. Values other than null are rejected (BOFF-12567). */
|
|
290
292
|
formatPolicyId?: string | number | null | undefined;
|
|
293
|
+
isActive?: boolean | null | undefined;
|
|
291
294
|
locationId: string;
|
|
292
295
|
metadata?: Record<string, unknown> | null | undefined;
|
|
296
|
+
/** @deprecated Not applied by channel routing. Values other than null are rejected (BOFF-12567). */
|
|
293
297
|
policyBindings?: Record<string, unknown> | null | undefined;
|
|
298
|
+
/** @deprecated Not applied by channel routing. Values other than null are rejected (BOFF-12567). */
|
|
294
299
|
routingOverrides?: Record<string, unknown> | null | undefined;
|
|
295
300
|
workspaceId: string | number;
|
|
296
301
|
};
|
|
@@ -694,10 +699,14 @@ export type UpdateChannelConnectorInput = {
|
|
|
694
699
|
};
|
|
695
700
|
export type UpdateChannelRouteInput = {
|
|
696
701
|
appId?: string | number | null | undefined;
|
|
702
|
+
/** @deprecated Not applied by channel routing. Values other than null are rejected (BOFF-12567). */
|
|
697
703
|
formatPolicyId?: string | number | null | undefined;
|
|
704
|
+
isActive?: boolean | null | undefined;
|
|
698
705
|
locationId?: string | null | undefined;
|
|
699
706
|
metadata?: Record<string, unknown> | null | undefined;
|
|
707
|
+
/** @deprecated Not applied by channel routing. Values other than null are rejected (BOFF-12567). */
|
|
700
708
|
policyBindings?: Record<string, unknown> | null | undefined;
|
|
709
|
+
/** @deprecated Not applied by channel routing. Values other than null are rejected (BOFF-12567). */
|
|
701
710
|
routingOverrides?: Record<string, unknown> | null | undefined;
|
|
702
711
|
};
|
|
703
712
|
/**
|
|
@@ -1525,12 +1534,14 @@ export type GetChannelConnectorQuery = {
|
|
|
1525
1534
|
defaultPolicyBindings: Record<string, unknown> | null;
|
|
1526
1535
|
description: string | null;
|
|
1527
1536
|
id: string;
|
|
1537
|
+
lastUnroutedAt: string | null;
|
|
1528
1538
|
metadata: Record<string, unknown> | null;
|
|
1529
1539
|
name: string;
|
|
1530
1540
|
revision: number;
|
|
1531
1541
|
status: Types.EntityStatus;
|
|
1532
1542
|
tags: Array<string>;
|
|
1533
1543
|
type: Types.ChannelType;
|
|
1544
|
+
unroutedMessageCount: number;
|
|
1534
1545
|
updatedAt: string;
|
|
1535
1546
|
updatedById: string;
|
|
1536
1547
|
visibility: Types.Visibility;
|
|
@@ -1550,12 +1561,14 @@ export type ListChannelConnectorsQuery = {
|
|
|
1550
1561
|
defaultPolicyBindings: Record<string, unknown> | null;
|
|
1551
1562
|
description: string | null;
|
|
1552
1563
|
id: string;
|
|
1564
|
+
lastUnroutedAt: string | null;
|
|
1553
1565
|
metadata: Record<string, unknown> | null;
|
|
1554
1566
|
name: string;
|
|
1555
1567
|
revision: number;
|
|
1556
1568
|
status: Types.EntityStatus;
|
|
1557
1569
|
tags: Array<string>;
|
|
1558
1570
|
type: Types.ChannelType;
|
|
1571
|
+
unroutedMessageCount: number;
|
|
1559
1572
|
updatedAt: string;
|
|
1560
1573
|
updatedById: string;
|
|
1561
1574
|
visibility: Types.Visibility;
|
|
@@ -1570,13 +1583,11 @@ export type GetChannelRouteQuery = {
|
|
|
1570
1583
|
appId: string;
|
|
1571
1584
|
connectorId: string;
|
|
1572
1585
|
createdAt: string;
|
|
1573
|
-
formatPolicyId: string | null;
|
|
1574
1586
|
id: string;
|
|
1587
|
+
isActive: boolean;
|
|
1575
1588
|
locationId: string;
|
|
1576
1589
|
metadata: Record<string, unknown> | null;
|
|
1577
|
-
policyBindings: Record<string, unknown> | null;
|
|
1578
1590
|
revision: number;
|
|
1579
|
-
routingOverrides: Record<string, unknown> | null;
|
|
1580
1591
|
updatedAt: string;
|
|
1581
1592
|
workspaceId: string;
|
|
1582
1593
|
} | null;
|
|
@@ -1590,17 +1601,27 @@ export type ListChannelRoutesQuery = {
|
|
|
1590
1601
|
appId: string;
|
|
1591
1602
|
connectorId: string;
|
|
1592
1603
|
createdAt: string;
|
|
1593
|
-
formatPolicyId: string | null;
|
|
1594
1604
|
id: string;
|
|
1605
|
+
isActive: boolean;
|
|
1595
1606
|
locationId: string;
|
|
1596
1607
|
metadata: Record<string, unknown> | null;
|
|
1597
|
-
policyBindings: Record<string, unknown> | null;
|
|
1598
1608
|
revision: number;
|
|
1599
|
-
routingOverrides: Record<string, unknown> | null;
|
|
1600
1609
|
updatedAt: string;
|
|
1601
1610
|
workspaceId: string;
|
|
1602
1611
|
}>;
|
|
1603
1612
|
};
|
|
1613
|
+
export type ChannelOverviewQueryVariables = Exact<{
|
|
1614
|
+
[key: string]: never;
|
|
1615
|
+
}>;
|
|
1616
|
+
export type ChannelOverviewQuery = {
|
|
1617
|
+
channelOverview: {
|
|
1618
|
+
activeConnectorCount: number;
|
|
1619
|
+
activeRouteCount: number;
|
|
1620
|
+
connectorCount: number;
|
|
1621
|
+
routeCount: number;
|
|
1622
|
+
unroutedMessageCount: number;
|
|
1623
|
+
};
|
|
1624
|
+
};
|
|
1604
1625
|
export type CreateChannelConnectorMutationVariables = Exact<{
|
|
1605
1626
|
input: Types.CreateChannelConnectorInput;
|
|
1606
1627
|
}>;
|
|
@@ -1613,12 +1634,14 @@ export type CreateChannelConnectorMutation = {
|
|
|
1613
1634
|
defaultPolicyBindings: Record<string, unknown> | null;
|
|
1614
1635
|
description: string | null;
|
|
1615
1636
|
id: string;
|
|
1637
|
+
lastUnroutedAt: string | null;
|
|
1616
1638
|
metadata: Record<string, unknown> | null;
|
|
1617
1639
|
name: string;
|
|
1618
1640
|
revision: number;
|
|
1619
1641
|
status: Types.EntityStatus;
|
|
1620
1642
|
tags: Array<string>;
|
|
1621
1643
|
type: Types.ChannelType;
|
|
1644
|
+
unroutedMessageCount: number;
|
|
1622
1645
|
updatedAt: string;
|
|
1623
1646
|
updatedById: string;
|
|
1624
1647
|
visibility: Types.Visibility;
|
|
@@ -1638,12 +1661,14 @@ export type UpdateChannelConnectorMutation = {
|
|
|
1638
1661
|
defaultPolicyBindings: Record<string, unknown> | null;
|
|
1639
1662
|
description: string | null;
|
|
1640
1663
|
id: string;
|
|
1664
|
+
lastUnroutedAt: string | null;
|
|
1641
1665
|
metadata: Record<string, unknown> | null;
|
|
1642
1666
|
name: string;
|
|
1643
1667
|
revision: number;
|
|
1644
1668
|
status: Types.EntityStatus;
|
|
1645
1669
|
tags: Array<string>;
|
|
1646
1670
|
type: Types.ChannelType;
|
|
1671
|
+
unroutedMessageCount: number;
|
|
1647
1672
|
updatedAt: string;
|
|
1648
1673
|
updatedById: string;
|
|
1649
1674
|
visibility: Types.Visibility;
|
|
@@ -1664,13 +1689,11 @@ export type CreateChannelRouteMutation = {
|
|
|
1664
1689
|
appId: string;
|
|
1665
1690
|
connectorId: string;
|
|
1666
1691
|
createdAt: string;
|
|
1667
|
-
formatPolicyId: string | null;
|
|
1668
1692
|
id: string;
|
|
1693
|
+
isActive: boolean;
|
|
1669
1694
|
locationId: string;
|
|
1670
1695
|
metadata: Record<string, unknown> | null;
|
|
1671
|
-
policyBindings: Record<string, unknown> | null;
|
|
1672
1696
|
revision: number;
|
|
1673
|
-
routingOverrides: Record<string, unknown> | null;
|
|
1674
1697
|
updatedAt: string;
|
|
1675
1698
|
workspaceId: string;
|
|
1676
1699
|
};
|
|
@@ -1684,13 +1707,11 @@ export type UpdateChannelRouteMutation = {
|
|
|
1684
1707
|
appId: string;
|
|
1685
1708
|
connectorId: string;
|
|
1686
1709
|
createdAt: string;
|
|
1687
|
-
formatPolicyId: string | null;
|
|
1688
1710
|
id: string;
|
|
1711
|
+
isActive: boolean;
|
|
1689
1712
|
locationId: string;
|
|
1690
1713
|
metadata: Record<string, unknown> | null;
|
|
1691
|
-
policyBindings: Record<string, unknown> | null;
|
|
1692
1714
|
revision: number;
|
|
1693
|
-
routingOverrides: Record<string, unknown> | null;
|
|
1694
1715
|
updatedAt: string;
|
|
1695
1716
|
workspaceId: string;
|
|
1696
1717
|
};
|
|
@@ -1719,6 +1740,49 @@ export type HandleChannelMessageMutation = {
|
|
|
1719
1740
|
accepted: boolean;
|
|
1720
1741
|
};
|
|
1721
1742
|
};
|
|
1743
|
+
export type ChatAssistantsQueryVariables = Exact<{
|
|
1744
|
+
filters?: Types.BotmanorAgentFilterInput | null | undefined;
|
|
1745
|
+
pagination?: Types.PaginationInput | null | undefined;
|
|
1746
|
+
}>;
|
|
1747
|
+
export type ChatAssistantsQuery = {
|
|
1748
|
+
listBotmanorAgents: Array<{
|
|
1749
|
+
id: string;
|
|
1750
|
+
name: string;
|
|
1751
|
+
status: Types.BotmanorAgentStatus;
|
|
1752
|
+
llmModelId: string | null;
|
|
1753
|
+
capabilities: Array<Types.BotmanorAgentCapability>;
|
|
1754
|
+
knowledgeBaseIds: Array<string>;
|
|
1755
|
+
metadata: Record<string, unknown> | null;
|
|
1756
|
+
}>;
|
|
1757
|
+
};
|
|
1758
|
+
export type MyAssistantConversationRetentionQueryVariables = Exact<{
|
|
1759
|
+
[key: string]: never;
|
|
1760
|
+
}>;
|
|
1761
|
+
export type MyAssistantConversationRetentionQuery = {
|
|
1762
|
+
myAssistantConversationRetention: {
|
|
1763
|
+
conversationRetentionDays: number | null;
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
export type MyAssistantWorkflowConversationsQueryVariables = Exact<{
|
|
1767
|
+
agentId?: string | number | null | undefined;
|
|
1768
|
+
after?: string | number | null | undefined;
|
|
1769
|
+
}>;
|
|
1770
|
+
export type MyAssistantWorkflowConversationsQuery = {
|
|
1771
|
+
myAssistantWorkflowConversations: {
|
|
1772
|
+
nextCursor: string | null;
|
|
1773
|
+
nodes: Array<{
|
|
1774
|
+
clientConversationId: string;
|
|
1775
|
+
createdAt: string;
|
|
1776
|
+
}>;
|
|
1777
|
+
};
|
|
1778
|
+
};
|
|
1779
|
+
export type RetireMyAssistantConversationMutationVariables = Exact<{
|
|
1780
|
+
productId: string;
|
|
1781
|
+
clientConversationId: string | number;
|
|
1782
|
+
}>;
|
|
1783
|
+
export type RetireMyAssistantConversationMutation = {
|
|
1784
|
+
retireMyGroundedAssistantConversation: boolean;
|
|
1785
|
+
};
|
|
1722
1786
|
export type GetExecutionQueryVariables = Exact<{
|
|
1723
1787
|
id: string | number;
|
|
1724
1788
|
}>;
|
|
@@ -4311,6 +4375,30 @@ export type ListChannelRoutesQueryHookResult = ReturnType<typeof useListChannelR
|
|
|
4311
4375
|
export type ListChannelRoutesLazyQueryHookResult = ReturnType<typeof useListChannelRoutesLazyQuery>;
|
|
4312
4376
|
export type ListChannelRoutesSuspenseQueryHookResult = ReturnType<typeof useListChannelRoutesSuspenseQuery>;
|
|
4313
4377
|
export type ListChannelRoutesQueryResult = Apollo.QueryResult<Types.ListChannelRoutesQuery, Types.ListChannelRoutesQueryVariables>;
|
|
4378
|
+
export declare const ChannelOverviewDocument: Apollo.DocumentNode;
|
|
4379
|
+
/**
|
|
4380
|
+
* __useChannelOverviewQuery__
|
|
4381
|
+
*
|
|
4382
|
+
* To run a query within a React component, call `useChannelOverviewQuery` and pass it any options that fit your needs.
|
|
4383
|
+
* When your component renders, `useChannelOverviewQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4384
|
+
* you can use to render your UI.
|
|
4385
|
+
*
|
|
4386
|
+
* @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;
|
|
4387
|
+
*
|
|
4388
|
+
* @example
|
|
4389
|
+
* const { data, loading, error } = useChannelOverviewQuery({
|
|
4390
|
+
* variables: {
|
|
4391
|
+
* },
|
|
4392
|
+
* });
|
|
4393
|
+
*/
|
|
4394
|
+
export declare function useChannelOverviewQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.ChannelOverviewQuery, Types.ChannelOverviewQueryVariables>): ApolloReactHooks.useQuery.Result<Types.ChannelOverviewQuery, Types.ChannelOverviewQueryVariables, "empty" | "complete" | "streaming", Types.ChannelOverviewQueryVariables, undefined>;
|
|
4395
|
+
export declare function useChannelOverviewLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ChannelOverviewQuery, Types.ChannelOverviewQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.ChannelOverviewQuery, Types.ChannelOverviewQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
4396
|
+
export declare function useChannelOverviewSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ChannelOverviewQuery, Types.ChannelOverviewQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ChannelOverviewQuery, Types.ChannelOverviewQueryVariables>;
|
|
4397
|
+
export declare function useChannelOverviewSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ChannelOverviewQuery, Types.ChannelOverviewQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ChannelOverviewQuery | undefined, Types.ChannelOverviewQueryVariables>;
|
|
4398
|
+
export type ChannelOverviewQueryHookResult = ReturnType<typeof useChannelOverviewQuery>;
|
|
4399
|
+
export type ChannelOverviewLazyQueryHookResult = ReturnType<typeof useChannelOverviewLazyQuery>;
|
|
4400
|
+
export type ChannelOverviewSuspenseQueryHookResult = ReturnType<typeof useChannelOverviewSuspenseQuery>;
|
|
4401
|
+
export type ChannelOverviewQueryResult = Apollo.QueryResult<Types.ChannelOverviewQuery, Types.ChannelOverviewQueryVariables>;
|
|
4314
4402
|
export declare const CreateChannelConnectorDocument: Apollo.DocumentNode;
|
|
4315
4403
|
export type CreateChannelConnectorMutationFn = Apollo.MutationFunction<Types.CreateChannelConnectorMutation, Types.CreateChannelConnectorMutationVariables>;
|
|
4316
4404
|
/**
|
|
@@ -4497,6 +4585,106 @@ export declare function useHandleChannelMessageMutation(baseOptions?: ApolloReac
|
|
|
4497
4585
|
export type HandleChannelMessageMutationHookResult = ReturnType<typeof useHandleChannelMessageMutation>;
|
|
4498
4586
|
export type HandleChannelMessageMutationResult = Apollo.MutationResult<Types.HandleChannelMessageMutation>;
|
|
4499
4587
|
export type HandleChannelMessageMutationOptions = Apollo.BaseMutationOptions<Types.HandleChannelMessageMutation, Types.HandleChannelMessageMutationVariables>;
|
|
4588
|
+
export declare const ChatAssistantsDocument: Apollo.DocumentNode;
|
|
4589
|
+
/**
|
|
4590
|
+
* __useChatAssistantsQuery__
|
|
4591
|
+
*
|
|
4592
|
+
* To run a query within a React component, call `useChatAssistantsQuery` and pass it any options that fit your needs.
|
|
4593
|
+
* When your component renders, `useChatAssistantsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4594
|
+
* you can use to render your UI.
|
|
4595
|
+
*
|
|
4596
|
+
* @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;
|
|
4597
|
+
*
|
|
4598
|
+
* @example
|
|
4599
|
+
* const { data, loading, error } = useChatAssistantsQuery({
|
|
4600
|
+
* variables: {
|
|
4601
|
+
* filters: // value for 'filters'
|
|
4602
|
+
* pagination: // value for 'pagination'
|
|
4603
|
+
* },
|
|
4604
|
+
* });
|
|
4605
|
+
*/
|
|
4606
|
+
export declare function useChatAssistantsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.ChatAssistantsQuery, Types.ChatAssistantsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.ChatAssistantsQuery, Types.ChatAssistantsQueryVariables, "empty" | "complete" | "streaming", Types.ChatAssistantsQueryVariables, undefined>;
|
|
4607
|
+
export declare function useChatAssistantsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ChatAssistantsQuery, Types.ChatAssistantsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.ChatAssistantsQuery, Types.ChatAssistantsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
4608
|
+
export declare function useChatAssistantsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ChatAssistantsQuery, Types.ChatAssistantsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ChatAssistantsQuery, Types.ChatAssistantsQueryVariables>;
|
|
4609
|
+
export declare function useChatAssistantsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ChatAssistantsQuery, Types.ChatAssistantsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ChatAssistantsQuery | undefined, Types.ChatAssistantsQueryVariables>;
|
|
4610
|
+
export type ChatAssistantsQueryHookResult = ReturnType<typeof useChatAssistantsQuery>;
|
|
4611
|
+
export type ChatAssistantsLazyQueryHookResult = ReturnType<typeof useChatAssistantsLazyQuery>;
|
|
4612
|
+
export type ChatAssistantsSuspenseQueryHookResult = ReturnType<typeof useChatAssistantsSuspenseQuery>;
|
|
4613
|
+
export type ChatAssistantsQueryResult = Apollo.QueryResult<Types.ChatAssistantsQuery, Types.ChatAssistantsQueryVariables>;
|
|
4614
|
+
export declare const MyAssistantConversationRetentionDocument: Apollo.DocumentNode;
|
|
4615
|
+
/**
|
|
4616
|
+
* __useMyAssistantConversationRetentionQuery__
|
|
4617
|
+
*
|
|
4618
|
+
* To run a query within a React component, call `useMyAssistantConversationRetentionQuery` and pass it any options that fit your needs.
|
|
4619
|
+
* When your component renders, `useMyAssistantConversationRetentionQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4620
|
+
* you can use to render your UI.
|
|
4621
|
+
*
|
|
4622
|
+
* @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;
|
|
4623
|
+
*
|
|
4624
|
+
* @example
|
|
4625
|
+
* const { data, loading, error } = useMyAssistantConversationRetentionQuery({
|
|
4626
|
+
* variables: {
|
|
4627
|
+
* },
|
|
4628
|
+
* });
|
|
4629
|
+
*/
|
|
4630
|
+
export declare function useMyAssistantConversationRetentionQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.MyAssistantConversationRetentionQuery, Types.MyAssistantConversationRetentionQueryVariables>): ApolloReactHooks.useQuery.Result<Types.MyAssistantConversationRetentionQuery, Types.MyAssistantConversationRetentionQueryVariables, "empty" | "complete" | "streaming", Types.MyAssistantConversationRetentionQueryVariables, undefined>;
|
|
4631
|
+
export declare function useMyAssistantConversationRetentionLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.MyAssistantConversationRetentionQuery, Types.MyAssistantConversationRetentionQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.MyAssistantConversationRetentionQuery, Types.MyAssistantConversationRetentionQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
4632
|
+
export declare function useMyAssistantConversationRetentionSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.MyAssistantConversationRetentionQuery, Types.MyAssistantConversationRetentionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyAssistantConversationRetentionQuery, Types.MyAssistantConversationRetentionQueryVariables>;
|
|
4633
|
+
export declare function useMyAssistantConversationRetentionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.MyAssistantConversationRetentionQuery, Types.MyAssistantConversationRetentionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyAssistantConversationRetentionQuery | undefined, Types.MyAssistantConversationRetentionQueryVariables>;
|
|
4634
|
+
export type MyAssistantConversationRetentionQueryHookResult = ReturnType<typeof useMyAssistantConversationRetentionQuery>;
|
|
4635
|
+
export type MyAssistantConversationRetentionLazyQueryHookResult = ReturnType<typeof useMyAssistantConversationRetentionLazyQuery>;
|
|
4636
|
+
export type MyAssistantConversationRetentionSuspenseQueryHookResult = ReturnType<typeof useMyAssistantConversationRetentionSuspenseQuery>;
|
|
4637
|
+
export type MyAssistantConversationRetentionQueryResult = Apollo.QueryResult<Types.MyAssistantConversationRetentionQuery, Types.MyAssistantConversationRetentionQueryVariables>;
|
|
4638
|
+
export declare const MyAssistantWorkflowConversationsDocument: Apollo.DocumentNode;
|
|
4639
|
+
/**
|
|
4640
|
+
* __useMyAssistantWorkflowConversationsQuery__
|
|
4641
|
+
*
|
|
4642
|
+
* To run a query within a React component, call `useMyAssistantWorkflowConversationsQuery` and pass it any options that fit your needs.
|
|
4643
|
+
* When your component renders, `useMyAssistantWorkflowConversationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4644
|
+
* you can use to render your UI.
|
|
4645
|
+
*
|
|
4646
|
+
* @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;
|
|
4647
|
+
*
|
|
4648
|
+
* @example
|
|
4649
|
+
* const { data, loading, error } = useMyAssistantWorkflowConversationsQuery({
|
|
4650
|
+
* variables: {
|
|
4651
|
+
* agentId: // value for 'agentId'
|
|
4652
|
+
* after: // value for 'after'
|
|
4653
|
+
* },
|
|
4654
|
+
* });
|
|
4655
|
+
*/
|
|
4656
|
+
export declare function useMyAssistantWorkflowConversationsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.MyAssistantWorkflowConversationsQuery, Types.MyAssistantWorkflowConversationsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.MyAssistantWorkflowConversationsQuery, Types.MyAssistantWorkflowConversationsQueryVariables, "empty" | "complete" | "streaming", Types.MyAssistantWorkflowConversationsQueryVariables, undefined>;
|
|
4657
|
+
export declare function useMyAssistantWorkflowConversationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.MyAssistantWorkflowConversationsQuery, Types.MyAssistantWorkflowConversationsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.MyAssistantWorkflowConversationsQuery, Types.MyAssistantWorkflowConversationsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
4658
|
+
export declare function useMyAssistantWorkflowConversationsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.MyAssistantWorkflowConversationsQuery, Types.MyAssistantWorkflowConversationsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyAssistantWorkflowConversationsQuery, Types.MyAssistantWorkflowConversationsQueryVariables>;
|
|
4659
|
+
export declare function useMyAssistantWorkflowConversationsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.MyAssistantWorkflowConversationsQuery, Types.MyAssistantWorkflowConversationsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.MyAssistantWorkflowConversationsQuery | undefined, Types.MyAssistantWorkflowConversationsQueryVariables>;
|
|
4660
|
+
export type MyAssistantWorkflowConversationsQueryHookResult = ReturnType<typeof useMyAssistantWorkflowConversationsQuery>;
|
|
4661
|
+
export type MyAssistantWorkflowConversationsLazyQueryHookResult = ReturnType<typeof useMyAssistantWorkflowConversationsLazyQuery>;
|
|
4662
|
+
export type MyAssistantWorkflowConversationsSuspenseQueryHookResult = ReturnType<typeof useMyAssistantWorkflowConversationsSuspenseQuery>;
|
|
4663
|
+
export type MyAssistantWorkflowConversationsQueryResult = Apollo.QueryResult<Types.MyAssistantWorkflowConversationsQuery, Types.MyAssistantWorkflowConversationsQueryVariables>;
|
|
4664
|
+
export declare const RetireMyAssistantConversationDocument: Apollo.DocumentNode;
|
|
4665
|
+
export type RetireMyAssistantConversationMutationFn = Apollo.MutationFunction<Types.RetireMyAssistantConversationMutation, Types.RetireMyAssistantConversationMutationVariables>;
|
|
4666
|
+
/**
|
|
4667
|
+
* __useRetireMyAssistantConversationMutation__
|
|
4668
|
+
*
|
|
4669
|
+
* To run a mutation, you first call `useRetireMyAssistantConversationMutation` within a React component and pass it any options that fit your needs.
|
|
4670
|
+
* When your component renders, `useRetireMyAssistantConversationMutation` returns a tuple that includes:
|
|
4671
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
4672
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
4673
|
+
*
|
|
4674
|
+
* @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;
|
|
4675
|
+
*
|
|
4676
|
+
* @example
|
|
4677
|
+
* const [retireMyAssistantConversationMutation, { data, loading, error }] = useRetireMyAssistantConversationMutation({
|
|
4678
|
+
* variables: {
|
|
4679
|
+
* productId: // value for 'productId'
|
|
4680
|
+
* clientConversationId: // value for 'clientConversationId'
|
|
4681
|
+
* },
|
|
4682
|
+
* });
|
|
4683
|
+
*/
|
|
4684
|
+
export declare function useRetireMyAssistantConversationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.RetireMyAssistantConversationMutation, Types.RetireMyAssistantConversationMutationVariables>): ApolloReactHooks.useMutation.ResultTuple<Types.RetireMyAssistantConversationMutation, any, Apollo.ApolloCache, undefined>;
|
|
4685
|
+
export type RetireMyAssistantConversationMutationHookResult = ReturnType<typeof useRetireMyAssistantConversationMutation>;
|
|
4686
|
+
export type RetireMyAssistantConversationMutationResult = Apollo.MutationResult<Types.RetireMyAssistantConversationMutation>;
|
|
4687
|
+
export type RetireMyAssistantConversationMutationOptions = Apollo.BaseMutationOptions<Types.RetireMyAssistantConversationMutation, Types.RetireMyAssistantConversationMutationVariables>;
|
|
4500
4688
|
export declare const GetExecutionDocument: Apollo.DocumentNode;
|
|
4501
4689
|
/**
|
|
4502
4690
|
* __useGetExecutionQuery__
|