@opencx/widget 3.0.36 → 3.0.37

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 (36) hide show
  1. package/dist/designs.cjs +1 -1
  2. package/dist/designs.js +1 -1
  3. package/dist/react.cjs +1 -1
  4. package/dist/react.js +2 -2
  5. package/dist/src/headless/core/__tests__/context/contact/auth/auto-create-unverified-anonymous.spec.d.ts +0 -0
  6. package/dist/src/headless/core/__tests__/context/contact/auth/auto-create-unverified-with-user-data-provided-by-org.spec.d.ts +0 -0
  7. package/dist/src/headless/core/__tests__/context/contact/auth/manually-create-unverified-with-user-data-provided-by-user.spec.d.ts +0 -0
  8. package/dist/src/headless/core/__tests__/context/contact/auth/with-secure-token.spec.d.ts +0 -0
  9. package/dist/src/headless/core/__tests__/context/contact/should-collect-data.spec.d.ts +0 -0
  10. package/dist/src/headless/core/__tests__/test-utils.d.ts +342 -0
  11. package/dist/src/headless/core/__tests__/utils/PrimitiveState.spec.d.ts +1 -0
  12. package/dist/src/headless/core/__tests__/utils/uuid.spec.d.ts +1 -0
  13. package/dist/src/headless/core/{api.d.ts → api/api-caller.d.ts} +23 -23
  14. package/dist/src/headless/core/context/contact.ctx.d.ts +2 -2
  15. package/dist/src/headless/core/context/message.ctx.d.ts +1 -1
  16. package/dist/src/headless/core/context/session.ctx.d.ts +1 -1
  17. package/dist/src/headless/core/context/widget.ctx.d.ts +1 -1
  18. package/dist/src/headless/core/types/schemas.d.ts +1 -1
  19. package/dist/src/headless/react/WidgetProvider.d.ts +1 -1
  20. package/dist/src/headless/react/hooks/useContact.d.ts +1 -1
  21. package/dist/src/headless/react/hooks/usePreludeData.d.ts +2 -2
  22. package/dist/{useUploadFiles-GT7QUmAC.cjs → useUploadFiles-3-UJQlNh.cjs} +2 -2
  23. package/dist/useUploadFiles-3-UJQlNh.cjs.map +1 -0
  24. package/dist/{useUploadFiles-CPnrB5Dm.js → useUploadFiles-R1_RefGZ.js} +54 -49
  25. package/dist/useUploadFiles-R1_RefGZ.js.map +1 -0
  26. package/dist/widget.ctx-CplVbjtp.js.map +1 -1
  27. package/dist/widget.ctx-D_AFA5p3.cjs.map +1 -1
  28. package/dist-embed/script.js +2 -2
  29. package/dist-embed/script.js.map +1 -1
  30. package/package.json +2 -2
  31. package/dist/useUploadFiles-CPnrB5Dm.js.map +0 -1
  32. package/dist/useUploadFiles-GT7QUmAC.cjs.map +0 -1
  33. /package/dist/src/headless/core/{utils/Poller.spec.d.ts → __tests__/api-caller.mock.d.ts} +0 -0
  34. /package/dist/src/headless/core/{utils/PrimitiveState.spec.d.ts → __tests__/utils/Poller.spec.d.ts} +0 -0
  35. /package/dist/src/headless/core/{sdk/index.d.ts → api/client.d.ts} +0 -0
  36. /package/dist/src/headless/core/{sdk → api}/schema.d.ts +0 -0
