@opencx/widget-core 5.0.0-beta.1 → 5.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/index.cjs +9 -9
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +1608 -901
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/api/api-caller.d.ts +102 -3
  6. package/dist/src/api/api-caller.d.ts.map +1 -1
  7. package/dist/src/api/elicitation.d.ts +60 -0
  8. package/dist/src/api/elicitation.d.ts.map +1 -0
  9. package/dist/src/api/schema.d.ts +596 -41
  10. package/dist/src/api/schema.d.ts.map +1 -1
  11. package/dist/src/context/active-session-polling.ctx.d.ts +11 -1
  12. package/dist/src/context/active-session-polling.ctx.d.ts.map +1 -1
  13. package/dist/src/context/message.ctx.d.ts +25 -6
  14. package/dist/src/context/message.ctx.d.ts.map +1 -1
  15. package/dist/src/context/resolve-client-presentation.d.ts +5 -0
  16. package/dist/src/context/resolve-client-presentation.d.ts.map +1 -0
  17. package/dist/src/context/router.ctx.d.ts +8 -10
  18. package/dist/src/context/router.ctx.d.ts.map +1 -1
  19. package/dist/src/context/session.ctx.d.ts +18 -1
  20. package/dist/src/context/session.ctx.d.ts.map +1 -1
  21. package/dist/src/context/upload.ctx.d.ts +23 -0
  22. package/dist/src/context/upload.ctx.d.ts.map +1 -0
  23. package/dist/src/context/widget-agent.d.ts +4 -4
  24. package/dist/src/context/widget-agent.d.ts.map +1 -1
  25. package/dist/src/context/widget.ctx.d.ts +19 -6
  26. package/dist/src/context/widget.ctx.d.ts.map +1 -1
  27. package/dist/src/index.d.ts +5 -0
  28. package/dist/src/index.d.ts.map +1 -1
  29. package/dist/src/translation/ar.d.ts.map +1 -1
  30. package/dist/src/translation/bg.d.ts.map +1 -1
  31. package/dist/src/translation/bn.d.ts.map +1 -1
  32. package/dist/src/translation/cs.d.ts.map +1 -1
  33. package/dist/src/translation/da.d.ts.map +1 -1
  34. package/dist/src/translation/de.d.ts.map +1 -1
  35. package/dist/src/translation/el.d.ts.map +1 -1
  36. package/dist/src/translation/en.d.ts.map +1 -1
  37. package/dist/src/translation/es.d.ts.map +1 -1
  38. package/dist/src/translation/et.d.ts.map +1 -1
  39. package/dist/src/translation/fi.d.ts.map +1 -1
  40. package/dist/src/translation/fil.d.ts.map +1 -1
  41. package/dist/src/translation/fr.d.ts.map +1 -1
  42. package/dist/src/translation/hi.d.ts.map +1 -1
  43. package/dist/src/translation/hr.d.ts.map +1 -1
  44. package/dist/src/translation/hu.d.ts.map +1 -1
  45. package/dist/src/translation/index.d.ts +24 -0
  46. package/dist/src/translation/index.d.ts.map +1 -1
  47. package/dist/src/translation/is.d.ts.map +1 -1
  48. package/dist/src/translation/it.d.ts.map +1 -1
  49. package/dist/src/translation/ja.d.ts.map +1 -1
  50. package/dist/src/translation/ko.d.ts.map +1 -1
  51. package/dist/src/translation/lb.d.ts.map +1 -1
  52. package/dist/src/translation/lt.d.ts.map +1 -1
  53. package/dist/src/translation/lv.d.ts.map +1 -1
  54. package/dist/src/translation/mt.d.ts.map +1 -1
  55. package/dist/src/translation/nb.d.ts.map +1 -1
  56. package/dist/src/translation/nl.d.ts.map +1 -1
  57. package/dist/src/translation/no.d.ts.map +1 -1
  58. package/dist/src/translation/pl.d.ts.map +1 -1
  59. package/dist/src/translation/pt.d.ts.map +1 -1
  60. package/dist/src/translation/ro.d.ts.map +1 -1
  61. package/dist/src/translation/ru.d.ts.map +1 -1
  62. package/dist/src/translation/sk.d.ts.map +1 -1
  63. package/dist/src/translation/sv.d.ts.map +1 -1
  64. package/dist/src/translation/th.d.ts.map +1 -1
  65. package/dist/src/translation/tr.d.ts.map +1 -1
  66. package/dist/src/translation/ur.d.ts.map +1 -1
  67. package/dist/src/translation/vi.d.ts.map +1 -1
  68. package/dist/src/translation/zh-cn.d.ts.map +1 -1
  69. package/dist/src/types/component-name.d.ts +1 -1
  70. package/dist/src/types/component-name.d.ts.map +1 -1
  71. package/dist/src/types/messages.d.ts +14 -1
  72. package/dist/src/types/messages.d.ts.map +1 -1
  73. package/dist/src/types/widget-config.d.ts +29 -6
  74. package/dist/src/types/widget-config.d.ts.map +1 -1
  75. package/package.json +6 -5
  76. package/dist/src/__tests__/api/agent-stream-parts.spec.d.ts +0 -2
  77. package/dist/src/__tests__/api/agent-stream-parts.spec.d.ts.map +0 -1
  78. package/dist/src/__tests__/api/dictation-mint-cache.spec.d.ts +0 -2
  79. package/dist/src/__tests__/api/dictation-mint-cache.spec.d.ts.map +0 -1
  80. package/dist/src/__tests__/api/widget-api-wire.spec.d.ts +0 -2
  81. package/dist/src/__tests__/api/widget-api-wire.spec.d.ts.map +0 -1
  82. package/dist/src/__tests__/api-caller.mock.d.ts +0 -2
  83. package/dist/src/__tests__/api-caller.mock.d.ts.map +0 -1
  84. package/dist/src/__tests__/context/contact/auth/auto-create-unverified-anonymous.spec.d.ts +0 -1
  85. package/dist/src/__tests__/context/contact/auth/auto-create-unverified-anonymous.spec.d.ts.map +0 -1
  86. package/dist/src/__tests__/context/contact/auth/auto-create-unverified-with-user-data-provided-by-org.spec.d.ts +0 -1
  87. package/dist/src/__tests__/context/contact/auth/auto-create-unverified-with-user-data-provided-by-org.spec.d.ts.map +0 -1
  88. package/dist/src/__tests__/context/contact/auth/manually-create-unverified-with-user-data-provided-by-user.spec.d.ts +0 -1
  89. package/dist/src/__tests__/context/contact/auth/manually-create-unverified-with-user-data-provided-by-user.spec.d.ts.map +0 -1
  90. package/dist/src/__tests__/context/contact/auth/with-secure-token.spec.d.ts +0 -1
  91. package/dist/src/__tests__/context/contact/auth/with-secure-token.spec.d.ts.map +0 -1
  92. package/dist/src/__tests__/context/contact/should-collect-data.spec.d.ts +0 -1
  93. package/dist/src/__tests__/context/contact/should-collect-data.spec.d.ts.map +0 -1
  94. package/dist/src/__tests__/context/contact-ctx.create-failure.spec.d.ts +0 -2
  95. package/dist/src/__tests__/context/contact-ctx.create-failure.spec.d.ts.map +0 -1
  96. package/dist/src/__tests__/context/dictation-ctx.spec.d.ts +0 -1
  97. package/dist/src/__tests__/context/dictation-ctx.spec.d.ts.map +0 -1
  98. package/dist/src/__tests__/context/message/merge-send-context.spec.d.ts +0 -2
  99. package/dist/src/__tests__/context/message/merge-send-context.spec.d.ts.map +0 -1
  100. package/dist/src/__tests__/context/message/on-message-received-hook.spec.d.ts +0 -1
  101. package/dist/src/__tests__/context/message/on-message-received-hook.spec.d.ts.map +0 -1
  102. package/dist/src/__tests__/context/message/pending-user-messages.spec.d.ts +0 -1
  103. package/dist/src/__tests__/context/message/pending-user-messages.spec.d.ts.map +0 -1
  104. package/dist/src/__tests__/context/message/sent-text-history.spec.d.ts +0 -1
  105. package/dist/src/__tests__/context/message/sent-text-history.spec.d.ts.map +0 -1
  106. package/dist/src/__tests__/context/message-ctx.agent-handlers.spec.d.ts +0 -2
  107. package/dist/src/__tests__/context/message-ctx.agent-handlers.spec.d.ts.map +0 -1
  108. package/dist/src/__tests__/context/message-ctx.client-context.spec.d.ts +0 -2
  109. package/dist/src/__tests__/context/message-ctx.client-context.spec.d.ts.map +0 -1
  110. package/dist/src/__tests__/context/message-ctx.mentions.spec.d.ts +0 -2
  111. package/dist/src/__tests__/context/message-ctx.mentions.spec.d.ts.map +0 -1
  112. package/dist/src/__tests__/context/message-ctx.page-mark-chips.spec.d.ts +0 -2
  113. package/dist/src/__tests__/context/message-ctx.page-mark-chips.spec.d.ts.map +0 -1
  114. package/dist/src/__tests__/context/message-ctx.send-acceptance.spec.d.ts +0 -2
  115. package/dist/src/__tests__/context/message-ctx.send-acceptance.spec.d.ts.map +0 -1
  116. package/dist/src/__tests__/context/message-ctx.send-features.spec.d.ts +0 -2
  117. package/dist/src/__tests__/context/message-ctx.send-features.spec.d.ts.map +0 -1
  118. package/dist/src/__tests__/context/reconcile-after-stream.spec.d.ts +0 -1
  119. package/dist/src/__tests__/context/reconcile-after-stream.spec.d.ts.map +0 -1
  120. package/dist/src/__tests__/context/restore-last-session.spec.d.ts +0 -2
  121. package/dist/src/__tests__/context/restore-last-session.spec.d.ts.map +0 -1
  122. package/dist/src/__tests__/context/session-ctx.stale-token-retry.spec.d.ts +0 -2
  123. package/dist/src/__tests__/context/session-ctx.stale-token-retry.spec.d.ts.map +0 -1
  124. package/dist/src/__tests__/context/storage-ctx.spec.d.ts +0 -2
  125. package/dist/src/__tests__/context/storage-ctx.spec.d.ts.map +0 -1
  126. package/dist/src/__tests__/context/streaming-engine.spec.d.ts +0 -1
  127. package/dist/src/__tests__/context/streaming-engine.spec.d.ts.map +0 -1
  128. package/dist/src/__tests__/context/widget-ctx.features.spec.d.ts +0 -1
  129. package/dist/src/__tests__/context/widget-ctx.features.spec.d.ts.map +0 -1
  130. package/dist/src/__tests__/dictation/dictation-commands.utils.spec.d.ts +0 -2
  131. package/dist/src/__tests__/dictation/dictation-commands.utils.spec.d.ts.map +0 -1
  132. package/dist/src/__tests__/test-utils.d.ts +0 -448
  133. package/dist/src/__tests__/test-utils.d.ts.map +0 -1
  134. package/dist/src/__tests__/translation.spec.d.ts +0 -2
  135. package/dist/src/__tests__/translation.spec.d.ts.map +0 -1
  136. package/dist/src/__tests__/utils/Poller.spec.d.ts +0 -2
  137. package/dist/src/__tests__/utils/Poller.spec.d.ts.map +0 -1
  138. package/dist/src/__tests__/utils/PrimitiveState.spec.d.ts +0 -2
  139. package/dist/src/__tests__/utils/PrimitiveState.spec.d.ts.map +0 -1
  140. package/dist/src/__tests__/utils/companion-layout.spec.d.ts +0 -2
  141. package/dist/src/__tests__/utils/companion-layout.spec.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- //# sourceMappingURL=auto-create-unverified-with-user-data-provided-by-org.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auto-create-unverified-with-user-data-provided-by-org.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/__tests__/context/contact/auth/auto-create-unverified-with-user-data-provided-by-org.spec.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=manually-create-unverified-with-user-data-provided-by-user.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manually-create-unverified-with-user-data-provided-by-user.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/__tests__/context/contact/auth/manually-create-unverified-with-user-data-provided-by-user.spec.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=with-secure-token.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-secure-token.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/__tests__/context/contact/auth/with-secure-token.spec.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=should-collect-data.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"should-collect-data.spec.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/context/contact/should-collect-data.spec.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=contact-ctx.create-failure.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contact-ctx.create-failure.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/contact-ctx.create-failure.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=dictation-ctx.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dictation-ctx.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/dictation-ctx.spec.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=merge-send-context.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"merge-send-context.spec.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/context/message/merge-send-context.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=on-message-received-hook.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"on-message-received-hook.spec.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/context/message/on-message-received-hook.spec.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=pending-user-messages.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pending-user-messages.spec.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/context/message/pending-user-messages.spec.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=sent-text-history.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sent-text-history.spec.d.ts","sourceRoot":"","sources":["../../../../../src/__tests__/context/message/sent-text-history.spec.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=message-ctx.agent-handlers.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-ctx.agent-handlers.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.agent-handlers.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=message-ctx.client-context.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-ctx.client-context.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.client-context.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=message-ctx.mentions.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-ctx.mentions.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.mentions.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=message-ctx.page-mark-chips.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-ctx.page-mark-chips.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.page-mark-chips.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=message-ctx.send-acceptance.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-ctx.send-acceptance.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.send-acceptance.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=message-ctx.send-features.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-ctx.send-features.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/message-ctx.send-features.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=reconcile-after-stream.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reconcile-after-stream.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/reconcile-after-stream.spec.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=restore-last-session.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"restore-last-session.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/restore-last-session.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=session-ctx.stale-token-retry.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"session-ctx.stale-token-retry.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/session-ctx.stale-token-retry.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=storage-ctx.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storage-ctx.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/storage-ctx.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=streaming-engine.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"streaming-engine.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/streaming-engine.spec.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=widget-ctx.features.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"widget-ctx.features.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/context/widget-ctx.features.spec.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dictation-commands.utils.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dictation-commands.utils.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/dictation/dictation-commands.utils.spec.ts"],"names":[],"mappings":""}
