@raycast/api 1.52.1 → 1.53.0
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/api.d.ts +81 -0
- package/package.json +1 -1
- package/types/index.d.ts +63 -0
package/api.d.ts
CHANGED
|
@@ -410,6 +410,26 @@ declare interface ActionProps {
|
|
|
410
410
|
* Some actions require some custom integration on the native side. That's how we recognise them
|
|
411
411
|
*/
|
|
412
412
|
type?: "submit-form" | "date-picker" | "date-time-picker";
|
|
413
|
+
/**
|
|
414
|
+
* @internal
|
|
415
|
+
* The minimum date (inclusive) allowed for selection.
|
|
416
|
+
*
|
|
417
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
418
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
419
|
+
*
|
|
420
|
+
* The date should be a JavaScript Date object.
|
|
421
|
+
*/
|
|
422
|
+
min?: Date;
|
|
423
|
+
/**
|
|
424
|
+
* @internal
|
|
425
|
+
* The maximum date (inclusive) allowed for selection.
|
|
426
|
+
*
|
|
427
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
428
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
429
|
+
*
|
|
430
|
+
* The date should be a JavaScript Date object.
|
|
431
|
+
*/
|
|
432
|
+
max?: Date;
|
|
413
433
|
}
|
|
414
434
|
|
|
415
435
|
/**
|
|
@@ -435,6 +455,8 @@ declare enum ActionStyle {
|
|
|
435
455
|
Destructive = "destructive"
|
|
436
456
|
}
|
|
437
457
|
|
|
458
|
+
export declare function addBreadcrumb(breadcrumb: Breadcrumb): void;
|
|
459
|
+
|
|
438
460
|
export declare namespace AI {
|
|
439
461
|
/**
|
|
440
462
|
* Returns a prompt completion.
|
|
@@ -629,6 +651,18 @@ export declare interface ArgumentsLaunchProps {
|
|
|
629
651
|
arguments?: Arguments;
|
|
630
652
|
}
|
|
631
653
|
|
|
654
|
+
declare type Breadcrumb = {
|
|
655
|
+
type?: BreadcrumbType;
|
|
656
|
+
level?: BreadcrumbLevel;
|
|
657
|
+
category?: string;
|
|
658
|
+
message?: string;
|
|
659
|
+
data?: Data;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
declare type BreadcrumbLevel = "fatal" | "error" | "warning" | "log" | "info" | "debug";
|
|
663
|
+
|
|
664
|
+
declare type BreadcrumbType = "default" | "debug" | "error" | "navigation" | "http" | "info" | "query" | "transaction" | "ui" | "user";
|
|
665
|
+
|
|
632
666
|
/**
|
|
633
667
|
* Caching abstraction that stores data on disk and supports LRU (least recently used) access.
|
|
634
668
|
* Since extensions can only consume up to a max. heap memory size, the cache only maintains a lightweight index in memory
|
|
@@ -1539,6 +1573,12 @@ declare interface CreateSnippetProps {
|
|
|
1539
1573
|
shortcut?: Keyboard.Shortcut;
|
|
1540
1574
|
}
|
|
1541
1575
|
|
|
1576
|
+
declare type Data = {
|
|
1577
|
+
function: string;
|
|
1578
|
+
} | {
|
|
1579
|
+
title: string;
|
|
1580
|
+
} | Record<string, string>;
|
|
1581
|
+
|
|
1542
1582
|
/**
|
|
1543
1583
|
* See {@link Form.DatePicker}
|
|
1544
1584
|
*/
|
|
@@ -1569,6 +1609,24 @@ declare interface DatePickerProps extends FormItemProps_2<Date | null> {
|
|
|
1569
1609
|
* Defaults to {@link Form.DatePicker.Type.DateTime}
|
|
1570
1610
|
*/
|
|
1571
1611
|
type?: DatePickerType;
|
|
1612
|
+
/**
|
|
1613
|
+
* The minimum date (inclusive) allowed for selection.
|
|
1614
|
+
*
|
|
1615
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
1616
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
1617
|
+
*
|
|
1618
|
+
* The date should be a JavaScript Date object.
|
|
1619
|
+
*/
|
|
1620
|
+
min?: Date | undefined;
|
|
1621
|
+
/**
|
|
1622
|
+
* The maximum date (inclusive) allowed for selection.
|
|
1623
|
+
*
|
|
1624
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
1625
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
1626
|
+
*
|
|
1627
|
+
* The date should be a JavaScript Date object.
|
|
1628
|
+
*/
|
|
1629
|
+
max?: Date | undefined;
|
|
1572
1630
|
}
|
|
1573
1631
|
|
|
1574
1632
|
/**
|
|
@@ -6332,6 +6390,7 @@ export declare namespace OAuth {
|
|
|
6332
6390
|
providerId?: string;
|
|
6333
6391
|
description?: string;
|
|
6334
6392
|
private resolvesOnRedirect?;
|
|
6393
|
+
private isAuthorizing;
|
|
6335
6394
|
constructor(options: PKCEClient.Options);
|
|
6336
6395
|
/**
|
|
6337
6396
|
* Creates an authorization request for the provided authorization endpoint, client ID, and scopes.
|
|
@@ -6858,6 +6917,24 @@ declare interface PickDateProps {
|
|
|
6858
6917
|
* Defaults to {@link Action.PickDate.Type.DateTime}
|
|
6859
6918
|
*/
|
|
6860
6919
|
type?: DatePickerType_2;
|
|
6920
|
+
/**
|
|
6921
|
+
* The minimum date (inclusive) allowed for selection.
|
|
6922
|
+
*
|
|
6923
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
6924
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
6925
|
+
*
|
|
6926
|
+
* The date should be a JavaScript Date object.
|
|
6927
|
+
*/
|
|
6928
|
+
min?: Date;
|
|
6929
|
+
/**
|
|
6930
|
+
* The maximum date (inclusive) allowed for selection.
|
|
6931
|
+
*
|
|
6932
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
6933
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
6934
|
+
*
|
|
6935
|
+
* The date should be a JavaScript Date object.
|
|
6936
|
+
*/
|
|
6937
|
+
max?: Date;
|
|
6861
6938
|
}
|
|
6862
6939
|
|
|
6863
6940
|
/**
|
|
@@ -7554,6 +7631,10 @@ declare interface TagListItemProps {
|
|
|
7554
7631
|
* Changes the text color to the provided color and sets a transparent background with the same color.
|
|
7555
7632
|
*/
|
|
7556
7633
|
color?: Color.ColorLike | undefined | null;
|
|
7634
|
+
/**
|
|
7635
|
+
* Callback that is triggered when the item is clicked.
|
|
7636
|
+
*/
|
|
7637
|
+
onAction?: () => void;
|
|
7557
7638
|
}
|
|
7558
7639
|
|
|
7559
7640
|
declare interface TagListMembers {
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -406,6 +406,8 @@ declare interface ActionProps {
|
|
|
406
406
|
*/
|
|
407
407
|
autoFocus?: boolean;
|
|
408
408
|
|
|
409
|
+
|
|
410
|
+
|
|
409
411
|
}
|
|
410
412
|
|
|
411
413
|
/**
|
|
@@ -431,6 +433,8 @@ declare enum ActionStyle {
|
|
|
431
433
|
Destructive = "destructive"
|
|
432
434
|
}
|
|
433
435
|
|
|
436
|
+
export declare function addBreadcrumb(breadcrumb: Breadcrumb): void;
|
|
437
|
+
|
|
434
438
|
export declare namespace AI {
|
|
435
439
|
/**
|
|
436
440
|
* Returns a prompt completion.
|
|
@@ -625,6 +629,18 @@ export declare interface ArgumentsLaunchProps {
|
|
|
625
629
|
arguments?: Arguments;
|
|
626
630
|
}
|
|
627
631
|
|
|
632
|
+
declare type Breadcrumb = {
|
|
633
|
+
type?: BreadcrumbType;
|
|
634
|
+
level?: BreadcrumbLevel;
|
|
635
|
+
category?: string;
|
|
636
|
+
message?: string;
|
|
637
|
+
data?: Data;
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
declare type BreadcrumbLevel = "fatal" | "error" | "warning" | "log" | "info" | "debug";
|
|
641
|
+
|
|
642
|
+
declare type BreadcrumbType = "default" | "debug" | "error" | "navigation" | "http" | "info" | "query" | "transaction" | "ui" | "user";
|
|
643
|
+
|
|
628
644
|
/**
|
|
629
645
|
* Caching abstraction that stores data on disk and supports LRU (least recently used) access.
|
|
630
646
|
* Since extensions can only consume up to a max. heap memory size, the cache only maintains a lightweight index in memory
|
|
@@ -1535,6 +1551,12 @@ declare interface CreateSnippetProps {
|
|
|
1535
1551
|
shortcut?: Keyboard.Shortcut;
|
|
1536
1552
|
}
|
|
1537
1553
|
|
|
1554
|
+
declare type Data = {
|
|
1555
|
+
function: string;
|
|
1556
|
+
} | {
|
|
1557
|
+
title: string;
|
|
1558
|
+
} | Record<string, string>;
|
|
1559
|
+
|
|
1538
1560
|
/**
|
|
1539
1561
|
* See {@link Form.DatePicker}
|
|
1540
1562
|
*/
|
|
@@ -1565,6 +1587,24 @@ declare interface DatePickerProps extends FormItemProps_2<Date | null> {
|
|
|
1565
1587
|
* Defaults to {@link Form.DatePicker.Type.DateTime}
|
|
1566
1588
|
*/
|
|
1567
1589
|
type?: DatePickerType;
|
|
1590
|
+
/**
|
|
1591
|
+
* The minimum date (inclusive) allowed for selection.
|
|
1592
|
+
*
|
|
1593
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
1594
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
1595
|
+
*
|
|
1596
|
+
* The date should be a JavaScript Date object.
|
|
1597
|
+
*/
|
|
1598
|
+
min?: Date | undefined;
|
|
1599
|
+
/**
|
|
1600
|
+
* The maximum date (inclusive) allowed for selection.
|
|
1601
|
+
*
|
|
1602
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
1603
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
1604
|
+
*
|
|
1605
|
+
* The date should be a JavaScript Date object.
|
|
1606
|
+
*/
|
|
1607
|
+
max?: Date | undefined;
|
|
1568
1608
|
}
|
|
1569
1609
|
|
|
1570
1610
|
/**
|
|
@@ -6328,6 +6368,7 @@ export declare namespace OAuth {
|
|
|
6328
6368
|
providerId?: string;
|
|
6329
6369
|
description?: string;
|
|
6330
6370
|
private resolvesOnRedirect?;
|
|
6371
|
+
private isAuthorizing;
|
|
6331
6372
|
constructor(options: PKCEClient.Options);
|
|
6332
6373
|
/**
|
|
6333
6374
|
* Creates an authorization request for the provided authorization endpoint, client ID, and scopes.
|
|
@@ -6854,6 +6895,24 @@ declare interface PickDateProps {
|
|
|
6854
6895
|
* Defaults to {@link Action.PickDate.Type.DateTime}
|
|
6855
6896
|
*/
|
|
6856
6897
|
type?: DatePickerType_2;
|
|
6898
|
+
/**
|
|
6899
|
+
* The minimum date (inclusive) allowed for selection.
|
|
6900
|
+
*
|
|
6901
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
6902
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
6903
|
+
*
|
|
6904
|
+
* The date should be a JavaScript Date object.
|
|
6905
|
+
*/
|
|
6906
|
+
min?: Date;
|
|
6907
|
+
/**
|
|
6908
|
+
* The maximum date (inclusive) allowed for selection.
|
|
6909
|
+
*
|
|
6910
|
+
* - If the PickDate type is `Type.Date`, only the full day date will be considered for comparison, ignoring the time components of the Date object.
|
|
6911
|
+
* - If the PickDate type is `Type.DateTime`, both date and time components will be considered for comparison.
|
|
6912
|
+
*
|
|
6913
|
+
* The date should be a JavaScript Date object.
|
|
6914
|
+
*/
|
|
6915
|
+
max?: Date;
|
|
6857
6916
|
}
|
|
6858
6917
|
|
|
6859
6918
|
/**
|
|
@@ -7550,6 +7609,10 @@ declare interface TagListItemProps {
|
|
|
7550
7609
|
* Changes the text color to the provided color and sets a transparent background with the same color.
|
|
7551
7610
|
*/
|
|
7552
7611
|
color?: Color.ColorLike | undefined | null;
|
|
7612
|
+
/**
|
|
7613
|
+
* Callback that is triggered when the item is clicked.
|
|
7614
|
+
*/
|
|
7615
|
+
onAction?: () => void;
|
|
7553
7616
|
}
|
|
7554
7617
|
|
|
7555
7618
|
declare interface TagListMembers {
|