@@ -0,0 +1,342 @@
1
+ import { ApiCaller } from '../api/api-caller';
2
+ export declare const TestUtils: {
3
+ sleep: (ms: number) => Promise<unknown>;
4
+ mock: {
5
+ ApiCaller: {
6
+ createSession(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ requestBody: {
14
+ content: {
15
+ "application/json": import('../api/schema').components["schemas"]["CreateWidgetChatSessionDto"];
16
+ };
17
+ };
18
+ responses: {
19
+ 200: {
20
+ headers: {
21
+ [name: string]: unknown;
22
+ };
23
+ content: {
24
+ "application/json": import('../api/schema').components["schemas"]["WidgetSessionDto"];
25
+ };
26
+ };
27
+ 500: {
28
+ headers: {
29
+ [name: string]: unknown;
30
+ };
31
+ content: {
32
+ "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
33
+ };
34
+ };
35
+ };
36
+ }, {
37
+ body: {
38
+ customData?: {
39
+ [key: string]: string | number | boolean | unknown | unknown;
40
+ };
41
+ };
42
+ }, `${string}/${string}`>> | undefined): void;
43
+ createUnverifiedContact(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
44
+ parameters: {
45
+ query?: never;
46
+ header: {
47
+ "x-bot-token": string;
48
+ };
49
+ path?: never;
50
+ cookie?: never;
51
+ };
52
+ requestBody: {
53
+ content: {
54
+ "application/json": import('../api/schema').components["schemas"]["CreateUnverifiedContactDto"];
55
+ };
56
+ };
57
+ responses: {
58
+ 200: {
59
+ headers: {
60
+ [name: string]: unknown;
61
+ };
62
+ content: {
63
+ "application/json": import('../api/schema').components["schemas"]["WidgetContactTokenResponseDto"];
64
+ };
65
+ };
66
+ 500: {
67
+ headers: {
68
+ [name: string]: unknown;
69
+ };
70
+ content: {
71
+ "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
72
+ };
73
+ };
74
+ };
75
+ }, {
76
+ params: {
77
+ header: {
78
+ "x-bot-token": string;
79
+ };
80
+ };
81
+ body: {
82
+ email?: string;
83
+ name?: string;
84
+ };
85
+ }, `${string}/${string}`>> | undefined): void;
86
+ getSession(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
87
+ parameters: {
88
+ query?: never;
89
+ header?: never;
90
+ path: {
91
+ sessionId: string;
92
+ };
93
+ cookie?: never;
94
+ };
95
+ requestBody?: never;
96
+ responses: {
97
+ 200: {
98
+ headers: {
99
+ [name: string]: unknown;
100
+ };
101
+ content: {
102
+ "application/json": import('../api/schema').components["schemas"]["WidgetSessionDto"];
103
+ };
104
+ };
105
+ 500: {
106
+ headers: {
107
+ [name: string]: unknown;
108
+ };
109
+ content: {
110
+ "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
111
+ };
112
+ };
113
+ };
114
+ }, {
115
+ params: {
116
+ path: {
117
+ sessionId: string;
118
+ };
119
+ };
120
+ signal: AbortSignal;
121
+ }, `${string}/${string}`>> | undefined): void;
122
+ getSessionHistory(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
123
+ parameters: {
124
+ query?: {
125
+ lastMessageTimestamp?: string;
126
+ };
127
+ header?: never;
128
+ path: {
129
+ sessionId: string;
130
+ };
131
+ cookie?: never;
132
+ };
133
+ requestBody?: never;
134
+ responses: {
135
+ 200: {
136
+ headers: {
137
+ [name: string]: unknown;
138
+ };
139
+ content: {
140
+ "application/json": import('../api/schema').components["schemas"]["WidgetHistoryDto"][];
141
+ };
142
+ };
143
+ 500: {
144
+ headers: {
145
+ [name: string]: unknown;
146
+ };
147
+ content: {
148
+ "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
149
+ };
150
+ };
151
+ };
152
+ }, {
153
+ params: {
154
+ path: {
155
+ sessionId: string;
156
+ };
157
+ query: {
158
+ lastMessageTimestamp: string;
159
+ } | undefined;
160
+ };
161
+ signal: AbortSignal;
162
+ }, `${string}/${string}`>> | undefined): void;
163
+ getSessions(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
164
+ parameters: {
165
+ query: {
166
+ filters: string;
167
+ cursor?: string;
168
+ };
169
+ header?: never;
170
+ path?: never;
171
+ cookie?: never;
172
+ };
173
+ requestBody?: never;
174
+ responses: {
175
+ 200: {
176
+ headers: {
177
+ [name: string]: unknown;
178
+ };
179
+ content: {
180
+ "application/json": import('../api/schema').components["schemas"]["PaginatedWidgetSessionsDto"];
181
+ };
182
+ };
183
+ 500: {
184
+ headers: {
185
+ [name: string]: unknown;
186
+ };
187
+ content: {
188
+ "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
189
+ };
190
+ };
191
+ };
192
+ }, {
193
+ params: {
194
+ query: {
195
+ cursor: string | undefined;
196
+ filters: string;
197
+ };
198
+ };
199
+ signal: AbortSignal | undefined;
200
+ }, `${string}/${string}`>> | undefined): void;
201
+ sendMessage(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
202
+ parameters: {
203
+ query?: never;
204
+ header?: never;
205
+ path?: never;
206
+ cookie?: never;
207
+ };
208
+ requestBody: {
209
+ content: {
210
+ "application/json": import('../api/schema').components["schemas"]["HttpChatInputDto"];
211
+ };
212
+ };
213
+ responses: {
214
+ 200: {
215
+ headers: {
216
+ [name: string]: unknown;
217
+ };
218
+ content: {
219
+ "application/json": import('../api/schema').components["schemas"]["HandleContactMessageOutputDto"];
220
+ };
221
+ };
222
+ 500: {
223
+ headers: {
224
+ [name: string]: unknown;
225
+ };
226
+ content: {
227
+ "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
228
+ };
229
+ };
230
+ };
231
+ }, {
232
+ body: {
233
+ uuid: string;
234
+ content: string;
235
+ session_id: string;
236
+ headers?: {
237
+ [key: string]: string;
238
+ } | null;
239
+ bot_token: string;
240
+ query_params?: {
241
+ [key: string]: string;
242
+ } | null;
243
+ user?: {
244
+ email?: string;
245
+ name?: string;
246
+ phone?: string;
247
+ avatar?: string;
248
+ customData?: {
249
+ [key: string]: string;
250
+ };
251
+ } | null;
252
+ language?: string | null;
253
+ attachments?: {
254
+ id: string;
255
+ name: string;
256
+ size: number;
257
+ type: string;
258
+ url: string;
259
+ }[] | null;
260
+ };
261
+ signal: AbortSignal | undefined;
262
+ }, `${string}/${string}`>> | undefined): void;
263
+ setAuthToken(target: typeof ApiCaller, _returnValue: void | undefined): void;
264
+ uploadFile(target: typeof ApiCaller, _returnValue: Partial<{
265
+ fileName: string;
266
+ fileUrl: string;
267
+ }> | undefined): void;
268
+ vote(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
269
+ parameters: {
270
+ query?: never;
271
+ header?: never;
272
+ path?: never;
273
+ cookie?: never;
274
+ };
275
+ requestBody: {
276
+ content: {
277
+ "application/json": import('../api/schema').components["schemas"]["WidgetVoteDto"];
278
+ };
279
+ };
280
+ responses: {
281
+ 200: {
282
+ headers: {
283
+ [name: string]: unknown;
284
+ };
285
+ content: {
286
+ "application/json": import('../api/schema').components["schemas"]["WidgetVoteResponseDto"];
287
+ };
288
+ };
289
+ 500: {
290
+ headers: {
291
+ [name: string]: unknown;
292
+ };
293
+ content: {
294
+ "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
295
+ };
296
+ };
297
+ };
298
+ }, {
299
+ body: {
300
+ action: "upvote" | "downvote";
301
+ sessionId: string;
302
+ messagePublicId: string;
303
+ };
304
+ }, `${string}/${string}`>> | undefined): void;
305
+ widgetPrelude(target: typeof ApiCaller, returnValue: Partial<import('openapi-fetch').FetchResponse<{
306
+ parameters: {
307
+ query?: never;
308
+ header: {
309
+ "X-Bot-Token": string;
310
+ };
311
+ path?: never;
312
+ cookie?: never;
313
+ };
314
+ requestBody?: never;
315
+ responses: {
316
+ 200: {
317
+ headers: {
318
+ [name: string]: unknown;
319
+ };
320
+ content: {
321
+ "application/json": import('../api/schema').components["schemas"]["WidgetPreludeDto"];
322
+ };
323
+ };
324
+ 500: {
325
+ headers: {
326
+ [name: string]: unknown;
327
+ };
328
+ content: {
329
+ "application/json": import('../api/schema').components["schemas"]["ErrorDto"];
330
+ };
331
+ };
332
+ };
333
+ }, {
334
+ params: {
335
+ header: {
336
+ "X-Bot-Token": string;
337
+ };
338
+ };
339
+ }, `${string}/${string}`>> | undefined): void;
340
+ };
341
+ };
342
+ };
@@ -1,7 +1,7 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { Dto } from './sdk';
3
- import { WidgetConfig } from './types/widget-config';
4
- import { SendMessageDto, VoteInputDto } from './types/schemas';
2
+ import { Dto } from './client';
3
+ import { WidgetConfig } from '../types/widget-config';
4
+ import { SendMessageDto, VoteInputDto } from '../types/schemas';
5
5
  export declare class ApiCaller {
6
6
  private client;
7
7
  private uploadFileClient;
@@ -29,7 +29,7 @@ export declare class ApiCaller {
29
29
  [name: string]: unknown;
30
30
  };
31
31
  content: {
32
- "application/json": import('./sdk/schema').components["schemas"]["WidgetPreludeDto"];
32
+ "application/json": import('./schema').components["schemas"]["WidgetPreludeDto"];
33
33
  };
34
34
  };
