@botpress/cognitive 0.2.0 → 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/.turbo/turbo-build.log +7 -7
- package/dist/index.cjs +61 -12
- package/dist/index.cjs.map +2 -2
- package/dist/index.d.ts +125 -20
- package/dist/index.mjs +61 -12
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1896,7 +1896,7 @@ interface CreateEventResponse {
|
|
|
1896
1896
|
* ID of the [Message](#schema_message) to link the event to.
|
|
1897
1897
|
*/
|
|
1898
1898
|
messageId?: string;
|
|
1899
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
1899
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
1900
1900
|
/**
|
|
1901
1901
|
* Reason why the event failed to be processed
|
|
1902
1902
|
*/
|
|
@@ -1949,7 +1949,7 @@ interface GetEventResponse {
|
|
|
1949
1949
|
* ID of the [Message](#schema_message) to link the event to.
|
|
1950
1950
|
*/
|
|
1951
1951
|
messageId?: string;
|
|
1952
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
1952
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
1953
1953
|
/**
|
|
1954
1954
|
* Reason why the event failed to be processed
|
|
1955
1955
|
*/
|
|
@@ -2005,7 +2005,7 @@ interface ListEventsResponse {
|
|
|
2005
2005
|
* ID of the [Message](#schema_message) to link the event to.
|
|
2006
2006
|
*/
|
|
2007
2007
|
messageId?: string;
|
|
2008
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
2008
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
2009
2009
|
/**
|
|
2010
2010
|
* Reason why the event failed to be processed
|
|
2011
2011
|
*/
|
|
@@ -2019,6 +2019,19 @@ interface ListEventsResponse {
|
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
2021
2021
|
|
|
2022
|
+
interface CancelScheduledEventRequestHeaders {
|
|
2023
|
+
}
|
|
2024
|
+
interface CancelScheduledEventRequestQuery {
|
|
2025
|
+
}
|
|
2026
|
+
interface CancelScheduledEventRequestParams {
|
|
2027
|
+
id: string;
|
|
2028
|
+
}
|
|
2029
|
+
interface CancelScheduledEventRequestBody {
|
|
2030
|
+
}
|
|
2031
|
+
type CancelScheduledEventInput = CancelScheduledEventRequestBody & CancelScheduledEventRequestHeaders & CancelScheduledEventRequestQuery & CancelScheduledEventRequestParams;
|
|
2032
|
+
interface CancelScheduledEventResponse {
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2022
2035
|
interface CreateMessageRequestHeaders {
|
|
2023
2036
|
}
|
|
2024
2037
|
interface CreateMessageRequestQuery {
|
|
@@ -5239,9 +5252,14 @@ interface ListPublicPluginsResponse {
|
|
|
5239
5252
|
*/
|
|
5240
5253
|
readmeUrl: string;
|
|
5241
5254
|
/**
|
|
5242
|
-
*
|
|
5255
|
+
* @deprecated
|
|
5256
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
5243
5257
|
*/
|
|
5244
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";
|
|
5245
5263
|
}[];
|
|
5246
5264
|
meta: {
|
|
5247
5265
|
/**
|
|
@@ -5456,9 +5474,14 @@ interface GetPublicPluginByIdResponse {
|
|
|
5456
5474
|
*/
|
|
5457
5475
|
readmeUrl: string;
|
|
5458
5476
|
/**
|
|
5459
|
-
*
|
|
5477
|
+
* @deprecated
|
|
5478
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
5460
5479
|
*/
|
|
5461
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";
|
|
5462
5485
|
};
|
|
5463
5486
|
}
|
|
5464
5487
|
|
|
@@ -5676,9 +5699,14 @@ interface GetDereferencedPublicPluginByIdResponse {
|
|
|
5676
5699
|
*/
|
|
5677
5700
|
readmeUrl: string;
|
|
5678
5701
|
/**
|
|
5679
|
-
*
|
|
5702
|
+
* @deprecated
|
|
5703
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
5680
5704
|
*/
|
|
5681
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";
|
|
5682
5710
|
};
|
|
5683
5711
|
}
|
|
5684
5712
|
|
|
@@ -5888,9 +5916,14 @@ interface GetPublicPluginResponse {
|
|
|
5888
5916
|
*/
|
|
5889
5917
|
readmeUrl: string;
|
|
5890
5918
|
/**
|
|
5891
|
-
*
|
|
5919
|
+
* @deprecated
|
|
5920
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
5892
5921
|
*/
|
|
5893
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";
|
|
5894
5927
|
};
|
|
5895
5928
|
}
|
|
5896
5929
|
|
|
@@ -6662,9 +6695,14 @@ interface CreateBotResponse {
|
|
|
6662
6695
|
*/
|
|
6663
6696
|
readmeUrl: string;
|
|
6664
6697
|
/**
|
|
6665
|
-
*
|
|
6698
|
+
* @deprecated
|
|
6699
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
6666
6700
|
*/
|
|
6667
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";
|
|
6668
6706
|
};
|
|
6669
6707
|
};
|
|
6670
6708
|
/**
|
|
@@ -7321,9 +7359,14 @@ interface UpdateBotResponse {
|
|
|
7321
7359
|
*/
|
|
7322
7360
|
readmeUrl: string;
|
|
7323
7361
|
/**
|
|
7324
|
-
*
|
|
7362
|
+
* @deprecated
|
|
7363
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
7325
7364
|
*/
|
|
7326
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";
|
|
7327
7370
|
};
|
|
7328
7371
|
};
|
|
7329
7372
|
/**
|
|
@@ -7795,9 +7838,14 @@ interface GetBotResponse {
|
|
|
7795
7838
|
*/
|
|
7796
7839
|
readmeUrl: string;
|
|
7797
7840
|
/**
|
|
7798
|
-
*
|
|
7841
|
+
* @deprecated
|
|
7842
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
7799
7843
|
*/
|
|
7800
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";
|
|
7801
7849
|
};
|
|
7802
7850
|
};
|
|
7803
7851
|
/**
|
|
@@ -9593,6 +9641,7 @@ interface CreateIntegrationRequestBody {
|
|
|
9593
9641
|
enabled: boolean;
|
|
9594
9642
|
};
|
|
9595
9643
|
};
|
|
9644
|
+
sdkVersion?: string;
|
|
9596
9645
|
/**
|
|
9597
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.
|
|
9598
9647
|
*/
|
|
@@ -10331,6 +10380,7 @@ interface ValidateIntegrationCreationRequestBody {
|
|
|
10331
10380
|
enabled: boolean;
|
|
10332
10381
|
};
|
|
10333
10382
|
};
|
|
10383
|
+
sdkVersion?: string;
|
|
10334
10384
|
/**
|
|
10335
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.
|
|
10336
10386
|
*/
|
|
@@ -10444,6 +10494,7 @@ interface UpdateIntegrationRequestBody {
|
|
|
10444
10494
|
enabled: boolean;
|
|
10445
10495
|
};
|
|
10446
10496
|
};
|
|
10497
|
+
sdkVersion?: string;
|
|
10447
10498
|
channels?: {
|
|
10448
10499
|
[k: string]: {
|
|
10449
10500
|
/**
|
|
@@ -11169,6 +11220,7 @@ interface ValidateIntegrationUpdateRequestBody {
|
|
|
11169
11220
|
enabled: boolean;
|
|
11170
11221
|
};
|
|
11171
11222
|
};
|
|
11223
|
+
sdkVersion?: string;
|
|
11172
11224
|
channels?: {
|
|
11173
11225
|
[k: string]: {
|
|
11174
11226
|
/**
|
|
@@ -12534,6 +12586,7 @@ interface CreateInterfaceRequestBody {
|
|
|
12534
12586
|
attributes?: {
|
|
12535
12587
|
[k: string]: string;
|
|
12536
12588
|
};
|
|
12589
|
+
sdkVersion?: string;
|
|
12537
12590
|
/**
|
|
12538
12591
|
* Base64 encoded svg of the interface icon. This icon is global to the interface each versions will be updated when this changes.
|
|
12539
12592
|
*/
|
|
@@ -13154,6 +13207,7 @@ interface UpdateInterfaceRequestBody {
|
|
|
13154
13207
|
attributes?: {
|
|
13155
13208
|
[k: string]: string | null;
|
|
13156
13209
|
};
|
|
13210
|
+
sdkVersion?: string;
|
|
13157
13211
|
/**
|
|
13158
13212
|
* Base64 encoded svg of the interface icon. This icon is global to the interface each versions will be updated when this changes.
|
|
13159
13213
|
*/
|
|
@@ -13562,6 +13616,7 @@ interface CreatePluginRequestBody {
|
|
|
13562
13616
|
attributes?: {
|
|
13563
13617
|
[k: string]: string;
|
|
13564
13618
|
};
|
|
13619
|
+
sdkVersion?: string;
|
|
13565
13620
|
code: {
|
|
13566
13621
|
/**
|
|
13567
13622
|
* Code of plugin bundled for Node.JS
|
|
@@ -13589,9 +13644,14 @@ interface CreatePluginRequestBody {
|
|
|
13589
13644
|
*/
|
|
13590
13645
|
description?: string;
|
|
13591
13646
|
/**
|
|
13592
|
-
*
|
|
13647
|
+
* @deprecated
|
|
13648
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
13593
13649
|
*/
|
|
13594
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";
|
|
13595
13655
|
dependencies?: {
|
|
13596
13656
|
/**
|
|
13597
13657
|
* Mapping of interface aliases to interface references
|
|
@@ -13829,9 +13889,14 @@ interface CreatePluginResponse {
|
|
|
13829
13889
|
*/
|
|
13830
13890
|
readmeUrl: string;
|
|
13831
13891
|
/**
|
|
13832
|
-
*
|
|
13892
|
+
* @deprecated
|
|
13893
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
13833
13894
|
*/
|
|
13834
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";
|
|
13835
13900
|
};
|
|
13836
13901
|
}
|
|
13837
13902
|
|
|
@@ -14040,9 +14105,14 @@ interface GetPluginResponse {
|
|
|
14040
14105
|
*/
|
|
14041
14106
|
readmeUrl: string;
|
|
14042
14107
|
/**
|
|
14043
|
-
*
|
|
14108
|
+
* @deprecated
|
|
14109
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
14044
14110
|
*/
|
|
14045
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";
|
|
14046
14116
|
};
|
|
14047
14117
|
}
|
|
14048
14118
|
|
|
@@ -14260,9 +14330,14 @@ interface GetDereferencedPluginResponse {
|
|
|
14260
14330
|
*/
|
|
14261
14331
|
readmeUrl: string;
|
|
14262
14332
|
/**
|
|
14263
|
-
*
|
|
14333
|
+
* @deprecated
|
|
14334
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
14264
14335
|
*/
|
|
14265
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";
|
|
14266
14341
|
};
|
|
14267
14342
|
}
|
|
14268
14343
|
|
|
@@ -14472,9 +14547,14 @@ interface GetPluginByNameResponse {
|
|
|
14472
14547
|
*/
|
|
14473
14548
|
readmeUrl: string;
|
|
14474
14549
|
/**
|
|
14475
|
-
*
|
|
14550
|
+
* @deprecated
|
|
14551
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
14476
14552
|
*/
|
|
14477
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";
|
|
14478
14558
|
};
|
|
14479
14559
|
}
|
|
14480
14560
|
|
|
@@ -14614,6 +14694,7 @@ interface UpdatePluginRequestBody {
|
|
|
14614
14694
|
attributes?: {
|
|
14615
14695
|
[k: string]: string | null;
|
|
14616
14696
|
};
|
|
14697
|
+
sdkVersion?: string;
|
|
14617
14698
|
code?: {
|
|
14618
14699
|
/**
|
|
14619
14700
|
* Code of plugin bundled for Node.JS
|
|
@@ -14641,9 +14722,14 @@ interface UpdatePluginRequestBody {
|
|
|
14641
14722
|
*/
|
|
14642
14723
|
description?: string;
|
|
14643
14724
|
/**
|
|
14644
|
-
*
|
|
14725
|
+
* @deprecated
|
|
14726
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
14645
14727
|
*/
|
|
14646
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";
|
|
14647
14733
|
dependencies?: {
|
|
14648
14734
|
/**
|
|
14649
14735
|
* Mapping of interface aliases to interface references
|
|
@@ -14881,9 +14967,14 @@ interface UpdatePluginResponse {
|
|
|
14881
14967
|
*/
|
|
14882
14968
|
readmeUrl: string;
|
|
14883
14969
|
/**
|
|
14884
|
-
*
|
|
14970
|
+
* @deprecated
|
|
14971
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
14885
14972
|
*/
|
|
14886
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";
|
|
14887
14978
|
};
|
|
14888
14979
|
}
|
|
14889
14980
|
|
|
@@ -14951,9 +15042,14 @@ interface ListPluginsResponse {
|
|
|
14951
15042
|
*/
|
|
14952
15043
|
readmeUrl: string;
|
|
14953
15044
|
/**
|
|
14954
|
-
*
|
|
15045
|
+
* @deprecated
|
|
15046
|
+
* [DEPRECATED] Indicates if the plugin is public. Please use the "visibility" parameter instead.
|
|
14955
15047
|
*/
|
|
14956
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";
|
|
14957
15053
|
}[];
|
|
14958
15054
|
meta: {
|
|
14959
15055
|
/**
|
|
@@ -15987,6 +16083,12 @@ interface SearchFilesResponse {
|
|
|
15987
16083
|
* MIME type of the file's content
|
|
15988
16084
|
*/
|
|
15989
16085
|
contentType: string;
|
|
16086
|
+
/**
|
|
16087
|
+
* Metadata of the file as an object of key-value pairs.
|
|
16088
|
+
*/
|
|
16089
|
+
metadata: {
|
|
16090
|
+
[k: string]: any | null;
|
|
16091
|
+
};
|
|
15990
16092
|
/**
|
|
15991
16093
|
* The tags of the file as an object of key-value pairs.
|
|
15992
16094
|
*/
|
|
@@ -17916,6 +18018,7 @@ declare class Client$1 {
|
|
|
17916
18018
|
readonly createEvent: (input: CreateEventInput) => Promise<CreateEventResponse>;
|
|
17917
18019
|
readonly getEvent: (input: GetEventInput) => Promise<GetEventResponse>;
|
|
17918
18020
|
readonly listEvents: (input: ListEventsInput) => Promise<ListEventsResponse>;
|
|
18021
|
+
readonly cancelScheduledEvent: (input: CancelScheduledEventInput) => Promise<CancelScheduledEventResponse>;
|
|
17919
18022
|
readonly createMessage: (input: CreateMessageInput) => Promise<CreateMessageResponse>;
|
|
17920
18023
|
readonly getOrCreateMessage: (input: GetOrCreateMessageInput) => Promise<GetOrCreateMessageResponse>;
|
|
17921
18024
|
readonly getMessage: (input: GetMessageInput) => Promise<GetMessageResponse>;
|
|
@@ -18155,7 +18258,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
18155
18258
|
conversationId?: string;
|
|
18156
18259
|
userId?: string;
|
|
18157
18260
|
messageId?: string;
|
|
18158
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
18261
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
18159
18262
|
failureReason: string | null;
|
|
18160
18263
|
}>;
|
|
18161
18264
|
messages: (props: {
|
|
@@ -18389,6 +18492,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
18389
18492
|
iconUrl: string;
|
|
18390
18493
|
readmeUrl: string;
|
|
18391
18494
|
public: boolean;
|
|
18495
|
+
visibility: "public" | "private" | "unlisted";
|
|
18392
18496
|
}>;
|
|
18393
18497
|
publicPlugins: (props: {
|
|
18394
18498
|
name?: string | undefined;
|
|
@@ -18404,6 +18508,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
18404
18508
|
iconUrl: string;
|
|
18405
18509
|
readmeUrl: string;
|
|
18406
18510
|
public: boolean;
|
|
18511
|
+
visibility: "public" | "private" | "unlisted";
|
|
18407
18512
|
}>;
|
|
18408
18513
|
activities: (props: {
|
|
18409
18514
|
botId: string;
|
|
@@ -19050,7 +19155,7 @@ declare class Cognitive {
|
|
|
19050
19155
|
private _generateContent;
|
|
19051
19156
|
}
|
|
19052
19157
|
|
|
19053
|
-
type Models = 'auto' | 'best' | 'fast' | 'anthropic:claude-3-5-haiku-20241022' | 'anthropic:claude-3-
|
|
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);
|
|
19054
19159
|
type CognitiveRequest = {
|
|
19055
19160
|
/**
|
|
19056
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
|
|
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: ["
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
1754
|
+
lifecycle: "discontinued",
|
|
1706
1755
|
aliases: ["accounts/fireworks/models/mythomax-l2-13b"]
|
|
1707
1756
|
},
|
|
1708
1757
|
"fireworks-ai:gemma2-9b-it": {
|