@raycast/api 1.38.0 → 1.38.3

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 CHANGED
@@ -126,8 +126,9 @@ export declare namespace Action {
126
126
  * sections and can have keyboard shortcuts assigned.
127
127
  *
128
128
  * The first and second action become the primary and secondary action. They automatically get the default keyboard shortcuts assigned.
129
- * In {@link List} and {@link Detail}, this is `↵` for the primary and `⌘` `↵` for the secondary action. In {@link Form} it's `⌘` `↵` for the primary and
129
+ * In {@link List}, {@link Grid}, and {@link Detail}, this is `↵` for the primary and `⌘` `↵` for the secondary action. In {@link Form} it's `⌘` `↵` for the primary and
130
130
  * `⌘` `⇧` `↵` for the secondary.
131
+ * Keep in mind that while you can specify an alternative shortcut for the primary and secondary actions, it won't be displayed in the Action Panel.
131
132
  *
132
133
  * @example
133
134
  * ```typescript
@@ -198,9 +199,7 @@ declare type ActionPanelChildren_2 = ReactElement<ActionPanel.Section.Props> | R
198
199
  * @deprecated Use {@link Action} instead.
199
200
  */
200
201
  export declare const ActionPanelItem: FunctionComponent<ActionProps> & ConvenienceActions & {
201
- Style: ActionStyle; /**
202
- * @deprecated Use {@link Image.ImageLike} instead
203
- */
202
+ Style: ActionStyle;
204
203
  };
205
204
 
206
205
  /**
@@ -382,7 +381,8 @@ declare interface ActionProps {
382
381
  *
383
382
  * @remarks
384
383
  * The first and second action in an {@link ActionPanel} become the primary and secondary action. They automatically get the default keyboard shortcuts assigned.
385
- * In {@link List} and {@link Detail}, this is `↵` for the primary and `⌘` `↵` for the secondary action. In {@link Form} it's `⌘` `↵` for the primary and `⌘` `⇧` `↵` for the secondary.
384
+ * In {@link List}, {@link Grid} ,and {@link Detail}, this is `↵` for the primary and `⌘` `↵` for the secondary action. In {@link Form} it's `⌘` `↵` for the primary and `⌘` `⇧` `↵` for the secondary.
385
+ * Keep in mind that while you can specify an alternative shortcut for the primary and secondary actions, it won't be displayed in the Action Panel.
386
386
  */
387
387
  shortcut?: Keyboard.Shortcut | undefined | null;
388
388
  /**
@@ -537,7 +537,6 @@ export declare interface Application {
537
537
  }
538
538
 
539
539
  /**
540
- * @beta
541
540
  * A record type holding the arguments (entered in Raycast Root Search Bar) that have been passed to the command.
542
541
  */
543
542
  declare interface Arguments {
@@ -548,7 +547,6 @@ declare interface Arguments {
548
547
  }
549
548
 
550
549
  /**
551
- * @beta
552
550
  * An interface describing top-level props for arguments
553
551
  */
554
552
  export declare interface ArgumentsLaunchProps {
@@ -2131,7 +2129,6 @@ export declare interface Environment {
2131
2129
  */
2132
2130
  theme: "light" | "dark";
2133
2131
  /**
2134
- * @beta
2135
2132
  * The type of launch for the command (user initiated or background).
2136
2133
  */
2137
2134
  launchType: LaunchType;
@@ -3915,7 +3912,7 @@ declare interface GridMembers {
3915
3912
  * export default function Command() {
3916
3913
  * return (
3917
3914
  * <Grid>
3918
- * <Grid.Item icon={Icon.Star} title="Augustiner Helles" subtitle="0,5 Liter" />
3915
+ * <Grid.Item content={Icon.Star} title="Augustiner Helles" subtitle="0,5 Liter" />
3919
3916
  * </Grid>
3920
3917
  * );
3921
3918
  * }
@@ -4281,8 +4278,16 @@ export declare enum Icon {
4281
4278
  Network = "network-16",
4282
4279
  NewDocument = "new-document-16",
4283
4280
  NewFolder = "new-folder-16",
4284
- Number = "number-01-16",
4285
4281
  Number00 = "number-00-16",
4282
+ Number01 = "number-01-16",
4283
+ Number02 = "number-02-16",
4284
+ Number03 = "number-03-16",
4285
+ Number04 = "number-04-16",
4286
+ Number05 = "number-05-16",
4287
+ Number06 = "number-06-16",
4288
+ Number07 = "number-07-16",
4289
+ Number08 = "number-08-16",
4290
+ Number09 = "number-09-16",
4286
4291
  Number10 = "number-10-16",
4287
4292
  Number11 = "number-11-16",
4288
4293
  Number12 = "number-12-16",
@@ -4489,7 +4494,9 @@ export declare enum Icon {
4489
4494
  /** @deprecated Use {@link Icon.SpeakerOff} instead. */
4490
4495
  SpeakerSlash = "speaker-off-16",
4491
4496
  /** @deprecated Use {@link Icon.BlankDocument} instead. */
4492
- TextDocument = "blank-document-16"
4497
+ TextDocument = "blank-document-16",
4498
+ /** @deprecated Use {@link Icon.XMarkCircle} instead. */
4499
+ XmarkCircle = "x-mark-circle-16"
4493
4500
  }
4494
4501
 
4495
4502
  /**
@@ -4684,7 +4691,6 @@ declare const Item: FunctionComponent<ItemProps> & ItemMembers;
4684
4691
  declare const Item_2: FunctionComponent<ItemProps_2>;
4685
4692
 
4686
4693
  /**
4687
- * @beta
4688
4694
  * See {@link MenuBarExtra.Item}
4689
4695
  */
4690
4696
  declare const Item_3: FunctionComponent<ItemProps_3>;
@@ -4846,14 +4852,26 @@ declare interface ItemProps_2 extends ActionsInterface {
4846
4852
  actions?: ReactNode | null;
4847
4853
  }
4848
4854
 
4849
- /**
4850
- * @beta
4851
- */
4852
4855
  declare interface ItemProps_3 {
4856
+ /**
4857
+ * The main title displayed for this item.
4858
+ */
4853
4859
  title: string;
4860
+ /**
4861
+ * An optional icon for this item.
4862
+ */
4854
4863
  icon?: Image.ImageLike;
4864
+ /**
4865
+ * A tooltip to display when the cursor hovers the item.
4866
+ */
4855
4867
  tooltip?: string;
4868
+ /**
4869
+ * An action handler called when the user clicks the item.
4870
+ */
4856
4871
  onAction?: () => void;
4872
+ /**
4873
+ * A shortcut used to invoke this item when its parent menu is open.
4874
+ */
4857
4875
  shortcut?: Keyboard.Shortcut;
4858
4876
  }
4859
4877
 
@@ -4973,14 +4991,10 @@ declare interface LabelProps_2 {
4973
4991
  }
4974
4992
 
4975
4993
  /**
4976
- * @beta
4977
4994
  * The top-level props that a Command receives on launch
4978
4995
  */
4979
4996
  export declare type LaunchProps = ArgumentsLaunchProps | FormLaunchProps;
4980
4997
 
4981
- /**
4982
- * @beta
4983
- */
4984
4998
  export declare enum LaunchType {
4985
4999
  /**
4986
5000
  * A regular launch through user interaction
@@ -5484,38 +5498,39 @@ export declare type LocalStorageValue = LocalStorage.Value;
5484
5498
  export declare interface LocalStorageValues extends LocalStorage.Values {
5485
5499
  }
5486
5500
 
5487
- /**
5488
- * @beta
5489
- */
5490
5501
  export declare const MenuBarExtra: FunctionComponent<MenuBarExtraProps> & MenuBarExtraMembers;
5491
5502
 
5492
- /**
5493
- * @beta
5494
- */
5495
5503
  export declare namespace MenuBarExtra {
5496
5504
  export type Props = MenuBarExtraProps;
5497
5505
  }
5498
5506
 
5499
- /**
5500
- * @beta
5501
- */
5502
5507
  declare interface MenuBarExtraMembers {
5503
5508
  Item: typeof Item_3;
5504
5509
  Separator: typeof Separator_4;
5505
5510
  Submenu: typeof Submenu_2;
5506
5511
  }
5507
5512
 
5508
- /**
5509
- * @beta
5510
- */
5511
5513
  declare interface MenuBarExtraProps {
5512
5514
  /**
5515
+ * Indicates to Raycast that it should not unload the command, as it is still executing. If you set make use of `isLoading`, you need to make sure you set it to `false` at the end of the task you are executing (such as an API call), so Raycast can then unload the command.
5513
5516
  * @defaultValue `false`
5514
5517
  */
5515
5518
  isLoading?: boolean;
5519
+ /**
5520
+ * The string that is displayed in the menu bar.
5521
+ */
5516
5522
  title?: string;
5523
+ /**
5524
+ * A tooltip to display when the cursor hovers the item in the menu bar.
5525
+ */
5517
5526
  tooltip?: string;
5527
+ /**
5528
+ * The icon that is displayed in the menu bar.
5529
+ */
5518
5530
  icon?: Image.ImageLike;
5531
+ /**
5532
+ * `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
5533
+ */
5519
5534
  children?: ReactNode;
5520
5535
  }
