cogito-client 1.0.20 → 1.0.22
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.
- package/dist/index.d.ts +536 -49
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -44,11 +44,24 @@ export declare interface CogitoAudioSurface {
|
|
|
44
44
|
description?: string;
|
|
45
45
|
artwork?: string;
|
|
46
46
|
durationMs?: number;
|
|
47
|
+
fileSizeBytes?: number;
|
|
48
|
+
createdAt?: string;
|
|
49
|
+
locale?: string;
|
|
50
|
+
source?: {
|
|
51
|
+
label: string;
|
|
52
|
+
iconUrl?: string;
|
|
53
|
+
url?: string;
|
|
54
|
+
[k: string]: unknown;
|
|
55
|
+
};
|
|
47
56
|
responseActions?: {
|
|
48
57
|
id: string;
|
|
49
58
|
label: string;
|
|
50
|
-
|
|
59
|
+
sentence?: string;
|
|
60
|
+
confirmLabel?: string;
|
|
61
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
62
|
+
loading?: boolean;
|
|
51
63
|
disabled?: boolean;
|
|
64
|
+
shortcut?: string;
|
|
52
65
|
[k: string]: unknown;
|
|
53
66
|
}[];
|
|
54
67
|
onResponseAction?: {
|
|
@@ -97,11 +110,16 @@ export declare interface CogitoCitationSurface {
|
|
|
97
110
|
author?: string;
|
|
98
111
|
publishedAt?: string;
|
|
99
112
|
type?: "webpage" | "document" | "article" | "api" | "code" | "other";
|
|
113
|
+
locale?: string;
|
|
100
114
|
responseActions?: {
|
|
101
115
|
id: string;
|
|
102
116
|
label: string;
|
|
103
|
-
|
|
117
|
+
sentence?: string;
|
|
118
|
+
confirmLabel?: string;
|
|
119
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
120
|
+
loading?: boolean;
|
|
104
121
|
disabled?: boolean;
|
|
122
|
+
shortcut?: string;
|
|
105
123
|
[k: string]: unknown;
|
|
106
124
|
}[];
|
|
107
125
|
onResponseAction?: {
|
|
@@ -123,8 +141,12 @@ export declare interface CogitoCodeSurface {
|
|
|
123
141
|
responseActions?: {
|
|
124
142
|
id: string;
|
|
125
143
|
label: string;
|
|
126
|
-
|
|
144
|
+
sentence?: string;
|
|
145
|
+
confirmLabel?: string;
|
|
146
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
147
|
+
loading?: boolean;
|
|
127
148
|
disabled?: boolean;
|
|
149
|
+
shortcut?: string;
|
|
128
150
|
[k: string]: unknown;
|
|
129
151
|
}[];
|
|
130
152
|
onResponseAction?: {
|
|
@@ -152,10 +174,78 @@ export declare interface CogitoDataTableSurface {
|
|
|
152
174
|
columns: {
|
|
153
175
|
key: string;
|
|
154
176
|
label: string;
|
|
177
|
+
abbr?: string;
|
|
178
|
+
sortable?: boolean;
|
|
179
|
+
width?: string;
|
|
155
180
|
priority?: "primary" | "secondary" | "tertiary";
|
|
156
181
|
truncate?: boolean;
|
|
157
|
-
|
|
158
|
-
|
|
182
|
+
hideOnMobile?: boolean;
|
|
183
|
+
format?: {
|
|
184
|
+
kind: "text";
|
|
185
|
+
[k: string]: unknown;
|
|
186
|
+
} | {
|
|
187
|
+
kind: "number";
|
|
188
|
+
decimals?: number;
|
|
189
|
+
unit?: string;
|
|
190
|
+
compact?: boolean;
|
|
191
|
+
showSign?: boolean;
|
|
192
|
+
[k: string]: unknown;
|
|
193
|
+
} | {
|
|
194
|
+
kind: "currency";
|
|
195
|
+
currency: string;
|
|
196
|
+
decimals?: number;
|
|
197
|
+
[k: string]: unknown;
|
|
198
|
+
} | {
|
|
199
|
+
kind: "percent";
|
|
200
|
+
decimals?: number;
|
|
201
|
+
showSign?: boolean;
|
|
202
|
+
basis?: "fraction" | "unit";
|
|
203
|
+
[k: string]: unknown;
|
|
204
|
+
} | {
|
|
205
|
+
kind: "date";
|
|
206
|
+
dateFormat?: "short" | "long" | "relative";
|
|
207
|
+
[k: string]: unknown;
|
|
208
|
+
} | {
|
|
209
|
+
kind: "delta";
|
|
210
|
+
decimals?: number;
|
|
211
|
+
upIsPositive?: boolean;
|
|
212
|
+
showSign?: boolean;
|
|
213
|
+
[k: string]: unknown;
|
|
214
|
+
} | {
|
|
215
|
+
kind: "status";
|
|
216
|
+
statusMap: {
|
|
217
|
+
[k: string]: {
|
|
218
|
+
tone: "success" | "warning" | "danger" | "info" | "neutral";
|
|
219
|
+
label?: string;
|
|
220
|
+
[k: string]: unknown;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
[k: string]: unknown;
|
|
224
|
+
} | {
|
|
225
|
+
kind: "boolean";
|
|
226
|
+
labels?: {
|
|
227
|
+
true: string;
|
|
228
|
+
false: string;
|
|
229
|
+
[k: string]: unknown;
|
|
230
|
+
};
|
|
231
|
+
[k: string]: unknown;
|
|
232
|
+
} | {
|
|
233
|
+
kind: "link";
|
|
234
|
+
hrefKey?: string;
|
|
235
|
+
external?: boolean;
|
|
236
|
+
[k: string]: unknown;
|
|
237
|
+
} | {
|
|
238
|
+
kind: "badge";
|
|
239
|
+
colorMap?: {
|
|
240
|
+
[k: string]: "success" | "warning" | "danger" | "info" | "neutral";
|
|
241
|
+
};
|
|
242
|
+
[k: string]: unknown;
|
|
243
|
+
} | {
|
|
244
|
+
kind: "array";
|
|
245
|
+
maxVisible?: number;
|
|
246
|
+
[k: string]: unknown;
|
|
247
|
+
};
|
|
248
|
+
align?: "left" | "right" | "center";
|
|
159
249
|
[k: string]: unknown;
|
|
160
250
|
}[];
|
|
161
251
|
data: {
|
|
@@ -172,8 +262,12 @@ export declare interface CogitoDataTableSurface {
|
|
|
172
262
|
responseActions?: {
|
|
173
263
|
id: string;
|
|
174
264
|
label: string;
|
|
175
|
-
|
|
265
|
+
sentence?: string;
|
|
266
|
+
confirmLabel?: string;
|
|
267
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
268
|
+
loading?: boolean;
|
|
176
269
|
disabled?: boolean;
|
|
270
|
+
shortcut?: string;
|
|
177
271
|
[k: string]: unknown;
|
|
178
272
|
}[];
|
|
179
273
|
onResponseAction?: {
|
|
@@ -208,10 +302,15 @@ export declare interface CogitoImageGallerySurface {
|
|
|
208
302
|
id: string;
|
|
209
303
|
src: string;
|
|
210
304
|
alt: string;
|
|
211
|
-
width
|
|
212
|
-
height
|
|
305
|
+
width: number;
|
|
306
|
+
height: number;
|
|
213
307
|
title?: string;
|
|
214
308
|
caption?: string;
|
|
309
|
+
source?: {
|
|
310
|
+
label: string;
|
|
311
|
+
url?: string;
|
|
312
|
+
[k: string]: unknown;
|
|
313
|
+
};
|
|
215
314
|
[k: string]: unknown;
|
|
216
315
|
}[];
|
|
217
316
|
title?: string;
|
|
@@ -233,13 +332,26 @@ export declare interface CogitoImageSurface {
|
|
|
233
332
|
description?: string;
|
|
234
333
|
href?: string;
|
|
235
334
|
domain?: string;
|
|
236
|
-
ratio?:
|
|
237
|
-
fit?: "cover" | "contain"
|
|
335
|
+
ratio?: "auto" | "1:1" | "4:3" | "16:9" | "9:16";
|
|
336
|
+
fit?: "cover" | "contain";
|
|
337
|
+
fileSizeBytes?: number;
|
|
338
|
+
createdAt?: string;
|
|
339
|
+
locale?: string;
|
|
340
|
+
source?: {
|
|
341
|
+
label: string;
|
|
342
|
+
iconUrl?: string;
|
|
343
|
+
url?: string;
|
|
344
|
+
[k: string]: unknown;
|
|
345
|
+
};
|
|
238
346
|
responseActions?: {
|
|
239
347
|
id: string;
|
|
240
348
|
label: string;
|
|
241
|
-
|
|
349
|
+
sentence?: string;
|
|
350
|
+
confirmLabel?: string;
|
|
351
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
352
|
+
loading?: boolean;
|
|
242
353
|
disabled?: boolean;
|
|
354
|
+
shortcut?: string;
|
|
243
355
|
[k: string]: unknown;
|
|
244
356
|
}[];
|
|
245
357
|
onResponseAction?: {
|
|
@@ -287,13 +399,19 @@ export declare interface CogitoLinkPreviewSurface {
|
|
|
287
399
|
image?: string;
|
|
288
400
|
domain?: string;
|
|
289
401
|
favicon?: string;
|
|
290
|
-
ratio?:
|
|
291
|
-
fit?:
|
|
402
|
+
ratio?: "auto" | "1:1" | "4:3" | "16:9" | "9:16";
|
|
403
|
+
fit?: "cover" | "contain";
|
|
404
|
+
createdAt?: string;
|
|
405
|
+
locale?: string;
|
|
292
406
|
responseActions?: {
|
|
293
407
|
id: string;
|
|
294
408
|
label: string;
|
|
295
|
-
|
|
409
|
+
sentence?: string;
|
|
410
|
+
confirmLabel?: string;
|
|
411
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
412
|
+
loading?: boolean;
|
|
296
413
|
disabled?: boolean;
|
|
414
|
+
shortcut?: string;
|
|
297
415
|
[k: string]: unknown;
|
|
298
416
|
}[];
|
|
299
417
|
onResponseAction?: {
|
|
@@ -317,17 +435,23 @@ export declare interface CogitoOptionListSurface {
|
|
|
317
435
|
id: string;
|
|
318
436
|
label: string;
|
|
319
437
|
description?: string;
|
|
320
|
-
|
|
438
|
+
disabled?: boolean;
|
|
321
439
|
[k: string]: unknown;
|
|
322
440
|
}[];
|
|
323
441
|
selectionMode?: "single" | "multi";
|
|
442
|
+
defaultValue?: unknown;
|
|
443
|
+
choice?: unknown;
|
|
324
444
|
minSelections?: number;
|
|
325
445
|
maxSelections?: number;
|
|
326
446
|
responseActions?: {
|
|
327
447
|
id: string;
|
|
328
448
|
label: string;
|
|
329
|
-
|
|
449
|
+
sentence?: string;
|
|
450
|
+
confirmLabel?: string;
|
|
451
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
452
|
+
loading?: boolean;
|
|
330
453
|
disabled?: boolean;
|
|
454
|
+
shortcut?: string;
|
|
331
455
|
[k: string]: unknown;
|
|
332
456
|
}[];
|
|
333
457
|
onResponseAction?: {
|
|
@@ -352,24 +476,36 @@ export declare interface CogitoOrderSummarySurface {
|
|
|
352
476
|
name: string;
|
|
353
477
|
description?: string;
|
|
354
478
|
imageUrl?: string;
|
|
355
|
-
quantity
|
|
479
|
+
quantity?: number;
|
|
356
480
|
unitPrice: number;
|
|
357
481
|
[k: string]: unknown;
|
|
358
482
|
}[];
|
|
359
483
|
pricing: {
|
|
360
484
|
subtotal: number;
|
|
361
|
-
tax
|
|
362
|
-
|
|
485
|
+
tax?: number;
|
|
486
|
+
taxLabel?: string;
|
|
487
|
+
shipping?: number;
|
|
363
488
|
discount?: number;
|
|
489
|
+
discountLabel?: string;
|
|
364
490
|
total: number;
|
|
365
|
-
currency
|
|
491
|
+
currency?: string;
|
|
492
|
+
[k: string]: unknown;
|
|
493
|
+
};
|
|
494
|
+
choice?: {
|
|
495
|
+
action: "confirm";
|
|
496
|
+
orderId?: string;
|
|
497
|
+
confirmedAt?: string;
|
|
366
498
|
[k: string]: unknown;
|
|
367
499
|
};
|
|
368
500
|
responseActions?: {
|
|
369
501
|
id: string;
|
|
370
502
|
label: string;
|
|
371
|
-
|
|
503
|
+
sentence?: string;
|
|
504
|
+
confirmLabel?: string;
|
|
505
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
506
|
+
loading?: boolean;
|
|
372
507
|
disabled?: boolean;
|
|
508
|
+
shortcut?: string;
|
|
373
509
|
[k: string]: unknown;
|
|
374
510
|
}[];
|
|
375
511
|
onResponseAction?: {
|
|
@@ -388,7 +524,7 @@ export declare interface CogitoParameterSliderSurface {
|
|
|
388
524
|
min: number;
|
|
389
525
|
max: number;
|
|
390
526
|
step?: number;
|
|
391
|
-
value
|
|
527
|
+
value: number;
|
|
392
528
|
unit?: string;
|
|
393
529
|
precision?: number;
|
|
394
530
|
[k: string]: unknown;
|
|
@@ -396,8 +532,12 @@ export declare interface CogitoParameterSliderSurface {
|
|
|
396
532
|
responseActions?: {
|
|
397
533
|
id: string;
|
|
398
534
|
label: string;
|
|
399
|
-
|
|
535
|
+
sentence?: string;
|
|
536
|
+
confirmLabel?: string;
|
|
537
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
538
|
+
loading?: boolean;
|
|
400
539
|
disabled?: boolean;
|
|
540
|
+
shortcut?: string;
|
|
401
541
|
[k: string]: unknown;
|
|
402
542
|
}[];
|
|
403
543
|
onResponseAction?: {
|
|
@@ -420,7 +560,7 @@ export declare interface CogitoPlanSurface {
|
|
|
420
560
|
todos: {
|
|
421
561
|
id: string;
|
|
422
562
|
label: string;
|
|
423
|
-
status: "pending" | "in_progress" | "completed";
|
|
563
|
+
status: "pending" | "in_progress" | "completed" | "cancelled";
|
|
424
564
|
description?: string;
|
|
425
565
|
[k: string]: unknown;
|
|
426
566
|
}[];
|
|
@@ -428,8 +568,12 @@ export declare interface CogitoPlanSurface {
|
|
|
428
568
|
responseActions?: {
|
|
429
569
|
id: string;
|
|
430
570
|
label: string;
|
|
431
|
-
|
|
571
|
+
sentence?: string;
|
|
572
|
+
confirmLabel?: string;
|
|
573
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
574
|
+
loading?: boolean;
|
|
432
575
|
disabled?: boolean;
|
|
576
|
+
shortcut?: string;
|
|
433
577
|
[k: string]: unknown;
|
|
434
578
|
}[];
|
|
435
579
|
onResponseAction?: {
|
|
@@ -444,26 +588,95 @@ export declare interface CogitoPreferencesPanelSurface {
|
|
|
444
588
|
state: {
|
|
445
589
|
title?: string;
|
|
446
590
|
sections: {
|
|
447
|
-
|
|
448
|
-
items: {
|
|
591
|
+
heading?: string;
|
|
592
|
+
items: ({
|
|
449
593
|
id: string;
|
|
450
594
|
label: string;
|
|
451
595
|
description?: string;
|
|
452
|
-
type: "switch"
|
|
596
|
+
type: "switch";
|
|
453
597
|
defaultChecked?: boolean;
|
|
454
|
-
|
|
455
|
-
|
|
598
|
+
[k: string]: unknown;
|
|
599
|
+
} | {
|
|
600
|
+
id: string;
|
|
601
|
+
label: string;
|
|
602
|
+
description?: string;
|
|
603
|
+
type: "toggle";
|
|
604
|
+
/**
|
|
605
|
+
* @minItems 2
|
|
606
|
+
*/
|
|
607
|
+
options: [
|
|
608
|
+
{
|
|
609
|
+
value: string;
|
|
610
|
+
label: string;
|
|
611
|
+
[k: string]: unknown;
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
value: string;
|
|
615
|
+
label: string;
|
|
456
616
|
[k: string]: unknown;
|
|
457
|
-
}
|
|
617
|
+
},
|
|
618
|
+
...{
|
|
619
|
+
value: string;
|
|
620
|
+
label: string;
|
|
621
|
+
[k: string]: unknown;
|
|
622
|
+
}[]
|
|
623
|
+
];
|
|
624
|
+
defaultValue?: string;
|
|
458
625
|
[k: string]: unknown;
|
|
459
|
-
}
|
|
626
|
+
} | {
|
|
627
|
+
id: string;
|
|
628
|
+
label: string;
|
|
629
|
+
description?: string;
|
|
630
|
+
type: "select";
|
|
631
|
+
/**
|
|
632
|
+
* @minItems 5
|
|
633
|
+
*/
|
|
634
|
+
selectOptions: [
|
|
635
|
+
{
|
|
636
|
+
value: string;
|
|
637
|
+
label: string;
|
|
638
|
+
[k: string]: unknown;
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
value: string;
|
|
642
|
+
label: string;
|
|
643
|
+
[k: string]: unknown;
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
value: string;
|
|
647
|
+
label: string;
|
|
648
|
+
[k: string]: unknown;
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
value: string;
|
|
652
|
+
label: string;
|
|
653
|
+
[k: string]: unknown;
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
value: string;
|
|
657
|
+
label: string;
|
|
658
|
+
[k: string]: unknown;
|
|
659
|
+
},
|
|
660
|
+
...{
|
|
661
|
+
value: string;
|
|
662
|
+
label: string;
|
|
663
|
+
[k: string]: unknown;
|
|
664
|
+
}[]
|
|
665
|
+
];
|
|
666
|
+
defaultSelected?: string;
|
|
667
|
+
[k: string]: unknown;
|
|
668
|
+
})[];
|
|
460
669
|
[k: string]: unknown;
|
|
461
670
|
}[];
|
|
462
671
|
responseActions?: {
|
|
463
672
|
id: string;
|
|
464
673
|
label: string;
|
|
465
|
-
|
|
674
|
+
sentence?: string;
|
|
675
|
+
confirmLabel?: string;
|
|
676
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
677
|
+
loading?: boolean;
|
|
466
678
|
disabled?: boolean;
|
|
679
|
+
shortcut?: string;
|
|
467
680
|
[k: string]: unknown;
|
|
468
681
|
}[];
|
|
469
682
|
onResponseAction?: {
|
|
@@ -490,11 +703,24 @@ export declare interface CogitoProgressTrackerSurface {
|
|
|
490
703
|
[k: string]: unknown;
|
|
491
704
|
}[];
|
|
492
705
|
elapsedTime?: number;
|
|
706
|
+
choice?: {
|
|
707
|
+
outcome: "confirmed" | "cancelled" | "dismissed" | "expired" | "error";
|
|
708
|
+
summary: string;
|
|
709
|
+
identifiers?: {
|
|
710
|
+
[k: string]: string;
|
|
711
|
+
};
|
|
712
|
+
at: string;
|
|
713
|
+
[k: string]: unknown;
|
|
714
|
+
};
|
|
493
715
|
responseActions?: {
|
|
494
716
|
id: string;
|
|
495
717
|
label: string;
|
|
496
|
-
|
|
718
|
+
sentence?: string;
|
|
719
|
+
confirmLabel?: string;
|
|
720
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
721
|
+
loading?: boolean;
|
|
497
722
|
disabled?: boolean;
|
|
723
|
+
shortcut?: string;
|
|
498
724
|
[k: string]: unknown;
|
|
499
725
|
}[];
|
|
500
726
|
onResponseAction?: {
|
|
@@ -507,18 +733,40 @@ export declare interface CogitoProgressTrackerSurface {
|
|
|
507
733
|
export declare interface CogitoQuestionFlowSurface {
|
|
508
734
|
type: "question-flow";
|
|
509
735
|
state: {
|
|
510
|
-
steps
|
|
736
|
+
steps?: {
|
|
511
737
|
id: string;
|
|
512
738
|
title: string;
|
|
513
739
|
description?: string;
|
|
514
740
|
options: {
|
|
515
741
|
id: string;
|
|
516
742
|
label: string;
|
|
743
|
+
description?: string;
|
|
744
|
+
disabled?: boolean;
|
|
517
745
|
[k: string]: unknown;
|
|
518
746
|
}[];
|
|
519
|
-
selectionMode?:
|
|
747
|
+
selectionMode?: "single" | "multi";
|
|
748
|
+
[k: string]: unknown;
|
|
749
|
+
}[];
|
|
750
|
+
step?: number;
|
|
751
|
+
title?: string;
|
|
752
|
+
description?: string;
|
|
753
|
+
options?: {
|
|
754
|
+
id: string;
|
|
755
|
+
label: string;
|
|
756
|
+
description?: string;
|
|
757
|
+
disabled?: boolean;
|
|
520
758
|
[k: string]: unknown;
|
|
521
759
|
}[];
|
|
760
|
+
selectionMode?: "single" | "multi";
|
|
761
|
+
choice?: {
|
|
762
|
+
title: string;
|
|
763
|
+
summary: {
|
|
764
|
+
label: string;
|
|
765
|
+
value: string;
|
|
766
|
+
[k: string]: unknown;
|
|
767
|
+
}[];
|
|
768
|
+
[k: string]: unknown;
|
|
769
|
+
};
|
|
522
770
|
onComplete?: {
|
|
523
771
|
[k: string]: unknown;
|
|
524
772
|
};
|
|
@@ -549,16 +797,38 @@ export declare interface CogitoStatsDisplaySurface {
|
|
|
549
797
|
stats: {
|
|
550
798
|
key: string;
|
|
551
799
|
label: string;
|
|
552
|
-
value:
|
|
553
|
-
format?:
|
|
800
|
+
value: string | number;
|
|
801
|
+
format?: {
|
|
802
|
+
kind: "text";
|
|
803
|
+
[k: string]: unknown;
|
|
804
|
+
} | {
|
|
805
|
+
kind: "number";
|
|
806
|
+
decimals?: number;
|
|
807
|
+
compact?: boolean;
|
|
808
|
+
[k: string]: unknown;
|
|
809
|
+
} | {
|
|
810
|
+
kind: "currency";
|
|
811
|
+
currency: string;
|
|
812
|
+
decimals?: number;
|
|
813
|
+
[k: string]: unknown;
|
|
814
|
+
} | {
|
|
815
|
+
kind: "percent";
|
|
816
|
+
decimals?: number;
|
|
817
|
+
basis?: "fraction" | "unit";
|
|
818
|
+
[k: string]: unknown;
|
|
819
|
+
};
|
|
554
820
|
diff?: {
|
|
555
821
|
value: number;
|
|
556
822
|
decimals?: number;
|
|
557
823
|
upIsPositive?: boolean;
|
|
824
|
+
label?: string;
|
|
558
825
|
[k: string]: unknown;
|
|
559
826
|
};
|
|
560
827
|
sparkline?: {
|
|
561
|
-
|
|
828
|
+
/**
|
|
829
|
+
* @minItems 2
|
|
830
|
+
*/
|
|
831
|
+
data: [number, number, ...number[]];
|
|
562
832
|
color?: string;
|
|
563
833
|
[k: string]: unknown;
|
|
564
834
|
};
|
|
@@ -679,8 +949,12 @@ export declare interface CogitoTerminalSurface {
|
|
|
679
949
|
responseActions?: {
|
|
680
950
|
id: string;
|
|
681
951
|
label: string;
|
|
682
|
-
|
|
952
|
+
sentence?: string;
|
|
953
|
+
confirmLabel?: string;
|
|
954
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
955
|
+
loading?: boolean;
|
|
683
956
|
disabled?: boolean;
|
|
957
|
+
shortcut?: string;
|
|
684
958
|
[k: string]: unknown;
|
|
685
959
|
}[];
|
|
686
960
|
onResponseAction?: {
|
|
@@ -723,13 +997,25 @@ export declare interface CogitoVideoSurface {
|
|
|
723
997
|
href?: string;
|
|
724
998
|
domain?: string;
|
|
725
999
|
durationMs?: number;
|
|
726
|
-
ratio?:
|
|
727
|
-
fit?:
|
|
1000
|
+
ratio?: "auto" | "1:1" | "4:3" | "16:9" | "9:16";
|
|
1001
|
+
fit?: "cover" | "contain";
|
|
1002
|
+
createdAt?: string;
|
|
1003
|
+
locale?: string;
|
|
1004
|
+
source?: {
|
|
1005
|
+
label: string;
|
|
1006
|
+
iconUrl?: string;
|
|
1007
|
+
url?: string;
|
|
1008
|
+
[k: string]: unknown;
|
|
1009
|
+
};
|
|
728
1010
|
responseActions?: {
|
|
729
1011
|
id: string;
|
|
730
1012
|
label: string;
|
|
731
|
-
|
|
1013
|
+
sentence?: string;
|
|
1014
|
+
confirmLabel?: string;
|
|
1015
|
+
variant?: "default" | "destructive" | "secondary" | "ghost" | "outline";
|
|
1016
|
+
loading?: boolean;
|
|
732
1017
|
disabled?: boolean;
|
|
1018
|
+
shortcut?: string;
|
|
733
1019
|
[k: string]: unknown;
|
|
734
1020
|
}[];
|
|
735
1021
|
onResponseAction?: {
|
|
@@ -747,21 +1033,222 @@ export declare interface CogitoWeatherSurface {
|
|
|
747
1033
|
temp: number;
|
|
748
1034
|
tempMin: number;
|
|
749
1035
|
tempMax: number;
|
|
750
|
-
condition:
|
|
1036
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
751
1037
|
windSpeed?: number;
|
|
752
|
-
windDirection?:
|
|
1038
|
+
windDirection?: number;
|
|
753
1039
|
humidity?: number;
|
|
754
|
-
precipitation?:
|
|
1040
|
+
precipitation?: "none" | "light" | "moderate" | "heavy";
|
|
755
1041
|
visibility?: number;
|
|
756
1042
|
[k: string]: unknown;
|
|
757
1043
|
};
|
|
758
|
-
|
|
1044
|
+
/**
|
|
1045
|
+
* @minItems 1
|
|
1046
|
+
* @maxItems 7
|
|
1047
|
+
*/
|
|
1048
|
+
forecast?: [
|
|
1049
|
+
{
|
|
759
1050
|
day: string;
|
|
760
1051
|
tempMin: number;
|
|
761
1052
|
tempMax: number;
|
|
762
|
-
condition:
|
|
1053
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
763
1054
|
[k: string]: unknown;
|
|
764
|
-
}
|
|
1055
|
+
}
|
|
1056
|
+
] | [
|
|
1057
|
+
{
|
|
1058
|
+
day: string;
|
|
1059
|
+
tempMin: number;
|
|
1060
|
+
tempMax: number;
|
|
1061
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1062
|
+
[k: string]: unknown;
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
day: string;
|
|
1066
|
+
tempMin: number;
|
|
1067
|
+
tempMax: number;
|
|
1068
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1069
|
+
[k: string]: unknown;
|
|
1070
|
+
}
|
|
1071
|
+
] | [
|
|
1072
|
+
{
|
|
1073
|
+
day: string;
|
|
1074
|
+
tempMin: number;
|
|
1075
|
+
tempMax: number;
|
|
1076
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1077
|
+
[k: string]: unknown;
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
day: string;
|
|
1081
|
+
tempMin: number;
|
|
1082
|
+
tempMax: number;
|
|
1083
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1084
|
+
[k: string]: unknown;
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
day: string;
|
|
1088
|
+
tempMin: number;
|
|
1089
|
+
tempMax: number;
|
|
1090
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1091
|
+
[k: string]: unknown;
|
|
1092
|
+
}
|
|
1093
|
+
] | [
|
|
1094
|
+
{
|
|
1095
|
+
day: string;
|
|
1096
|
+
tempMin: number;
|
|
1097
|
+
tempMax: number;
|
|
1098
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1099
|
+
[k: string]: unknown;
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
day: string;
|
|
1103
|
+
tempMin: number;
|
|
1104
|
+
tempMax: number;
|
|
1105
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1106
|
+
[k: string]: unknown;
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
day: string;
|
|
1110
|
+
tempMin: number;
|
|
1111
|
+
tempMax: number;
|
|
1112
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1113
|
+
[k: string]: unknown;
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
day: string;
|
|
1117
|
+
tempMin: number;
|
|
1118
|
+
tempMax: number;
|
|
1119
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1120
|
+
[k: string]: unknown;
|
|
1121
|
+
}
|
|
1122
|
+
] | [
|
|
1123
|
+
{
|
|
1124
|
+
day: string;
|
|
1125
|
+
tempMin: number;
|
|
1126
|
+
tempMax: number;
|
|
1127
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1128
|
+
[k: string]: unknown;
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
day: string;
|
|
1132
|
+
tempMin: number;
|
|
1133
|
+
tempMax: number;
|
|
1134
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1135
|
+
[k: string]: unknown;
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
day: string;
|
|
1139
|
+
tempMin: number;
|
|
1140
|
+
tempMax: number;
|
|
1141
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1142
|
+
[k: string]: unknown;
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
day: string;
|
|
1146
|
+
tempMin: number;
|
|
1147
|
+
tempMax: number;
|
|
1148
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1149
|
+
[k: string]: unknown;
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
day: string;
|
|
1153
|
+
tempMin: number;
|
|
1154
|
+
tempMax: number;
|
|
1155
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1156
|
+
[k: string]: unknown;
|
|
1157
|
+
}
|
|
1158
|
+
] | [
|
|
1159
|
+
{
|
|
1160
|
+
day: string;
|
|
1161
|
+
tempMin: number;
|
|
1162
|
+
tempMax: number;
|
|
1163
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1164
|
+
[k: string]: unknown;
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
day: string;
|
|
1168
|
+
tempMin: number;
|
|
1169
|
+
tempMax: number;
|
|
1170
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1171
|
+
[k: string]: unknown;
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
day: string;
|
|
1175
|
+
tempMin: number;
|
|
1176
|
+
tempMax: number;
|
|
1177
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1178
|
+
[k: string]: unknown;
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
day: string;
|
|
1182
|
+
tempMin: number;
|
|
1183
|
+
tempMax: number;
|
|
1184
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1185
|
+
[k: string]: unknown;
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
day: string;
|
|
1189
|
+
tempMin: number;
|
|
1190
|
+
tempMax: number;
|
|
1191
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1192
|
+
[k: string]: unknown;
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
day: string;
|
|
1196
|
+
tempMin: number;
|
|
1197
|
+
tempMax: number;
|
|
1198
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1199
|
+
[k: string]: unknown;
|
|
1200
|
+
}
|
|
1201
|
+
] | [
|
|
1202
|
+
{
|
|
1203
|
+
day: string;
|
|
1204
|
+
tempMin: number;
|
|
1205
|
+
tempMax: number;
|
|
1206
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1207
|
+
[k: string]: unknown;
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
day: string;
|
|
1211
|
+
tempMin: number;
|
|
1212
|
+
tempMax: number;
|
|
1213
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1214
|
+
[k: string]: unknown;
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
day: string;
|
|
1218
|
+
tempMin: number;
|
|
1219
|
+
tempMax: number;
|
|
1220
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1221
|
+
[k: string]: unknown;
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
day: string;
|
|
1225
|
+
tempMin: number;
|
|
1226
|
+
tempMax: number;
|
|
1227
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1228
|
+
[k: string]: unknown;
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
day: string;
|
|
1232
|
+
tempMin: number;
|
|
1233
|
+
tempMax: number;
|
|
1234
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1235
|
+
[k: string]: unknown;
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
day: string;
|
|
1239
|
+
tempMin: number;
|
|
1240
|
+
tempMax: number;
|
|
1241
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1242
|
+
[k: string]: unknown;
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
day: string;
|
|
1246
|
+
tempMin: number;
|
|
1247
|
+
tempMax: number;
|
|
1248
|
+
condition: "clear" | "partly-cloudy" | "cloudy" | "overcast" | "fog" | "drizzle" | "rain" | "heavy-rain" | "thunderstorm" | "snow" | "sleet" | "hail" | "windy";
|
|
1249
|
+
[k: string]: unknown;
|
|
1250
|
+
}
|
|
1251
|
+
];
|
|
765
1252
|
unit?: "celsius" | "fahrenheit";
|
|
766
1253
|
updatedAt?: string;
|
|
767
1254
|
[k: string]: unknown;
|