35
35
  500: {
@@ -37,7 +37,7 @@ export declare class ApiCaller {
37
37
  [name: string]: unknown;
38
38
  };
39
39
  content: {
40
- "application/json": import('./sdk/schema').components["schemas"]["ErrorDto"];
40
+ "application/json": import('./schema').components["schemas"]["ErrorDto"];
41
41
  };
42
42
  };
43
43
  };
@@ -57,7 +57,7 @@ export declare class ApiCaller {
57
57
  };
58
58
  requestBody: {
59
59
  content: {
60
- "application/json": import('./sdk/schema').components["schemas"]["HttpChatInputDto"];
60
+ "application/json": import('./schema').components["schemas"]["HttpChatInputDto"];
61
61
  };
62
62
  };
63
63
  responses: {
@@ -66,7 +66,7 @@ export declare class ApiCaller {
66
66
  [name: string]: unknown;
67
67
  };
68
68
  content: {
69
- "application/json": import('./sdk/schema').components["schemas"]["HandleContactMessageOutputDto"];
69
+ "application/json": import('./schema').components["schemas"]["HandleContactMessageOutputDto"];
70
70
  };
71
71
  };
72
72
  500: {
@@ -74,7 +74,7 @@ export declare class ApiCaller {
74
74
  [name: string]: unknown;
75
75
  };
76
76
  content: {
77
- "application/json": import('./sdk/schema').components["schemas"]["ErrorDto"];
77
+ "application/json": import('./schema').components["schemas"]["ErrorDto"];
78
78
  };
79
79
  };