5521
5536
 
@@ -6482,7 +6497,6 @@ declare const Separator_2: FunctionComponent<SeparatorProps_2>;
6482
6497
  declare const Separator_3: FunctionComponent<SeparatorProps_3>;
6483
6498
 
6484
6499
  /**
6485
- * @beta
6486
6500
  * See {@link MenuBarExtra.Separator}
6487
6501
  */
6488
6502
  declare const Separator_4: FunctionComponent<SeparatorProps_4>;
@@ -6499,9 +6513,6 @@ declare interface SeparatorProps_2 {
6499
6513
  declare interface SeparatorProps_3 {
6500
6514
  }
6501
6515
 
6502
- /**
6503
- * @beta
6504
- */
6505
6516
  declare interface SeparatorProps_4 {
6506
6517
  }
6507
6518
 
@@ -6667,7 +6678,6 @@ export declare const specialKeys: any;
6667
6678
  declare const Submenu: FunctionComponent<SubmenuProps>;
6668
6679
 
6669
6680
  /**
6670
- * @beta
6671
6681
  * See {@link MenuBarExtra.Submenu}
6672
6682
  */
6673
6683
  declare const Submenu_2: FunctionComponent<SubmenuProps_2>;
@@ -6729,15 +6739,18 @@ declare interface SubmenuProps {
6729
6739
  onOpen?: () => void;
6730
6740
  }
6731
6741
 
6732
- /**
6733
- * @beta
6734
- */
6735
6742
  declare interface SubmenuProps_2 {
6736
- title: string | {
6737
- value: string;
6738
- tooltip: string;
6739
- };
6743
+ /**
6744
+ * The main title displayed for this submenu.
6745
+ */
6746
+ title: string;
6747
+ /**
6748
+ * An optional icon for this submenu.
6749
+ */
6740
6750
  icon?: Image.ImageLike;
6751
+ /**
6752
+ * `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
6753
+ */
6741
6754
  children?: ReactNode;
6742
6755
  }
6743
6756
 
@@ -7211,7 +7224,6 @@ declare interface TrashProps {
7211
7224
  }
7212
7225
 
7213
7226
  /**
7214
- * @beta
7215
7227
  * Update the values of properties declared in the manifest of a command.
7216
7228
  *
7217
7229
  * @param metadata - An object with the values for the manifest properties to update.
package/bin/arm64/ray CHANGED
Binary file
package/bin/ray CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bash
1
+ #!/bin/bash
2
2
 
3
3
  DIR=$(dirname "${BASH_SOURCE[0]}")
4
4
  SYMLINK=$(readlink "${BASH_SOURCE[0]}")
package/bin/x86/ray CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.38.0",
3
+ "version": "1.38.3",
4
4
  "description": "Build extensions for Raycast with React and Node.js.",
5
5
  "author": "Raycast Technologies Ltd.",
6
6
  "homepage": "https://developers.raycast.com",
package/types/index.d.ts CHANGED
@@ -126,8 +126,9 @@ export declare namespace Action {
126
126
  * sections and can have keyboard shortcuts assigned.
127
127
  *
128
128
  * The first and second action become the primary and secondary action. They automatically get the default keyboard shortcuts assigned.
129
- * In {@link List} and {@link Detail}, this is `↵` for the primary and `⌘` `↵` for the secondary action. In {@link Form} it's `⌘` `↵` for the primary and
129
+ * In {@link List}, {@link Grid}, and {@link Detail}, this is `↵` for the primary and `⌘` `↵` for the secondary action. In {@link Form} it's `⌘` `↵` for the primary and
130
130
  * `⌘` `⇧` `↵` for the secondary.
131
+ * Keep in mind that while you can specify an alternative shortcut for the primary and secondary actions, it won't be displayed in the Action Panel.
131
132
  *
132
133
  * @example
133
134
  * ```typescript
@@ -198,9 +199,7 @@ declare type ActionPanelChildren_2 = ReactElement<ActionPanel.Section.Props> | R
198
199
  * @deprecated Use {@link Action} instead.
199
200
  */
200
201
  export declare const ActionPanelItem: FunctionComponent<ActionProps> & ConvenienceActions & {
201
- Style: ActionStyle; /**
202
- * @deprecated Use {@link Image.ImageLike} instead
203
- */
202
+ Style: ActionStyle;
204
203
  };
205
204
 
206
205
  /**
@@ -382,7 +381,8 @@ declare interface ActionProps {
382
381
  *
383
382
  * @remarks
384
383
  * The first and second action in an {@link ActionPanel} become the primary and secondary action. They automatically get the default keyboard shortcuts assigned.
385
- * In {@link List} and {@link Detail}, this is `↵` for the primary and `⌘` `↵` for the secondary action. In {@link Form} it's `⌘` `↵` for the primary and `⌘` `⇧` `↵` for the secondary.
384
+ * In {@link List}, {@link Grid} ,and {@link Detail}, this is `↵` for the primary and `⌘` `↵` for the secondary action. In {@link Form} it's `⌘` `↵` for the primary and `⌘` `⇧` `↵` for the secondary.
385
+ * Keep in mind that while you can specify an alternative shortcut for the primary and secondary actions, it won't be displayed in the Action Panel.
386
386
  */
387
387
  shortcut?: Keyboard.Shortcut | undefined | null;
388
388
  /**
@@ -536,6 +536,26 @@ export declare interface Application {
536
536
  bundleId?: string;
537
537
  }
538
538
 
539
+ /**
540
+ * A record type holding the arguments (entered in Raycast Root Search Bar) that have been passed to the command.
541
+ */
542
+ declare interface Arguments {
543
+ /**
544
+ * The representation of arguments given that key here is the `name` defined in manifest file and value is the user's input
545
+ */
546
+ [item: string]: any;
547
+ }
548
+
549
+ /**
550
+ * An interface describing top-level props for arguments
551
+ */
552
+ export declare interface ArgumentsLaunchProps {
553
+ /**
554
+ * Use these values to populate the initial state for your command.
555
+ */
556
+ arguments?: Arguments;
557
+ }
558
+
539
559
  /**
540
560
  * Caching abstraction that stores data on disk and supports LRU (least recently used) access.
541
561
  * Since extensions can only consume up to a max. heap memory size, the cache only maintains a lightweight index in memory
@@ -2108,7 +2128,10 @@ export declare interface Environment {
2108
2128
  * The theme used by the Raycast application.
2109
2129
  */
2110
2130
  theme: "light" | "dark";
2111
-
2131
+ /**
2132
+ * The type of launch for the command (user initiated or background).
2133
+ */
2134
+ launchType: LaunchType;
2112
2135
  }
