@inploi/plugin-chatbot 4.4.0 → 5.1.0

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/chatbot.d.ts CHANGED
@@ -54,8 +54,9 @@ export type OpenChatbotParams = {
54
54
  lng?: number;
55
55
  };
56
56
  };
57
- export declare const chatbotPlugin: ({ _internal_domManager: dom, theme, terms, feedback, }: InternalChatbotPluginParams) => ({ apiClient, logger, analytics }: {
57
+ export declare const chatbotPlugin: ({ _internal_domManager: dom, theme, terms, feedback, }: InternalChatbotPluginParams) => ({ apiClient, rpcClient, logger, analytics }: {
58
58
  apiClient: import("@inploi/sdk").ApiClient;
59
+ rpcClient: import("@inploi/sdk").InploiRpcClient;
59
60
  logger: Logger;
60
61
  analytics: import("@inploi/sdk").AnalyticsService;
61
62
  }) => {
@@ -228,7 +228,7 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
228
228
  nextId?: string | undefined;
229
229
  };
230
230
  export declare const getFlowSubmissionsPayload: (submissions: KeyToSubmissionMap) => Record<string, unknown>;
231
- export declare const isSubmissionOfType: <T extends "string" | "number" | "boolean" | "enum" | "phone" | "address" | "file" | "integration">(type: T) => (submission?: FlowSubmission) => submission is Extract<import("./chatbot.state").FlowSubmissionString, {
231
+ export declare const isSubmissionOfType: <T extends "string" | "number" | "boolean" | "phone" | "enum" | "address" | "file" | "integration">(type: T) => (submission?: FlowSubmission) => submission is Extract<import("./chatbot.state").FlowSubmissionString, {
232
232
  type: T;
233
233
  }> | Extract<import("./chatbot.state").FlowSubmissionBoolean, {
234
234
  type: T;