@opencx/widget-core 5.0.0-beta.0 → 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 +8 -8
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +1797 -1078
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/api/api-caller.d.ts +105 -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 +603 -44
  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 +28 -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 +20 -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 +38 -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 -445
  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
- {"version":3,"file":"auto-create-unverified-anonymous.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/__tests__/context/contact/auth/auto-create-unverified-anonymous.spec.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC"}
@@ -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,445 +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
- features?: {
181
- preamble?: boolean;
182
- inline_ui?: boolean;
183
- page_context?: boolean;
184
- client_tools?: boolean;
185
- } | null;
186
- custom_data?: {
187
- [key: string]: unknown;
188
- } | null;
189
- exit_mode_prompt?: string;
190
- action_form_submitted_prompt?: string;
191
- initial_messages?: {
192
- uuid: string;
193
- content: string;
194
- }[];
195
- };
196
- signal: AbortSignal | undefined;
197
- }, `${string}/${string}`>> | undefined): void;
198
- setAuthToken(target: typeof ApiCaller, _returnValue: void | undefined): void;
199
- getStreamTransportOptions(target: typeof ApiCaller, _returnValue: Partial<{
200
- api: string;
201
- reconnectApi: (sessionId: string) => string;
202
- headers: Record<string, string>;
203
- }> | undefined): void;
204
- stopStream(target: typeof ApiCaller, _returnValue: void | undefined): void;
205
- uploadFile(target: typeof ApiCaller, _returnValue: Partial<{
206
- fileName: string;
207
- fileUrl: string;
208
- }> | undefined): void;
209
- vote(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
210
- parameters: {
211
- query?: never;
212
- header?: never;
213
- path?: never;
214
- cookie?: never;
215
- };
216
- requestBody: {
217
- content: {
218
- "application/json": import('../api/schema').components["schemas"]["WidgetVoteDto"];
219
- };
220
- };
221
- responses: {
222
- 200: {
223
- headers: {
224
- [name: string]: unknown;
225
- };
226
- content: {
227
- "application/json": import('../api/schema').components["schemas"]["WidgetVoteResponseDto"];
228
- };
229
- };
230
- 500: {
231
- headers: {
232
- [name: string]: unknown;
233
- };
234
- content: {
235
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
236
- };
237
- };
238
- };
239
- }, {
240
- body: {
241
- action: "upvote" | "downvote";
242
- sessionId: string;
243
- messagePublicId: string;
244
- };
245
- }, `${string}/${string}`>> | undefined): void;
246
- getExternalWidgetConfig(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
247
- parameters: {
248
- query?: never;
249
- header: {
250
- "x-bot-token": string;
251
- };
252
- path?: never;
253
- cookie?: never;
254
- };
255
- requestBody?: never;
256
- responses: {
257
- 200: {
258
- headers: {
259
- [name: string]: unknown;
260
- };
261
- content: {
262
- "application/json": import('../api/schema').components["schemas"]["WidgetConfigDto"] | import('../api/schema').components["schemas"]["WidgetPreludeDto"];
263
- };
264
- };
265
- 500: {
266
- headers: {
267
- [name: string]: unknown;
268
- };
269
- content: {
270
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
271
- };
272
- };
273
- };
274
- }, {
275
- params: {
276
- header: {
277
- 'x-bot-token': string;
278
- };
279
- };
280
- }, `${string}/${string}`>> | undefined): void;
281
- pollSessionAndHistory(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
282
- parameters: {
283
- query?: never;
284
- header?: never;
285
- path: {
286
- sessionId: string;
287
- };
288
- cookie?: never;
289
- };
290
- requestBody?: never;
291
- responses: {
292
- 200: {
293
- headers: {
294
- [name: string]: unknown;
295
- };
296
- content: {
297
- "application/json": import('../api/schema').components["schemas"]["WidgetSessionAndHistoryDto"];
298
- };
299
- };
300
- 500: {
301
- headers: {
302
- [name: string]: unknown;
303
- };
304
- content: {
305
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
306
- };
307
- };
308
- };
309
- }, {
310
- params: {
311
- path: {
312
- sessionId: string;
313
- };
314
- };
315
- signal: AbortSignal;
316
- }, `${string}/${string}`>> | undefined): void;
317
- resolveSession(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
318
- parameters: {
319
- query?: never;
320
- header?: never;
321
- path?: never;
322
- cookie?: never;
323
- };
324
- requestBody: {
325
- content: {
326
- "application/json": import('../api/schema').components["schemas"]["WidgetResolveSessionInputDto"];
327
- };
328
- };
329
- responses: {
330
- 200: {
331
- headers: {
332
- [name: string]: unknown;
333
- };
334
- content: {
335
- "application/json": import('../api/schema').components["schemas"]["WidgetSessionDto"];
336
- };
337
- };
338
- 500: {
339
- headers: {
340
- [name: string]: unknown;
341
- };
342
- content: {
343
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
344
- };
345
- };
346
- };
347
- }, {
348
- body: {
349
- session_id: string;
350
- };
351
- signal: AbortSignal | undefined;
352
- }, `${string}/${string}`>> | undefined): void;
353
- createStateCheckpoint(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
354
- parameters: {
355
- query?: never;
356
- header?: never;
357
- path?: never;
358
- cookie?: never;
359
- };
360
- requestBody: {
361
- content: {
362
- "application/json": import('../api/schema').components["schemas"]["WidgetCreateStateCheckpointInputDto"];
363
- };
364
- };
365
- responses: {
366
- 200: {
367
- headers: {
368
- [name: string]: unknown;
369
- };
370
- content: {
371
- "application/json": import('../api/schema').components["schemas"]["WidgetCreateStateCheckpointOutputDto"];
372
- };
373
- };
374
- 500: {
375
- headers: {
376
- [name: string]: unknown;
377
- };
378
- content: {
379
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
380
- };
381
- };
382
- };
383
- }, {
384
- body: {
385
- session_id: string;
386
- payload: {
387
- [key: string]: unknown;
388
- };
389
- };
390
- }, `${string}/${string}`>> | undefined): void;
391
- submitCsat(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
392
- parameters: {
393
- query?: never;
394
- header?: never;
395
- path?: never;
396
- cookie?: never;
397
- };
398
- requestBody: {
399
- content: {
400
- "application/json": import('../api/schema').components["schemas"]["WidgetSubmitCsatInputDto"];
401
- };
402
- };
403
- responses: {
404
- 200: {
405
- headers: {
406
- [name: string]: unknown;
407
- };
408
- content: {
409
- "application/json": import('../api/schema').components["schemas"]["WidgetSubmitCsatOutputDto"];
410
- };
411
- };
412
- 500: {
413
- headers: {
414
- [name: string]: unknown;
415
- };
416
- content: {
417
- "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
418
- };
419
- };
420
- };
421
- }, {
422
- body: {
423
- session_id: string;
424
- score: number;
425
- feedback?: string;
426
- system_message_uuid?: string;
427
- };
428
- }, `${string}/${string}`>> | undefined): void;
429
- getAgentTurnMessages(target: typeof ApiCaller, returnValue: Partial<{
430
- turns: {
431
- turn_id: string;
432
- ui_parts: ({
433
- type: string;
434
- } & {
435
- [key: string]: unknown;
436
- })[] | null;
437
- message_uuids: string[];
438
- }[];
439
- } | null> | undefined): void;
440
- createDictationSession(target: typeof ApiCaller, returnValue: Partial<import('../dictation/dictation-session').DictationMint> | undefined): void;
441
- };
442
- };
443
- };
444
- export {};
445
- //# 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;;;;;gCAAmmB,CAAC;iCAA4B,CAAC;oCAA+B,CAAC;oCAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAr9V,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