2113
2136
 
2114
2137
  /**
@@ -3889,7 +3912,7 @@ declare interface GridMembers {
3889
3912
  * export default function Command() {
3890
3913
  * return (
3891
3914
  * <Grid>
3892
- * <Grid.Item icon={Icon.Star} title="Augustiner Helles" subtitle="0,5 Liter" />
3915
+ * <Grid.Item content={Icon.Star} title="Augustiner Helles" subtitle="0,5 Liter" />
3893
3916
  * </Grid>
3894
3917
  * );
3895
3918
  * }
@@ -4255,8 +4278,16 @@ export declare enum Icon {
4255
4278
  Network = "network-16",
4256
4279
  NewDocument = "new-document-16",
4257
4280
  NewFolder = "new-folder-16",
4258
- Number = "number-01-16",
4259
4281
  Number00 = "number-00-16",
4282
+ Number01 = "number-01-16",
4283
+ Number02 = "number-02-16",
4284
+ Number03 = "number-03-16",
4285
+ Number04 = "number-04-16",
4286
+ Number05 = "number-05-16",
4287
+ Number06 = "number-06-16",
4288
+ Number07 = "number-07-16",
4289
+ Number08 = "number-08-16",
4290
+ Number09 = "number-09-16",
4260
4291
  Number10 = "number-10-16",
4261
4292
  Number11 = "number-11-16",
4262
4293
  Number12 = "number-12-16",
@@ -4463,7 +4494,9 @@ export declare enum Icon {
4463
4494
  /** @deprecated Use {@link Icon.SpeakerOff} instead. */