@@ -1,448 +0,0 @@
1
- import { ApiCaller } from '../api/api-caller';
2
- import { Dto } from '../api/client';
3
- type AgentFeaturesDto = Dto['WidgetAgentFeaturesDto'];
4
- export declare const TestUtils: {
5
- agentFeatures: (overrides?: Partial<AgentFeaturesDto>) => AgentFeaturesDto;
6
- sleep: (ms: number) => Promise<unknown>;
7
- mock: {
8
- ApiCaller: {
9
- createSession(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
10
- parameters: {
11
- query?: never;
12
- header?: never;
13
- path?: never;
14
- cookie?: never;
15
- };
16
- requestBody: {
17
- content: {
18
- "application/json": import('../api/schema').components["schemas"]["CreateWidgetSessionDto"];
19
- };
20
- };
21
- responses: {
22
- 200: {
23
- headers: {
24
- [name: string]: unknown;
25
- };
26
- content: {
27
- "application/json": import('../api/schema').components["schemas"]["WidgetSessionDto"];
28
- };
29
- };
30
- 500: {
31
- headers: {
32
- [name: string]: unknown;
33
- };
34
- content: {
35
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
36
- };
37
- };
38
- };
39
- }, {
40
- body: {
41
- customData?: {
42
- [key: string]: string | number | boolean;
43
- };
44
- } | null;
45
- }, `${string}/${string}`>> | undefined): void;
46
- createUnverifiedContact(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
47
- parameters: {
48
- query?: never;
49
- header: {
50
- "x-bot-token": string;
51
- };
52
- path?: never;
53
- cookie?: never;
54
- };
55
- requestBody: {
56
- content: {
57
- "application/json": import('../api/schema').components["schemas"]["CreateUnverifiedContactDto"];
58
- };
59
- };
60
- responses: {
61
- 200: {
62
- headers: {
63
- [name: string]: unknown;
64
- };
65
- content: {
66
- "application/json": import('../api/schema').components["schemas"]["WidgetContactTokenResponseDto"];
67
- };
68
- };
69
- 500: {
70
- headers: {
71
- [name: string]: unknown;
72
- };
73
- content: {
74
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
75
- };
76
- };
77
- };
78
- }, {
79
- params: {
80
- header: {
81
- 'x-bot-token': string;
82
- };
83
- };
84
- body: {
85
- email?: string | null;
86
- non_verified_name?: string | null;
87
- non_verified_custom_data?: {
88
- [key: string]: string | number | boolean;
89
- } | null;
90
- };
91
- }, `${string}/${string}`>> | undefined): void;
92
- getSessions(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
93
- parameters: {
94
- query: {
95
- filters: string;
96
- offset?: string;
97
- };
98
- header?: never;
99
- path?: never;
100
- cookie?: never;
101
- };
102
- requestBody?: never;
103
- responses: {
104
- 200: {
105
- headers: {
106
- [name: string]: unknown;
107
- };
108
- content: {
109
- "application/json": import('../api/schema').components["schemas"]["PaginatedWidgetSessionsDto"];
110
- };
111
- };
112
- 500: {
113
- headers: {
114
- [name: string]: unknown;
115
- };
116
- content: {
117
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
118
- };
119
- };
120
- };
121
- }, {
122
- params: {
123
- query: {
124
- offset: string | undefined;
125
- filters: string;
126
- };
127
- };
128
- signal: AbortSignal | undefined;
129
- }, `${string}/${string}`>> | undefined): void;
130
- sendMessage(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
131
- parameters: {
132
- query?: never;
133
- header?: never;
134
- path?: never;
135
- cookie?: never;
136
- };
137
- requestBody: {
138
- content: {
139
- "application/json": import('../api/schema').components["schemas"]["WidgetSendMessageInputDto"];
140
- };
141
- };
142
- responses: {
143
- 200: {
144
- headers: {
145
- [name: string]: unknown;
146
- };
147
- content: {
148
- "application/json": import('../api/schema').components["schemas"]["WidgetSendMessageOutputDto"];
149
- };
150
- };
151
- 500: {
152
- headers: {
153
- [name: string]: unknown;
154
- };
155
- content: {
156
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
157
- };
158
- };
159
- };
160
- }, {
161
- body: {
162
- uuid: string;
163
- content: string;
164
- session_id: string;
165
- bot_token: string;
166
- headers?: {
167
- [key: string]: string;
168
- } | null;
169
- query_params?: {
170
- [key: string]: string;
171
- } | null;
172
- body_properties?: {
173
- [key: string]: unknown;
174
- } | null;
175
- language?: string | null;
176
- attachments?: import('../api/schema').components["schemas"]["ChatAttachmentDto"][] | null;
177
- clientContext?: {
178
- [key: string]: unknown;
179
- } | null;
180
- capabilities?: {
181
- structured_questions?: boolean;
182
- } | null;
183
- features?: {
184
- preamble?: boolean;
185
- inline_ui?: boolean;
186
- page_context?: boolean;
187
- client_tools?: boolean;
188
- } | null;
189
- custom_data?: {
190
- [key: string]: unknown;
191
- } | null;
192
- exit_mode_prompt?: string;
193
- action_form_submitted_prompt?: string;
194
- initial_messages?: {
195
- uuid: string;
196
- content: string;
197
- }[];
198
- };
199
- signal: AbortSignal | undefined;
200
- }, `${string}/${string}`>> | undefined): void;
201
- setAuthToken(target: typeof ApiCaller, _returnValue: void | undefined): void;
202
- getStreamTransportOptions(target: typeof ApiCaller, _returnValue: Partial<{
203
- api: string;
204
- reconnectApi: (sessionId: string) => string;
205
- headers: Record<string, string>;
206
- }> | undefined): void;
207
- stopStream(target: typeof ApiCaller, _returnValue: void | undefined): void;
208
- uploadFile(target: typeof ApiCaller, _returnValue: Partial<{
209
- fileName: string;
210
- fileUrl: string;
211
- }> | undefined): void;
212
- vote(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
213
- parameters: {
214
- query?: never;
215
- header?: never;
216
- path?: never;
217
- cookie?: never;
218
- };
219
- requestBody: {
220
- content: {
221
- "application/json": import('../api/schema').components["schemas"]["WidgetVoteDto"];
222
- };
223
- };
224
- responses: {
225
- 200: {
226
- headers: {
227
- [name: string]: unknown;
228
- };
229
- content: {
230
- "application/json": import('../api/schema').components["schemas"]["WidgetVoteResponseDto"];
231
- };
232
- };
233
- 500: {
234
- headers: {
235
- [name: string]: unknown;
236
- };
237
- content: {
238
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
239
- };
240
- };
241
- };
242
- }, {
243
- body: {
244
- action: "upvote" | "downvote";
245
- sessionId: string;
246
- messagePublicId: string;
247
- };
248
- }, `${string}/${string}`>> | undefined): void;
249
- getExternalWidgetConfig(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
250
- parameters: {
251
- query?: never;
252
- header: {
253
- "x-bot-token": string;
254
- };
255
- path?: never;
256
- cookie?: never;
257
- };
258
- requestBody?: never;
259
- responses: {
260
- 200: {
261
- headers: {
262
- [name: string]: unknown;
263
- };
264
- content: {
265
- "application/json": import('../api/schema').components["schemas"]["WidgetConfigDto"] | import('../api/schema').components["schemas"]["WidgetPreludeDto"];
266
- };
267
- };
268
- 500: {
269
- headers: {
270
- [name: string]: unknown;
271
- };
272
- content: {
273
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
274
- };
275
- };
276
- };
277
- }, {
278
- params: {
279
- header: {
280
- 'x-bot-token': string;
281
- };
282
- };
283
- }, `${string}/${string}`>> | undefined): void;
284
- pollSessionAndHistory(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
285
- parameters: {
286
- query?: never;
287
- header?: never;
288
- path: {
289
- sessionId: string;
290
- };
291
- cookie?: never;
292
- };
293
- requestBody?: never;
294
- responses: {
295
- 200: {
296
- headers: {
297
- [name: string]: unknown;
298
- };
299
- content: {
300
- "application/json": import('../api/schema').components["schemas"]["WidgetSessionAndHistoryDto"];
301
- };
302
- };
303
- 500: {
304
- headers: {
305
- [name: string]: unknown;
306
- };
307
- content: {
308
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
309
- };
310
- };
311
- };
312
- }, {
313
- params: {
314
- path: {
315
- sessionId: string;
316
- };
317
- };
318
- signal: AbortSignal;
319
- }, `${string}/${string}`>> | undefined): void;
320
- resolveSession(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
321
- parameters: {
322
- query?: never;
323
- header?: never;
324
- path?: never;
325
- cookie?: never;
326
- };
327
- requestBody: {
328
- content: {
329
- "application/json": import('../api/schema').components["schemas"]["WidgetResolveSessionInputDto"];
330
- };
331
- };
332
- responses: {
333
- 200: {
334
- headers: {
335
- [name: string]: unknown;
336
- };
337
- content: {
338
- "application/json": import('../api/schema').components["schemas"]["WidgetSessionDto"];
339
- };
340
- };
341
- 500: {
342
- headers: {
343
- [name: string]: unknown;
344
- };
345
- content: {
346
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
347
- };
348
- };
349
- };
350
- }, {
351
- body: {
352
- session_id: string;
353
- };
354
- signal: AbortSignal | undefined;
355
- }, `${string}/${string}`>> | undefined): void;
356
- createStateCheckpoint(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
357
- parameters: {
358
- query?: never;
359
- header?: never;
360
- path?: never;
361
- cookie?: never;
362
- };
363
- requestBody: {
364
- content: {
365
- "application/json": import('../api/schema').components["schemas"]["WidgetCreateStateCheckpointInputDto"];
366
- };
367
- };
368
- responses: {
369
- 200: {
370
- headers: {
371
- [name: string]: unknown;
372
- };
373
- content: {
374
- "application/json": import('../api/schema').components["schemas"]["WidgetCreateStateCheckpointOutputDto"];
375
- };
376
- };
377
- 500: {
378
- headers: {
379
- [name: string]: unknown;
380
- };
381
- content: {
382
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
383
- };
384
- };
385
- };
386
- }, {
387
- body: {
388
- session_id: string;
389
- payload: {
390
- [key: string]: unknown;
391
- };
392
- };
393
- }, `${string}/${string}`>> | undefined): void;
394
- submitCsat(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
395
- parameters: {
396
- query?: never;
397
- header?: never;
398
- path?: never;
399
- cookie?: never;
400
- };
401
- requestBody: {
402
- content: {
403
- "application/json": import('../api/schema').components["schemas"]["WidgetSubmitCsatInputDto"];
404
- };
405
- };
406
- responses: {
407
- 200: {
408
- headers: {
409
- [name: string]: unknown;
410
- };
411
- content: {
412
- "application/json": import('../api/schema').components["schemas"]["WidgetSubmitCsatOutputDto"];
413
- };
414
- };
415
- 500: {
416
- headers: {
417
- [name: string]: unknown;
418
- };
419
- content: {
420
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
421
- };
422
- };
423
- };
424
- }, {
425
- body: {
426
- session_id: string;
427
- score: number;
428
- feedback?: string;
429
- system_message_uuid?: string;
430
- };
431
- }, `${string}/${string}`>> | undefined): void;
432
- getAgentTurnMessages(target: typeof ApiCaller, returnValue: Partial<{
433
- turns: {
434
- turn_id: string;
435
- ui_parts: ({
436
- type: string;
437
- } & {
438
- [key: string]: unknown;
439
- })[] | null;
440
- message_uuids: string[];
441
- }[];
442
- } | null> | undefined): void;
443
- createDictationSession(target: typeof ApiCaller, returnValue: Partial<import('../dictation/dictation-session').DictationMint> | undefined): void;
444
- };
445
- };
446
- };
447
- export {};
448
- //# sourceMappingURL=test-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/__tests__/test-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,KAAK,gBAAgB,GAAG,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAgBtD,eAAO,MAAM,SAAS;gCAXT,OAAO,CAAC,gBAAgB,CAAC,KACnC,gBAAgB;gBAYL,MAAM;;;;;yBAoJJ,CAAX;0BAAuB,CAAC;wBAAqB,CAAC;0BACnC,CAAZ;;;;4CAEY,6CAAe;;;;;;;;;gDAOf,6CAAa;;;;;;;;gDAQP,6CACtB;;;;;;;;;;;;;yBAhJc,CAAJ;;;;wBAGA,CAAD;0BAEA,CAAC;;;;4CACkC,6CAChC;;;;;;;;;gDASA,6CAAsB;;;;;;;;gDAO5B,6CACW;;;;;;;;;;;;;;;;;;;;;;8BAWK,CAAH;;0BACG,CAAd;wBAAqB,CAAC;0BACV,CAAjB;;;;;;;;;gDAQqB,6CAAI;;;;;;;;gDAMR,6CACd;;;;;;;;;;;;;;;yBAsGW,CAAC;0BAAuB,CAAC;wBAC5B,CAAD;0BACC,CAAX;;;;4CAEwB,6CACV;;;;;;;;;gDAQX,6CACY;;;;;;;;gDAMF,6CACP;;;;;;;;;;;;;;;;;;;;kCAyCylX,6CAAsB;;;;;4CAAyf,CAAC;;;gCAAmd,CAAC;iCAA4B,CAAC;oCAA+B,CAAC;oCAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA/zW,CAAC;0BAAuB,CAAC;wBAAqB,CAAC;0BAAuB,CAAC;;;;4CAAuF,6CAAsB;;;;;;;;;gDAAiP,6CAAsB;;;;;;;;gDAA+O,6CAAsB;;;;;;;;;;;;;yBA7P1hE,CAAC;;;;wBAGT,CAAF;0BACI,CAAC;;;;;;;;;gDAYI,6CACK,sBACN,6CAAoB;;;;;;;;gDAOL,6CACL;;;;;;;;;;;;;yBAwGV,CAAR;0BAAuB,CAAC;;;;0BACyB,CAAC;;;;;;;;;gDAQN,6CAC5B;;;;;;;;gDAQF,6CAAO;;;;;;;;;;;;;;yBAyGk5E,CAAC;0BAAuB,CAAC;wBAAqB,CAAC;0BAAuB,CAAC;;;;4CAAuF,6CAAsB;;;;;;;;;gDAA6P,6CAAsB;;;;;;;;gDAA0O,6CAAsB;;;;;;;;;;;;yBA1BxmG,CAAJ;0BAAuB,CAAC;wBAAsB,CAAA;0BAC3B,CAAC;;;;4CAEZ,6CAAiB;;;;;;;;;gDAQV,6CACT;;;;;;;;gDAQa,6CACZ;;;;;;;;;;;;;;yBAKykJ,CAAC;0BAAuB,CAAC;wBAAqB,CAAC;0BAAuB,CAAC;;;;4CAAuF,6CAAsB;;;;;;;;;gDAA4P,6CAAsB;;;;;;;;gDAAmP,6CAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;CADhyK,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=translation.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translation.spec.d.ts","sourceRoot":"","sources":["../../../src/__tests__/translation.spec.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Poller.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Poller.spec.d.ts","sourceRoot":"","sources":["../../../../src/__tests__/utils/Poller.spec.ts"],"names":[],"mappings":""}