80
80
  };
@@ -132,7 +132,7 @@ export declare class ApiCaller {
132
132
  [name: string]: unknown;
133
133
  };
134
134
  content: {
135
- "application/json": import('./sdk/schema').components["schemas"]["WidgetHistoryDto"][];
135
+ "application/json": import('./schema').components["schemas"]["WidgetHistoryDto"][];
136
136
  };
137
137
  };
138
138
  500: {
@@ -140,7 +140,7 @@ export declare class ApiCaller {
140
140
  [name: string]: unknown;
141
141
  };
142
142
  content: {
143
- "application/json": import('./sdk/schema').components["schemas"]["ErrorDto"];
143
+ "application/json": import('./schema').components["schemas"]["ErrorDto"];
144
144
  };
145
145
  };
146
146
  };
@@ -166,7 +166,7 @@ export declare class ApiCaller {
166
166
  };
167
167
  requestBody: {
168
168
  content: {
169
- "application/json": import('./sdk/schema').components["schemas"]["CreateUnverifiedContactDto"];
169
+ "application/json": import('./schema').components["schemas"]["CreateUnverifiedContactDto"];
170
170
  };
171
171
  };
172
172
  responses: {
@@ -175,7 +175,7 @@ export declare class ApiCaller {
175
175
  [name: string]: unknown;
176
176
  };
177
177
  content: {
178
- "application/json": import('./sdk/schema').components["schemas"]["WidgetContactTokenResponseDto"];
178
+ "application/json": import('./schema').components["schemas"]["WidgetContactTokenResponseDto"];
179
179
  };
180
180
  };
