bariweb-widget 0.1.10 → 0.1.11

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/types/components/accordion/accordion-item.d.ts +8 -0
  2. package/dist/types/components/accordion/accordion.d.ts +1 -0
  3. package/dist/types/components/accordion/accordion.styles.d.ts +1 -0
  4. package/dist/types/components/button/button.d.ts +8 -0
  5. package/dist/types/components/button/button.styles.d.ts +1 -0
  6. package/dist/types/components/card/card.d.ts +6 -0
  7. package/dist/types/components/card/card.styles.d.ts +1 -0
  8. package/dist/types/controllers/a11y.controller.d.ts +50 -0
  9. package/dist/types/controllers/ai-a11y.controller.d.ts +17 -0
  10. package/dist/types/controllers/chat.controller.d.ts +100 -0
  11. package/dist/types/controllers/scanner.controller.d.ts +1 -0
  12. package/dist/types/controllers/tts.controller.d.ts +11 -0
  13. package/dist/types/index.d.ts +1 -0
  14. package/dist/types/lib/AdminUI.d.ts +8 -0
  15. package/dist/types/lib/Fingerprint.d.ts +44 -0
  16. package/dist/types/lib/Watcher.d.ts +62 -0
  17. package/dist/types/lib/api/client/client.gen.d.ts +2 -0
  18. package/dist/types/lib/api/client/index.d.ts +8 -0
  19. package/dist/types/lib/api/client/types.gen.d.ts +117 -0
  20. package/dist/types/lib/api/client/utils.gen.d.ts +33 -0
  21. package/dist/types/lib/api/client.gen.d.ts +12 -0
  22. package/dist/types/lib/api/core/auth.gen.d.ts +18 -0
  23. package/dist/types/lib/api/core/bodySerializer.gen.d.ts +25 -0
  24. package/dist/types/lib/api/core/params.gen.d.ts +43 -0
  25. package/dist/types/lib/api/core/pathSerializer.gen.d.ts +33 -0
  26. package/dist/types/lib/api/core/queryKeySerializer.gen.d.ts +18 -0
  27. package/dist/types/lib/api/core/serverSentEvents.gen.d.ts +71 -0
  28. package/dist/types/lib/api/core/types.gen.d.ts +78 -0
  29. package/dist/types/lib/api/core/utils.gen.d.ts +19 -0
  30. package/dist/types/lib/api/index.d.ts +2 -0
  31. package/dist/types/lib/api/sdk.gen.d.ts +118 -0
  32. package/dist/types/lib/api/types.gen.d.ts +694 -0
  33. package/dist/types/lib/icons.d.ts +28 -0
  34. package/dist/types/widget.d.ts +67 -0
  35. package/dist/types/widget.styles.d.ts +1 -0
  36. package/package.json +1 -1
