@botpress/cognitive 0.2.1 → 0.3.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/dist/index.d.ts CHANGED
@@ -5252,9 +5252,14 @@ interface ListPublicPluginsResponse {
5252
5252
  */
5253
5253
  readmeUrl: string;
5254
5254
  /**
5255
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5255
+ * @deprecated
5256
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
5256
5257
  */
5257
5258
  public: boolean;
5259
+ /**
5260
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
5261
+ */
5262
+ visibility: "public" | "private" | "unlisted";
5258
5263
  }[];
5259
5264
  meta: {
5260
5265
  /**
@@ -5469,9 +5474,14 @@ interface GetPublicPluginByIdResponse {
5469
5474
  */
5470
5475
  readmeUrl: string;
5471
5476
  /**
5472
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5477
+ * @deprecated
5478
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
5473
5479
  */
5474
5480
  public: boolean;
5481
+ /**
5482
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
5483
+ */
5484
+ visibility: "public" | "private" | "unlisted";
5475
5485
  };
5476
5486
  }
5477
5487
 
@@ -5689,9 +5699,14 @@ interface GetDereferencedPublicPluginByIdResponse {
5689
5699
  */
5690
5700
  readmeUrl: string;
5691
5701
  /**
5692
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5702
+ * @deprecated
5703
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
5693
5704
  */
5694
5705
  public: boolean;
5706
+ /**
5707
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
5708
+ */
5709
+ visibility: "public" | "private" | "unlisted";
5695
5710
  };
5696
5711
  }
5697
5712
 
@@ -5901,9 +5916,14 @@ interface GetPublicPluginResponse {
5901
5916
  */
5902
5917
  readmeUrl: string;
5903
5918
  /**
5904
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
5919
+ * @deprecated
5920
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
5905
5921
  */
5906
5922
  public: boolean;
5923
+ /**
5924
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
5925
+ */
5926
+ visibility: "public" | "private" | "unlisted";
5907
5927
  };
5908
5928
  }
5909
5929
 
@@ -6675,9 +6695,14 @@ interface CreateBotResponse {
6675
6695
  */
6676
6696
  readmeUrl: string;
6677
6697
  /**
6678
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
6698
+ * @deprecated
6699
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
6679
6700
  */
6680
6701
  public: boolean;
6702
+ /**
6703
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
6704
+ */
6705
+ visibility: "public" | "private" | "unlisted";
6681
6706
  };
6682
6707
  };
6683
6708
  /**
@@ -7334,9 +7359,14 @@ interface UpdateBotResponse {
7334
7359
  */
7335
7360
  readmeUrl: string;
7336
7361
  /**
7337
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
7362
+ * @deprecated
7363
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
7338
7364
  */
7339
7365
  public: boolean;
7366
+ /**
7367
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
7368
+ */
7369
+ visibility: "public" | "private" | "unlisted";
7340
7370
  };
7341
7371
  };
7342
7372
  /**
@@ -7808,9 +7838,14 @@ interface GetBotResponse {
7808
7838
  */
7809
7839
  readmeUrl: string;
7810
7840
  /**
7811
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
7841
+ * @deprecated
7842
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
7812
7843
  */
7813
7844
  public: boolean;
7845
+ /**
7846
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
7847
+ */
7848
+ visibility: "public" | "private" | "unlisted";
7814
7849
  };
7815
7850
  };
7816
7851
  /**
@@ -9606,6 +9641,7 @@ interface CreateIntegrationRequestBody {
9606
9641
  enabled: boolean;
9607
9642
  };
9608
9643
  };
9644
+ sdkVersion?: string;
9609
9645
  /**
9610
9646
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
9611
9647
  */
@@ -10344,6 +10380,7 @@ interface ValidateIntegrationCreationRequestBody {
10344
10380
  enabled: boolean;
10345
10381
  };
10346
10382
  };
10383
+ sdkVersion?: string;
10347
10384
  /**
10348
10385
  * Secrets are integration-wide values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
10349
10386
  */
@@ -10457,6 +10494,7 @@ interface UpdateIntegrationRequestBody {
10457
10494
  enabled: boolean;
10458
10495
  };
10459
10496
  };
