@botpress/webchat 1.3.3 → 1.3.4

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.
Files changed (34) hide show
  1. package/.turbo/turbo-build.log +23 -0
  2. package/dist/adapters/messaging-to-target.d.ts +15 -15
  3. package/dist/adapters/webchat-to-target.d.ts +3 -3
  4. package/dist/client/PushpinClient/inner-client/index.d.ts +2 -2
  5. package/dist/gen/client/index.d.ts +78 -13
  6. package/dist/gen/client/models.d.ts +210 -0
  7. package/dist/gen/client/operations/addParticipant.d.ts +51 -0
  8. package/dist/gen/client/operations/createConversation.d.ts +39 -0
  9. package/dist/gen/client/operations/createEvent.d.ts +79 -0
  10. package/dist/gen/client/operations/createMessage.d.ts +274 -0
  11. package/dist/gen/client/operations/createUser.d.ts +60 -0
  12. package/dist/gen/client/operations/deleteConversation.d.ts +22 -0
  13. package/dist/gen/client/operations/deleteMessage.d.ts +22 -0
  14. package/dist/gen/client/operations/deleteUser.d.ts +21 -0
  15. package/dist/gen/client/operations/getConversation.d.ts +36 -0
  16. package/dist/gen/client/operations/getEvent.d.ts +58 -0
  17. package/dist/gen/client/operations/getMessage.d.ts +157 -0
  18. package/dist/gen/client/operations/getParticipant.d.ts +48 -0
  19. package/dist/gen/client/operations/getUser.d.ts +46 -0
  20. package/dist/gen/client/operations/listConversationMessages.d.ts +161 -0
  21. package/dist/gen/client/operations/listConversations.d.ts +42 -0
  22. package/dist/gen/client/operations/listParticipants.d.ts +51 -0
  23. package/dist/gen/client/operations/listenConversation.d.ts +22 -0
  24. package/dist/gen/client/operations/removeParticipant.d.ts +23 -0
  25. package/dist/gen/client/operations/updateUser.d.ts +60 -0
  26. package/dist/index.js +32872 -21167
  27. package/dist/index.umd.cjs +278 -95
  28. package/openapi.ts +5 -9
  29. package/package.json +3 -1
  30. package/dist/gen/client/api.d.ts +0 -2039
  31. package/dist/gen/client/base.d.ts +0 -54
  32. package/dist/gen/client/client.d.ts +0 -61
  33. package/dist/gen/client/common.d.ts +0 -65
  34. package/dist/gen/client/configuration.d.ts +0 -83