@@ -0,0 +1,694 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'http://localhost:8000' | (string & {});
3
+ };
4
+ /**
5
+ * AdminKeyDisplay
6
+ */
7
+ export type AdminKeyDisplay = {
8
+ /**
9
+ * Plain Key
10
+ */
11
+ plain_key: string;
12
+ /**
13
+ * Message
14
+ */
15
+ message?: string;
16
+ };
17
+ /**
18
+ * AdminKeyLoginRequest
19
+ */
20
+ export type AdminKeyLoginRequest = {
21
+ /**
22
+ * Client Public Id
23
+ */
24
+ client_public_id: string;
25
+ /**
26
+ * Admin Key
27
+ */
28
+ admin_key: string;
29
+ };
30
+ /**
31
+ * AdminKeyStatus
32
+ */
33
+ export type AdminKeyStatus = {
34
+ /**
35
+ * Has Key
36
+ */
37
+ has_key: boolean;
38
+ };
39
+ /**
40
+ * AutoSaveRequest
41
+ */
42
+ export type AutoSaveRequest = {
43
+ /**
44
+ * Fingerprint
45
+ */
46
+ fingerprint: string;
47
+ /**
48
+ * Tokens
49
+ */
50
+ tokens: Array<string>;
51
+ /**
52
+ * Page Url
53
+ */
54
+ page_url?: string | null;
55
+ };
56
+ /**
57
+ * ChatMessage
58
+ */
59
+ export type ChatMessage = {
60
+ /**
61
+ * Role
62
+ */
63
+ role: string;
64
+ /**
65
+ * Text
66
+ */
67
+ text: string;
68
+ };
69
+ /**
70
+ * ChatRequest
71
+ */
72
+ export type ChatRequest = {
73
+ /**
74
+ * Query
75
+ */
76
+ query: string;
77
+ /**
78
+ * History
79
+ */
80
+ history?: Array<ChatMessage> | null;
81
+ /**
82
+ * Page Text
83
+ */
84
+ page_text?: string;
85
+ /**
86
+ * Elements
87
+ */
88
+ elements?: string;
89
+ /**
90
+ * Page Url
91
+ */
92
+ page_url?: string | null;
93
+ /**
94
+ * Screen Label
95
+ */
96
+ screen_label?: string | null;
97
+ /**
98
+ * Screen Fingerprint
99
+ */
100
+ screen_fingerprint?: string | null;
101
+ };
102
+ /**
103
+ * ChatResponse
104
+ */
105
+ export type ChatResponse = {
106
+ /**
107
+ * Text
108
+ */
109
+ text: string;
110
+ /**
111
+ * Action
112
+ */
113
+ action?: {
114
+ [key: string]: unknown;
115
+ } | null;
116
+ };
117
+ /**
118
+ * Client
119
+ */
120
+ export type Client = {
121
+ /**
122
+ * Id
123
+ */
124
+ id?: string | null;
125
+ /**
126
+ * Public Id
127
+ */
128
+ public_id?: string;
129
+ /**
130
+ * Name
131
+ */
132
+ name: string;
133
+ /**
134
+ * Allowed Domains
135
+ */
136
+ allowed_domains: string;
137
+ /**
138
+ * Owner Id
139
+ */
140
+ owner_id: string;
141
+ /**
142
+ * Is Active
143
+ */
144
+ is_active?: boolean;
145
+ /**
146
+ * Admin Key Hash
147
+ */
148
+ admin_key_hash?: string | null;
149
+ /**
150
+ * Created At
151
+ */
152
+ created_at?: string;
153
+ };
154
+ /**
155
+ * ClientRegisterRequest
156
+ */
157
+ export type ClientRegisterRequest = {
158
+ /**
159
+ * Name
160
+ */
161
+ name: string;
162
+ /**
163
+ * Domains
164
+ */
165
+ domains: string;
166
+ };
167
+ /**
168
+ * ClientUpdate
169
+ */
170
+ export type ClientUpdate = {
171
+ /**
172
+ * Name
173
+ */
174
+ name?: string | null;
175
+ /**
176
+ * Domains
177
+ */
178
+ domains?: string | null;
179
+ };
180
+ /**
181
+ * ConfirmRequest
182
+ */
183
+ export type ConfirmRequest = {
184
+ /**
185
+ * Label
186
+ */
187
+ label: string;
188
+ /**
189
+ * Description
190
+ */
191
+ description?: string | null;
192
+ };
193
+ /**
194
+ * HTTPValidationError
195
+ */
196
+ export type HttpValidationError = {
197
+ /**
198
+ * Detail
199
+ */
200
+ detail?: Array<ValidationError>;
201
+ };
202
+ /**
203
+ * MatchScreenRequest
204
+ */
205
+ export type MatchScreenRequest = {
206
+ /**
207
+ * Fingerprint
208
+ */
209
+ fingerprint: string;
210
+ };
211
+ /**
212
+ * MatchScreenResponse
213
+ */
214
+ export type MatchScreenResponse = {
215
+ /**
216
+ * Matched
217
+ */
218
+ matched: boolean;
219
+ /**
220
+ * Label
221
+ */
222
+ label?: string | null;
223
+ /**
224
+ * Description
225
+ */
226
+ description?: string | null;
227
+ };
228
+ /**
229
+ * SaveScreenRequest
230
+ */
231
+ export type SaveScreenRequest = {
232
+ /**
233
+ * Fingerprint
234
+ */
235
+ fingerprint: string;
236
+ /**
237
+ * Label
238
+ */
239
+ label: string;
240
+ /**
241
+ * Description
242
+ */
243
+ description?: string | null;
244
+ /**
245
+ * Page Url
246
+ */
247
+ page_url?: string | null;
248
+ };
249
+ /**
250
+ * SuggestNameRequest
251
+ */
252
+ export type SuggestNameRequest = {
253
+ /**
254
+ * Tokens
255
+ */
256
+ tokens: Array<string>;
257
+ };
258
+ /**
259
+ * UserCreate
260
+ */
261
+ export type UserCreate = {
262
+ /**
263
+ * Email
264
+ */
265
+ email: string;
266
+ /**
267
+ * Password
268
+ */
269
+ password: string;
270
+ };
271
+ /**
272
+ * UserLogin
273
+ */
274
+ export type UserLogin = {
275
+ /**
276
+ * Email
277
+ */
278
+ email: string;
279
+ /**
280
+ * Password
281
+ */
282
+ password: string;
283
+ };
284
+ /**
285
+ * UserRead
286
+ */
287
+ export type UserRead = {
288
+ /**
289
+ * Email
290
+ */
291
+ email: string;
292
+ /**
293
+ * Id
294
+ */
295
+ id: string;
296
+ /**
297
+ * Created At
298
+ */
299
+ created_at: string;
300
+ };
301
+ /**
302
+ * ValidationError
303
+ */
304
+ export type ValidationError = {
305
+ /**
306
+ * Location
307
+ */
308
+ loc: Array<string | number>;
309
+ /**
310
+ * Message
311
+ */
312
+ msg: string;
313
+ /**
314
+ * Error Type
315
+ */
316
+ type: string;
317
+ /**
318
+ * Input
319
+ */
320
+ input?: unknown;
321
+ /**
322
+ * Context
323
+ */
324
+ ctx?: {
325
+ [key: string]: unknown;
326
+ };
327
+ };
328
+ export type LoginData = {
329
+ body: UserLogin;
330
+ path?: never;
331
+ query?: never;
332
+ url: '/auth/login';
333
+ };
334
+ export type LoginErrors = {
335
+ /**
336
+ * Validation Error
337
+ */
338
+ 422: HttpValidationError;
339
+ };
340
+ export type LoginError = LoginErrors[keyof LoginErrors];
341
+ export type LoginResponses = {
342
+ /**
343
+ * Successful Response
344
+ */
345
+ 200: unknown;
346
+ };
347
+ export type WidgetLoginData = {
348
+ body: AdminKeyLoginRequest;
349
+ path?: never;
350
+ query?: never;
351
+ url: '/auth/login/widget';
352
+ };
353
+ export type WidgetLoginErrors = {
354
+ /**
355
+ * Validation Error
356
+ */
357
+ 422: HttpValidationError;
358
+ };
359
+ export type WidgetLoginError = WidgetLoginErrors[keyof WidgetLoginErrors];
360
+ export type WidgetLoginResponses = {
361
+ /**
362
+ * Successful Response
363
+ */
364
+ 200: unknown;
365
+ };
366
+ export type MeData = {
367
+ body?: never;
368
+ path?: never;
369
+ query?: never;
370
+ url: '/auth/users/me';
371
+ };
372
+ export type MeResponses = {
373
+ /**
374
+ * Successful Response
375
+ */
376
+ 200: UserRead;
377
+ };
378
+ export type MeResponse = MeResponses[keyof MeResponses];
379
+ export type RegisterData = {
380
+ body: UserCreate;
381
+ path?: never;
382
+ query?: never;
383
+ url: '/auth/users/';
384
+ };
385
+ export type RegisterErrors = {
386
+ /**
387
+ * Validation Error
388
+ */
389
+ 422: HttpValidationError;
390
+ };
391
+ export type RegisterError = RegisterErrors[keyof RegisterErrors];
392
+ export type RegisterResponses = {
393
+ /**
394
+ * Successful Response
395
+ */
396
+ 200: UserRead;
397
+ };
398
+ export type RegisterResponse = RegisterResponses[keyof RegisterResponses];
399
+ export type LogoutData = {
400
+ body?: never;
401
+ path?: never;
402
+ query?: never;
403
+ url: '/auth/logout';
404
+ };
405
+ export type LogoutResponses = {
406
+ /**
407
+ * Successful Response
408
+ */
409
+ 200: unknown;
410
+ };
411
+ export type VerifyTokenData = {
412
+ body?: never;
413
+ path?: never;
414
+ query?: never;
415
+ url: '/auth/verify';
416
+ };
417
+ export type VerifyTokenResponses = {
418
+ /**
419
+ * Successful Response
420
+ */
421
+ 200: UserRead;
422
+ };
423
+ export type VerifyTokenResponse = VerifyTokenResponses[keyof VerifyTokenResponses];
424
+ export type GetStatusData = {
425
+ body?: never;
426
+ path?: never;
427
+ query?: never;
428
+ url: '/auth/status';
429
+ };
430
+ export type GetStatusResponses = {
431
+ /**
432
+ * Successful Response
433
+ */
434
+ 200: UserRead;
435
+ };
436
+ export type GetStatusResponse = GetStatusResponses[keyof GetStatusResponses];
437
+ export type RegisterClientData = {
438
+ body: ClientRegisterRequest;
439
+ path?: never;
440
+ query?: never;
441
+ url: '/clients/register';
442
+ };
443
+ export type RegisterClientErrors = {
444
+ /**
445
+ * Validation Error
446
+ */
447
+ 422: HttpValidationError;
448
+ };
449
+ export type RegisterClientError = RegisterClientErrors[keyof RegisterClientErrors];
450
+ export type RegisterClientResponses = {
451
+ /**
452
+ * Successful Response
453
+ */
454
+ 200: unknown;
455
+ };
456
+ export type GetMyClientsData = {
457
+ body?: never;
458
+ path?: never;
459
+ query?: never;
460
+ url: '/clients/my';
461
+ };
462
+ export type GetMyClientsResponses = {
463
+ /**
464
+ * Response Get My Clients
465
+ *
466
+ * Successful Response
467
+ */
468
+ 200: Array<Client>;
469
+ };
470
+ export type GetMyClientsResponse = GetMyClientsResponses[keyof GetMyClientsResponses];
471
+ export type DeleteClientData = {
472
+ body?: never;
473
+ path: {
474
+ /**
475
+ * Client Id
476
+ */
477
+ client_id: string;
478
+ };
479
+ query?: never;
480
+ url: '/clients/{client_id}';
481
+ };
482
+ export type DeleteClientErrors = {
483
+ /**
484
+ * Validation Error
485
+ */
486
+ 422: HttpValidationError;
487
+ };
488
+ export type DeleteClientError = DeleteClientErrors[keyof DeleteClientErrors];
489
+ export type DeleteClientResponses = {
490
+ /**
491
+ * Successful Response
492
+ */
493
+ 200: unknown;
494
+ };
495
+ export type UpdateClientData = {
496
+ body: ClientUpdate;
497
+ path: {
498
+ /**
499
+ * Client Id
500
+ */
501
+ client_id: string;
502
+ };
503
+ query?: never;
504
+ url: '/clients/{client_id}';
505
+ };
506
+ export type UpdateClientErrors = {
507
+ /**
508
+ * Validation Error
509
+ */
510
+ 422: HttpValidationError;
511
+ };
512
+ export type UpdateClientError = UpdateClientErrors[keyof UpdateClientErrors];
513
+ export type UpdateClientResponses = {
514
+ /**
515
+ * Successful Response
516
+ */
517
+ 200: unknown;
518
+ };
519
+ export type GenerateAdminKeyData = {
520
+ body?: never;
521
+ path: {
522
+ /**
523
+ * Client Id
524
+ */
525
+ client_id: string;
526
+ };
527
+ query?: never;
528
+ url: '/clients/{client_id}/keys';
529
+ };
530
+ export type GenerateAdminKeyErrors = {
531
+ /**
532
+ * Validation Error
533
+ */
534
+ 422: HttpValidationError;
535
+ };
536
+ export type GenerateAdminKeyError = GenerateAdminKeyErrors[keyof GenerateAdminKeyErrors];
537
+ export type GenerateAdminKeyResponses = {
538
+ /**
539
+ * Successful Response
540
+ */
541
+ 200: AdminKeyDisplay;
542
+ };
543
+ export type GenerateAdminKeyResponse = GenerateAdminKeyResponses[keyof GenerateAdminKeyResponses];
544
+ export type GetAdminKeyStatusData = {
545
+ body?: never;
546
+ path: {
547
+ /**
548
+ * Client Id
549
+ */
550
+ client_id: string;
551
+ };
552
+ query?: never;
553
+ url: '/clients/{client_id}/keys/status';
554
+ };
555
+ export type GetAdminKeyStatusErrors = {
556
+ /**
557
+ * Validation Error
558
+ */
559
+ 422: HttpValidationError;
560
+ };
561
+ export type GetAdminKeyStatusError = GetAdminKeyStatusErrors[keyof GetAdminKeyStatusErrors];
562
+ export type GetAdminKeyStatusResponses = {
563
+ /**
564
+ * Successful Response
565
+ */
566
+ 200: AdminKeyStatus;
567
+ };
568
+ export type GetAdminKeyStatusResponse = GetAdminKeyStatusResponses[keyof GetAdminKeyStatusResponses];
569
+ export type ChatData = {
570
+ body: ChatRequest;
571
+ path?: never;
572
+ query?: never;
573
+ url: '/v1/chat';
574
+ };
575
+ export type ChatErrors = {
576
+ /**
577
+ * Validation Error
578
+ */
579
+ 422: HttpValidationError;
580
+ };
581
+ export type ChatError = ChatErrors[keyof ChatErrors];
582
+ export type ChatResponses = {
583
+ /**
584
+ * Successful Response
585
+ */
586
+ 200: ChatResponse;
587
+ };
588
+ export type ChatResponse2 = ChatResponses[keyof ChatResponses];
589
+ export type MatchScreenData = {
590
+ body: MatchScreenRequest;
591
+ path?: never;
592
+ query?: never;
593
+ url: '/v1/training/match-screen';
594
+ };
595
+ export type MatchScreenErrors = {
596
+ /**
597
+ * Validation Error
598
+ */
599
+ 422: HttpValidationError;
600
+ };
601
+ export type MatchScreenError = MatchScreenErrors[keyof MatchScreenErrors];
602
+ export type MatchScreenResponses = {
603
+ /**
604
+ * Successful Response
605
+ */
606
+ 200: MatchScreenResponse;
607
+ };
608
+ export type MatchScreenResponse2 = MatchScreenResponses[keyof MatchScreenResponses];
609
+ export type SaveScreenContextData = {
610
+ body: SaveScreenRequest;
611
+ path?: never;
612
+ query?: {
613
+ /**
614
+ * Client Id
615
+ */
616
+ client_id?: string;
617
+ };
618
+ url: '/v1/training/save-screen-context';
619
+ };
620
+ export type SaveScreenContextErrors = {
621
+ /**
622
+ * Validation Error
623
+ */
624
+ 422: HttpValidationError;
625
+ };
626
+ export type SaveScreenContextError = SaveScreenContextErrors[keyof SaveScreenContextErrors];
627
+ export type SaveScreenContextResponses = {
628
+ /**
629
+ * Successful Response
630
+ */
631
+ 200: unknown;
632
+ };
633
+ export type AutoSaveData = {
634
+ body: AutoSaveRequest;
635
+ path?: never;
636
+ query?: never;
637
+ url: '/v1/training/auto-save';
638
+ };
639
+ export type AutoSaveErrors = {
640
+ /**
641
+ * Validation Error
642
+ */
643
+ 422: HttpValidationError;
644
+ };
645
+ export type AutoSaveError = AutoSaveErrors[keyof AutoSaveErrors];
646
+ export type AutoSaveResponses = {
647
+ /**
648
+ * Successful Response
649
+ */
650
+ 200: unknown;
651
+ };
652
+ export type SuggestNameData = {
653
+ body: SuggestNameRequest;
654
+ path?: never;
655
+ query?: never;
656
+ url: '/v1/training/suggest-name';
657
+ };
658
+ export type SuggestNameErrors = {
659
+ /**
660
+ * Validation Error
661
+ */
662
+ 422: HttpValidationError;
663
+ };
664
+ export type SuggestNameError = SuggestNameErrors[keyof SuggestNameErrors];
665
+ export type SuggestNameResponses = {
666
+ /**
667
+ * Successful Response
668
+ */
669
+ 200: unknown;
670
+ };
671
+ export type ConfirmScreenData = {
672
+ body: ConfirmRequest;
673
+ path: {
674
+ /**
675
+ * Screen Id
676
+ */
677
+ screen_id: string;
678
+ };
679
+ query?: never;
680
+ url: '/v1/training/confirm/{screen_id}';
681
+ };
682
+ export type ConfirmScreenErrors = {
683
+ /**
684
+ * Validation Error
685
+ */
686
+ 422: HttpValidationError;
687
+ };
688
+ export type ConfirmScreenError = ConfirmScreenErrors[keyof ConfirmScreenErrors];
689
+ export type ConfirmScreenResponses = {
690
+ /**
691
+ * Successful Response
692
+ */
693
+ 200: unknown;
694
+ };
@@ -0,0 +1,28 @@
1
+ export declare const Icons: {
2
+ accessibility: import("lit-html").TemplateResult<1>;
3
+ chat: import("lit-html").TemplateResult<1>;
4
+ settings: import("lit-html").TemplateResult<1>;
5
+ mic: import("lit-html").TemplateResult<1>;
6
+ volumeOn: import("lit-html").TemplateResult<1>;
7
+ volumeOff: import("lit-html").TemplateResult<1>;
8
+ shield: import("lit-html").TemplateResult<1>;
9
+ close: import("lit-html").TemplateResult<1>;
10
+ languages: import("lit-html").TemplateResult<1>;
11
+ profiles: import("lit-html").TemplateResult<1>;
12
+ textSize: import("lit-html").TemplateResult<1>;
13
+ contrast: import("lit-html").TemplateResult<1>;
14
+ grayscale: import("lit-html").TemplateResult<1>;
15
+ cursor: import("lit-html").TemplateResult<1>;
16
+ screenReader: import("lit-html").TemplateResult<1>;
17
+ visualImpair: import("lit-html").TemplateResult<1>;
18
+ seizureSafe: import("lit-html").TemplateResult<1>;
19
+ cognitive: import("lit-html").TemplateResult<1>;
20
+ info: import("lit-html").TemplateResult<1>;
21
+ check: import("lit-html").TemplateResult<1>;
22
+ chevronDown: import("lit-html").TemplateResult<1>;
23
+ sun: import("lit-html").TemplateResult<1>;
24
+ moon: import("lit-html").TemplateResult<1>;
25
+ droplet: import("lit-html").TemplateResult<1>;
26
+ refresh: import("lit-html").TemplateResult<1>;
27
+ send: import("lit-html").TemplateResult<1>;
28
+ };