@raycast/api 1.73.3 → 1.74.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/index.d.ts +34 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raycast/api",
3
- "version": "1.73.3",
3
+ "version": "1.74.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
@@ -475,7 +475,7 @@ export declare namespace AI {
475
475
  /**
476
476
  * The AI model to use to answer to the prompt.
477
477
  */
478
- model?: Model;
478
+ model?: Model | __DeprecatedModelUnion;
479
479
  /**
480
480
  * Abort signal to cancel the request.
481
481
  */
@@ -488,9 +488,33 @@ export declare namespace AI {
488
488
  export type Creativity = "none" | "low" | "medium" | "high" | "maximum" | number;
489
489
  /**
490
490
  * The AI model to use to answer to the prompt.
491
- * @defaultValue `"openai-gpt-3.5-turbo-instruct"`
492
- */
493
- export type Model = "openai-gpt-3.5-turbo-instruct" | "openai-gpt-3.5-turbo" | "openai-gpt-4" | "openai-gpt-4-turbo" | "anthropic-claude-haiku" | "anthropic-claude-opus" | "anthropic-claude-sonnet" | "perplexity-sonar-medium-online" | "perplexity-sonar-small-online" | "llama2-70b" | "mixtral-8x7b" | "codellama-70b-instruct"
491
+ * @defaultValue `AI.Model["OpenAI_GPT3.5-turbo"]`
492
+ */
493
+ export enum Model {
494
+ "OpenAI_GPT3.5-turbo" = "openai-gpt-3.5-turbo",
495
+ OpenAI_GPT4 = "openai-gpt-4",
496
+ "OpenAI_GPT4-turbo" = "openai-gpt-4-turbo",
497
+ OpenAI_GPT4o = "openai-gpt-4o",
498
+ Anthropic_Claude_Haiku = "anthropic-claude-haiku",
499
+ Anthropic_Claude_Opus = "anthropic-claude-opus",
500
+ Anthropic_Claude_Sonnet = "anthropic-claude-sonnet",
501
+ MixtraL_8x7B = "mixtral-8x7b",
502
+ Llama3_70B = "llama3-70b",
503
+ Perplexity_Llama3_Sonar_Large = "perplexity-llama-3-sonar-large-online",
504
+ Perplexity_Llama3_Sonar_Small = "perplexity-llama-3-sonar-small-online",
505
+ /** @deprecated Use `AI.Model["OpenAI_GPT3.5-turbo"]` instead */
506
+ "OpenAI_GPT3.5-turbo-instruct" = "openai-gpt-3.5-turbo-instruct",
507
+ /** @deprecated Use `AI.Model.Llama3_70B` instead */
508
+ Llama2_70B = "llama2-70b",
509
+ /** @deprecated Use `AI.Model.Perplexity_Llama3_Sonar_Large` instead */
510
+ Perplexity_Sonar_Medium_Online = "perplexity-sonar-medium-online",
511
+ /** @deprecated Use `AI.Model.Perplexity_Llama3_Sonar_Small` instead */
512
+ Perplexity_Sonar_Small_Online = "perplexity-sonar-small-online",
513
+ /** @deprecated Use `AI.Model.Llama3_70B` instead */
514
+ Codellama_70B_instruct = "codellama-70b-instruct"
515
+ }
516
+ /** @deprecated Use the `AI.Model` enum instead */
517
+ export type __DeprecatedModelUnion = "openai-gpt-3.5-turbo-instruct" | "openai-gpt-3.5-turbo" | "openai-gpt-4" | "openai-gpt-4-turbo" | "anthropic-claude-haiku" | "anthropic-claude-opus" | "anthropic-claude-sonnet" | "perplexity-sonar-medium-online" | "perplexity-sonar-small-online" | "llama2-70b" | "mixtral-8x7b" | "codellama-70b-instruct"
494
518
  /** @deprecated */
495
519
  | "gpt-3.5-turbo"
496
520
  /** @deprecated */
@@ -4740,6 +4764,7 @@ export declare enum Icon {
4740
4764
  Building = "building-16",
4741
4765
  BulletPoints = "bullet-points-16",
4742
4766
  BullsEye = "bulls-eye-16",
4767
+ BullsEyeMissed = "bulls-eye-missed-16",
4743
4768
  Buoy = "buoy-16",
4744
4769
  Calculator = "calculator-16",
4745
4770
  Calendar = "calendar-16",
@@ -4807,6 +4832,7 @@ export declare enum Icon {
4807
4832
  Eject = "eject-16",
4808
4833
  Ellipsis = "ellipsis-16",
4809
4834
  Emoji = "emoji-16",
4835
+ EmojiSad = "emoji-sad-16",
4810
4836
  Envelope = "envelope-16",
4811
4837
  Eraser = "eraser-16",
4812
4838
  ExclamationMark = "important-01-16",
@@ -5101,6 +5127,10 @@ export declare enum Icon {
5101
5127
  TextCursor = "text-cursor-16",
5102
5128
  TextInput = "text-input-16",
5103
5129
  TextSelection = "text-selection-16",
5130
+ ThumbsDown = "thumbs-down-16",
5131
+ ThumbsDownFilled = "thumbs-down-filled-16",
5132
+ ThumbsUp = "thumbs-up-16",
5133
+ ThumbsUpFilled = "thumbs-up-filled-16",
5104
5134
  Ticket = "ticket-16",
5105
5135
  Torch = "torch-16",
5106
5136
  Train = "train-16",