4464
4495
  SpeakerSlash = "speaker-off-16",
4465
4496
  /** @deprecated Use {@link Icon.BlankDocument} instead. */
4466
- TextDocument = "blank-document-16"
4497
+ TextDocument = "blank-document-16",
4498
+ /** @deprecated Use {@link Icon.XMarkCircle} instead. */
4499
+ XmarkCircle = "x-mark-circle-16"
4467
4500
  }
4468
4501
 
4469
4502
  /**
@@ -4657,6 +4690,11 @@ declare const Item: FunctionComponent<ItemProps> & ItemMembers;
4657
4690
  */
4658
4691
  declare const Item_2: FunctionComponent<ItemProps_2>;
4659
4692
 
4693
+ /**
4694
+ * See {@link MenuBarExtra.Item}
4695
+ */
4696
+ declare const Item_3: FunctionComponent<ItemProps_3>;
4697
+
4660
4698
  declare type ItemAccessory = ({
4661
4699
  /**
4662
4700
  * An optional text that will be used as the label.
@@ -4814,6 +4852,29 @@ declare interface ItemProps_2 extends ActionsInterface {
4814
4852
  actions?: ReactNode | null;
4815
4853
  }
4816
4854
 
4855
+ declare interface ItemProps_3 {
4856
+ /**
4857
+ * The main title displayed for this item.
4858
+ */
4859
+ title: string;
4860
+ /**
4861
+ * An optional icon for this item.
4862
+ */
4863
+ icon?: Image.ImageLike;
4864
+ /**
4865
+ * A tooltip to display when the cursor hovers the item.
4866
+ */
4867
+ tooltip?: string;
4868
+ /**
4869
+ * An action handler called when the user clicks the item.
4870
+ */
4871
+ onAction?: () => void;
4872
+ /**
4873
+ * A shortcut used to invoke this item when its parent menu is open.
4874
+ */
4875
+ shortcut?: Keyboard.Shortcut;
4876
+ }
4877
+
4817
4878
  export declare namespace Keyboard {
4818
4879
  /**
4819
4880
  * A keyboard shortcut is defined by one or more modifier keys (command, control, etc.) and a single key equivalent (a character or special key).
@@ -4929,6 +4990,22 @@ declare interface LabelProps_2 {
4929
4990
  text?: string;
4930
4991
  }
4931
4992
 
4993
+ /**
4994
+ * The top-level props that a Command receives on launch
4995
+ */
4996
+ export declare type LaunchProps = ArgumentsLaunchProps | FormLaunchProps;
4997
+
4998
+ export declare enum LaunchType {
4999
+ /**
5000
+ * A regular launch through user interaction
5001
+ */
5002
+ UserInitiated = "userInitiated",
5003
+ /**
5004
+ * Scheduled through an interval and launched from background
5005
+ */
5006
+ Background = "background"
5007
+ }
5008
+
4932
5009
  /**
4933
5010
  * See {@link Detail.Metadata.Link}
4934
5011
  */
@@ -5421,6 +5498,42 @@ export declare type LocalStorageValue = LocalStorage.Value;
5421
5498
  export declare interface LocalStorageValues extends LocalStorage.Values {
5422
5499
  }
5423
5500
 
5501
+ export declare const MenuBarExtra: FunctionComponent<MenuBarExtraProps> & MenuBarExtraMembers;
5502
+
5503
+ export declare namespace MenuBarExtra {
5504
+ export type Props = MenuBarExtraProps;
5505
+ }
5506
+
5507
+ declare interface MenuBarExtraMembers {
5508
+ Item: typeof Item_3;
5509
+ Separator: typeof Separator_4;
5510
+ Submenu: typeof Submenu_2;
5511
+ }
5512
+
5513
+ declare interface MenuBarExtraProps {
5514
+ /**
5515
+ * Indicates to Raycast that it should not unload the command, as it is still executing. If you set make use of `isLoading`, you need to make sure you set it to `false` at the end of the task you are executing (such as an API call), so Raycast can then unload the command.
5516
+ * @defaultValue `false`
5517
+ */
5518
+ isLoading?: boolean;
5519
+ /**
5520
+ * The string that is displayed in the menu bar.
5521
+ */
5522
+ title?: string;
5523
+ /**
5524
+ * A tooltip to display when the cursor hovers the item in the menu bar.
5525
+ */
5526
+ tooltip?: string;
5527
+ /**
5528
+ * The icon that is displayed in the menu bar.
5529
+ */
5530
+ icon?: Image.ImageLike;
5531
+ /**
5532
+ * `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
5533
+ */
5534
+ children?: ReactNode;
5535
+ }
5536
+
5424
5537
  /**
5425
5538
  * See {@link Detail.Metadata}
5426
5539
  */
@@ -6383,6 +6496,11 @@ declare const Separator_2: FunctionComponent<SeparatorProps_2>;
6383
6496
  */
6384
6497
  declare const Separator_3: FunctionComponent<SeparatorProps_3>;
6385
6498
 
6499
+ /**
6500
+ * See {@link MenuBarExtra.Separator}
6501
+ */
6502
+ declare const Separator_4: FunctionComponent<SeparatorProps_4>;
6503
+
6386
6504
  /**
6387
6505
  * See {@link Form.Separator.Props}
6388
6506
  */
@@ -6395,6 +6513,9 @@ declare interface SeparatorProps_2 {
6395
6513
  declare interface SeparatorProps_3 {
6396
6514
  }
6397
6515
 
6516
+ declare interface SeparatorProps_4 {
6517
+ }
6518
+
6398
6519
  /**
6399
6520
  * @deprecated Use {@link LocalStorage.setItem} instead
6400
6521
  */
@@ -6556,6 +6677,11 @@ export declare const specialKeys: any;
6556
6677
  */
6557
6678
  declare const Submenu: FunctionComponent<SubmenuProps>;
6558
6679
 
6680
+ /**
6681
+ * See {@link MenuBarExtra.Submenu}
6682
+ */
6683
+ declare const Submenu_2: FunctionComponent<SubmenuProps_2>;
6684
+
6559
6685
  declare type SubmenuChildren = ReactElement<SectionProps> | ReactElement<SectionProps>[] | SectionChildren | null;
6560
6686
 
6561
6687
  /**
@@ -6613,6 +6739,21 @@ declare interface SubmenuProps {
6613
6739
  onOpen?: () => void;
6614
6740
  }
6615
6741
 
6742
+ declare interface SubmenuProps_2 {
6743
+ /**
6744
+ * The main title displayed for this submenu.
6745
+ */
6746
+ title: string;
6747
+ /**
6748
+ * An optional icon for this submenu.
6749
+ */
6750
+ icon?: Image.ImageLike;
6751
+ /**
6752
+ * `MenuBarExtra.Item`s, `MenuBarExtra.Submenu`s, `MenuBarExtra.Separator` or a mix of either.
6753
+ */
6754
+ children?: ReactNode;
6755
+ }
6756
+
6616
6757
  /**
6617
6758
  * See {@link Action.SubmitForm.Props}
6618
6759
  */
@@ -7082,6 +7223,28 @@ declare interface TrashProps {
7082
7223
  onTrash?: (paths: PathLike | PathLike[]) => void;
7083
7224
  }
7084
7225
 
7226
+ /**
7227
+ * Update the values of properties declared in the manifest of a command.
7228
+ *
7229
+ * @param metadata - An object with the values for the manifest properties to update.
7230
+ * Note that currently only `subtitle` is supported. Pass `null` to clear the custom subtitle.
7231
+ * @returns A Promise that resolves when the metadata has been updated.
7232
+ *
7233
+ * @example
7234
+ * ```typescript
7235
+ * import { open } from "@raycast/api";
7236
+ *
7237
+ * export default async () => {
7238
+ * await updateCommandMetadata({ subtitle: "My new subtitle" });
7239
+ * };
7240
+ * ```
7241
+ * @remarks The actual manifest file is not modified, so the update applies as
7242
+ * long as the command remains installed.
7243
+ */
7244
+ export declare function updateCommandMetadata(metadata: {
7245
+ subtitle?: string | null;
7246
+ }): Promise<void>;
7247
+
7085
7248
  /**
7086
7249
  * @deprecated No alternative :(
7087
7250
  */