@giosg/types 6.10.0 → 7.0.1

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 (232) hide show
  1. package/CHANGELOG.md +261 -0
  2. package/lib/GiosgTCApi.d.ts +2 -7
  3. package/lib/GiosgTCApi.d.ts.map +1 -1
  4. package/lib/GiosgTCApi.js +0 -5
  5. package/lib/call.d.ts +0 -8
  6. package/lib/call.d.ts.map +1 -1
  7. package/lib/chat.d.ts +0 -2
  8. package/lib/chat.d.ts.map +1 -1
  9. package/lib/cjs/GiosgTCApi.d.ts +118 -0
  10. package/lib/cjs/GiosgTCApi.d.ts.map +1 -0
  11. package/lib/cjs/GiosgTCApi.js +25 -0
  12. package/lib/cjs/actions.d.ts +72 -0
  13. package/lib/cjs/actions.d.ts.map +1 -0
  14. package/lib/cjs/actions.js +63 -0
  15. package/lib/cjs/apps.d.ts +99 -0
  16. package/lib/cjs/apps.d.ts.map +1 -0
  17. package/lib/cjs/apps.js +2 -0
  18. package/lib/cjs/assets.d.ts +144 -0
  19. package/lib/cjs/assets.d.ts.map +1 -0
  20. package/lib/cjs/assets.js +2 -0
  21. package/lib/cjs/brands.d.ts +41 -0
  22. package/lib/cjs/brands.d.ts.map +1 -0
  23. package/lib/cjs/brands.js +2 -0
  24. package/lib/cjs/call.d.ts +41 -0
  25. package/lib/cjs/call.d.ts.map +1 -0
  26. package/lib/cjs/call.js +2 -0
  27. package/lib/cjs/canned_answers.d.ts +26 -0
  28. package/lib/cjs/canned_answers.d.ts.map +1 -0
  29. package/lib/cjs/canned_answers.js +2 -0
  30. package/lib/cjs/chat.d.ts +1071 -0
  31. package/lib/cjs/chat.d.ts.map +1 -0
  32. package/lib/cjs/chat.js +2 -0
  33. package/lib/cjs/common.d.ts +7 -0
  34. package/lib/cjs/common.d.ts.map +1 -0
  35. package/lib/cjs/common.js +628 -0
  36. package/lib/cjs/conditions.d.ts +98 -0
  37. package/lib/cjs/conditions.d.ts.map +1 -0
  38. package/lib/cjs/conditions.js +80 -0
  39. package/lib/cjs/customer.d.ts +519 -0
  40. package/lib/cjs/customer.d.ts.map +1 -0
  41. package/lib/cjs/customer.js +2 -0
  42. package/lib/cjs/customership.d.ts +79 -0
  43. package/lib/cjs/customership.d.ts.map +1 -0
  44. package/lib/cjs/customership.js +2 -0
  45. package/lib/cjs/email.d.ts +47 -0
  46. package/lib/cjs/email.d.ts.map +1 -0
  47. package/lib/cjs/email.js +2 -0
  48. package/lib/cjs/experiments.d.ts +168 -0
  49. package/lib/cjs/experiments.d.ts.map +1 -0
  50. package/lib/cjs/experiments.js +2 -0
  51. package/lib/cjs/goals.d.ts +126 -0
  52. package/lib/cjs/goals.d.ts.map +1 -0
  53. package/lib/cjs/goals.js +2 -0
  54. package/lib/cjs/index.d.ts +36 -0
  55. package/lib/cjs/index.d.ts.map +1 -0
  56. package/lib/cjs/index.js +32 -0
  57. package/lib/cjs/leadforms.d.ts +30 -0
  58. package/lib/cjs/leadforms.d.ts.map +1 -0
  59. package/lib/cjs/leadforms.js +2 -0
  60. package/lib/cjs/linkpreview.d.ts +16 -0
  61. package/lib/cjs/linkpreview.d.ts.map +1 -0
  62. package/lib/cjs/linkpreview.js +2 -0
  63. package/lib/cjs/oath.d.ts +75 -0
  64. package/lib/cjs/oath.d.ts.map +1 -0
  65. package/lib/cjs/oath.js +25 -0
  66. package/lib/cjs/partnerships.d.ts +54 -0
  67. package/lib/cjs/partnerships.d.ts.map +1 -0
  68. package/lib/cjs/partnerships.js +2 -0
  69. package/lib/cjs/permissions.d.ts +26 -0
  70. package/lib/cjs/permissions.d.ts.map +1 -0
  71. package/lib/cjs/permissions.js +2 -0
  72. package/lib/cjs/public.d.ts +418 -0
  73. package/lib/cjs/public.d.ts.map +1 -0
  74. package/lib/cjs/public.js +12 -0
  75. package/lib/cjs/rooms.d.ts +205 -0
  76. package/lib/cjs/rooms.d.ts.map +1 -0
  77. package/lib/cjs/rooms.js +2 -0
  78. package/lib/cjs/routers.d.ts +76 -0
  79. package/lib/cjs/routers.d.ts.map +1 -0
  80. package/lib/cjs/routers.js +2 -0
  81. package/lib/cjs/rules.d.ts +229 -0
  82. package/lib/cjs/rules.d.ts.map +1 -0
  83. package/lib/cjs/rules.js +2 -0
  84. package/lib/cjs/sharing.d.ts +111 -0
  85. package/lib/cjs/sharing.d.ts.map +1 -0
  86. package/lib/cjs/sharing.js +2 -0
  87. package/lib/cjs/shoppingcarts.d.ts +33 -0
  88. package/lib/cjs/shoppingcarts.d.ts.map +1 -0
  89. package/lib/cjs/shoppingcarts.js +2 -0
  90. package/lib/cjs/system.d.ts +21 -0
  91. package/lib/cjs/system.d.ts.map +1 -0
  92. package/lib/cjs/system.js +2 -0
  93. package/lib/cjs/target.d.ts +105 -0
  94. package/lib/cjs/target.d.ts.map +1 -0
  95. package/lib/cjs/target.js +2 -0
  96. package/lib/cjs/teams.d.ts +78 -0
  97. package/lib/cjs/teams.d.ts.map +1 -0
  98. package/lib/cjs/teams.js +2 -0
  99. package/lib/cjs/types.d.ts +226 -0
  100. package/lib/cjs/types.d.ts.map +1 -0
  101. package/lib/cjs/types.js +29 -0
  102. package/lib/cjs/uploads.d.ts +55 -0
  103. package/lib/cjs/uploads.d.ts.map +1 -0
  104. package/lib/cjs/uploads.js +2 -0
  105. package/lib/cjs/userclients.d.ts +79 -0
  106. package/lib/cjs/userclients.d.ts.map +1 -0
  107. package/lib/cjs/userclients.js +2 -0
  108. package/lib/cjs/variables.d.ts +41 -0
  109. package/lib/cjs/variables.d.ts.map +1 -0
  110. package/lib/cjs/variables.js +2 -0
  111. package/lib/cjs/visitor.d.ts +210 -0
  112. package/lib/cjs/visitor.d.ts.map +1 -0
  113. package/lib/cjs/visitor.js +2 -0
  114. package/lib/cjs/webhooks.d.ts +61 -0
  115. package/lib/cjs/webhooks.d.ts.map +1 -0
  116. package/lib/cjs/webhooks.js +2 -0
  117. package/lib/index.d.ts +3 -3
  118. package/lib/index.d.ts.map +1 -1
  119. package/lib/index.js +1 -1
  120. package/lib/mjs/GiosgTCApi.d.ts +118 -0
  121. package/lib/mjs/GiosgTCApi.d.ts.map +1 -0
  122. package/lib/mjs/GiosgTCApi.js +22 -0
  123. package/lib/mjs/actions.d.ts +72 -0
  124. package/lib/mjs/actions.d.ts.map +1 -0
  125. package/lib/mjs/actions.js +60 -0
  126. package/lib/mjs/apps.d.ts +99 -0
  127. package/lib/mjs/apps.d.ts.map +1 -0
  128. package/lib/mjs/apps.js +0 -0
  129. package/lib/mjs/assets.d.ts +144 -0
  130. package/lib/mjs/assets.d.ts.map +1 -0
  131. package/lib/mjs/assets.js +0 -0
  132. package/lib/mjs/brands.d.ts +41 -0
  133. package/lib/mjs/brands.d.ts.map +1 -0
  134. package/lib/mjs/brands.js +0 -0
  135. package/lib/mjs/call.d.ts +41 -0
  136. package/lib/mjs/call.d.ts.map +1 -0
  137. package/lib/mjs/call.js +0 -0
  138. package/lib/mjs/canned_answers.d.ts +26 -0
  139. package/lib/mjs/canned_answers.d.ts.map +1 -0
  140. package/lib/mjs/canned_answers.js +0 -0
  141. package/lib/mjs/chat.d.ts +1071 -0
  142. package/lib/mjs/chat.d.ts.map +1 -0
  143. package/lib/mjs/chat.js +0 -0
  144. package/lib/mjs/common.d.ts +7 -0
  145. package/lib/mjs/common.d.ts.map +1 -0
  146. package/lib/mjs/common.js +625 -0
  147. package/lib/mjs/conditions.d.ts +98 -0
  148. package/lib/mjs/conditions.d.ts.map +1 -0
  149. package/lib/mjs/conditions.js +77 -0
  150. package/lib/mjs/customer.d.ts +519 -0
  151. package/lib/mjs/customer.d.ts.map +1 -0
  152. package/lib/mjs/customer.js +0 -0
  153. package/lib/mjs/customership.d.ts +79 -0
  154. package/lib/mjs/customership.d.ts.map +1 -0
  155. package/lib/mjs/customership.js +0 -0
  156. package/lib/mjs/email.d.ts +47 -0
  157. package/lib/mjs/email.d.ts.map +1 -0
  158. package/lib/mjs/email.js +0 -0
  159. package/lib/mjs/experiments.d.ts +168 -0
  160. package/lib/mjs/experiments.d.ts.map +1 -0
  161. package/lib/mjs/experiments.js +0 -0
  162. package/lib/mjs/goals.d.ts +126 -0
  163. package/lib/mjs/goals.d.ts.map +1 -0
  164. package/lib/mjs/goals.js +0 -0
  165. package/lib/mjs/index.d.ts +36 -0
  166. package/lib/mjs/index.d.ts.map +1 -0
  167. package/lib/mjs/index.js +7 -0
  168. package/lib/mjs/leadforms.d.ts +30 -0
  169. package/lib/mjs/leadforms.d.ts.map +1 -0
  170. package/lib/mjs/leadforms.js +0 -0
  171. package/lib/mjs/linkpreview.d.ts +16 -0
  172. package/lib/mjs/linkpreview.d.ts.map +1 -0
  173. package/lib/mjs/linkpreview.js +0 -0
  174. package/lib/mjs/oath.d.ts +75 -0
  175. package/lib/mjs/oath.d.ts.map +1 -0
  176. package/lib/mjs/oath.js +22 -0
  177. package/lib/mjs/partnerships.d.ts +54 -0
  178. package/lib/mjs/partnerships.d.ts.map +1 -0
  179. package/lib/mjs/partnerships.js +0 -0
  180. package/lib/mjs/permissions.d.ts +26 -0
  181. package/lib/mjs/permissions.d.ts.map +1 -0
  182. package/lib/mjs/permissions.js +0 -0
  183. package/lib/mjs/public.d.ts +418 -0
  184. package/lib/mjs/public.d.ts.map +1 -0
  185. package/lib/mjs/public.js +9 -0
  186. package/lib/mjs/rooms.d.ts +205 -0
  187. package/lib/mjs/rooms.d.ts.map +1 -0
  188. package/lib/mjs/rooms.js +0 -0
  189. package/lib/mjs/routers.d.ts +76 -0
  190. package/lib/mjs/routers.d.ts.map +1 -0
  191. package/lib/mjs/routers.js +0 -0
  192. package/lib/mjs/rules.d.ts +229 -0
  193. package/lib/mjs/rules.d.ts.map +1 -0
  194. package/lib/mjs/rules.js +0 -0
  195. package/lib/mjs/sharing.d.ts +111 -0
  196. package/lib/mjs/sharing.d.ts.map +1 -0
  197. package/lib/mjs/sharing.js +0 -0
  198. package/lib/mjs/shoppingcarts.d.ts +33 -0
  199. package/lib/mjs/shoppingcarts.d.ts.map +1 -0
  200. package/lib/mjs/shoppingcarts.js +0 -0
  201. package/lib/mjs/system.d.ts +21 -0
  202. package/lib/mjs/system.d.ts.map +1 -0
  203. package/lib/mjs/system.js +0 -0
  204. package/lib/mjs/target.d.ts +105 -0
  205. package/lib/mjs/target.d.ts.map +1 -0
  206. package/lib/mjs/target.js +0 -0
  207. package/lib/mjs/teams.d.ts +78 -0
  208. package/lib/mjs/teams.d.ts.map +1 -0
  209. package/lib/mjs/teams.js +0 -0
  210. package/lib/mjs/types.d.ts +226 -0
  211. package/lib/mjs/types.d.ts.map +1 -0
  212. package/lib/mjs/types.js +26 -0
  213. package/lib/mjs/uploads.d.ts +55 -0
  214. package/lib/mjs/uploads.d.ts.map +1 -0
  215. package/lib/mjs/uploads.js +0 -0
  216. package/lib/mjs/userclients.d.ts +79 -0
  217. package/lib/mjs/userclients.d.ts.map +1 -0
  218. package/lib/mjs/userclients.js +0 -0
  219. package/lib/mjs/variables.d.ts +41 -0
  220. package/lib/mjs/variables.d.ts.map +1 -0
  221. package/lib/mjs/variables.js +0 -0
  222. package/lib/mjs/visitor.d.ts +210 -0
  223. package/lib/mjs/visitor.d.ts.map +1 -0
  224. package/lib/mjs/visitor.js +0 -0
  225. package/lib/mjs/webhooks.d.ts +61 -0
  226. package/lib/mjs/webhooks.d.ts.map +1 -0
  227. package/lib/mjs/webhooks.js +0 -0
  228. package/lib/public.d.ts +0 -10
  229. package/lib/public.d.ts.map +1 -1
  230. package/lib/rooms.d.ts +0 -6
  231. package/lib/rooms.d.ts.map +1 -1
  232. package/package.json +12 -3
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OAUTH_ERROR_TYPES = exports.OAUTH_PROMPT_OPTIONS = exports.OAUTH_RESPONSE_TYPES = exports.OAUTH_SCOPE_OPTIONS = exports.OAUTH_BASE_URL = void 0;
4
+ exports.OAUTH_BASE_URL = "https://service.giosg.com/identity/authorize";
5
+ exports.OAUTH_SCOPE_OPTIONS = [
6
+ "openid",
7
+ "openid profile",
8
+ "openid email",
9
+ "openid profile email",
10
+ ];
11
+ exports.OAUTH_RESPONSE_TYPES = [
12
+ /**
13
+ * @deprecated
14
+ */
15
+ "id_token",
16
+ "id_token token",
17
+ ];
18
+ exports.OAUTH_PROMPT_OPTIONS = ["none", "login"];
19
+ exports.OAUTH_ERROR_TYPES = [
20
+ "invalid_request",
21
+ "invalid_client",
22
+ "invalid_scope",
23
+ "interaction_required",
24
+ "login_required",
25
+ ];
@@ -0,0 +1,54 @@
1
+ import { NestedAvatar } from "./customer";
2
+ import { NestedOrganization } from "./customer";
3
+ import { OrganizationUid, UserUid, AvatarUid } from "./types";
4
+ export interface PartnerOrganization {
5
+ /** Unique identifier of the partner organization */
6
+ id: OrganizationUid;
7
+ /** Name of the partner organization */
8
+ name: string;
9
+ /** Date when the partner organization was created */
10
+ created_at: string;
11
+ /** Defines whether the partner organization is currently present */
12
+ is_present: boolean;
13
+ /** Defines whether the partner organization is currently online */
14
+ is_online: boolean;
15
+ }
16
+ export interface PartnerOrganizationUser {
17
+ /** Unique identifier of the user */
18
+ id: UserUid;
19
+ /** Full name of the user */
20
+ full_name: string;
21
+ /** Email address of the user */
22
+ email: string;
23
+ /** Number of chats the user has, based on the most recent information about the user */
24
+ current_chat_count: number;
25
+ /** Unique identifier of the users avatar */
26
+ avatar_id: AvatarUid | null;
27
+ /** Avatar of the user */
28
+ avatar: NestedAvatar | null;
29
+ /** Date when the user was created */
30
+ created_at: string;
31
+ /** Defines whether the user is currently present, based on the most recent information about the user*/
32
+ is_present: boolean;
33
+ /** Defines whether the user is currently online */
34
+ is_online: boolean;
35
+ }
36
+ export interface Partnership {
37
+ /** Partner organization */
38
+ partner_organization: NestedOrganization;
39
+ /** Unique identifier of the partner organization */
40
+ partner_organization_id: OrganizationUid;
41
+ /** Unique identifier of the organization */
42
+ organization_id: OrganizationUid;
43
+ /** Organization that owns the partnership */
44
+ organization: NestedOrganization;
45
+ /** Name that is shown to your organization members for this partner. May be null, in which case the original name is shown */
46
+ display_name: string | null;
47
+ /** Date when the partnership was created */
48
+ created_at: string;
49
+ }
50
+ export interface PartnershipPayload {
51
+ /** Unique identifier of the partner organization */
52
+ partner_organization_id: OrganizationUid;
53
+ }
54
+ //# sourceMappingURL=partnerships.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partnerships.d.ts","sourceRoot":"","sources":["../../src/partnerships.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,WAAW,mBAAmB;IAClC,oDAAoD;IACpD,EAAE,EAAE,eAAe,CAAC;IAEpB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IAEb,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IAEnB,oEAAoE;IACpE,UAAU,EAAE,OAAO,CAAC;IAEpB,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,oCAAoC;IACpC,EAAE,EAAE,OAAO,CAAC;IAEZ,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAC;IAElB,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IAEd,wFAAwF;IACxF,kBAAkB,EAAE,MAAM,CAAC;IAE3B,4CAA4C;IAC5C,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAE5B,yBAAyB;IACzB,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IAE5B,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IAEnB,wGAAwG;IACxG,UAAU,EAAE,OAAO,CAAC;IAEpB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,2BAA2B;IAC3B,oBAAoB,EAAE,kBAAkB,CAAC;IAEzC,oDAAoD;IACpD,uBAAuB,EAAE,eAAe,CAAC;IAEzC,4CAA4C;IAC5C,eAAe,EAAE,eAAe,CAAC;IAEjC,6CAA6C;IAC7C,YAAY,EAAE,kBAAkB,CAAC;IAEjC,8HAA8H;IAC9H,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,oDAAoD;IACpD,uBAAuB,EAAE,eAAe,CAAC;CAC1C"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ import { NestedOrganization } from "./customer";
2
+ import { NestedUser } from "./customer";
3
+ import { OrganizationUid, UserUid, UserPermissionScope } from "./types";
4
+ export interface UserPermission {
5
+ /** Organization to which user belongs to */
6
+ organization: NestedOrganization;
7
+ /** Unique identifier of the organization to which user belongs to */
8
+ organization_id: OrganizationUid;
9
+ /** User to whom the permission was given */
10
+ user: NestedUser;
11
+ /** Unique identifier of the user to whom the permission was given */
12
+ user_id: UserUid;
13
+ /** Defines resource that is accessible by the user */
14
+ scope: UserPermissionScope;
15
+ /** Date when the user permission was created */
16
+ created_at: string;
17
+ /** Unique identifier of the user which created the user permission */
18
+ created_by_user_id: UserUid;
19
+ /** User which created the user permission */
20
+ created_by_user: NestedUser;
21
+ }
22
+ export interface UserPermissionPayload {
23
+ /** Defines resource that is accessible by the user */
24
+ scope: UserPermissionScope;
25
+ }
26
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,YAAY,EAAE,kBAAkB,CAAC;IAEjC,qEAAqE;IACrE,eAAe,EAAE,eAAe,CAAC;IAEjC,4CAA4C;IAC5C,IAAI,EAAE,UAAU,CAAC;IAEjB,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;IAEjB,sDAAsD;IACtD,KAAK,EAAE,mBAAmB,CAAC;IAE3B,gDAAgD;IAChD,UAAU,EAAE,MAAM,CAAC;IAEnB,sEAAsE;IACtE,kBAAkB,EAAE,OAAO,CAAC;IAE5B,6CAA6C;IAC7C,eAAe,EAAE,UAAU,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,KAAK,EAAE,mBAAmB,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,418 @@
1
+ import { NestedAvatar } from "./customer";
2
+ import { NestedChatMessageAttachmentAction } from "./chat";
3
+ import { NestedChatMessageAttachment } from "./chat";
4
+ import { NestedChatMessageResponseAttachment } from "./chat";
5
+ import { Brand } from "./brands";
6
+ import { OrganizationUid, RoomUid, VisitorUid, UserUid, UserLegacyId, ChatLegacyId, ChatMessageUid, ChatUid, RuleUid, VisitorLegacyId, RuleLegacyId, RoomLegacyId, ChatMessageAttachmentUid, ChatMessageAttachmentActionUid, ChatSessionUid, VisitorSessionCid, VisitorGid, VisitorSessionGid, VisitorSecretId, ChatMessageType, VisitorCid, RoomLegacyToken } from "./types";
7
+ import { LanguageCode } from "./common";
8
+ export declare const AutosuggestPermissionOptions: {
9
+ /** Not allowed to autosuggest because of capacity being reached or some other reason */
10
+ readonly NOT_AVAILABLE: 0;
11
+ /** User has disabled autosuggest */
12
+ readonly DISABLED: 1;
13
+ /** Autosuggest is allowed */
14
+ readonly ENABLED: 2;
15
+ };
16
+ export declare type AutoSuggestPermissionOption = typeof AutosuggestPermissionOptions[keyof typeof AutosuggestPermissionOptions];
17
+ export declare type AutosuggestPermissionOptionString = keyof typeof AutosuggestPermissionOptions;
18
+ export declare const AUTOSUGGEST_PERMISSION_OPTIONS: ("NOT_AVAILABLE" | "DISABLED" | "ENABLED")[];
19
+ export interface PublicAutosuggestPermission {
20
+ /** TODO: add documentation */
21
+ organization_id: OrganizationUid;
22
+ /** TODO: add documentation */
23
+ room_id: RoomUid;
24
+ /** TODO: add documentation */
25
+ visitor_id: VisitorUid;
26
+ /** TODO: add documentation */
27
+ is_autosuggest_capacity_check_enabled: boolean;
28
+ /** TODO: add documentation */
29
+ autosuggesting_user_id: UserUid;
30
+ /** TODO: add documentation */
31
+ autosuggesting_user: PublicUser;
32
+ /** TODO: add documentation */
33
+ permission: AutoSuggestPermissionOption;
34
+ }
35
+ export interface PublicAutosuggestPermissionPayload {
36
+ /** TODO: add documentation */
37
+ is_autosuggest_capacity_check_enabled: boolean;
38
+ }
39
+ export interface PublicAutosuggest {
40
+ /** TODO: add documentation */
41
+ organization_id: OrganizationUid;
42
+ /** TODO: add documentation */
43
+ room_id: RoomUid;
44
+ /** Unique identifier of the visitor to whom the autosuggest message has been sent */
45
+ visitor_id: VisitorUid;
46
+ /** Unique identifier of the user from whom the autosuggest message has been sent */
47
+ autosuggested_by_user_id: UserUid;
48
+ /** User from whom the autosuggest message has been sent */
49
+ autosuggested_by_user: PublicUser;
50
+ /** Text of autosuggest message */
51
+ autosuggest_message: string;
52
+ /** TODO: add documentation */
53
+ autosuggest_url: string;
54
+ /** TODO: add documentation */
55
+ autosuggest_url_title: string;
56
+ /** Legacy unique identifier of the chat to where the autosuggest message has been sent */
57
+ legacy_chat_id: ChatLegacyId;
58
+ }
59
+ export interface PublicAutosuggestPayload {
60
+ /** Unique identifier of the user from whom the autosuggest message has been sent */
61
+ autosuggested_by_user_id: UserUid;
62
+ /** Text of autosuggest message */
63
+ autosuggest_message?: string;
64
+ /** TODO: add documentation */
65
+ autosuggest_url?: string;
66
+ /** TODO: add documentation */
67
+ autosuggest_url_title?: string;
68
+ }
69
+ interface PublicChatMessageCommon {
70
+ /** Unique identifier of the message */
71
+ id: ChatMessageUid;
72
+ /** Defines the type of the message. "msg" by default */
73
+ type: ChatMessageType;
74
+ /** Unique identifier of the chat */
75
+ chat_id: ChatUid;
76
+ /** Unique identifier of the room in which the chat occurred */
77
+ room_id: RoomUid;
78
+ /** Date when the message was sent */
79
+ created_at: string;
80
+ /** Display name of the sender as the visitor would see it */
81
+ sender_public_name: string;
82
+ /** Avatar image of the sender */
83
+ sender_avatar: NestedAvatar | null;
84
+ /**
85
+ * Content text of the message. The maximum length is 2000 characters.
86
+ * This will always be the decrypted if the decryption key is still being stored at the server
87
+ */
88
+ message: string | null;
89
+ /**
90
+ * Whether or not the message is stored encrypted. When true, the encrypted_message attribute contains
91
+ * the encrypted ciphertext of the message
92
+ */
93
+ is_encrypted: boolean;
94
+ /**
95
+ * List of the chat message attachments for the chat message.
96
+ * No more than one if "attachment_template" is set to "interaction"
97
+ */
98
+ attachments: NestedChatMessageAttachment[] | null;
99
+ /** Type of the chat message attachment template */
100
+ attachment_template: "generic" | "interaction" | "external" | null;
101
+ /** Unique identifier of the message this message was a response to */
102
+ response_to_message_id: ChatMessageUid | null;
103
+ /** Unique identifier of the chosen attachment this was a response to */
104
+ response_to_attachment_id: ChatMessageAttachmentUid | null;
105
+ /** Chosen attachment this was a response to */
106
+ response_to_attachment: NestedChatMessageResponseAttachment | null;
107
+ /** Unique identifier of the chosen attachment action this was a response to */
108
+ response_to_action_id: ChatMessageAttachmentActionUid | null;
109
+ /** Chosen attachment action this was a response to */
110
+ response_to_action: NestedChatMessageAttachmentAction | null;
111
+ /** Response text of the attachment response. This field is required for interaction attachment response */
112
+ response_text: string | null;
113
+ /**
114
+ * Chosen attachment value of the response. If the chosen attachment was an action,
115
+ * then this is the value of the action. Otherwise this may be the attachment’s "title_link_url",
116
+ * "image_url", "image_link_url" or a link provided in text field
117
+ */
118
+ response_value: string | null;
119
+ /**
120
+ * @deprecated
121
+ */
122
+ /** Legacy ID of the sender. Deprecated use "sender_id" instead */
123
+ legacy_sender_id: UserLegacyId | VisitorLegacyId | RuleLegacyId;
124
+ /**
125
+ * @deprecated
126
+ */
127
+ /** Legacy ID of the chat’s room. Deprecated use "room_id" instead */
128
+ legacy_room_id: RoomLegacyId;
129
+ /**
130
+ * @deprecated
131
+ */
132
+ /** Legacy ID of the chat. Deprecated use "chat_id" instead */
133
+ legacy_chat_id: ChatLegacyId;
134
+ }
135
+ interface PublicChatMessageUser extends PublicChatMessageCommon {
136
+ /** Defines the type of the sender. "user" by default */
137
+ sender_type: "user";
138
+ /** Unique identifier of the sender. Could be user, visitor or rule */
139
+ sender_id: UserUid;
140
+ }
141
+ interface PublicChatMessageVisitor extends PublicChatMessageCommon {
142
+ /** Defines the type of the sender. "user" by default */
143
+ sender_type: "visitor";
144
+ /** Unique identifier of the sender. Could be user, visitor or rule */
145
+ sender_id: VisitorCid;
146
+ }
147
+ interface PublicChatMessageRule extends PublicChatMessageCommon {
148
+ /** Defines the type of the sender. "user" by default */
149
+ sender_type: "rule";
150
+ /** Unique identifier of the sender. Could be user, visitor or rule */
151
+ sender_id: RuleUid;
152
+ }
153
+ export declare type PublicChatMessage = PublicChatMessageUser | PublicChatMessageVisitor | PublicChatMessageRule;
154
+ interface PublicChatMessagePayloadCommon {
155
+ /** Defines the type of the message. "msg" by default */
156
+ type: ChatMessageType;
157
+ /** Display name of the sender as the visitor would see it */
158
+ sender_public_name?: string;
159
+ /**
160
+ * Content text of the message. The maximum length is 2000 characters.
161
+ * This will always be the decrypted if the decryption key is still being stored at the server
162
+ */
163
+ message?: string | null;
164
+ /** Unique identifier of the message this message was a response to */
165
+ response_to_message_id?: ChatMessageUid | null;
166
+ /** Unique identifier of the chosen attachment this was a response to */
167
+ response_to_attachment_id?: ChatMessageAttachmentUid | null;
168
+ /** Unique identifier of the chosen attachment action this was a response to */
169
+ response_to_action_id?: ChatMessageAttachmentActionUid | null;
170
+ /** Response text of the attachment response. This field is required for interaction attachment response */
171
+ response_text?: string | null;
172
+ /**
173
+ * Chosen attachment value of the response. If the chosen attachment was an action,
174
+ * then this is the value of the action. Otherwise this may be the attachment’s "title_link_url",
175
+ * "image_url", "image_link_url" or a link provided in text field
176
+ */
177
+ response_value?: string | null;
178
+ }
179
+ interface PublicChatMessagePayloadUser extends PublicChatMessagePayloadCommon {
180
+ /** Defines the type of the sender. "user" by default */
181
+ sender_type?: "user";
182
+ /** Unique identifier of the sender. Could be user, visitor or rule */
183
+ sender_id?: UserUid;
184
+ }
185
+ interface PublicChatMessagePayloadVisitor extends PublicChatMessagePayloadCommon {
186
+ /** Defines the type of the sender. "user" by default */
187
+ sender_type?: "visitor";
188
+ /** Unique identifier of the sender. Could be user, visitor or rule */
189
+ sender_id?: VisitorCid;
190
+ }
191
+ interface PublicChatMessagePayloadRule extends PublicChatMessagePayloadCommon {
192
+ /** Defines the type of the sender. "user" by default */
193
+ sender_type?: "rule";
194
+ /** Unique identifier of the sender. Could be user, visitor or rule */
195
+ sender_id?: RuleUid;
196
+ }
197
+ export declare type PublicChatMessagePayload = PublicChatMessagePayloadUser | PublicChatMessagePayloadVisitor | PublicChatMessagePayloadRule;
198
+ export interface PublicChat {
199
+ /** Unique identifier of the chat */
200
+ id: ChatUid;
201
+ /**
202
+ * Defines the chat type. Chats with type visitor are chat sessions that has a visitor membership.
203
+ * Chats with type external are chat sessions that are from external source (e.g. some integration).
204
+ * These chat’s do not close automatically
205
+ */
206
+ chat_type: "visitor" | "external";
207
+ /** Date when the chat was created */
208
+ created_at: string;
209
+ /** Date when the chat was changed for the last time */
210
+ updated_at: string;
211
+ /** Date when the chat conversation ended */
212
+ ended_at: string | null;
213
+ /** Date when the chat became waiting */
214
+ waiting_started_at: string;
215
+ /** Unique identifier of the room in which the chat occurred */
216
+ room_id: RoomUid;
217
+ /** Unique identifier of the organization which owns the room in which the chat occurred */
218
+ room_organization_id: OrganizationUid;
219
+ /** Number of messages in the chat at the moment */
220
+ message_count: number;
221
+ /** Number of messages sent by operators in the chat */
222
+ user_message_count: number;
223
+ /** Number of messages sent by visitors in the chat */
224
+ visitor_message_count: number;
225
+ /** Number of people (visitors and users) currently participating and present at the chat */
226
+ present_participant_count: number;
227
+ /** Number of users currently participating and present at the chat */
228
+ present_user_participant_count: number;
229
+ /** Number of visitors currently participating and present at the chat */
230
+ present_visitor_participant_count: number;
231
+ /** Number of people (visitors and users) attended or sent messages to the chat */
232
+ member_count: number;
233
+ /** Number of users sent at least one message to the chat */
234
+ user_member_count: number;
235
+ /** Number of visitors attended the chat */
236
+ visitor_member_count: number;
237
+ /** Defines whether the chat started with an automatic autosuggestion message */
238
+ is_autosuggested: boolean;
239
+ /** Defines whether the response is required by the chat. It is set to true each time a visitor sends a message */
240
+ is_waiting: boolean;
241
+ /** Defines whether the chat has ended. Once ended the chat is locked and messages and members can't be altered */
242
+ is_ended: boolean;
243
+ /** Defines whether the messages of the chat are stored encrypted */
244
+ is_encrypted: boolean;
245
+ /**
246
+ * @deprecated
247
+ */
248
+ /** Legacy ID of the chat’s room. Deprecated use "room_id" instead */
249
+ legacy_room_id: RoomLegacyId;
250
+ /** Number of seconds the visitor had to wait for an answer to the first sent message */
251
+ visitor_wait_time: number | null;
252
+ /** List of users participating in the chat */
253
+ user_member_ids: UserUid[];
254
+ /**
255
+ * @deprecated
256
+ */
257
+ /** Legacy ID of the chat. Deprecated use "id" instead */
258
+ legacy_id: ChatLegacyId;
259
+ }
260
+ export interface PublicChatPayload {
261
+ /** Defines whether the chat has ended. Once ended the chat is locked and messages and members can't be altered */
262
+ is_ended?: boolean;
263
+ /**
264
+ * Defines the chat type. Chats with type visitor are chat sessions that has a visitor membership.
265
+ * Chats with type external are chat sessions that are from external source (e.g. some integration).
266
+ * These chat’s do not close automatically
267
+ */
268
+ chat_type?: "visitor" | "external";
269
+ /** List of users participating in the chat */
270
+ user_member_ids?: UserUid[];
271
+ }
272
+ export interface PublicCustomVisitorId {
273
+ /** TODO: add documentation */
274
+ organization_id: OrganizationUid;
275
+ /** TODO: add documentation */
276
+ custom_visitor_identity: string;
277
+ /** Unique identifier of the visitor */
278
+ visitor_id: VisitorUid;
279
+ /** TODO: add documentation */
280
+ visitor_session_id: VisitorSessionCid;
281
+ /** TODO: add documentation */
282
+ visitor_global_id: VisitorGid;
283
+ /** TODO: add documentation */
284
+ visitor_global_session_id: VisitorSessionGid;
285
+ }
286
+ export interface PublicCustomVisitorIdPayload {
287
+ /** TODO: add documentation */
288
+ organization_id: OrganizationUid;
289
+ /** TODO: add documentation */
290
+ custom_visitor_identity: string;
291
+ /** Unique identifier of the visitor */
292
+ visitor_id: VisitorUid;
293
+ /** TODO: add documentation */
294
+ visitor_session_id: VisitorSessionCid;
295
+ /** TODO: add documentation */
296
+ visitor_global_id: VisitorGid;
297
+ /** TODO: add documentation */
298
+ visitor_global_session_id: VisitorSessionGid;
299
+ }
300
+ /**
301
+ * @deprecated
302
+ */
303
+ export interface PublicLogin {
304
+ /** TODO: add documentation */
305
+ visitor_secret_id: VisitorSecretId | null;
306
+ /** TODO: add documentation */
307
+ visitor_global_id: VisitorGid | null;
308
+ }
309
+ export interface PublicLoginPayload {
310
+ /** TODO: add documentation */
311
+ visitor_secret_id?: VisitorSecretId | null;
312
+ /** TODO: add documentation */
313
+ visitor_global_id?: VisitorGid | null;
314
+ }
315
+ export interface PublicRoom {
316
+ /** Unique identifier of the room */
317
+ id: RoomUid;
318
+ /** Display name of the room. It may be equal to the name attribute, unless the room is shared */
319
+ display_name: string;
320
+ /** Title of the chat dialog */
321
+ chat_dialog_title: string | null;
322
+ /** Language of the room as a RFC 3066 code. Defaults to en */
323
+ language_code: LanguageCode;
324
+ /**
325
+ * Defines whether the room is currently online, i.e. there is at least one online user and the organization
326
+ * is allowed to be online at the room
327
+ */
328
+ is_online: boolean;
329
+ /** Legacy signed unique identifier of the room. Deprecated, use an id attribute instead */
330
+ legacy_id: RoomLegacyToken;
331
+ /** The dialog and button brand */
332
+ brand: Brand;
333
+ /** How much usually visitors waits for initial answer, in seconds. Null if unknown */
334
+ estimated_waiting_time: number | null;
335
+ /** The brand for the dialog */
336
+ dialog_brand_id: string | null;
337
+ }
338
+ export interface GiosgBrand<T> {
339
+ id: string;
340
+ data: T;
341
+ organization_id: string;
342
+ created_at: string;
343
+ updated_at: string;
344
+ updated_by: string;
345
+ }
346
+ export interface BaseBrandParameter<T> {
347
+ section: string;
348
+ name: string;
349
+ field: keyof T;
350
+ type: "image" | "color" | "enum";
351
+ advanced: boolean;
352
+ }
353
+ export interface ColorBrandParameter<T> extends BaseBrandParameter<T> {
354
+ type: "color";
355
+ }
356
+ export interface ImageBrandParameter<T> extends BaseBrandParameter<T> {
357
+ type: "image";
358
+ }
359
+ export interface EnumBrandParameter<T> extends BaseBrandParameter<T> {
360
+ type: "enum";
361
+ options: Array<{
362
+ label: string;
363
+ value: string;
364
+ }>;
365
+ }
366
+ export declare type BrandParameter<T> = ColorBrandParameter<T> | ImageBrandParameter<T> | EnumBrandParameter<T>;
367
+ export interface PublicRoomVisitorCreatePayload {
368
+ /** Unique identifier of the visitor */
369
+ id: VisitorCid;
370
+ /** The number of seconds the system should
371
+ * keep this visitor present. Only the latest
372
+ * provided value applies for the visitor. */
373
+ presence_expires_in?: number;
374
+ }
375
+ export interface PublicRoomVisitor {
376
+ /** Unique identifier for the visitor.
377
+ * This is the same for the same visitor regardless
378
+ * of the room from which the visitor was requested. */
379
+ id: VisitorUid;
380
+ /** ID of the room from which this room visitor resource was requested */
381
+ room_id: RoomUid;
382
+ /** The number of seconds the system should keep this visitor present. */
383
+ presence_expires_in: number;
384
+ }
385
+ export interface PublicRoomVisitorUpdate {
386
+ /** Unique identifier of the visitor */
387
+ id: VisitorUid;
388
+ /** TODO: add documentation */
389
+ room_id: RoomUid;
390
+ /** TODO: add documentation */
391
+ presence_expires_in: number;
392
+ }
393
+ export interface PublicRoomVisitorUpdatePayload {
394
+ /** TODO: add documentation */
395
+ presence_expires_in: number;
396
+ }
397
+ export interface PublicUser {
398
+ /** Unique identifier of the user */
399
+ id: UserUid;
400
+ /** TODO: alias? or alias | full name? */
401
+ public_name: string;
402
+ /** Avatar of the user */
403
+ avatar: NestedAvatar;
404
+ /** Old unique identifier of the user. Deprecated, use id whenever possible instead */
405
+ legacy_id: UserLegacyId;
406
+ }
407
+ export interface PublicVisitorChatTag {
408
+ /** Date when the chat was tagged with this tag */
409
+ created_at: string;
410
+ /** Sha1 hash of the tag. This is the only information that the visitor and goals generated have about the tag */
411
+ hashed_name: string;
412
+ /** Unique identifier of the chat session ( TODO: more?) */
413
+ chat_session_id: ChatSessionUid;
414
+ /** Unique identifier of the room to which this tag belongs to */
415
+ room_id: RoomUid;
416
+ }
417
+ export {};
418
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,iCAAiC,EAAE,MAAM,QAAQ,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,mCAAmC,EAAE,MAAM,QAAQ,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EACL,eAAe,EACf,OAAO,EACP,UAAU,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,OAAO,EACP,OAAO,EACP,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,8BAA8B,EAC9B,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,UAAU,EACV,eAAe,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,4BAA4B;IACvC,wFAAwF;;IAGxF,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MAAM,WAAW,UAAU;IACzB,oCAAoC;IACpC,EAAE,EAAE,OAAO,CAAC;IAEZ,yCAAyC;IACzC,WAAW,EAAE,MAAM,CAAC;IAEpB,yBAAyB;IACzB,MAAM,EAAE,YAAY,CAAC;IAErB,sFAAsF;IACtF,SAAS,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IAEnB,iHAAiH;IACjH,WAAW,EAAE,MAAM,CAAC;IAEpB,2DAA2D;IAC3D,eAAe,EAAE,cAAc,CAAC;IAEhC,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AUTOSUGGEST_PERMISSION_OPTIONS = exports.AutosuggestPermissionOptions = void 0;
4
+ exports.AutosuggestPermissionOptions = {
5
+ /** Not allowed to autosuggest because of capacity being reached or some other reason */
6
+ NOT_AVAILABLE: 0,
7
+ /** User has disabled autosuggest */
8
+ DISABLED: 1,
9
+ /** Autosuggest is allowed */
10
+ ENABLED: 2,
11
+ };
12
+ exports.AUTOSUGGEST_PERMISSION_OPTIONS = Object.keys(exports.AutosuggestPermissionOptions);