181
181
  500: {
@@ -183,7 +183,7 @@ export declare class ApiCaller {
183
183
  [name: string]: unknown;
184
184
  };
185
185
  content: {
186
- "application/json": import('./sdk/schema').components["schemas"]["ErrorDto"];
186
+ "application/json": import('./schema').components["schemas"]["ErrorDto"];
187
187
  };
188
188
  };
189
189
  };
@@ -207,7 +207,7 @@ export declare class ApiCaller {
207
207
  };
208
208
  requestBody: {
209
209
  content: {
210
- "application/json": import('./sdk/schema').components["schemas"]["CreateWidgetChatSessionDto"];
210
+ "application/json": import('./schema').components["schemas"]["CreateWidgetChatSessionDto"];
211
211
  };
212
212
  };
213
213
  responses: {
@@ -216,7 +216,7 @@ export declare class ApiCaller {
216
216
  [name: string]: unknown;
217
217
  };
218
218
  content: {
219
- "application/json": import('./sdk/schema').components["schemas"]["WidgetSessionDto"];
219
+ "application/json": import('./schema').components["schemas"]["WidgetSessionDto"];
220
220
  };
221
221
  };
222
222
  500: {
@@ -224,7 +224,7 @@ export declare class ApiCaller {
224
224
  [name: string]: unknown;
225
225
  };
226
226
  content: {
227
- "application/json": import('./sdk/schema').components["schemas"]["ErrorDto"];
227
+ "application/json": import('./schema').components["schemas"]["ErrorDto"];
228
228
  };
229
229
  };
230
230
  };
@@ -254,7 +254,7 @@ export declare class ApiCaller {
254
254
  [name: string]: unknown;
255
255
  };
256
256
  content: {
257
- "application/json": import('./sdk/schema').components["schemas"]["WidgetSessionDto"];
257
+ "application/json": import('./schema').components["schemas"]["WidgetSessionDto"];
258
258
  };
259
259
  };
260
260
  500: {
@@ -262,7 +262,7 @@ export declare class ApiCaller {
262
262
  [name: string]: unknown;
263
263
  };
264
264
  content: {
265
- "application/json": import('./sdk/schema').components["schemas"]["ErrorDto"];
265
+ "application/json": import('./schema').components["schemas"]["ErrorDto"];
266
266
  };
267
267
  };
268
268
  };
@@ -295,7 +295,7 @@ export declare class ApiCaller {
295
295
  [name: string]: unknown;
296
296
  };
297
297
  content: {
298
- "application/json": import('./sdk/schema').components["schemas"]["PaginatedWidgetSessionsDto"];
298
+ "application/json": import('./schema').components["schemas"]["PaginatedWidgetSessionsDto"];
299
299
  };
300
300
  };
301
301
  500: {
@@ -303,7 +303,7 @@ export declare class ApiCaller {
303
303
  [name: string]: unknown;
304
304
  };
305
305
  content: {
306
- "application/json": import('./sdk/schema').components["schemas"]["ErrorDto"];
306
+ "application/json": import('./schema').components["schemas"]["ErrorDto"];
307
307
  };
308
308
  };
309
309
  };
@@ -332,7 +332,7 @@ export declare class ApiCaller {
332
332
  };
333
333
  requestBody: {
334
334
  content: {
335
- "application/json": import('./sdk/schema').components["schemas"]["WidgetVoteDto"];
335
+ "application/json": import('./schema').components["schemas"]["WidgetVoteDto"];
336
336
  };
337
337
  };
338
338
  responses: {
@@ -341,7 +341,7 @@ export declare class ApiCaller {
341
341
  [name: string]: unknown;
342
342
  };
343
343
  content: {
344
- "application/json": import('./sdk/schema').components["schemas"]["WidgetVoteResponseDto"];
344
+ "application/json": import('./schema').components["schemas"]["WidgetVoteResponseDto"];
345
345
  };
346
346
  };
