@raycast/api 1.49.3 → 1.50.1

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
@@ -1000,7 +1000,7 @@ export declare namespace Color {
1000
1000
  * Raycast user interface. This makes it easy to guarantee a good look and feel when you aren't in control of the
1001
1001
  * color, e.g. get it via a network request.
1002
1002
  *
1003
- * @defaultValue `false`
1003
+ * @defaultValue `true`
1004
1004
  */
1005
1005
  adjustContrast?: boolean | undefined | null;
1006
1006
  }
@@ -2169,6 +2169,21 @@ export declare interface Environment {
2169
2169
  * The type of launch for the command (user initiated or background).
2170
2170
  */
2171
2171
  launchType: LaunchType;
2172
+ /**
2173
+ * Returns whether the user has access to the given API.
2174
+ *
2175
+ * @example
2176
+ * ```typescript
2177
+ * import { unstableAI, environment } from "@raycast/api";
2178
+ *
2179
+ * export default function Command() {
2180
+ * if (environment.canAccess(unstableAI)) {
2181
+ * // use unstableAI
2182
+ * }
2183
+ * }
2184
+ * ```
2185
+ */
2186
+ canAccess(api: unknown): boolean;
2172
2187
  /**
2173
2188
  * @deprecated Use the top-level prop `launchContext` instead.
2174
2189
  */
@@ -4773,6 +4788,7 @@ export declare enum Icon {
4773
4788
  Terminal = "terminal-16",
4774
4789
  Text = "text-16",
4775
4790
  TextCursor = "text-cursor-16",
4791
+ TextInput = "text-input-16",
4776
4792
  Torch = "torch-16",
4777
4793
  Train = "train-16",
4778
4794
  Trash = "trash-16",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.49.3",
3
+ "version": "1.50.1",
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
@@ -996,7 +996,7 @@ export declare namespace Color {
996
996
  * Raycast user interface. This makes it easy to guarantee a good look and feel when you aren't in control of the
997
997
  * color, e.g. get it via a network request.
998
998
  *
999
- * @defaultValue `false`
999
+ * @defaultValue `true`
1000
1000
  */
1001
1001
  adjustContrast?: boolean | undefined | null;
1002
1002
  }
@@ -2165,6 +2165,21 @@ export declare interface Environment {
2165
2165
  * The type of launch for the command (user initiated or background).
2166
2166
  */
2167
2167
  launchType: LaunchType;
2168
+ /**
2169
+ * Returns whether the user has access to the given API.
2170
+ *
2171
+ * @example
2172
+ * ```typescript
2173
+ * import { unstableAI, environment } from "@raycast/api";
2174
+ *
2175
+ * export default function Command() {
2176
+ * if (environment.canAccess(unstableAI)) {
2177
+ * // use unstableAI
2178
+ * }
2179
+ * }
2180
+ * ```
2181
+ */
2182
+ canAccess(api: unknown): boolean;
2168
2183
  /**
2169
2184
  * @deprecated Use the top-level prop `launchContext` instead.
2170
2185
  */
@@ -4769,6 +4784,7 @@ export declare enum Icon {
4769
4784
  Terminal = "terminal-16",
4770
4785
  Text = "text-16",
4771
4786
  TextCursor = "text-cursor-16",
4787
+ TextInput = "text-input-16",
4772
4788
  Torch = "torch-16",
4773
4789
  Train = "train-16",
4774
4790
  Trash = "trash-16",