@@ -1,54 +0,0 @@
1
- /**
2
- * Webchat API
3
- * API for the Webchat Integration
4
- *
5
- * The version of the OpenAPI document: 0.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from './configuration';
13
- import type { AxiosInstance, AxiosRequestConfig } from 'axios';
14
- export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const COLLECTION_FORMATS: {
20
- csv: string;
21
- ssv: string;
22
- tsv: string;
23
- pipes: string;
24
- };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
- export interface RequestArgs {
31
- url: string;
32
- options: AxiosRequestConfig;
33
- }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
- export declare class BaseAPI {
40
- protected basePath: string;
41
- protected axios: AxiosInstance;
42
- protected configuration: Configuration | undefined;
43
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
- }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
- export declare class RequiredError extends Error {
52
- field: string;
53
- constructor(field: string, msg?: string);
54
- }
@@ -1,61 +0,0 @@
1
- import { AxiosInstance } from 'axios';
2
- import { Configuration, DefaultApiAddParticipantRequest, DefaultApiCreateConversationRequest, DefaultApiDeleteConversationRequest, DefaultApiGetConversationRequest, DefaultApiGetParticipantRequest, DefaultApiListConversationMessagesRequest, DefaultApiListConversationsRequest, DefaultApiListParticipantsRequest, DefaultApiListenConversationRequest, DefaultApiRemoveParticipantRequest, DefaultApiCreateMessageRequest, DefaultApiDeleteMessageRequest, DefaultApiGetMessageRequest, DefaultApiCreateUserRequest, DefaultApiDeleteUserRequest, DefaultApiGetUserRequest, DefaultApiUpdateUserRequest, DefaultApiCreateEventRequest, DefaultApiGetEventRequest } from '.';
3
- type SimplifyOptions = {
4
- deep?: boolean;
5
- };
6
- type Flatten<AnyType, Options extends SimplifyOptions = {}> = Options['deep'] extends true ? {
7
- [KeyType in keyof AnyType]: Simplify<AnyType[KeyType], Options>;
8
- } : {
9
- [KeyType in keyof AnyType]: AnyType[KeyType];
10
- };
11
- type Simplify<AnyType, Options extends SimplifyOptions = {}> = Flatten<AnyType> extends AnyType ? Flatten<AnyType, Options> : AnyType;
12
- type Merge_<FirstType, SecondType> = Except<FirstType, Extract<keyof FirstType, keyof SecondType>> & SecondType;
13
- type IsEqual<T, U> = (<G>() => G extends T ? 1 : 2) extends (<G>() => G extends U ? 1 : 2) ? true : false;
14
- type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
15
- type Merge<FirstType, SecondType> = Simplify<Merge_<FirstType, SecondType>>;
16
- type Except<ObjectType, KeysType extends keyof ObjectType> = {
17
- [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
18
- };
19
- export declare class ApiClient {
20
- private _innerClient;
21
- constructor(configuration?: Configuration, basePath?: string, axiosInstance?: AxiosInstance);
22
- addParticipant: ({ id, xUserKey, ...addParticipantBody }: AddParticipantProps) => Promise<import("./api").AddParticipantResponse>;
23
- createConversation: ({ xUserKey, ...createConversationBody }: CreateConversationProps) => Promise<import("./api").CreateConversationResponse>;
24
- deleteConversation: (props: DeleteConversationProps) => Promise<object>;
25
- getConversation: (props: GetConversationProps) => Promise<import("./api").GetConversationResponse>;
26
- getParticipant: (props: GetParticipantProps) => Promise<import("./api").GetParticipantResponse>;
27
- listConversationMessages: (props: ListConversationMessagesProps) => Promise<import("./api").ListConversationMessagesResponse>;
28
- listConversations: (props: ListConversationsProps) => Promise<import("./api").ListConversationsResponse>;
29
- listParticipants: (props: ListParticipantsProps) => Promise<import("./api").ListParticipantsResponse>;
30
- listenConversation: (props: ListenConversationProps) => Promise<object>;
31
- removeParticipant: (props: RemoveParticipantProps) => Promise<object>;
32
- createMessage: ({ xUserKey, ...createMessageBody }: CreateMessageProps) => Promise<import("./api").CreateMessageResponse>;
33
- deleteMessage: (props: DeleteMessageProps) => Promise<object>;
34
- getMessage: (props: GetMessageProps) => Promise<import("./api").GetMessageResponse>;
35
- createUser: (createUserBody: CreateUserProps) => Promise<import("./api").CreateUserResponse>;
36
- deleteUser: (props: DeleteUserProps) => Promise<object>;
37
- getUser: (props: GetUserProps) => Promise<import("./api").GetUserResponse>;
38
- updateUser: ({ xUserKey, ...updateUserBody }: UpdateUserProps) => Promise<import("./api").UpdateUserResponse>;
39
- createEvent: ({ xUserKey, ...createEventBody }: CreateEventProps) => Promise<import("./api").CreateEventResponse>;
40
- getEvent: (props: GetEventProps) => Promise<import("./api").GetEventResponse>;
41
- }
42
- export type AddParticipantProps = Merge<Except<DefaultApiAddParticipantRequest, 'addParticipantBody'>, NonNullable<DefaultApiAddParticipantRequest['addParticipantBody']>>;
43
- export type CreateConversationProps = Merge<Except<DefaultApiCreateConversationRequest, 'createConversationBody'>, NonNullable<DefaultApiCreateConversationRequest['createConversationBody']>>;
44
- export type DeleteConversationProps = Merge<DefaultApiDeleteConversationRequest, {}>;
45
- export type GetConversationProps = Merge<DefaultApiGetConversationRequest, {}>;
46
- export type GetParticipantProps = Merge<DefaultApiGetParticipantRequest, {}>;
47
- export type ListConversationMessagesProps = Merge<DefaultApiListConversationMessagesRequest, {}>;
48
- export type ListConversationsProps = Merge<DefaultApiListConversationsRequest, {}>;
49
- export type ListParticipantsProps = Merge<DefaultApiListParticipantsRequest, {}>;
50
- export type ListenConversationProps = Merge<DefaultApiListenConversationRequest, {}>;
51
- export type RemoveParticipantProps = Merge<DefaultApiRemoveParticipantRequest, {}>;
52
- export type CreateMessageProps = Merge<Except<DefaultApiCreateMessageRequest, 'createMessageBody'>, NonNullable<DefaultApiCreateMessageRequest['createMessageBody']>>;
53
- export type DeleteMessageProps = Merge<DefaultApiDeleteMessageRequest, {}>;
54
- export type GetMessageProps = Merge<DefaultApiGetMessageRequest, {}>;
55
- export type CreateUserProps = Merge<Except<DefaultApiCreateUserRequest, 'createUserBody'>, NonNullable<DefaultApiCreateUserRequest['createUserBody']>>;
56
- export type DeleteUserProps = Merge<DefaultApiDeleteUserRequest, {}>;
57
- export type GetUserProps = Merge<DefaultApiGetUserRequest, {}>;
58
- export type UpdateUserProps = Merge<Except<DefaultApiUpdateUserRequest, 'updateUserBody'>, NonNullable<DefaultApiUpdateUserRequest['updateUserBody']>>;
59
- export type CreateEventProps = Merge<Except<DefaultApiCreateEventRequest, 'createEventBody'>, NonNullable<DefaultApiCreateEventRequest['createEventBody']>>;
60
- export type GetEventProps = Merge<DefaultApiGetEventRequest, {}>;
61
- export {};
@@ -1,65 +0,0 @@
1
- /**
2
- * Webchat API
3
- * API for the Webchat Integration
4
- *
5
- * The version of the OpenAPI document: 0.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from "./configuration";
13
- import type { RequestArgs } from "./base";
14
- import type { AxiosInstance, AxiosResponse } from 'axios';
15
- /**
16
- *
17
- * @export
18
- */
19
- export declare const DUMMY_BASE_URL = "https://example.com";
20
- /**
21
- *
22
- * @throws {RequiredError}
23
- * @export
24
- */
25
- export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
- /**
27
- *
28
- * @export
29
- */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
- /**
32
- *
33
- * @export
34
- */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
- /**
37
- *
38
- * @export
39
- */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
- /**
42
- *
43
- * @export
44
- */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
- /**
47
- *
48
- * @export
49
- */
50
- export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
- /**
52
- *
53
- * @export
54
- */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
- /**
57
- *
58
- * @export
59
- */
60
- export declare const toPathString: (url: URL) => string;
61
- /**
62
- *
63
- * @export
64
- */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -1,83 +0,0 @@
1
- /**
2
- * Webchat API
3
- * API for the Webchat Integration
4
- *
5
- * The version of the OpenAPI document: 0.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export interface ConfigurationParameters {
13
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
- username?: string;
15
- password?: string;
16
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
- basePath?: string;
18
- baseOptions?: any;
19
- formDataCtor?: new () => any;
20
- }
21
- export declare class Configuration {
22
- /**
23
- * parameter for apiKey security
24
- * @param name security name
25
- * @memberof Configuration
26
- */
27
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
- /**
29
- * parameter for basic security
30
- *
31
- * @type {string}
32
- * @memberof Configuration
33
- */
34
- username?: string;
35
- /**
36
- * parameter for basic security
37
- *
38
- * @type {string}
39
- * @memberof Configuration
40
- */
41
- password?: string;
42
- /**
43
- * parameter for oauth2 security
44
- * @param name security name
45
- * @param scopes oauth2 scope
46
- * @memberof Configuration
47
- */
48
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
49
- /**
50
- * override base path
51
- *
52
- * @type {string}
53
- * @memberof Configuration
54
- */
55
- basePath?: string;
56
- /**
57
- * base options for axios calls
58
- *
59
- * @type {any}
60
- * @memberof Configuration
61
- */
62
- baseOptions?: any;
63
- /**
64
- * The FormData constructor that will be used to create multipart form data
65
- * requests. You can inject this here so that execution environments that
66
- * do not support the FormData class can still run the generated client.
67
- *
68
- * @type {new () => FormData}
69
- */
70
- formDataCtor?: new () => any;
71
- constructor(param?: ConfigurationParameters);
72
- /**
73
- * Check if the given MIME is a JSON MIME.
74
- * JSON MIME examples:
75
- * application/json
76
- * application/json; charset=UTF8
77
- * APPLICATION/JSON
78
- * application/vnd.company+json
79
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
80
- * @return True if the given MIME is JSON, false otherwise.
81
- */
82
- isJsonMime(mime: string): boolean;
83
- }