347
347
  500: {
@@ -349,7 +349,7 @@ export declare class ApiCaller {
349
349
  [name: string]: unknown;
350
350
  };
351
351
  content: {
352
- "application/json": import('./sdk/schema').components["schemas"]["ErrorDto"];
352
+ "application/json": import('./schema').components["schemas"]["ErrorDto"];
353
353
  };
354
354
  };
355
355
  };
@@ -1,7 +1,7 @@
1
1
  import { PrimitiveState } from '../utils/PrimitiveState';
2
- import { ApiCaller } from '../api';
2
+ import { ApiCaller } from '../api/api-caller';
3
3
  import { WidgetConfig } from '../types/widget-config';
4
- import { Dto } from '../sdk';
4
+ import { Dto } from '../api/client';
5
5
  import { StorageCtx } from './storage.ctx';
6
6
  type ContactState = {
7
7
  contact: {
@@ -1,4 +1,4 @@
1
- import { ApiCaller } from '../api';
1
+ import { ApiCaller } from '../api/api-caller';
2
2
  import { WidgetConfig } from '../types/widget-config';
3
3
  import { SafeOmit, SomeOptional } from '../types/helpers';
4
4
  import { MessageType } from '../types/messages';
@@ -1,4 +1,4 @@
1
- import { ApiCaller } from '../api';
1
+ import { ApiCaller } from '../api/api-caller';
2
2
  import { SessionDto } from '../types/schemas';
3
3
  import { PrimitiveState } from '../utils/PrimitiveState';
4
4
  import { ContactCtx } from './contact.ctx';
@@ -1,4 +1,4 @@
1
- import { ApiCaller } from '../api';
1
+ import { ApiCaller } from '../api/api-caller';
2
2
  import { ExternalStorage } from '../types/external-storage';
3
3
  import { WidgetConfig } from '../types/widget-config';
4
4
  import { ContactCtx } from './contact.ctx';
@@ -1,4 +1,4 @@
1
- import { Dto } from '../sdk';
1
+ import { Dto } from '../api/client';
2
2
  export type VoteInputDto = Dto["WidgetVoteDto"];
3
3
  export type VoteOutputDto = Dto["WidgetVoteResponseDto"];
4
4
  export type SendMessageDto = Dto["HttpChatInputDto"];
@@ -14,5 +14,5 @@ declare function WidgetProvider({ options, children, components, storage, }: {
14
14
  children: React.ReactNode;
15
15
  components?: WidgetComponentType[];
16
16
  storage?: ExternalStorage;
17
- }): React.JSX.Element;
17
+ }): React.JSX.Element | null;
18
18
  export { useWidget, WidgetProvider };
@@ -7,5 +7,5 @@ export declare function useContact(): {
7
7
  isCreatingUnverifiedContact: boolean;
8
8
  isErrorCreatingUnverifiedContact: boolean;
9
9
  };
10
- createUnverifiedContact: (payload: import('../../core/sdk').Dto["CreateUnverifiedContactDto"]) => Promise<void>;
10
+ createUnverifiedContact: (payload: import('../../core/api/client').Dto["CreateUnverifiedContactDto"]) => Promise<void>;
11
11
  };
@@ -14,7 +14,7 @@ declare function usePreludeData(): import('swr').SWRResponse<import('openapi-fet
14
14
  [name: string]: unknown;
15
15
  };
16
16
  content: {
17
- "application/json": import('../../core/sdk/schema').components["schemas"]["WidgetPreludeDto"];
17
+ "application/json": import('../../core/api/schema').components["schemas"]["WidgetPreludeDto"];
18
18
  };
19
19
  };
20
20
  500: {
@@ -22,7 +22,7 @@ declare function usePreludeData(): import('swr').SWRResponse<import('openapi-fet
22
22
  [name: string]: unknown;
23
23
  };
24
24
  content: {
25
- "application/json": import('../../core/sdk/schema').components["schemas"]["ErrorDto"];
25
+ "application/json": import('../../core/api/schema').components["schemas"]["ErrorDto"];
26
26
  };
27
27
  };
28
28
  };