10497
+ sdkVersion?: string;
10460
10498
  channels?: {
10461
10499
  [k: string]: {
10462
10500
  /**
@@ -11182,6 +11220,7 @@ interface ValidateIntegrationUpdateRequestBody {
11182
11220
  enabled: boolean;
11183
11221
  };
11184
11222
  };
11223
+ sdkVersion?: string;
11185
11224
  channels?: {
11186
11225
  [k: string]: {
11187
11226
  /**
@@ -12547,6 +12586,7 @@ interface CreateInterfaceRequestBody {
12547
12586
  attributes?: {
12548
12587
  [k: string]: string;
12549
12588
  };
12589
+ sdkVersion?: string;
12550
12590
  /**
12551
12591
  * Base64 encoded svg of the interface icon. This icon is global to the interface each versions will be updated when this changes.
12552
12592
  */
@@ -13167,6 +13207,7 @@ interface UpdateInterfaceRequestBody {
13167
13207
  attributes?: {
13168
13208
  [k: string]: string | null;
13169
13209
  };
13210
+ sdkVersion?: string;
13170
13211
  /**
13171
13212
  * Base64 encoded svg of the interface icon. This icon is global to the interface each versions will be updated when this changes.
13172
13213
  */
@@ -13575,6 +13616,7 @@ interface CreatePluginRequestBody {
13575
13616
  attributes?: {
13576
13617
  [k: string]: string;
13577
13618
  };
13619
+ sdkVersion?: string;
13578
13620
  code: {
13579
13621
  /**
13580
13622
  * Code of plugin bundled for Node.JS
@@ -13602,9 +13644,14 @@ interface CreatePluginRequestBody {
13602
13644
  */
13603
13645
  description?: string;
13604
13646
  /**
13605
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
13647
+ * @deprecated
13648
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
13606
13649
  */
13607
13650
  public?: boolean;
13651
+ /**
13652
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
13653
+ */
13654
+ visibility?: "public" | "private" | "unlisted";
13608
13655
  dependencies?: {
13609
13656
  /**
13610
13657
  * Mapping of interface aliases to interface references
@@ -13842,9 +13889,14 @@ interface CreatePluginResponse {
13842
13889
  */
13843
13890
  readmeUrl: string;
13844
13891
  /**
13845
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
13892
+ * @deprecated
13893
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
13846
13894
  */
13847
13895
  public: boolean;
13896
+ /**
13897
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
13898
+ */
13899
+ visibility: "public" | "private" | "unlisted";
13848
13900
  };
13849
13901
  }
13850
13902
 
@@ -14053,9 +14105,14 @@ interface GetPluginResponse {
14053
14105
  */
14054
14106
  readmeUrl: string;
14055
14107
  /**
14056
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
14108
+ * @deprecated
14109
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
14057
14110
  */
14058
14111
  public: boolean;
14112
+ /**
14113
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14114
+ */
14115
+ visibility: "public" | "private" | "unlisted";
14059
14116
  };
14060
14117
  }
14061
14118
 
@@ -14273,9 +14330,14 @@ interface GetDereferencedPluginResponse {
14273
14330
  */
14274
14331
  readmeUrl: string;
14275
14332
  /**
14276
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
14333
+ * @deprecated
14334
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
14277
14335
  */
14278
14336
  public: boolean;
14337
+ /**
14338
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14339
+ */
14340
+ visibility: "public" | "private" | "unlisted";
14279
14341
  };
14280
14342
  }
14281
14343
 
@@ -14485,9 +14547,14 @@ interface GetPluginByNameResponse {
14485
14547
  */
14486
14548
  readmeUrl: string;
14487
14549
  /**
14488
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
14550
+ * @deprecated
14551
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
14489
14552
  */
14490
14553
  public: boolean;
14554
+ /**
14555
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14556
+ */
14557
+ visibility: "public" | "private" | "unlisted";
14491
14558
  };
14492
14559
  }
14493
14560
 
@@ -14627,6 +14694,7 @@ interface UpdatePluginRequestBody {
14627
14694
  attributes?: {
14628
14695
  [k: string]: string | null;
14629
14696
  };
14697
+ sdkVersion?: string;
14630
14698
  code?: {
14631
14699
  /**
14632
14700
  * Code of plugin bundled for Node.JS
@@ -14654,9 +14722,14 @@ interface UpdatePluginRequestBody {
14654
14722
  */
14655
14723
  description?: string;
14656
14724
  /**
14657
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
14725
+ * @deprecated
14726
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
14658
14727
  */
14659
14728
  public?: boolean;
14729
+ /**
14730
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14731
+ */
14732
+ visibility?: "public" | "private" | "unlisted";
14660
14733
  dependencies?: {
14661
14734
  /**
14662
14735
  * Mapping of interface aliases to interface references
@@ -14894,9 +14967,14 @@ interface UpdatePluginResponse {
14894
14967
  */
14895
14968
  readmeUrl: string;
14896
14969
  /**
14897
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
14970
+ * @deprecated
14971
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
14898
14972
  */
14899
14973
  public: boolean;
14974
+ /**
14975
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
14976
+ */
14977
+ visibility: "public" | "private" | "unlisted";
14900
14978
  };
14901
14979
  }
14902
14980
 
@@ -14964,9 +15042,14 @@ interface ListPluginsResponse {
14964
15042
  */
14965
15043
  readmeUrl: string;
14966
15044
  /**
14967
- * Indicates if the plugin is public. Public plugins are available to all and cannot be updated without creating a new version.
15045
+ * @deprecated
15046
+ * [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
14968
15047
  */
14969
15048
  public: boolean;
15049
+ /**
15050
+ * The plugin's visibility. Public plugins are available to all and cannot be updated without creating a new version. Unlisted plugins behave identically to public plugins, but they are not listed in the plugin hub. By default, plugins are private and only accessible to the workspace that created them.
15051
+ */
15052
+ visibility: "public" | "private" | "unlisted";
14970
15053
  }[];
14971
15054
  meta: {
14972
15055
  /**
@@ -18409,6 +18492,7 @@ declare class Client extends Client$1 implements IClient {
18409
18492
  iconUrl: string;
18410
18493
  readmeUrl: string;
18411
18494
  public: boolean;
18495
+ visibility: "public" | "private" | "unlisted";
18412
18496
  }>;
18413
18497
  publicPlugins: (props: {
18414
18498
  name?: string | undefined;
@@ -18424,6 +18508,7 @@ declare class Client extends Client$1 implements IClient {
18424
18508
  iconUrl: string;
18425
18509
  readmeUrl: string;
18426
18510
  public: boolean;
18511
+ visibility: "public" | "private" | "unlisted";
18427
18512
  }>;
18428
18513
  activities: (props: {
18429
18514
  botId: string;
@@ -19070,7 +19155,7 @@ declare class Cognitive {
19070
19155
  private _generateContent;
19071
19156
  }
19072
19157
 
19073
- type Models = 'auto' | 'best' | 'fast' | 'anthropic:claude-3-5-haiku-20241022' | 'anthropic:claude-3-5-sonnet-20240620' | 'anthropic:claude-3-5-sonnet-20241022' | 'anthropic:claude-3-7-sonnet-20250219' | 'anthropic:claude-3-haiku-20240307' | 'anthropic:claude-sonnet-4-20250514' | 'anthropic:claude-sonnet-4-5-20250929' | 'cerebras:gpt-oss-120b' | 'cerebras:llama-4-scout-17b-16e-instruct' | 'cerebras:llama3.1-8b' | 'cerebras:llama3.3-70b' | 'cerebras:qwen-3-32b' | 'fireworks-ai:deepseek-r1-0528' | 'fireworks-ai:deepseek-v3-0324' | 'fireworks-ai:gpt-oss-120b' | 'fireworks-ai:gpt-oss-20b' | 'fireworks-ai:llama-v3p1-8b-instruct' | 'fireworks-ai:llama-v3p3-70b-instruct' | 'fireworks-ai:llama4-maverick-instruct-basic' | 'fireworks-ai:llama4-scout-instruct-basic' | 'fireworks-ai:mixtral-8x7b-instruct' | 'fireworks-ai:mythomax-l2-13b' | 'google-ai:gemini-2.0-flash' | 'google-ai:gemini-2.5-flash' | 'google-ai:gemini-2.5-pro' | 'groq:gpt-oss-120b' | 'groq:gpt-oss-20b' | 'groq:llama-3.1-8b-instant' | 'groq:llama-3.3-70b-versatile' | 'openai:gpt-4.1-2025-04-14' | 'openai:gpt-4.1-mini-2025-04-14' | 'openai:gpt-4.1-nano-2025-04-14' | 'openai:gpt-4o-2024-11-20' | 'openai:gpt-4o-mini-2024-07-18' | 'openai:gpt-5-2025-08-07' | 'openai:gpt-5-mini-2025-08-07' | 'openai:gpt-5-nano-2025-08-07' | 'openai:o1-2024-12-17' | 'openai:o1-mini-2024-09-12' | 'openai:o3-2025-04-16' | 'openai:o3-mini-2025-01-31' | 'openai:o4-mini-2025-04-16' | 'openrouter:gpt-oss-120b' | 'xai:grok-3' | 'xai:grok-3-mini' | 'xai:grok-4-0709' | 'xai:grok-4-fast-non-reasoning' | 'xai:grok-4-fast-reasoning' | 'xai:grok-code-fast-1' | 'openai:gpt-5' | 'openai:gpt-5-mini' | 'openai:gpt-5-nano' | 'openai:o4-mini' | 'openai:o3' | 'openai:gpt-4.1' | 'openai:gpt-4.1-mini' | 'openai:gpt-4.1-nano' | 'openai:o3-mini' | 'openai:o1-mini' | 'openai:gpt-4o-mini' | 'openai:gpt-4o' | 'anthropic:claude-sonnet-4-5' | 'anthropic:claude-sonnet-4' | 'anthropic:claude-sonnet-4-reasoning' | 'google-ai:models/gemini-2.0-flash' | 'groq:openai/gpt-oss-20b' | 'groq:openai/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-20b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-0528' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3-0324' | 'fireworks-ai:accounts/fireworks/models/llama4-maverick-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama4-scout-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama-v3p3-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-basic' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-405b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-8b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x22b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x7b-instruct' | 'fireworks-ai:accounts/fireworks/models/mythomax-l2-13b' | 'fireworks-ai:accounts/fireworks/models/gemma2-9b-it' | ({} & string);
19158
+ type Models = 'auto' | 'best' | 'fast' | 'anthropic:claude-3-5-haiku-20241022' | 'anthropic:claude-3-7-sonnet-20250219' | 'anthropic:claude-3-haiku-20240307' | 'anthropic:claude-haiku-4-5-20251001' | 'anthropic:claude-haiku-4-5-reasoning-20251001' | 'anthropic:claude-sonnet-4-20250514' | 'anthropic:claude-sonnet-4-5-20250929' | 'cerebras:gpt-oss-120b' | 'cerebras:llama-4-scout-17b-16e-instruct' | 'cerebras:llama3.1-8b' | 'cerebras:llama3.3-70b' | 'cerebras:qwen-3-32b' | 'fireworks-ai:deepseek-r1-0528' | 'fireworks-ai:deepseek-v3-0324' | 'fireworks-ai:gpt-oss-120b' | 'fireworks-ai:gpt-oss-20b' | 'fireworks-ai:llama-v3p1-8b-instruct' | 'fireworks-ai:llama-v3p3-70b-instruct' | 'fireworks-ai:llama4-maverick-instruct-basic' | 'fireworks-ai:llama4-scout-instruct-basic' | 'google-ai:gemini-2.0-flash' | 'google-ai:gemini-2.5-flash' | 'google-ai:gemini-2.5-pro' | 'groq:gpt-oss-120b' | 'groq:gpt-oss-20b' | 'groq:llama-3.1-8b-instant' | 'groq:llama-3.3-70b-versatile' | 'openai:gpt-4.1-2025-04-14' | 'openai:gpt-4.1-mini-2025-04-14' | 'openai:gpt-4.1-nano-2025-04-14' | 'openai:gpt-4o-2024-11-20' | 'openai:gpt-4o-mini-2024-07-18' | 'openai:gpt-5-2025-08-07' | 'openai:gpt-5-mini-2025-08-07' | 'openai:gpt-5-nano-2025-08-07' | 'openai:gpt-5.1-2025-11-13' | 'openai:o1-2024-12-17' | 'openai:o1-mini-2024-09-12' | 'openai:o3-2025-04-16' | 'openai:o3-mini-2025-01-31' | 'openai:o4-mini-2025-04-16' | 'openrouter:gpt-oss-120b' | 'xai:grok-3' | 'xai:grok-3-mini' | 'xai:grok-4-0709' | 'xai:grok-4-fast-non-reasoning' | 'xai:grok-4-fast-reasoning' | 'xai:grok-code-fast-1' | 'openai:gpt-5' | 'openai:gpt-5-mini' | 'openai:gpt-5-nano' | 'openai:o4-mini' | 'openai:o3' | 'openai:gpt-4.1' | 'openai:gpt-4.1-mini' | 'openai:gpt-4.1-nano' | 'openai:o3-mini' | 'openai:o1-mini' | 'openai:gpt-4o-mini' | 'openai:gpt-4o' | 'anthropic:claude-sonnet-4-5' | 'anthropic:claude-sonnet-4' | 'anthropic:claude-sonnet-4-reasoning' | 'anthropic:claude-haiku-4-5' | 'anthropic:claude-haiku-4-5-reasoning' | 'google-ai:models/gemini-2.0-flash' | 'groq:openai/gpt-oss-20b' | 'groq:openai/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-20b' | 'fireworks-ai:accounts/fireworks/models/gpt-oss-120b' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-0528' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3-0324' | 'fireworks-ai:accounts/fireworks/models/llama4-maverick-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama4-scout-instruct-basic' | 'fireworks-ai:accounts/fireworks/models/llama-v3p3-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1' | 'fireworks-ai:accounts/fireworks/models/deepseek-r1-basic' | 'fireworks-ai:accounts/fireworks/models/deepseek-v3' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-405b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-70b-instruct' | 'fireworks-ai:accounts/fireworks/models/llama-v3p1-8b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x22b-instruct' | 'fireworks-ai:accounts/fireworks/models/mixtral-8x7b-instruct' | 'fireworks-ai:accounts/fireworks/models/mythomax-l2-13b' | 'fireworks-ai:accounts/fireworks/models/gemma2-9b-it' | ({} & string);
19074
19159
  type CognitiveRequest = {
19075
19160
  /**
19076
19161
  * @minItems 1
package/dist/index.mjs CHANGED
@@ -636,10 +636,25 @@ import axios from "axios";
636
636
 
637
637
  // src/cognitive-v2/models.ts
638
638
  var models = {
639
+ "openai:gpt-5.1-2025-11-13": {
640
+ id: "openai:gpt-5.1-2025-11-13",
641
+ name: "GPT-5.1",
642
+ description: "GPT-5.1 is OpenAI's latest and most advanced AI model. It is a reasoning model that chooses the best way to respond based on task complexity and user intent. GPT-5.1 delivers expert-level performance across coding, math, writing, health, and visual perception, with improved accuracy, speed, and reduced hallucinations. It excels in complex tasks, long-context understanding, multimodal inputs (text and images), and safe, nuanced responses.",
643
+ input: {
644
+ maxTokens: 4e5,
645
+ costPer1MTokens: 1.25
646
+ },
647
+ output: {
648
+ maxTokens: 128e3,
649
+ costPer1MTokens: 10
650
+ },
651
+ tags: ["recommended", "reasoning", "general-purpose"],
652
+ lifecycle: "production"
653
+ },
639
654
  "openai:gpt-5-2025-08-07": {
640
655
  id: "openai:gpt-5-2025-08-07",
641
656
  name: "GPT-5",
642
- description: "GPT-5 is OpenAI's latest and most advanced AI model. It is a reasoning model that chooses the best way to respond based on task complexity and user intent. GPT-5 delivers expert-level performance across coding, math, writing, health, and visual perception, with improved accuracy, speed, and reduced hallucinations. It excels in complex tasks, long-context understanding, multimodal inputs (text and images), and safe, nuanced responses.",
657
+ description: "GPT-5 is a reasoning model that chooses the best way to respond based on task complexity and user intent. GPT-5 delivers expert-level performance across coding, math, writing, health, and visual perception, with improved accuracy, speed, and reduced hallucinations. It excels in complex tasks, long-context understanding, multimodal inputs (text and images), and safe, nuanced responses.",
643
658
  input: {
644
659
  maxTokens: 4e5,
645
660
  costPer1MTokens: 1.25
@@ -648,7 +663,7 @@ var models = {
648
663
  maxTokens: 128e3,
649
664
  costPer1MTokens: 10
650
665
  },
651
- tags: ["recommended", "reasoning", "general-purpose"],
666
+ tags: ["reasoning", "general-purpose"],
652
667
  lifecycle: "production",
653
668
  aliases: ["gpt-5"]
654
669
  },
@@ -719,7 +734,7 @@ var models = {
719
734
  "openai:gpt-4.1-2025-04-14": {
720
735
  id: "openai:gpt-4.1-2025-04-14",
721
736
  name: "GPT 4.1",
722
- description: "GPT 4.1 is our flagship model for complex tasks. It is well suited for problem solving across domains. The knowledge cutoff is June 2024.",
737
+ description: "GPT 4.1 is a model suited for complex tasks and problem solving across domains. The knowledge cutoff is June 2024.",
723
738
  input: {
724
739
  maxTokens: 1047576,
725
740
  costPer1MTokens: 2
@@ -767,7 +782,7 @@ var models = {
767
782
  "openai:o3-mini-2025-01-31": {
768
783
  id: "openai:o3-mini-2025-01-31",
769
784
  name: "GPT o3-mini",
770
- description: "o3-mini is the most recent small reasoning model from OpenAI, providing high intelligence at the same cost and latency targets of o1-mini. Also supports key developer features like Structured Outputs and function calling.",
785
+ description: "o3-mini is a small reasoning model, providing high intelligence at the same cost and latency targets of o1-mini. Also supports key developer features like Structured Outputs and function calling.",
771
786
  input: {
772
787
  maxTokens: 2e5,
773
788
  costPer1MTokens: 1.1
@@ -814,7 +829,7 @@ var models = {
814
829
  "openai:gpt-4o-mini-2024-07-18": {
815
830
  id: "openai:gpt-4o-mini-2024-07-18",
816
831
  name: "GPT-4o Mini",
817
- description: "GPT-4o mini is OpenAI's most advanced model in the small models category, and their cheapest model yet. Multimodal with higher intelligence than gpt-3.5-turbo but just as fast.",
832
+ description: "GPT-4o mini is an advanced model in the small models category, and their cheapest model yet. Multimodal with higher intelligence than gpt-3.5-turbo but just as fast.",
818
833
  input: {
819
834
  maxTokens: 128e3,
820
835
  costPer1MTokens: 0.15
@@ -830,7 +845,7 @@ var models = {
830
845
  "openai:gpt-4o-2024-11-20": {
831
846
  id: "openai:gpt-4o-2024-11-20",
832
847
  name: "GPT-4o (November 2024)",
833
- description: "GPT-4o is OpenAI's most advanced model. Multimodal with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
848
+ description: "GPT-4o is an advanced multimodal model with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
834
849
  input: {
835
850
  maxTokens: 128e3,
836
851
  costPer1MTokens: 2.5
@@ -846,7 +861,7 @@ var models = {
846
861
  "openai:gpt-4o-2024-08-06": {
847
862
  id: "openai:gpt-4o-2024-08-06",
848
863
  name: "GPT-4o (August 2024)",
849
- description: "GPT-4o is OpenAI's most advanced model. Multimodal with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
864
+ description: "GPT-4o is an advanced multimodal model with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
850
865
  input: {
851
866
  maxTokens: 128e3,
852
867
  costPer1MTokens: 2.5
@@ -861,7 +876,7 @@ var models = {
861
876
  "openai:gpt-4o-2024-05-13": {
862
877
  id: "openai:gpt-4o-2024-05-13",
863
878
  name: "GPT-4o (May 2024)",
864
- description: "GPT-4o is OpenAI's most advanced model. Multimodal with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
879
+ description: "GPT-4o is an advanced multimodal model with the same high intelligence as GPT-4 Turbo but cheaper and more efficient.",
865
880
  input: {
866
881
  maxTokens: 128e3,
867
882
  costPer1MTokens: 5
@@ -951,6 +966,40 @@ var models = {
951
966
  lifecycle: "deprecated",
952
967
  aliases: ["claude-sonnet-4-reasoning"]
953
968
  },
969
+ "anthropic:claude-haiku-4-5-20251001": {
970
+ id: "anthropic:claude-haiku-4-5-20251001",
971
+ name: "Claude Haiku 4.5",
972
+ description: "Claude Haiku 4.5 is Anthropic's fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching Claude Sonnet 4's performance across reasoning, coding, and computer-use tasks, Haiku 4.5 brings frontier-level capability to real-time and high-volume applications.",
973
+ input: {
974
+ maxTokens: 2e5,
975
+ costPer1MTokens: 1
976
+ },
977
+ output: {
978
+ maxTokens: 64e3,
979
+ costPer1MTokens: 5
980
+ },
981
+ tags: ["recommended", "agents", "vision", "general-purpose", "coding"],
982
+ lifecycle: "production",
983
+ aliases: ["claude-haiku-4-5"]
984
+ },
985
+ "anthropic:claude-haiku-4-5-reasoning-20251001": {
986
+ id: "anthropic:claude-haiku-4-5-reasoning-20251001",
987
+ name: "Claude Haiku 4.5 (Reasoning Mode)",
988
+ description: `This model uses the "Extended Thinking" mode and will use a significantly higher amount of output tokens than the Standard Mode, so this model should only be used for tasks that actually require it.
989
+
990
+ Claude Haiku 4.5 is Anthropic's fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching Claude Sonnet 4's performance across reasoning, coding, and computer-use tasks, Haiku 4.5 brings frontier-level capability to real-time and high-volume applications.`,
991
+ input: {
992
+ maxTokens: 2e5,
993
+ costPer1MTokens: 1
994
+ },
995
+ output: {
996
+ maxTokens: 64e3,
997
+ costPer1MTokens: 5
998
+ },
999
+ tags: ["recommended", "reasoning", "agents", "vision", "general-purpose", "coding"],
1000
+ lifecycle: "production",
1001
+ aliases: ["claude-haiku-4-5-reasoning"]
1002
+ },
954
1003
  "anthropic:claude-3-7-sonnet-20250219": {
955
1004
  id: "anthropic:claude-3-7-sonnet-20250219",
956
1005
  name: "Claude 3.7 Sonnet",
@@ -1009,7 +1058,7 @@ var models = {
1009
1058
  costPer1MTokens: 15
1010
1059
  },
1011
1060
  tags: ["vision", "general-purpose", "agents", "coding", "storytelling"],
1012
- lifecycle: "production"
1061
+ lifecycle: "discontinued"
1013
1062
  },
1014
1063
  "anthropic:claude-3-5-sonnet-20240620": {
1015
1064
  id: "anthropic:claude-3-5-sonnet-20240620",
@@ -1024,7 +1073,7 @@ var models = {
1024
1073
  costPer1MTokens: 15
1025
1074
  },
1026
1075
  tags: ["vision", "general-purpose", "agents", "coding", "storytelling"],
1027
- lifecycle: "production"
1076
+ lifecycle: "discontinued"
1028
1077
  },
1029
1078
  "anthropic:claude-3-haiku-20240307": {
1030
1079
  id: "anthropic:claude-3-haiku-20240307",
@@ -1686,7 +1735,7 @@ var models = {
1686
1735
  costPer1MTokens: 0.5
1687
1736
  },
1688
1737
  tags: ["low-cost", "general-purpose"],
1689
- lifecycle: "production",
1738
+ lifecycle: "discontinued",
1690
1739
  aliases: ["accounts/fireworks/models/mixtral-8x7b-instruct"]
1691
1740
  },
1692
1741
  "fireworks-ai:mythomax-l2-13b": {
@@ -1702,7 +1751,7 @@ var models = {
1702
1751
  costPer1MTokens: 0.2
1703
1752
  },
1704
1753
  tags: ["roleplay", "storytelling", "low-cost"],
1705
- lifecycle: "production",
1754
+ lifecycle: "discontinued",
1706
1755
  aliases: ["accounts/fireworks/models/mythomax-l2-13b"]
1707
1756
  },
1708
1757
  "fireworks-ai:gemma2-9b-it": {